policy/gui.git
3 years agoAdd Tosca Monitoring App to Policy Gui 43/122043/8
brunomilitzer [Fri, 18 Jun 2021 15:07:16 +0000 (16:07 +0100)]
Add Tosca Monitoring App to Policy Gui

Implemented the prototype monitoring gui onto the policy gui

Issue-ID: POLICY-3357
Change-Id: Iabf25cd6c26d4e65a7a963cdd79c25aa91c39736
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "Fix merge jobs failing"
Jim Hahn [Thu, 24 Jun 2021 14:47:25 +0000 (14:47 +0000)]
Merge "Fix merge jobs failing"

3 years agoFix merge jobs failing 69/122169/2
arkadiusz.adamski [Wed, 23 Jun 2021 17:08:38 +0000 (18:08 +0100)]
Fix merge jobs failing

- fix import addresses

Issue-ID: POLICY-3388
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I6d4813f017b6fc2e656bb4d514601b3be1380be5

3 years agoAdded jest/enzyme tests for new components 65/122165/2
saul.gill [Wed, 23 Jun 2021 15:54:10 +0000 (16:54 +0100)]
Added jest/enzyme tests for new components

Tests and snapshots added for reference
Single package added to package.json

Issue-ID: POLICY-3423
Change-Id: Ica0045bb80f587856f6e2392c3d846b6416cce21
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Added Tosca File Upload Functionality"
Liam Fallon [Wed, 23 Jun 2021 07:34:09 +0000 (07:34 +0000)]
Merge "Added Tosca File Upload Functionality"

3 years agoAdded Tosca File Upload Functionality 11/122011/1
saul.gill [Thu, 17 Jun 2021 08:11:55 +0000 (09:11 +0100)]
Added Tosca File Upload Functionality

Added 2 new components
One deals with the file upload to commissioning
Other deals with display of the ui elements

Issue-ID: POLICY-3222
Change-Id: I3b20489bb9e5c499f842cc8adde8147d3e3e8de0
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoIncrease code coverage on gui 08/122008/1
arkadiusz.adamski [Wed, 16 Jun 2021 15:34:14 +0000 (16:34 +0100)]
Increase code coverage on gui

- increase code coverage on gui js

Issue-ID: POLICY-3351
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I4c633b0a46f75ceb3f6a4721e8311d938168982e

3 years agoMerge "Increase code coverage on gui"
Liam Fallon [Wed, 16 Jun 2021 07:05:53 +0000 (07:05 +0000)]
Merge "Increase code coverage on gui"

3 years agoMerge "Fix sonar in policy/gui"
Pamela Dragosh [Tue, 15 Jun 2021 15:02:56 +0000 (15:02 +0000)]
Merge "Fix sonar in policy/gui"

3 years agoIncrease code coverage on gui 22/121922/1
arkadiusz.adamski [Tue, 15 Jun 2021 10:53:55 +0000 (11:53 +0100)]
Increase code coverage on gui

- increase code coverage on gui js

Issue-ID: POLICY-3351
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I5c24e6f02c401fd1eaee819105673cfcf1c81e13

3 years agoFix sonar in policy/gui 87/121887/2
Ram Krishna Verma [Fri, 11 Jun 2021 20:01:27 +0000 (16:01 -0400)]
Fix sonar in policy/gui

use "var" for local variables

Issue-ID: POLICY-3077
Change-Id: I6e31317bfda3d2b9bdde038cec709a3398f2f655
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoAdded GET Tosca Service Template components 98/121698/10
saul.gill [Thu, 3 Jun 2021 17:06:18 +0000 (18:06 +0100)]
Added GET Tosca Service Template components

Added in header, using existing styling
Integrated with existing FE

Issue-ID: POLICY-3222
Change-Id: I5b6a9f4be3296b2969baa559a7a48c87d2ab9258
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMERGE Clamp UI-React repo to Policy Gui Repo 03/121703/1
brunomilitzer [Fri, 4 Jun 2021 13:40:46 +0000 (14:40 +0100)]
MERGE Clamp UI-React repo to Policy Gui Repo

According to a Diff differences from one repo to the other, there was some missing changes from the original clamp repo to the policy gui repo.

Issue-ID: POLICY-3267
Change-Id: I9a71841732dc5c3d9623bca9c1384866f4c826a6
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "Increase code coverage on gui.editors.apex.rest"
Liam Fallon [Fri, 4 Jun 2021 08:54:38 +0000 (08:54 +0000)]
Merge "Increase code coverage on gui.editors.apex.rest"

3 years agoIncrease code coverage on gui.editors.apex.rest 85/121685/1
arkadiusz.adamski [Thu, 3 Jun 2021 12:47:15 +0000 (13:47 +0100)]
Increase code coverage on gui.editors.apex.rest

- increase code coverage on gui.editors.apex.rest

Issue-ID: POLICY-3351
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I481ecea3b77ec4e7b7fbdd0475becec0ccea11dc

3 years agoRefactor .gitignore file to remove irrelevant info 06/121606/5
brunomilitzer [Fri, 28 May 2021 16:01:46 +0000 (17:01 +0100)]
Refactor .gitignore file to remove irrelevant info

Issue-ID: POLICY-3325
Change-Id: Ie3d1ee46c9ac351ba9438b4b0a2bcaa47486d7ac
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "React Front-End UI"
Jim Hahn [Fri, 28 May 2021 12:48:13 +0000 (12:48 +0000)]
Merge "React Front-End UI"

3 years agoReact Front-End UI 35/121435/5
brunomilitzer [Tue, 18 May 2021 11:50:32 +0000 (12:50 +0100)]
React Front-End UI

This commit is to move the React front end files from the Clamp Policy Repo to the Onap Gui Policy Repo.
Also created the added Maven featue to compile the React project via Node and NPM, and copy the production files to the target directory.

Fixed in gitignore that was ignoring the contents inside the logs/ directory.

Reformated JS spacing files from 4 spaces to 2 spaces.

Fixed Broken JEST test

Applied Jim's Code Review as well updated Node Version from 12.18 to 14.17 accross the modules.  Unfortunately cannot apply NPM version since it broke npm install.

Fixed ONAP Job Builder Linting Error

Applied Jim's Second Code Review

Issue-ID: POLICY-3218
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Change-Id: I01f95c350d27d72f941c835592fd596472601d6e

3 years agogui-editor-apex doesn't contain webapp correctly 71/121471/1
arkadiusz.adamski [Thu, 20 May 2021 16:33:18 +0000 (17:33 +0100)]
gui-editor-apex doesn't contain webapp correctly

- change location of css, js and html files in jar.

Issue-ID: POLICY-3322
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I712e84cc3a923bdfd6f7857afec914a37f47a54d

3 years agoMerge "Create module to hold CLAMP client code"
Ram Krishna Verma [Wed, 12 May 2021 18:34:02 +0000 (18:34 +0000)]
Merge "Create module to hold CLAMP client code"

3 years agoCreate module to hold CLAMP client code 51/121251/3
brunomilitzer [Mon, 10 May 2021 15:51:15 +0000 (16:51 +0100)]
Create module to hold CLAMP client code

Issue-ID: POLICY-3218
Change-Id: Icc74332c71b69a059178985b5b63b3bfff7ff956
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoFix sonars in policy-gui 37/121237/1
Jim Hahn [Mon, 10 May 2021 16:52:21 +0000 (12:52 -0400)]
Fix sonars in policy-gui

Fixed:
- use "var"

Only fixed the ones I saw visually, as SonarLint wouldn't run -
something about missing node.js.

Issue-ID: POLICY-3094
Change-Id: I594d424b42ce446d86724d75b1dd9ec868c14f2b
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix gui-editor-apex fails to start 76/120876/1
arkadiusz.adamski [Fri, 23 Apr 2021 11:49:50 +0000 (12:49 +0100)]
Fix gui-editor-apex fails to start

- fix NullPointerException when gui-editor is started with command line
- clean up code

Issue-ID: POLICY-3235
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: Ia05a4a808c3fa266e702f627959a382b0344f5db

3 years agoAddress plugin-not-found issues 81/120581/1
Jim Hahn [Thu, 15 Apr 2021 20:06:59 +0000 (16:06 -0400)]
Address plugin-not-found issues

Removed references to archetype-packaging and lifecycle-mapping, where
unnecessary due to pom inheritance.

Issue-ID: POLICY-3136
Change-Id: Iae3278accea933a18224f10b63a01658948b39db
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate version of maven resources plugin 97/120497/1
Jim Hahn [Tue, 13 Apr 2021 18:02:37 +0000 (14:02 -0400)]
Update version of maven resources plugin

Policy parent specifies a newer version of the maven resources plugin.
Modified the pom to work with it.  According to the docs, copy-resources
is only needed when copying from directories outside of
src/main/resources.

Issue-ID: POLICY-3182
Change-Id: Icb125914dd0fc15a9b2da4290b7e06338a0fae4a
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUse alternate repo for npm 74/120374/4
Jim Hahn [Fri, 9 Apr 2021 18:52:54 +0000 (14:52 -0400)]
Use alternate repo for npm

Also updated version of npm, as 6.14.4 does not appear within the repo.

Issue-ID: POLICY-3182
Change-Id: I61ec07ad525d165828bb7c97af00bb740d939cc3
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpgrade dependencies in gui 42/120342/3
Jim Hahn [Thu, 8 Apr 2021 20:59:55 +0000 (16:59 -0400)]
Upgrade dependencies in gui

The gui builds are failing, because the policy dependencies cannot be
found.  Upgraded the dependency versions to the latest policy snapshots.

Issue-ID: POLICY-3180
Change-Id: Id90addb5a15bbdaa4842c1751ac0022f38417e49
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix sonarqube code Bug 81/119981/1
mkidd [Mon, 29 Mar 2021 08:16:18 +0000 (10:16 +0200)]
Fix sonarqube code Bug

ApexEditorParameters has a URI that sonar does not like, hard coding the leading forward slash removes the complaint
ApexEditorMain was receiving args and a print stream in the form of System.err and then System.out, both of these were null values, while Sonar sees System.out or err as a bug as it should be a logger, simply passing null in its place is not an issue to sonar
BeanBase.java Removed an if statement that always asserted to be true, as it is inside an if statement that confirmed that condition.
removed an accessibility change as sonar sees this as a violation

Issue-ID: POLICY-3095
Signed-off-by: mkidd <michael.kidd@est.tech>
Change-Id: I1bbdfe9cc6db085195e95da3dbfbc8b29d9a5ff5
Signed-off-by: mkidd <michael.kidd@est.tech>
3 years agoFix sonarqube code smells 43/119843/2
mkidd [Wed, 24 Mar 2021 12:26:31 +0000 (12:26 +0000)]
Fix sonarqube code smells

Making changed regarding code smells. Some variables being declared twice while in scope.
renaming some modelFileName in ApexFiles.js that is being declared while there is a constant with the same name.
renamed some of the for loop control variables so that sonarqube doesnt see it as an issue
Made changes based on reviews

Issue-ID: POLICY-3095
Change-Id: If38934247a4e4ff9c48043feb3adde5505c46993
Signed-off-by: mkidd <michael.kidd@est.tech>
3 years agoFix tests code smells - less assertions per test 58/119258/1
mkidd [Thu, 11 Mar 2021 13:23:18 +0000 (13:23 +0000)]
Fix tests code smells - less assertions per test

ApexEditorRestResourceTest.java - separate test methods into smaller methods so that less assertions are made per method

Issue-ID: POLICY-3095
Change-Id: Ic7f54916a130dbb403102dec51e6e2fec708f0cf
Signed-off-by: mkidd <michael.kidd@est.tech>
3 years agoMerge "fix code smells and vulnerabilities monitoring"
Liam Fallon [Thu, 11 Mar 2021 05:59:34 +0000 (05:59 +0000)]
Merge "fix code smells and vulnerabilities monitoring"

3 years agofix code smells and vulnerabilities monitoring 62/118862/5
mkidd [Thu, 4 Mar 2021 15:27:27 +0000 (15:27 +0000)]
fix code smells and vulnerabilities monitoring

removed / from start of Rest path, hard coded it - resolves code smell issue
small code smell changes regarding passing variables to functions that have access to the variable from its current scope
reintroduced data parameter being passed in MonitoringUtils.js, can look into this more later
fixed pom for parent version, commons step up

Issue-ID: POLICY-3095
Signed-off-by: mkidd <michael.kidd@est.tech>
Change-Id: Id8b6a8b41e9b3c2f362821750d3fa728b93336a0
Signed-off-by: mkidd <michael.kidd@est.tech>
3 years agopom file changes for snapshot 72/119072/3
mkidd [Wed, 10 Mar 2021 14:15:43 +0000 (14:15 +0000)]
pom file changes for snapshot

pointed parent to 3.3.1-SNAPSHOT
pointed policy.common to 1.8.1-SNAPSHOT
pointed policy.models to 2.4.2-SNAPSHOT

Issue-ID: POLICY-3095
Signed-off-by: mkidd <michael.kidd@est.tech>
Change-Id: Ic5ebe398abb289c7fba6e8de14bf5d11a5c0e449
Signed-off-by: mkidd <michael.kidd@est.tech>
3 years agofix code smells and vulnerabilities 60/118760/2
mkidd [Mon, 1 Mar 2021 11:13:06 +0000 (11:13 +0000)]
fix code smells and vulnerabilities

used await method inside an if statement that now runs the same code as the accompanying finally block.
removed unused variables from ApexContextAlbumEditForm.js
refactored vars that were redelared - this was not needed as there were variables of this name within scope
added ! operator

Issue-ID: POLICY-3095
Signed-off-by: mkidd <michael.kidd@est.tech>
Change-Id: Idadf4dd6938be5410fef62140de8b265bbaca138

3 years agofix bugs in MonitoringChart.js 48/118748/1
mkidd [Fri, 26 Feb 2021 18:27:03 +0000 (18:27 +0000)]
fix bugs in MonitoringChart.js

