From 31e7d30d96e3c73e3b63fed49889c97ff6bce622 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Thu, 1 Jun 2023 16:18:04 +0200 Subject: [PATCH] Patch/api v1.12.0 (#1302) * fix(chalice): changed base image to support SSO/xmlsec * fix(chalice): fixed exp search null metadata --- ee/api/chalicelib/core/sessions_exp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/api/chalicelib/core/sessions_exp.py b/ee/api/chalicelib/core/sessions_exp.py index fce8811ea..4752720b9 100644 --- a/ee/api/chalicelib/core/sessions_exp.py +++ b/ee/api/chalicelib/core/sessions_exp.py @@ -193,7 +193,7 @@ def search_sessions(data: schemas.SessionsSearchPayloadSchema, project_id, user_ meta_keys = metadata.get(project_id=project_id) meta_map = ",'metadata',toString(map(%s))" \ - % ','.join([f"'{m['key']}',metadata_{m['index']}" for m in meta_keys]) + % ','.join([f"'{m['key']}',coalesce(metadata_{m['index']},'None')" for m in meta_keys]) main_query = cur.format(f"""SELECT any(total) AS count, groupArray(%(sessions_limit)s)(details) AS sessions FROM (SELECT total, details FROM (SELECT COUNT() OVER () AS total,