Introduce a new json editor component 11/119211/1
authorsebdet <sebastien.determe@intl.att.com>
Fri, 26 Feb 2021 18:14:03 +0000 (19:14 +0100)
committerLiam Fallon <liam.fallon@est.tech>
Tue, 16 Mar 2021 09:20:40 +0000 (09:20 +0000)
commit0e46e355ea43f940232ef8e5ba5d60dfdcc3a9f2
tree733a29cea8644aa5ff93b8450458324b5ed5bdc8
parentaf03139afd50b8843811201592cfd08569235074
Introduce a new json editor component

Add this a new react component so that the json editor can be called within the policies table
+ Add the tosca tab
+ Fix for Submit operation in clamp-api-v2.xml

Issue-ID: POLICY-3106
Issue-ID: POLICY-3124
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I18ab3a6034cac719525774f11b2c17f0a14bc2aa
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit 1e2760ea1ee4baa9db0e921907f3491fda795136)
16 files changed:
extra/sql/dump/test-data.sql
src/main/java/org/onap/policy/clamp/clds/util/JsonUtils.java
src/main/java/org/onap/policy/clamp/policy/Policy.java
src/main/java/org/onap/policy/clamp/policy/PolicyEngineServices.java
src/main/java/org/onap/policy/clamp/policy/PolicyPayload.java [new file with mode: 0644]
src/main/resources/clds/camel/rest/clamp-api-v2.xml
src/main/resources/clds/camel/routes/policy-flows.xml
ui-react-lib/libIndex.js
ui-react/package.json
ui-react/src/__snapshots__/OnapClamp.test.js.snap
ui-react/src/api/PolicyService.js
ui-react/src/api/PolicyToscaService.js
ui-react/src/components/dialogs/Policy/PolicyEditor.js [new file with mode: 0644]
ui-react/src/components/dialogs/Policy/ToscaViewer.js [new file with mode: 0644]
ui-react/src/components/dialogs/Policy/ViewAllPolicies.js
ui-react/src/theme/globalStyle.js