removed redundant variables that re declared themselves
refactored coded that repeated as a function

Issue-ID: POLICY-3095
Signed-off-by: mkidd <michael.kidd@est.tech>
Change-Id: I14be896ecb8d2f50ee5dc0c61009c6c2cab3e442

3 years agoUpdate info.yaml in gui 98/118398/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:38:27 +0000 (10:38 -0500)]
Update info.yaml in gui

Issue-ID: POLICY-3028
Change-Id: I1e2fcc49f28a8fe620f39326dbe820bfc993e4da
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoMerge "Refactor Policy-Gui to use Instant from Date"
Jim Hahn [Mon, 22 Feb 2021 13:45:44 +0000 (13:45 +0000)]
Merge "Refactor Policy-Gui to use Instant from Date"

3 years agoRefactor Policy-Gui to use Instant from Date 25/118025/2
rameshiyer27 [Wed, 17 Feb 2021 18:17:01 +0000 (18:17 +0000)]
Refactor Policy-Gui to use Instant from Date

Issue-ID: POLICY-3069
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ie91e60667707df110c53b65fdac8918acb07f6e1

3 years agoFix sonars in gui 62/117762/7
Jim Hahn [Thu, 11 Feb 2021 20:55:33 +0000 (15:55 -0500)]
Fix sonars in gui

Addressed the following issues (java only):
- assignment to static field
- expression is always true
- duplicate character in regex
- duplicate code
- remove Thread.sleep() from junit test

Issue-ID: POLICY-3063
Change-Id: I70951ed47defad5baa6c957852663688e51fa88a
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix policy-gui build failures 18/118118/1
waynedunican [Fri, 19 Feb 2021 16:28:23 +0000 (16:28 +0000)]
Fix policy-gui build failures

maven-resources-plugin has been updated to v3.2.0. This is causing our
gui build to fail, due to it not allowing more than a certain number of
files to be copied. Reverted to v3.1.0 in apex-editor to fix this issue.

Issue-ID: POLICY-3063
Change-Id: I7b8a207f63de82ed44747c5d2c470b5345cb84c6
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoMerge "Update dependencies in policy/gui"
Jim Hahn [Mon, 9 Nov 2020 16:19:55 +0000 (16:19 +0000)]
Merge "Update dependencies in policy/gui"

3 years agoUpdate dependencies in policy/gui 51/114651/2
waynedunican [Thu, 5 Nov 2020 16:06:54 +0000 (16:06 +0000)]
Update dependencies in policy/gui

Update dependencies in gui-pdp-monitoring and gui-editor-apex to align with Node version. Deprecated dependencies removed.

Issue-ID: POLICY-2886
Change-Id: I62137b85d8ca56cd2cdeeeae5ee62ed18b5306ee
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoFix upcoming checkstyle issues 65/114665/1
Pamela Dragosh [Fri, 6 Nov 2020 16:02:27 +0000 (11:02 -0500)]
Fix upcoming checkstyle issues

When we upgrade to oparent, these will fail as oparent upgrades
to 8.37 of puppycrawl which fixes a few bugs that should have
flagged these previously.

Issue-ID: POLICY-2887
Change-Id: Iaf0cf4966efc8655a2ea78d9b607ab0df91dd56b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint to snapshot versions 34/114334/1
Jim Hahn [Tue, 27 Oct 2020 20:27:56 +0000 (16:27 -0400)]
Point to snapshot versions

Issue-ID: POLICY-2875
Change-Id: I2fe7e65beaaab70c888e258b2d45ce91d1339423
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoPoint gui to models 2.3.6 SNAPSHOT 33/114033/1
Pamela Dragosh [Tue, 20 Oct 2020 12:12:07 +0000 (08:12 -0400)]
Point gui to models 2.3.6 SNAPSHOT

Issue-ID: POLICY-2869
Change-Id: Ie8787c6d906043a063bc862cdb59986c58a57e4a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint to latest models snapshot 2.3.3 50/113650/1
Pamela Dragosh [Wed, 7 Oct 2020 20:31:22 +0000 (16:31 -0400)]
Point to latest models snapshot 2.3.3

Issue-ID: POLICY-2839
Change-Id: Ifdf4be2ee15af8cde32bbbbac0dd0a5e7244ab25
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoJS Testing added for apex-editor 13/113313/5
waynedunican [Mon, 21 Sep 2020 08:19:42 +0000 (09:19 +0100)]
JS Testing added for apex-editor

Last apex-editor/pom.xml change to exclude the /dist folder

Issue-ID: POLICY-2783
Change-Id: I076aac4e503c7e5f2ea39fa9291153be4b119808
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoPick up userId from apex editor URL 83/113383/2
liamfallon [Wed, 30 Sep 2020 14:56:24 +0000 (15:56 +0100)]
Pick up userId from apex editor URL

