Skip to content

Commit

Permalink
fix(chalice): fixed multi-metadata support (openreplay#2275)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6190a6b)
  • Loading branch information
tahayk committed Jun 13, 2024
1 parent 22d1177 commit 60af121
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/schemas/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,9 @@ def merge_identical_filters(cls, values):
continue
j = i + 1
while j < len(values):
if values[i].type == values[j].type:
if values[i].type == values[j].type \
and values[i].operator == values[j].operator \
and (values[i].type != FilterType.metadata or values[i].source == values[j].source):
values[i].value += values[j].value
del values[j]
else:
Expand Down

0 comments on commit 60af121

Please sign in to comment.