From 60af1214f66732e6664eb15001f768471ea24315 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Thu, 13 Jun 2024 14:42:26 +0200 Subject: [PATCH] fix(chalice): fixed multi-metadata support (#2275) (cherry picked from commit 6190a6b49567ee1d1872490569973370f2c3ca50) --- api/schemas/schemas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/schemas/schemas.py b/api/schemas/schemas.py index 27c5228a8..fa02b0c33 100644 --- a/api/schemas/schemas.py +++ b/api/schemas/schemas.py @@ -801,7 +801,9 @@ class SessionsSearchPayloadSchema(_TimedSchema, _PaginatedSchema): 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: