[BUG] Remove slow validation check during module search (CPS-2190 #2) 68/137768/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 25 Apr 2024 13:33:05 +0000 (14:33 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 25 Apr 2024 15:04:38 +0000 (16:04 +0100)
commit2b979f63a4020b65a2a85ecdb2bfa2b970eb9f76
treec8756098f5c0749e3b49931404601d4584b2494b
parentf3125df968d5572d31e3b7b5c0a393e6fceb0dbb
[BUG] Remove slow validation check during module search (CPS-2190 #2)

The check for existing modules is extremely slow, being dependent on
the file sizes of the Yang modules being queries.
The validation check is also completely unnecessary, since it simply
ignores any exceptions and returns an empty set, which the main logic
does implicitly. (The Dataspace check is also not needed, as the NCMP
dataspace is guaranteed to exist.)

Issue-ID: CPS-2190
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I329c1f8aac3f50bda0333e6c9c686f47af2e009f
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsAdminPersistenceServiceImpl.java
cps-ri/src/main/java/org/onap/cps/spi/repository/YangResourceRepository.java
integration-test/src/test/groovy/org/onap/cps/integration/functional/CpsAnchorServiceIntegrationSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/ModuleQueryPerfTest.groovy