pareshddevalia commented on code in PR #373: URL: https://github.com/apache/atlas/pull/373#discussion_r2136825690
########## webapp/src/main/java/org/apache/atlas/web/rest/DiscoveryREST.java: ########## @@ -892,27 +892,39 @@ private void validateSearchParameters(SearchParameters parameters) throws AtlasB private void validateEntityFilter(SearchParameters parameters) throws AtlasBaseException { FilterCriteria entityFilter = parameters.getEntityFilters(); + FilterCriteria tagFilter = parameters.getTagFilters(); - if (entityFilter == null) { - return; + if (entityFilter != null && tagFilter == null) { Review Comment: This IF condition is redundant—you're repeating validateNestedCriteria(...) calls based on every combination of null checks. Can you make simpler and more readable code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@atlas.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org