From 09e85231db48d9faf6969b00f247ebfc5e0f22c1 Mon Sep 17 00:00:00 2001 From: Vivek <93896133+vivek-opsmx@users.noreply.github.com> Date: Wed, 4 Oct 2023 19:20:12 +0530 Subject: [PATCH] Feature/sort order (#426) --- .../spinnaker/gate/controllers/OpsmxSsdController.groovy | 4 +++- .../spinnaker/gate/services/internal/OpsmxSsdService.groovy | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy index 9f058850d9..badb404f42 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy @@ -146,9 +146,11 @@ class OpsmxSsdController { @RequestParam(value = "kind", required = false) String kind, @RequestParam(value = "search", required = false) String search, @RequestParam(value = "service", required = false) String service, + @RequestParam(value = "sortBy", required = false) String sortBy, + @RequestParam(value = "sortOrder", required = false) String sortOrder, @RequestParam(value = "id", required = false) String id, @RequestParam(value = "dbomType", required = false) String dbomType) { - return opsMxSsdService.getSddResponse3(version, type, source, source1,account , appId, image, appName, noOfDays, pageNo, pageLimit, kind, search, service, id, dbomType) + return opsMxSsdService.getSddResponse3(version, type, source, source1,account , appId, image, appName, noOfDays, pageNo, pageLimit, kind, search, service,sortBy,sortOrder, id, dbomType) } @ApiOperation(value = "Endpoint for ssd services") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy index fbc943e978..24933af526 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy @@ -94,6 +94,8 @@ interface OpsmxSsdService { @Query("kind") String kind, @Query("search") String search, @Query("service") String service, + @Query("sortBy") String sortBy, + @Query("sortOrder") String sortOrder, @Query("id") String id, @Query("dbomType") String dbomType)