The userId must be picked up from the URL passed to the policy editor
and then passed to the server.

Issue-ID: POLICY-2850
Change-Id: I98948f2e0a2bf8090926751ee98c26c46d272fcf
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoPoint to latest SNAPSHOTS 08/113108/1
Pamela Dragosh [Thu, 24 Sep 2020 14:05:38 +0000 (10:05 -0400)]
Point to latest SNAPSHOTS

Issue-ID: POLICY-2789
Change-Id: Ia696e3a7336e8ff12804d5c2e04d3996e5aadcdf
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoExclude unit test files from released artifacts 06/112706/2
liamfallon [Tue, 15 Sep 2020 15:13:54 +0000 (16:13 +0100)]
Exclude unit test files from released artifacts

The node.js code and repos are used only during unit test and should not
be included in the released artifacts. Not having them in the released
artifacts also eliminates a number of security and licensing issues with
node.js modules.

Issue-ID: POLICY-2825
Change-Id: Icb9c0a0e3d1ebb01aa9b6346ce51f0c76c5cdd0f
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoAdd TOSCA support to Apex editor 32/112532/2
liamfallon [Fri, 11 Sep 2020 13:28:32 +0000 (14:28 +0100)]
Add TOSCA support to Apex editor

The APEX editor now loads, saves, and downloads files in TOSCA format,
the same as the apex-pdp does.

The non-standard TOSCA handling for file upload has been refactored to
be aligned with the Policy Frameowkr TOSCA support.

Issue-ID: POLICY-2621
Change-Id: I1ec7475cbcc6ffc23de92687c9f284ac7dfbdd80
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Cosmetic changes to the apex-editor GUI"
Ram Krishna Verma [Tue, 8 Sep 2020 17:26:13 +0000 (17:26 +0000)]
Merge "Cosmetic changes to the apex-editor GUI"

3 years agoMerge "JavaScript tests for apex-editor"
Jim Hahn [Tue, 8 Sep 2020 17:17:12 +0000 (17:17 +0000)]
Merge "JavaScript tests for apex-editor"

3 years agoCosmetic changes to the apex-editor GUI 82/112282/1
liamfallon [Tue, 8 Sep 2020 14:35:27 +0000 (15:35 +0100)]
Cosmetic changes to the apex-editor GUI

Some minor changes to remove some eclipse warnings and to tidy the the
tets and formatting in the APEX policy editor GUI.

Issue-ID: POLICY-2621
Change-Id: Ib9b9b054fbe146feec4e477434097094e8ecae26
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoJavaScript tests for apex-editor 26/112226/3
waynedunican [Mon, 7 Sep 2020 11:21:03 +0000 (12:21 +0100)]
JavaScript tests for apex-editor

JavaScript tests added to improve code coverage for policy-gui

Issue-ID: POLICY-2783
Change-Id: Ie12fb6089b872842bb5c668a8126675f89772d79
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoUse released parent 3.2.0 in gui 77/112177/1
Jim Hahn [Fri, 4 Sep 2020 13:46:30 +0000 (09:46 -0400)]
Use released parent 3.2.0 in gui

Issue-ID: POLICY-2789
Change-Id: Id81b09c0b0c8b0d088f1b813cb0858d28236d4d5
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoJest JS Coverage 74/111674/5
waynedunican [Mon, 24 Aug 2020 12:36:15 +0000 (13:36 +0100)]
Jest JS Coverage

Edited SonarCloud lcov reports path. Removed from pdp-monitoring
pom.xml. Added node binary source executable path and sources sonar
properties to pom.xml.

Issue-ID: POLICY-2610
Change-Id: I6354e65d358ca5e9bd8c18f032330aa5063a0889
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoJS Coverage Report directory 32/111432/1
waynedunican [Wed, 19 Aug 2020 15:56:32 +0000 (16:56 +0100)]
JS Coverage Report directory

Moved the generated Jest Coverage report from policy-gui/gui-pdp-monitoring/src/webapp/coverage to policy-gui/target/code-coverage in order for SonarCloud to display the JS Code Coverage results.

Issue-ID: POLICY-2610
Change-Id: I1d86203afa45ad1b0a51d729fec4326607585988
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoMerge "JavaScript coverage SonarCloud"
Jim Hahn [Tue, 18 Aug 2020 13:12:19 +0000 (13:12 +0000)]
Merge "JavaScript coverage SonarCloud"

3 years agoJavaScript coverage SonarCloud 65/111365/1
waynedunican [Tue, 18 Aug 2020 08:30:07 +0000 (09:30 +0100)]
JavaScript coverage SonarCloud

Added to pom.xml for SonarCloud to point to lcov reports generated by Jest coverage.

