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:
parent
327c157be2
commit
3601147da1
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue