fix(chalice): fixed multi-metadata support (#2275)

This commit is contained in:
Kraiem Taha Yassine 2024-06-13 14:42:26 +02:00 committed by GitHub
parent 3e2ad3e4eb
commit 6190a6b495
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: