Part 1: Grouping of Data Nodes in Delta Report 50/139850/39
authorArpit Singh <AS00745003@techmahindra.com>
Mon, 13 Jan 2025 13:23:30 +0000 (18:53 +0530)
committerArpit Singh <AS00745003@techmahindra.com>
Tue, 27 May 2025 11:59:06 +0000 (17:29 +0530)
commite1bb322834cead93e85a8f8e430bea0c6e624898
treec1e16565942b060abd8c364cb19ccbe6abfbb83f
parent6c17c31956445465f9ca83893650aca85df7907d
Part 1: Grouping of Data Nodes in Delta Report

Add-on feature in delta report to generate condensed delta report by
grouping data nodes based on parent child relationship.

The patch adds grouping feature for "create" operation in delta report.

- Added boolean flag "groupingEnabled" to enable or disable grouping of
  data nodes in delta report. Default value is false.
- Added a method getCondensedAddedDeltaReports to generate condensed
  delta reports for create operation.
- Part 2 of this patch will have code for updated and removed delta
  report entries when grouping is enabled.
- A separate patch to add integration tests will be done after feature
  is implemented. This is done to keep patch sizes small

Issue-ID: CPS-2547
Change-Id: Ibb4d35b03098be7b57cb59852a87f6b4e0c7b706
Signed-off-by: Arpit Singh <AS00745003@techmahindra.com>
cps-rest/docs/openapi/components.yml
cps-rest/docs/openapi/cpsDelta.yml
cps-rest/src/main/java/org/onap/cps/rest/controller/DeltaRestController.java
cps-rest/src/test/groovy/org/onap/cps/rest/controller/DeltaRestControllerSpec.groovy
cps-service/src/main/java/org/onap/cps/api/CpsDeltaService.java
cps-service/src/main/java/org/onap/cps/impl/CpsDeltaServiceImpl.java
cps-service/src/test/groovy/org/onap/cps/impl/CpsDeltaServiceImplSpec.groovy
docs/api/swagger/cps/openapi.yaml
integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/DeltaServiceIntegrationSpec.groovy