Skip to content

Commit

Permalink
fix(chalice): support issues step-filters and tab-filters at the same… (
Browse files Browse the repository at this point in the history
openreplay#2065)

* fix(chalice): support issues step-filters and tab-filters at the same time

* fix(chalice): support issues step-filters and tab-filters at the same time
  • Loading branch information
tahayk authored Apr 9, 2024
1 parent 327c157 commit 3601147
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/schemas/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,9 +791,12 @@ def split_filters_events(cls, values):

@field_validator("filters", mode="after")
def merge_identical_filters(cls, values):
# ignore 'issue' type as it could be used for step-filters and tab-filters at the same time
i = 0
while i < len(values):
if values[i].is_event:
if values[i].is_event or values[i].type == FilterType.issue:
if values[i].type == FilterType.issue:
values[i] = remove_duplicate_values(values[i])
i += 1
continue
j = i + 1
Expand Down

0 comments on commit 3601147

Please sign in to comment.