Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#LayerProposed Changes
1REST Layer
  • openapi.yaml
    • change /v1/data/ch/searches to  /v1/ch/id-searches
  • ncmp.yaml
    • change queryCmHandles method to executeCmHandleIdSearch
    • Use the CmHandleQueryRestParameters schema to both of them
  • components.yaml
    • merge Conditions schema to CmHandleQueryRestParameters schema
2Controller Layer
  • NetworkCmProxyController
    • Update controller methods to use the new schema
    • Both component method call separated service method
    • Rename queryCmHandles method to executeCmHandleIdSearch
3Service Layer
  • NetworkCmProxyDataService
    • Create new method for query cmHandles
    • Keep queryCmHandles method and rename it to queryCmHandleIds
    • Both method should be called a same method separate methods in CpsAdminService
    • Validation logic should be moved to an separated method and call it from both method
  • CpsAdminService
    • Update queryCmHandles method return type to Set<CmHandles>
    • Use separate methods to CmHandlesId search (queryCmHandleIds)
  • CpsAdminPersistenceService
    • Update queryCmHandles method return type to Set<CmHandles>
    • Use separate methods to CmHandlesId search (queryCmHandleIds)
4Persistence Layer
  • ModuleReferenceQuery
    • Update queryCmHandles method return type to Set<CmHandles>
    • Update queryCmHandles method to handle both filtering parameters
    • Create to separete method for CmHandles and CmHandlesId searches with new filtering parameters (use the original queryCmHandles method code)


Test

  • update existing test tests to the new endpoint (groovy and CSIT)
  • create new tests for new filtering scenarios (combine the two existing filter) in CSIT tests


References

...