diff options
author | Elena Kuleshov <evn@att.com> | 2020-05-15 13:48:15 -0400 |
---|---|---|
committer | Elena Kuleshov <evn@att.com> | 2020-05-15 17:11:11 -0400 |
commit | 32dfdb8080bde4b10715d9ad50645afba0183e57 (patch) | |
tree | 0f893745323135ae95baf29a8ab60316aa1766fc /mso-api-handlers | |
parent | 9a2efbdf1463f7bf0f2a0af8b8d7447ccd624269 (diff) |
Restore action filter as a valid filter.
OrchestrationRequests action filter should map to requestAction.
Issue-ID: SO-2923
Signed-off-by: Kuleshov, Elena <evn@att.com>
Change-Id: I193d237bbc6e3beb23d7cb45c243aefceb5f170f
Diffstat (limited to 'mso-api-handlers')
-rw-r--r-- | mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepositoryImpl.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepositoryImpl.java b/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepositoryImpl.java index b669b7d837..8a84c7bc31 100644 --- a/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepositoryImpl.java +++ b/mso-api-handlers/mso-requests-db-repositories/src/main/java/org/onap/so/db/request/data/repository/InfraActiveRequestsRepositoryImpl.java @@ -275,6 +275,10 @@ public class InfraActiveRequestsRepositoryImpl implements InfraActiveRequestsRep mapKey = "requestorId"; } else if ("requestExecutionDate".equalsIgnoreCase(mapKey)) { mapKey = "startTime"; + } else if ("action".equalsIgnoreCase(mapKey)) { + mapKey = "requestAction"; + } else if ("requestAction".equalsIgnoreCase(mapKey)) { + mapKey = "requestAction"; } final String operator = entry.getValue().get(0); @@ -310,7 +314,9 @@ public class InfraActiveRequestsRepositoryImpl implements InfraActiveRequestsRep final Order order = cb.asc(tableRoot.get(START_TIME)); - return executeInfraQuery(crit, predicates, order); + return + + executeInfraQuery(crit, predicates, order); } // Added this method for Tenant Isolation project ( 1802-295491a) to query the mso_requests DB |