diff --git a/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java b/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java index fe30248eb8..57e381343e 100644 --- a/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java +++ b/core/src/main/java/io/aiven/klaw/helpers/db/rdbms/SelectDataJdbc.java @@ -344,7 +344,7 @@ public Iterable findSchemaRequestsByExample( if (userName != null && !userName.isEmpty()) { request.setRequestor(userName); } - if (requestOperationType != null) { + if (requestOperationType != null && !requestOperationType.value.equalsIgnoreCase("all")) { request.setRequestOperationType(requestOperationType.value); } @@ -663,7 +663,7 @@ private void filterAndAddOperationalRequest( * Query the TopicRequestsRepo by supplying optional search parameters any given search parameters * will be utilised in the search. * - * @param requestType The type of topic request Create/claim etc + * @param requestOperationType The type of topic request Create/claim etc * @param teamId The identifier of the team * @param environment the environment * @param status created/declined/approved @@ -673,7 +673,7 @@ private void filterAndAddOperationalRequest( * @return An Iterable of all TopicRequests that match the parameters that have been supplied */ private Iterable findTopicRequestsByExample( - String requestType, + String requestOperationType, Integer teamId, String environment, String status, @@ -684,8 +684,8 @@ private Iterable findTopicRequestsByExample( TopicRequest request = new TopicRequest(); request.setTenantId(tenantId); - if (requestType != null) { - request.setRequestOperationType(requestType); + if (requestOperationType != null && !requestOperationType.equalsIgnoreCase("all")) { + request.setRequestOperationType(requestOperationType); } if (environment != null) { request.setEnvironment(environment); @@ -812,7 +812,7 @@ public List getTopicsByTopicNameAndTeamId(String topicName, int teamId, i * Query the KafkaConnectorRequestsRepo by supplying optional search parameters any given search * parameters will be utilised in the search. * - * @param requestType The type of topic request Create/claim etc + * @param requestOperationType The type of topic request Create/claim etc * @param teamId The identifier of the team * @param environment the environment * @param status created/declined/approved @@ -821,7 +821,7 @@ public List getTopicsByTopicNameAndTeamId(String topicName, int teamId, i * @return An Iterable of all TopicRequests that match the parameters that have been supplied */ private Iterable findKafkaConnectorRequestsByExample( - String requestType, + String requestOperationType, Integer teamId, String environment, String status, @@ -832,8 +832,8 @@ private Iterable findKafkaConnectorRequestsByExample( KafkaConnectorRequest request = new KafkaConnectorRequest(); request.setTenantId(tenantId); - if (requestType != null) { - request.setRequestOperationType(requestType); + if (requestOperationType != null && !requestOperationType.equalsIgnoreCase("all")) { + request.setRequestOperationType(requestOperationType); } if (environment != null) { request.setEnvironment(environment);