File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
metadata-io/src/main/java/com/linkedin/metadata/search Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -952,9 +952,17 @@ private boolean enableCache(@Nullable final SearchFlags searchFlags) {
952952 }
953953
954954 private static boolean isLineageVisualization (@ Nullable LineageFlags lineageFlags ) {
955- return lineageFlags != null
956- && lineageFlags .getEntitiesExploredPerHopLimit () != null
957- && lineageFlags .getEntitiesExploredPerHopLimit () > 0 ;
955+ if (lineageFlags == null ) {
956+ return false ;
957+ }
958+
959+ boolean hasEntitiesExploredLimit =
960+ lineageFlags .getEntitiesExploredPerHopLimit () != null
961+ && lineageFlags .getEntitiesExploredPerHopLimit () > 0 ;
962+ boolean hasIgnoreAsHops =
963+ lineageFlags .getIgnoreAsHops () != null && !lineageFlags .getIgnoreAsHops ().isEmpty ();
964+
965+ return hasEntitiesExploredLimit || hasIgnoreAsHops ;
958966 }
959967
960968 private EntityLineageResult getLineageResult (
You can’t perform that action at this time.
0 commit comments