Issue-ID: POLICY-2610
Change-Id: I2954517cb0b91d8e43e3c2065f4776258e391cea
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoPassing userId to upload policy 00/111100/3
KrupaNagabhushan [Mon, 10 Aug 2020 17:42:48 +0000 (18:42 +0100)]
Passing userId to upload policy

Issue-ID: POLICY-2751
Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
Change-Id: Ifc91bba369161a63f2ad759dcdc014bb12837e88

3 years agoMerge "Upload policy feature"
Ajith Sreekumar [Mon, 10 Aug 2020 14:33:18 +0000 (14:33 +0000)]
Merge "Upload policy feature"

3 years agoUpload policy feature 79/110879/3
andre.schmid [Mon, 20 Jul 2020 16:48:48 +0000 (17:48 +0100)]
Upload policy feature

Implements an upload feature that can be enable/disabled through
configuration properties. An upload endpoint must be provided also by
configuration.
The upload has similar feature as the download, but it sends the file
to the provided endpoint instead, converting it to TOSCA YAML.
Creates an configuration endpoint so the front-end can read it.
Introduces a pub/sub feature in the front-end so it can asynchronous
read configuration information and send configuration ready message to
components that depends on it.

Issue-ID: POLICY-2751
Signed-off-by: andre.schmid <andre.schmid@est.tech>
Change-Id: I5e8e91616a7d4dc69e6739604fcd36528cce0028

3 years agoMerge "Jest JS Coverage setup"
Ram Krishna Verma [Thu, 6 Aug 2020 19:37:17 +0000 (19:37 +0000)]
Merge "Jest JS Coverage setup"

3 years agoJest JS Coverage setup 05/110905/1
waynedunican [Wed, 5 Aug 2020 09:56:35 +0000 (10:56 +0100)]
Jest JS Coverage setup

Jest JS Coverage setup
1) Generate coverage in reports/test-reporter.xml and in
   coverage/clover.xml
2) Config needed in SonarCloud project itself to pick up these reports

Issue-ID: POLICY-2610
Change-Id: I1b639ff649cd6eb690762420118b3e8f595e970b
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoUpdate info yaml in policy/gui 88/110788/1
Ram Krishna Verma [Thu, 30 Jul 2020 19:52:18 +0000 (15:52 -0400)]
Update info yaml in policy/gui

Issue-ID: POLICY-2738
Change-Id: If374565c4a213c17785277325e58769940aaab41
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoAdd default branch to gitreview for policy/gui 34/110634/1
Jim Hahn [Mon, 27 Jul 2020 19:00:45 +0000 (15:00 -0400)]
Add default branch to gitreview for policy/gui

Issue-ID: POLICY-2741
Change-Id: If1e8c31bed56b369bd060e0457aa795ae6b63161
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoAdd Ajith to policy/gui info 70/110570/1
Jim Hahn [Fri, 24 Jul 2020 17:19:27 +0000 (13:19 -0400)]
Add Ajith to policy/gui info

Issue-ID: POLICY-2738
Change-Id: I2904591da8dcde2fdff622c8ca64ae96712b145d
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMake APEX policy editor run as a single jar 49/110349/2
andre.schmid [Thu, 16 Jul 2020 15:06:12 +0000 (16:06 +0100)]
Make APEX policy editor run as a single jar

Fix missing jquery library and produces an executable jar

Issue-ID: POLICY-2721
Signed-off-by: andre.schmid <andre.schmid@est.tech>
Change-Id: I66e10326e6348807384caae706e1286835e97b63

3 years agoMove apex policy editor to policy-gui 45/110245/4
liamfallon [Thu, 16 Jul 2020 09:24:08 +0000 (10:24 +0100)]
Move apex policy editor to policy-gui

This review moves the code for the apex policy editor from the apex repo
to the GUI repo.

The docker part of the build will be moved in the next review because it
is intertwined with the other two legacy apex GUIs and needs to be
disentangled.

Subsequent reviews on the apex repo will remove this code from there.

Issue-ID: POLICY-2621
Change-Id: Ib9a43f463b839201656208a48ab48869a19f963a
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoBump version of policy-gui for GUILIN 14/110314/1
liamfallon [Fri, 17 Jul 2020 08:22:46 +0000 (09:22 +0100)]
Bump version of policy-gui for GUILIN

policy-gup goes to 2.1.0-SNAPSHOT

Issue-ID: POLICY-2621
Change-Id: I660c7537a2e56ce2c6f8788cbc142c1680e53465
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoPointing to latest snapshots 61/110161/2
Pamela Dragosh [Tue, 14 Jul 2020 13:42:41 +0000 (09:42 -0400)]
Pointing to latest snapshots

Other snapshots will be deleted by LF in less than 20 days.

Updated license header, git log shows only 2020 for this
pom.xml existing.

