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>
This commit is contained in:
Kraiem Taha Yassine 2024-09-27 14:58:36 +02:00 committed by GitHub
parent 1f7d587796
commit e9a9d2ff2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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