Introduce a new endpoint to create policy 73/117973/1
authorsebdet <sebastien.determe@intl.att.com>
Tue, 16 Feb 2021 13:53:43 +0000 (14:53 +0100)
committerLiam Fallon <liam.fallon@est.tech>
Tue, 23 Feb 2021 09:51:46 +0000 (09:51 +0000)
commit44a539f0b8ac56494ce2100aab798f268526a127
tree0c7d974d9872d42c541a4149b676f78cd7df8779
parent09ace211a47e77a922911126ca2ba144500c4cfe
Introduce a new endpoint to create policy

One first part of the update is to create a policy version from an existing one (this is similar as the create new policy).
The policy-flow.xml has been refactored so that the same policy query is done for policies and loop related flows. A code has been added to remove fields from the UI that could be present (the PDP group info json enrichment)

Issue-ID: POLICY-2926
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ia60c656a9b5100296042d3346d5c97c8dad5d041
(cherry picked from commit a0a3a03686a386bf6def6f7da6de4d3f6a11ce61)
src/main/java/org/onap/policy/clamp/policy/pdpgroup/PdpGroupsAnalyzer.java
src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java
src/main/resources/clds/camel/rest/clamp-api-v2.xml
src/main/resources/clds/camel/routes/policy-flows.xml
src/test/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMergerTest.java
src/test/resources/example/policy/single-policy-enriched.json [new file with mode: 0644]
ui-react/src/api/PolicyService.js
ui-react/src/components/dialogs/Policy/ViewAllPolicies.js