Skip to content

Commit

Permalink
Fix search flow by query: (#7277)
Browse files Browse the repository at this point in the history
add new condition of the field is query
  • Loading branch information
aeSouid authored Feb 10, 2025
1 parent e0f4ab7 commit a7a134a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ public ArrayListTotal<Flow> find(Pageable pageable, @Nullable String tenantId, @
QueryFilter.Field field = filter.field();
QueryFilter.Op operation = filter.operation();
Object value = filter.value();
if (field.equals(QueryFilter.Field.LABELS) && value instanceof Map<?, ?> labels)
if (field.equals(QueryFilter.Field.QUERY)) {
select = select.and(this.findCondition(filter.value().toString(), Map.of()));
} else if (field.equals(QueryFilter.Field.LABELS) && value instanceof Map<?, ?> labels)
select = select.and(findCondition(labels, operation));
else
select = getConditionOnField(select, field, value, operation, null);
Expand Down

0 comments on commit a7a134a

Please sign in to comment.