Issue-ID: POLICY-2695
Change-Id: Ia1834a1c9d22b53f690271a1a5a8c563fa1d429f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoChanges for checkstyle 8.32 58/109458/1
Pamela Dragosh [Tue, 23 Jun 2020 14:14:58 +0000 (10:14 -0400)]
Changes for checkstyle 8.32

Issue-ID: POLICY-2188
Change-Id: I87701431e5f5c248ed7240eb5cdb7ca0682434c1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to correct SNAPSHOTS 67/107967/2
Pamela Dragosh [Wed, 20 May 2020 12:57:44 +0000 (08:57 -0400)]
Point to correct SNAPSHOTS

Issue-ID: POLICY-2514
Change-Id: I655961d599ff3a1697ea88e10c74e27857ae7299
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to latest SNAPSHOTs 75/106675/1 frankfurt guilin honolulu 6.0.0-ONAP
Pamela Dragosh [Mon, 27 Apr 2020 12:13:47 +0000 (08:13 -0400)]
Point to latest SNAPSHOTs

Security fixes etc.

Issue-ID: POLICY-2510
Change-Id: Ia30c1c9260ea6ca23dd30a5d972305302d49867d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to latest patches 18/106018/1
Pamela Dragosh [Wed, 15 Apr 2020 13:59:20 +0000 (09:59 -0400)]
Point to latest patches

common and models were released, these are the latest
patch versions.

Issue-ID: POLICY-2378
Change-Id: If4fdd829d4cf2314519810a9f4d686a77a038061
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to parent, common, models 75/105875/1
Pamela Dragosh [Mon, 13 Apr 2020 22:21:23 +0000 (18:21 -0400)]
Point to parent, common, models

Issue-ID: POLICY-2486
Change-Id: I795e2a417c393c5ac9adeb579a042baef5ec6997
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to parent SNAPSHOT 52/105252/1
Pamela Dragosh [Tue, 7 Apr 2020 12:42:07 +0000 (08:42 -0400)]
Point to parent SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: Idc060f9b108fbe5de2a19a2de2c12514324f4a0a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Point to latest snapshots"
Liam Fallon [Fri, 27 Mar 2020 17:28:37 +0000 (17:28 +0000)]
Merge "Point to latest snapshots"

4 years agoPoint to latest snapshots 95/104595/1
Pamela Dragosh [Fri, 27 Mar 2020 17:04:33 +0000 (13:04 -0400)]
Point to latest snapshots

Issue-ID: POLICY-2378
Change-Id: Ibb791ffe672f1f6458019c921d8fd5aba498df8c
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoextra line delete for js coverage test 42/104542/1
Henry.Sun [Fri, 27 Mar 2020 02:39:43 +0000 (10:39 +0800)]
extra line delete for js coverage test

Issue-ID: POLICY-2311
Change-Id: I1961d9fac8c1a11e599034ed2c6cf8f1c4a799ee
Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
4 years agoConfigure sonar for js coverage report 58/104458/1
huaxing [Thu, 26 Mar 2020 01:47:20 +0000 (09:47 +0800)]
Configure sonar for js coverage report

Issue-ID: POLICY-2311
Signed-off-by: huaxing <huaxing.jin@est.tech>
Change-Id: I031a1498fa79f7c8cdebce45689aa75d3c6b1efa

4 years agoPoint to models 2.2.2 51/104451/1
Pamela Dragosh [Thu, 26 Mar 2020 00:01:35 +0000 (20:01 -0400)]
Point to models 2.2.2

Issue-ID: POLICY-2378
Change-Id: I7fa8109a7da16b3dd81cbef97d1a40e2f24ec19f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "add coverage test for JS"
Pamela Dragosh [Wed, 25 Mar 2020 11:22:55 +0000 (11:22 +0000)]
Merge "add coverage test for JS"

4 years agoadd coverage test for JS 23/104223/7
Henry.Sun [Tue, 24 Mar 2020 07:16:46 +0000 (15:16 +0800)]
add coverage test for JS

Issue-ID: POLICY-2311
Change-Id: I12a041f59bf07ed4e8688545522e64a338cdb326
Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
4 years agoPoint to released artifacts 99/104199/1
Pamela Dragosh [Mon, 23 Mar 2020 23:52:50 +0000 (19:52 -0400)]
Point to released artifacts

Issue-ID: POLICY-2378
Change-Id: I5909a7abc0bf1f199c4585f63d1bf1885b54ee6a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Setup js unit test and code coverage framework"
Pamela Dragosh [Tue, 17 Mar 2020 19:09:29 +0000 (19:09 +0000)]
Merge "Setup js unit test and code coverage framework"

