fix(chalice): support issues step-filters and tab-filters at the same… (#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
This commit is contained in:
Kraiem Taha Yassine 2024-04-09 15:31:12 +02:00 committed by GitHub
parent 327c157be2
commit 3601147da1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -791,9 +791,12 @@ class SessionsSearchPayloadSchema(_TimedSchema, _PaginatedSchema):
@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