Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
dashboard lookup updated - removed containing and ignore case (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
nameisaravind authored Apr 4, 2022
1 parent 3eab2a1 commit e4dbe1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<version>3.4.31</version>
<version>3.4.32</version>
<description>Hygieia Rest API Layer</description>
<url>https://github.com/Hygieia/api</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.capitalone.dashboard.settings.ApiSettings;
import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections4.IterableUtils;
import org.apache.commons.lang3.StringUtils;
import org.bson.types.ObjectId;
import org.slf4j.Logger;
Expand Down Expand Up @@ -283,7 +284,7 @@ private List< Dashboard > findExistingDashboardsFromRequest( DashboardRemoteRequ
String title = request.getMetaData().getTitle();
List<Dashboard> existing = new ArrayList<>();
if( !StringUtils.isEmpty( businessService ) && !StringUtils.isEmpty( businessApplication ) ){
existing.addAll(dashboardRepository.findAllByConfigurationItemBusServNameContainingIgnoreCaseAndConfigurationItemBusAppNameContainingIgnoreCase( businessService, businessApplication ));
existing.addAll(IterableUtils.toList(dashboardRepository.findAllByConfigurationItemBusServNameAndConfigurationItemBusAppName(businessService, businessApplication)));
} if (CollectionUtils.isEmpty(existing) && StringUtils.isNotEmpty(title)) {
existing.addAll(dashboardRepository.findByTitle( request.getMetaData().getTitle() ));
}
Expand Down

0 comments on commit e4dbe1f

Please sign in to comment.