aboutsummaryrefslogtreecommitdiffstats
path: root/gui-pdp-monitoring/src
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21Removed PDP Monitoring from GUIbrunomilitzer46-7323/+0
Issue-ID: POLICY-3888 Change-Id: If59a7b7ad3074e718772051e2a13134eadb54997 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-09-28Fix JSON parse error in PDP Monitoring GUIdanielhanrahan1-1/+7
Add Gson type adapter to parse Instant Issue-ID: POLICY-3680 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ibcd7878f5c7ab9e2d4d7ffc337b9cc440caf19c3
2021-09-07Make gui-pdp-monitoring work in Docker imagedanielhanrahan7-38/+20
Serve PDP Monitoring HTML using nginx in Docker image Don't serve HTML content from PdpMonitoringServer Remove unused dependencies in gui-pdp-monitoring Add proxy setting for local dev testing with npm start Issue-ID: POLICY-3603 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I9a4c2b250a1f0460892a367a3b5bbb59e0e92411
2021-09-01Fix sonar issues in policy/guiRam Krishna Verma2-9/+11
Issue-ID: POLICY-3095 Change-Id: Ida760b380acbc5784f685e0a4c95c09f017ebf57 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-16Use lombok annotations in guiJim Hahn2-23/+4
Issue-ID: POLICY-3395 Change-Id: I7820877522875a3caf47e3b7409eb4f7fb15ba2b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-14Fix sonar in policy/guiRam Krishna Verma2-5/+6
use "var" for local variables Issue-ID: POLICY-3077 Change-Id: I6e31317bfda3d2b9bdde038cec709a3398f2f655 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-27React Front-End UIbrunomilitzer1-68/+68
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-10Fix sonars in policy-guiJim Hahn5-12/+14
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-03-10fix code smells and vulnerabilities monitoringmkidd3-8/+8
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>
2021-03-03fix code smells and vulnerabilitiesmkidd1-2/+4
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-03-03fix bugs in MonitoringChart.jsmkidd1-46/+33
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
2021-02-22Merge "Refactor Policy-Gui to use Instant from Date"Jim Hahn1-3/+3
2021-02-19Refactor Policy-Gui to use Instant from Daterameshiyer271-3/+3
Issue-ID: POLICY-3069 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ie91e60667707df110c53b65fdac8918acb07f6e1
2021-02-19Fix sonars in guiJim Hahn2-6/+33
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>
2020-11-09Merge "Update dependencies in policy/gui"Jim Hahn1-2/+5
2020-11-09Update dependencies in policy/guiwaynedunican1-2/+5
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>
2020-11-06Fix upcoming checkstyle issuesPamela Dragosh1-1/+1
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>
2020-09-16Exclude unit test files from released artifactsliamfallon1-14162/+0
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>
2020-08-25Jest JS Coveragewaynedunican1-2/+2
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>
2020-08-19JS Coverage Report directorywaynedunican1-1/+2
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>
2020-08-05Jest JS Coverage setupwaynedunican4-975/+4898
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>
2020-06-23Changes for checkstyle 8.32Pamela Dragosh1-1/+1
Issue-ID: POLICY-2188 Change-Id: I87701431e5f5c248ed7240eb5cdb7ca0682434c1 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-27extra line delete for js coverage testHenry.Sun1-1/+0
Issue-ID: POLICY-2311 Change-Id: I1961d9fac8c1a11e599034ed2c6cf8f1c4a799ee Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
2020-03-25add coverage test for JSHenry.Sun12-48/+444
Issue-ID: POLICY-2311 Change-Id: I12a041f59bf07ed4e8688545522e64a338cdb326 Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
2020-03-17Merge "Setup js unit test and code coverage framework"Pamela Dragosh31-460/+10790
2020-03-17Setup js unit test and code coverage frameworkhuaxing31-460/+10790
(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
2020-03-10Bump gui code coveragePamela Dragosh2-0/+79
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>
2020-03-03Create PDP Monitoring GUI ModelHengye35-0/+6764
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