summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main
AgeCommit message (Collapse)AuthorFilesLines
2022-05-11Update DMI Registry yang to support DataStoreSyncStateLathish3-0/+238
- Added dmi-registry@2022-05-10 yang to support DataStoreSyncState - Added changelog 14 to add the dmi-registry Issue-ID: CPS-1014 Change-Id: I910d2496a359fdf2441e172ca270036272d31dc6 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-27Add methods to Lock Anchor entityemaclee3-13/+131
Added separate integration and mock-based unit tests Issue-ID: CPS-898 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I14d1d1c41759ce028e2417fdd2df001280e19ab2
2022-04-25Fix Absolute Path to list with Integer/String keyLathish1-6/+16
- Introduced normalizedXpath to normalize the xpath and cpspath - Introduced normalizedAncestorpath to normalize the ancestor path in xpath and cpspath - Added new condition in the ANTLR Grammar to capture the invalid path in the xpath - Introduced PathParsingException to replace the IllegalStateException Issue-ID: CPS-961 Change-Id: Ie10f5c6cfc466387e79eec184b933297d1d79587 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-08Fix Sonar Qube Violations - Recurring taskDylanB95EST1-2/+2
Fix sonar issues in CPS. - Remove Unnecessary cast to List - Immediately return expession Issue-ID: CPS-475 Change-Id: Ic3fa2f3f92784682045a780d87c6737d04f37659 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-06Query based on Public CM PropertiesJosephKeenan4-3/+82
-Updated OpenAPI for new Endpoint -Will replace SQL with CPSPathQuery once investigation is complete -Functionality in place to determine if public properties match - -Added Unit and CSIT tests - small modifications may need to be made -CSIT tests enhanced to add additional nodes and tests Issue-ID: CPS-731 Change-Id: I403e603ce79c4a4a6994d51b459b5703510d5a83 Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-03-25Add Start and Stop sessions on JAVA APIemaclee3-0/+115
Issue-ID: CPS-899 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Idbeb922790824b1ca601d6d4798df45efa57d685
2022-03-04Updating sequences in db migration scriptDylanB95EST2-1/+26
Added a dynamic set value changeset for sequence id to both changelog 05 and 10. Issue-ID: CPS-900 Change-Id: Ia3ec0b66a89b151435acfa4ebaed3886307b75ea Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-03-03Merge "Update dmi-registry yang to support cmHandle State"Bruno Sakoto6-11/+348
2022-03-03Merge "Bug fix for delete data node not working for root node"Renu Kumari1-2/+2
2022-03-03Bug fix for delete data node not working for root nodeputhuparambil.aditya1-2/+2
Fixing event for deletion of container node Fixing event for deletion of root node when '' is passed as xpath Issue-ID: CPS-895 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I0676aec29e7b7e12bef2300219207ddc22414daa
2022-03-03Update dmi-registry yang to support cmHandle Statelukegleeson6-11/+348
- Added dmi-registry@2022-02-10 which contains the new dmi-registry yang model to support the cmHandle State. - Added changelog 12 which removes previous dmi-registries from the db - Added changelog 13 which adds new dmi-registry - Edited yangResourceCsvGenerator.py so that it generates for each argument given and does not generate the module_name and revision for dmi-registry@2021-12-13. - Updated rollback for changeset 11.1 Issue-ID: CPS-874 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I4ab949f0bc00a52376b42a5ac8a33d397eefcedf
2022-03-02Merge "CPS-475 - Fix SQ codesmells introduced as aprt of CPS-887"Toine Siebelink1-2/+2
2022-03-02CPS-475 - Fix SQ codesmells introduced as aprt of CPS-887JosephKeenan1-2/+2
Issue-ID: CPS-475 Change-Id: If277242bd84e6c53d1ce288ac2a3803f99740ab2 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-03-02Addressed refactoring comments related to method namempriyank3-13/+17
- YangRepository method names streamlined as per JPA Issue-ID: CPS-647 Change-Id: Ifd514947944131894d849bdbf1b7ec52959b0164 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-03-01Merge "Adding missing rollback for Liquibase change logs"Toine Siebelink2-1/+27
2022-03-01Adding missing rollback for Liquibase change logslukegleeson2-1/+27
Issue-ID: CPS-874 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I13a48b306761cbbe104ed5597b43de9fd3507a8f
2022-02-28Merge "Bug fix for delete data node not working for root node"Bruno Sakoto1-15/+34
2022-02-28CPS-887 Decreasing performance of cmHandle registrationJosephKeenan5-24/+199
- Creating temporary table module references from the node - Query returning new moduleReferences for node to be added to CPS - Modified registration for node to use new implementation (incl. tests) - Refactored some interface to use collection instead of list - Modified SQL statements to use String.format() - Fixed tests Issue-ID: CPS-887 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: I58b17d29e8b9d6f7a644d33bf6cf8bf46f892580
2022-02-28Bug fix for delete data node not working for root nodeputhuparambil.aditya1-15/+34
Issue-ID: CPS-895 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ia82b0df8e2cfdb9b396315a9d0e6c8f2b4deadcf
2022-02-15Fragment handling decreasing performance for large number of cmHandlesDylanB95EST2-35/+24
- allow fragmentEntity to set parent id (needed for optimization) - updated addListAlement and addChildDataNode to use new common optimized metghod to add to exsiting children - ensure methods are transactional - Refactored test around adding list elements to clearly define test checking the presence of grandchild element Issue-ID: CPS-886 Change-Id: Ic4381f0f7170ebd666d5bc8aa6ef2c4548d81766 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-02-09Merge "Fix for retry mechanism on concurrent CmHandle registration"Bruno Sakoto1-3/+7
2022-02-09Fix for retry mechanism on concurrent CmHandle registrationputhuparambil.aditya1-3/+7
Issue-ID: CPS-856 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ie7c0033f2987166315611f8a286ae3978466c75f
2022-02-07Merge "Refactor Delete Anchor functionality"Renu Kumari2-19/+15
2022-02-03Merge "Test Scenario for replaceListContent"aditya puthuparambil1-0/+5
2022-02-02Refactor Delete Anchor functionalityRenu Kumari2-19/+15
- Added a delete DataNode functionality in the CpsDataService - CpsAdminService uses CpsDataService to delete DataNodes Issue-ID: CPS-791 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I090500dbc4a2ccf061dc105f979472137d43b06d
2022-02-02Test Scenario for replaceListContentToineSiebelink1-0/+5
-Improved a test scenarios for replaceListContent in CpsDataPersistenceServiceSpec -Removed redundant SQL Data -Used groovy shortcuts where posisble (no need for get...() methods when using Groovy :-) Issue-ID: CPS-868 Change-Id: I3d29bbb0c5d035c6f266cf31bf2886f1bcf5d48a Signed-off-by: mpriyank <priyank.maheshwari@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2022-01-28Refactored Delete SchemaSet functionalityRenu Kumari2-19/+25
- Added get anchors by schemaset in cpsAdminService - Changed DeleteSchemaSet functionality - Use CPSAdminService to getAnchors associated with schemaset - Use CPSAdminService to delete Anchors - Moved Cascade allowed validation into Service from Persistence Issue-ID: CPS-791 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Ife7644551183cb8c3eb686a654b0a43a427ac1e5
2022-01-28Support 'public' Cm Handle PropertiesDylanB95EST5-1/+176
Add support for new Public Additional Properties list to Register CM Handles API Issue-ID: CPS-677 Change-Id: I6efc88734da2416f72f71a403622e519398b502d Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-01-25Replace gson mapper with jackson mappersourabh_sourabh2-48/+26
We introduced JsonObjectMapper (wapper) as Spring component. Issue-ID: CPS-751 Change-Id: I536b0771a3a263325e6907717baf6941d70c0d6c Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2021-11-26Merge "Allow separate registration of DMIDataPlugin and DmiModelPugin"Niamh Core3-1/+105
2021-11-25Allow separate registration of DMIDataPlugin and DmiModelPuginJosephKeenan3-1/+105
Moved relevant code from NetworkCmProxyDataServiceImp to DmiOperations Split DmiOperations into DMiData... and DMIModelOperations Merged update-operation changes Added tests for error message validation in NetworkCmProxyDataServiceImplSpec Removede @Service from DMIOperations and added @component to DmiDataOperations & DmiModelOperations Verify sync robot test is now hardened Added exitonfailure so robot tests stop after first encountered failed test Issue-ID: CPS-736 Change-Id: I0b40931cc8cd4fc0452328a0a7e0f60e6fc38d0a Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-11-23CPS-314: Delete Dataspaceniamhcore3-3/+21
Issue-ID: CPS-314 Change-Id: I778e2b784c7b1ff3fecc1036425708dc4ec73227 Signed-off-by: niamhcore <niamh.core@est.tech>
2021-11-09Merge "Fix for get anchor identifiers by module names"Toine Siebelink2-12/+10
2021-11-09Fix for get anchor identifiers by module namesniamhcore2-12/+10
Issue-ID: CPS-762 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Idf93f89f8427c5906c9f6b018633c8852b111821
2021-11-08CPS-475: Fix Sonar Qube Violationsemaclee2-4/+5
Issue-ID: CPS-475 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I85ff6dc91c63bd7869712509a7a6f284a0631603
2021-11-02Add get cm handles by modules names - service layerniamhcore1-1/+1
Issue-ID: CPS-644 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ic2a57df02d533a0066382c12c35be8d524b6cdad
2021-11-02Merge "Clean Up Code around List Nodes"Toine Siebelink1-72/+98
2021-11-02Clean Up Code around List NodesDylanB95EST1-72/+98
Make sure code refers clearly to List (whole) nodes or List elements incl. method names, parameter names, test descriptions etc. Issue-ID: CPS-756 Change-Id: Ic9dae6565c0e84c1ba4c2d6e891d3ea307f589da Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-10-29Merge "Remove org.jetbrains.annotations dependency"Niamh Core1-5/+0
2021-10-29Add get cm handles by modules names - persistence layerniamhcore3-9/+73
- Add sql query to anchor repository - Add sql query to yang resource repository Issue-ID: CPS-644 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I85ab1fcb343e6be77628695153d8d9f303dc3112
2021-10-28Remove org.jetbrains.annotations dependencyBruno Sakoto1-5/+0
It is not part of spring boot 2.5.5 anymore and using it to enforce code invariant is not consistent in the overall code base. Issue-ID: CPS-582 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I6b2c1b8340cda376b70daa2ac092b3d02daa8960
2021-10-18CPS-475 - fix sonar smellsJosephKeenan1-1/+1
Issue-ID: CPS-475 Change-Id: Ifbf14eaa93a8befa262a24499ab72b6c4cc2441c Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2021-09-29CPS-594: Exception when updating list node PATCHDylanB95EST1-37/+90
SQL ConstraintViolationException updating the list node element using PATCH List node API - Took advantage of replaceDataNodeTree to replace list node children recursively - Added functionality to exclude the updated dataNodes when removing the list node descendants Issue-ID: CPS-594 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Change-Id: Idbf580fab05581513b52327d6895b9e39b4cf470 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-09-20Updating fetch all yang modules queries and testsniamhcore1-16/+18
Issue-ID: CPS-670 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I11e6da303320aea096a135eb93e270a5fd014740
2021-09-07P2 - Get module names and revisions rest layerniamhcore1-2/+2
Issue-ID: CPS-485 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I1bcf45902207d0dba6b5dfe8277cb06571694db3
2021-09-06P1 - Get module name and revision persistence layerniamhcore2-13/+48
Rename ModuleReference to ExtendedModuleReference Create new ModuleReference class (moduleName and revision) Update existing sync model flow to use new module reference class Create native query to get module name and revision Issue-ID: CPS-485 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I0d0da7742ceef3a68e83a5dd4852091e6adf138b
2021-09-06Fix Sonar Qube Violationslukegleeson1-3/+3
Issue-ID: CPS-475 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Iffd7b24cf42db73a8b93c4d1f2860e41a82e565d
2021-09-03Ensure Leaf value retains Integer typelukegleeson1-3/+20
BUG GSON.fromJson() is unable to parse numerical values and defaults values to Doubles Added a datatype conversion which forces Double values which can be Integers to being Integers Issue-ID: CPS-591 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I72d54ad06823a8755ee407f39104f3edf9a8cc75
2021-08-18Merge "CPS-508: Create anchor/schemaset from new modules and existing modules"Niamh Core4-1/+97
2021-08-17CPS-508: Create anchor/schemaset from new modules and existing modulesshivasubedi4-1/+97
Issue-ID: CPS-508 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: I8023a093334b77d0220f7c7d94de66863f5ba6dd