4 years agoSetup js unit test and code coverage framework 20/103720/2
huaxing [Wed, 11 Mar 2020 01:50:37 +0000 (09:50 +0800)]
Setup js unit test and code coverage framework

(1) Use frontend-maven-plugin to integrate frontend development
(2) Use jest as test tool
(3) Use webpack to create webapp bundle
(4) Coverage data is saved in target/jscoverage

Issue-ID: POLICY-2311
Signed-off-by: huaxing <huaxing.jin@est.tech>
Change-Id: I34fb7487c1e0ca29114eb7accba8bb7c4812da34

4 years agoUpdate gui INFO.yaml 02/103602/6
Pamela Dragosh [Thu, 12 Mar 2020 12:02:17 +0000 (08:02 -0400)]
Update gui INFO.yaml

Mainly to clear the failed job.

Issue-ID: POLICY-2423
Change-Id: I104e9bd93cbb1e7ac256de5ba4b5d08935ed8836
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump gui code coverage 58/103458/4
Pamela Dragosh [Tue, 10 Mar 2020 16:37:34 +0000 (12:37 -0400)]
Bump gui code coverage

Testing these with openpojos should get code coverage above
55%.

Issue-ID: POLICY-2420
Change-Id: I9e7ef6f42f04d5c9f090f9b6cd305950a8180f3c
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoCreate PDP Monitoring GUI Model 82/102282/5
Hengye [Tue, 25 Feb 2020 01:15:58 +0000 (09:15 +0800)]
Create PDP Monitoring GUI Model

Monitorning GUI to monitor PDPs Statistics, including
Web and Rest Server by embeded jetty.

Issue-ID: POLICY-2311
Signed-off-by: Hengye <yehui.wang@est.tech>
Change-Id: I9bd0d50eaa7ae4dbd07d17389da2cf107e854c61

4 years agoUpdate info yaml & pom of policy/gui 92/101492/1
Ram Krishna Verma [Mon, 10 Feb 2020 16:29:12 +0000 (11:29 -0500)]
Update info yaml & pom of policy/gui

Issue-ID: POLICY-2334
Change-Id: I8692951b2ea760b3fa531ce63e8907392fcbacac
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoUse policy/parent release 45/71245/2
Pamela Dragosh [Thu, 25 Oct 2018 14:53:35 +0000 (10:53 -0400)]
Use policy/parent release

Policy parent v2.0.0

Issue-ID: POLICY-1213
Change-Id: I6701f4d1165bc594d49391f1cad37452066040eb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoSetup checkstyle and coverage 87/68887/2
Pamela Dragosh [Tue, 25 Sep 2018 13:57:11 +0000 (09:57 -0400)]
Setup checkstyle and coverage

Removed redundant version.

Added checkstyle and code coverage declarations.

Added ignore of idea and checkstyle.

Issue-ID: POLICY-1136
Change-Id: Ia2f2428577ba0bf992cba8a5ad5f68d34d5deff8
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoChanging artifactId for consistency 97/49497/1
ramverma [Wed, 30 May 2018 14:04:37 +0000 (15:04 +0100)]
Changing artifactId for consistency

Change-Id: Id79b9988646917a925a89044c216cd4614e722ee
Issue-ID: POLICY-847
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
6 years agoChange pom to refer policy parent 57/48957/1
ramverma [Thu, 24 May 2018 13:48:37 +0000 (14:48 +0100)]
Change pom to refer policy parent

Change-Id: I85a8b8a1ff8385f2d24025b18e3629e60922a106
Issue-ID: POLICY-847
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
6 years agoMerge "Update gui repo"
Pamela Dragosh [Tue, 1 May 2018 17:24:28 +0000 (17:24 +0000)]
Merge "Update gui repo"

6 years agoUpdate gui repo 43/45443/2
Pamela Dragosh [Tue, 1 May 2018 14:11:07 +0000 (10:11 -0400)]
Update gui repo

Update the license, readme and version to 2.0.0

Issue-ID: POLICY-771
Change-Id: Ia52913de464e416c920397e81c4b0f9efb1b21f3
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdd INFO.yaml file 67/45367/2
Jessica Wagantall [Tue, 1 May 2018 03:08:23 +0000 (20:08 -0700)]
Add INFO.yaml file

Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information

Change-Id: I4114188dad3b0368037d49d6f9673d9f7127c022
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoUpdate oparent version to 1.1.0 43/35843/1
liamfallon [Wed, 14 Mar 2018 21:39:59 +0000 (21:39 +0000)]
Update oparent version to 1.1.0

Directive from ONAP project that all repos should be updated.
Change vierified with a build with .m2 /org/onap cleared.

Change-Id: I38e19b2b07214f66a7d92acba5c8611200b5a02f
Issue-ID: POLICY-693
Signed-off-by: liamfallon <liam.fallon@ericsson.com>