Patch/api v1.20.0 (#2618)

* chore(actions): show patch diff

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>

* fix(chalice): fixed session's search ignore injected durations

---------

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
(cherry picked from commit e9a9d2ff2a)
This commit is contained in:
Kraiem Taha Yassine 2024-09-27 14:58:36 +02:00 committed by Taha Yassine Kraiem
parent b06d56cfa7
commit 264abc986f

View file

@ -777,10 +777,8 @@ class SessionsSearchPayloadSchema(_TimedSchema, _PaginatedSchema):
for f in values.get("filters", []): for f in values.get("filters", []):
vals = [] vals = []
for v in f.get("value", []): for v in f.get("value", []):
if f.get("type", "") == FilterType.DURATION.value \ if v is not None and (f.get("type", "") != FilterType.DURATION.value
and not v.isnumeric(): or str(v).isnumeric()):
continue
if v is not None:
vals.append(v) vals.append(v)
f["value"] = vals f["value"] = vals
return values return values