From 3601147da1634724c90b8f24b302a01fc8e47a47 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Tue, 9 Apr 2024 15:31:12 +0200 Subject: [PATCH] =?UTF-8?q?fix(chalice):=20support=20issues=20step-filters?= =?UTF-8?q?=20and=20tab-filters=20at=20the=20same=E2=80=A6=20(#2065)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- api/schemas/schemas.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/schemas/schemas.py b/api/schemas/schemas.py index c86dc6a37..586694419 100644 --- a/api/schemas/schemas.py +++ b/api/schemas/schemas.py @@ -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