summaryrefslogtreecommitdiffstats
path: root/gui-editors
AgeCommit message (Collapse)AuthorFilesLines
2022-02-11Remove unused test resources in Apex Editordanielhanrahan23-2280/+2
Removed unused test resources in Apex Editor Issue-ID: POLICY-3928 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ib4b916daad6d45bf3403399c9b4e09bf42690785
2022-02-09Code coverage policy gui webapplapentafd2-1/+128
Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: I45f2a6542dedf82dcb76a94e51839aa772372909
2022-02-02Policy Gui Code Coveragelapentafd5-6/+54
Adding Generated tag for lombok methods in ApexEditorParameters This will skip the sonar check on the @Data methods Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: I73ec9f47fb90182221aebd5129bf2da32ab06cad
2022-01-24Code Coverage gui editor apexlapentafd4-3/+46
Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: Iccac0679be9644b3f68b17c33c07ea9a81acde37
2022-01-18Code coverage policy gui editor apexlapentafd4-3/+81
Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: I019521b7343206404ce7bd1fa3a05f5ff782baa0
2022-01-13Code coverage gui-editor-apexlapentafd3-4/+91
Issue-ID: POLICY-3351 Change-Id: I51ae3b5e6de3f81af5cb445ade7309360da50afa Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-11-29Update snapshot of policy/gui to 2.2.1-SNAPSHOTliamfallon2-2/+2
*** This commit is generated by a PF release script *** policy/gui is update from 2.2.0-SNAPSHOT to 2.2.1-SNAPSHOT Issue-ID: POLICY-3827 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I5629154c1c381e34c9221dc07286a0219893b360
2021-11-03Merge "Improved Test Coverage in gui-editor-apex"Liam Fallon13-64/+664
2021-11-01Fix upload url arg name.andre.schmid1-1/+1
The current argument name for the upload-url is USERID, changing to UPLOAD_URL. Issue-ID: POLICY-3797 Signed-off-by: andre.schmid <andre.schmid@est.tech> Change-Id: I59ae27f6a3908c98d897b586668ae7b921366544
2021-10-29Merge "Add user id only when it was provided"Liam Fallon1-3/+6
2021-10-29Improved Test Coverage in gui-editor-apexLathish13-64/+664
Issue-ID: POLICY-3351 Change-Id: I6f039b4e1b856ddb73379c97c88b5a695f2c478c Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2021-10-29Merge "Fix APEX policy creation issue"Liam Fallon1-6/+7
2021-10-28Add user id only when it was providedandre.schmid1-3/+6
During the policy upload call, the user id is being added as a query parameter even if it was not provided, causing to provide the value "null" as the userId parameter. This change just add the userId to the call when it is available. Issue-ID: POLICY-3796 Signed-off-by: andre.schmid <andre.schmid@est.tech> Change-Id: I7bcc928f1ca144ee1ad05e7d1028ea08a15ebd42
2021-10-27Fix APEX policy creation issueandre.schmid1-6/+7
Because of a not initialized javascript variable, the system calls a malformed url to create a APEX policy. This change correctly initializes the window.restRootURL when no apex_session is present in the localStorage. Issue-ID: POLICY-3794 Signed-off-by: andre.schmid <andre.schmid@est.tech> Change-Id: I068bd86a747e7eafc3f17aa0faf5fdc778195711
2021-10-26Improved Test Coverage in gui-editor-apexLathish7-5/+235
Issue-ID: POLICY-3351 Change-Id: Iad12ef6340978a2b183d129e65c9a94d6e71d27a Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2021-10-14Bump policy/gui to Jakarta 2.2.0-SNAPSHOTliamfallon2-2/+2
Issue-ID: POLICY-3696 Change-Id: I7b0b53fdbe081d23b3ecbe588127628711f8cb39 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-14Bump policy/gui to 2.1.2-SNAPSHOTliamfallon2-2/+2
Issue-ID: POLICY-3696 Change-Id: I4421be435ef9ad0d08266a289a2eafcb8d749bac Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-22Clean package-lock.json filesdanielhanrahan1-3/+6
Clean package-lock.json files with maven clean Remove incorrect entry from .gitignore Issue-ID: POLICY-3646 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Iab744932f7def2495afa4600c9e26dbe71a1414a
2021-09-15Bump policy-gui snapshot version to 2.1.1-SNAPSHOTliamfallon2-2/+2
Issue-ID: POLICY-3587 Change-Id: Ic3e575578ae0e2302925864a43ec81fc91cf55a3 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-08Fix sonar issue in policy/guiRam Krishna Verma1-2/+1
Issue-ID: POLICY-3077 Change-Id: Ia4a1a12ab286d40205ec5a81d130c4845cd93cea Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-02Merge "Fix static web resource paths in gui-editor-apex"Jim Hahn2-304/+304
2021-09-02Merge "Add docker image generation to maven for policy-gui"Jorge Hernandez1-0/+22
2021-09-02Merge "Add missing JS import in gui-editor-apex"Jorge Hernandez1-1/+1
2021-09-02Fix static web resource paths in gui-editor-apexdanielhanrahan2-304/+304
Some relative paths in the HTML/CSS are incorrect in the build Issue-ID: POLICY-3601 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ifb9f4b428f3732cd601a3128df27d720a55f88fa
2021-09-01Fix sonar issues in policy/guiRam Krishna Verma2-7/+7
Issue-ID: POLICY-3095 Change-Id: Ida760b380acbc5784f685e0a4c95c09f017ebf57 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-01Add missing JS import in gui-editor-apexdanielhanrahan1-1/+1
There is a missing import for apexUtils_escapeHtml (used on line 53), preventing the context schema table from loading Issue-ID: POLICY-3602 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Id08864c93201007ee353f054f0580024af1d878a
2021-09-01Add docker image generation to maven for policy-guidanielhanrahan1-0/+22
Add maven uber-jar artifact for gui-editor-apex Add maven tarball artifact for gui-clamp Create docker image containing nginx and policy GUIs Issue-ID: POLICY-3574 Change-Id: I06e5ed6fb610e0746f376114f628bb9b1a530cab Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
2021-08-27Fix sonar issues in policy/guiRam Krishna Verma6-57/+52
Issue-ID: POLICY-3077 Change-Id: Idcd08427cbff2cfdd8ba99db7cf32a0f5c978415 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-26Fix sonar issuesRam Krishna Verma12-70/+71
Issue-ID: POLICY-3077 Change-Id: Iae7bad7bc69bc4c5cd974e8439f8f433a43123d0 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-16Use lombok annotations in guiJim Hahn16-570/+63
Issue-ID: POLICY-3395 Change-Id: I7820877522875a3caf47e3b7409eb4f7fb15ba2b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-24Update gui for checkstyle 8.43liamfallon2-11/+11
Issue-ID: POLICY-3206 Change-Id: I5b80398352d03a0fe2853690b6b0d3019d204a7e Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-16Increase code coverage on guiarkadiusz.adamski4-27/+451
- increase code coverage on gui js Issue-ID: POLICY-3351 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I4c633b0a46f75ceb3f6a4721e8311d938168982e
2021-06-16Merge "Increase code coverage on gui"Liam Fallon4-56/+295
2021-06-15Increase code coverage on guiarkadiusz.adamski4-56/+295
- increase code coverage on gui js Issue-ID: POLICY-3351 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I5c24e6f02c401fd1eaee819105673cfcf1c81e13
2021-06-14Fix sonar in policy/guiRam Krishna Verma5-11/+14
use "var" for local variables Issue-ID: POLICY-3077 Change-Id: I6e31317bfda3d2b9bdde038cec709a3398f2f655 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-04Merge "Increase code coverage on gui.editors.apex.rest"Liam Fallon9-1/+613
2021-06-03Increase code coverage on gui.editors.apex.restarkadiusz.adamski9-1/+613
- increase code coverage on gui.editors.apex.rest Issue-ID: POLICY-3351 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I481ecea3b77ec4e7b7fbdd0475becec0ccea11dc
2021-05-28Merge "React Front-End UI"Jim Hahn1-1/+1
2021-05-27React Front-End UIbrunomilitzer1-1/+1
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
2021-05-20gui-editor-apex doesn't contain webapp correctlyarkadiusz.adamski1-1/+6
- 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
2021-05-10Fix sonars in policy-guiJim Hahn16-71/+70
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>
2021-04-23Fix gui-editor-apex fails to startarkadiusz.adamski1-22/+26
- 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
2021-04-13Update version of maven resources pluginJim Hahn1-26/+12
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>
2021-04-12Use alternate repo for npmJim Hahn1-1/+3
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>
2021-03-29Fix sonarqube code Bugmkidd3-10/+8
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>
2021-03-25Fix sonarqube code smellsmkidd18-135/+108
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>
2021-03-12Fix tests code smells - less assertions per testmkidd1-16/+204
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>
2021-03-03fix code smells and vulnerabilitiesmkidd1-13/+7
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
2021-02-19Fix sonars in guiJim Hahn9-136/+46
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>
2021-02-19Fix policy-gui build failureswaynedunican1-0/+1
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>