From b7a5dbf04c2db4e7669b169999fdafff0a305721 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Mon, 8 Jul 2024 17:44:35 +0200 Subject: [PATCH] Dev (#2372) * refactor(chalice): upgraded dependencies * refactor(chalice): upgraded dependencies feat(chalice): support heatmaps * feat(chalice): support table-of-browsers showing user-count * feat(chalice): support table-of-devices showing user-count * feat(chalice): support table-of-URLs showing user-count * fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * fix(chalice): fixed get chart with missing attributes in the payload * fix(chalice): fixed heatmaps exclude multiple sessions --- api/chalicelib/core/heatmaps.py | 2 +- ee/api/chalicelib/core/heatmaps.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/chalicelib/core/heatmaps.py b/api/chalicelib/core/heatmaps.py index 03d0a5864..58eabb339 100644 --- a/api/chalicelib/core/heatmaps.py +++ b/api/chalicelib/core/heatmaps.py @@ -176,7 +176,7 @@ def search_short_session(data: schemas.HeatMapSessionsSearch, project_id, user_i project_id=project_id, user_id=user_id) full_args["exclude_sessions"] = tuple(exclude_sessions) if len(exclude_sessions) > 0: - query_part += "\n AND session_id NOT IN (%(exclude_sessions)s)" + query_part += "\n AND session_id NOT IN %(exclude_sessions)s" with pg_client.PostgresClient() as cur: data.order = schemas.SortOrderType.desc data.sort = 'duration' diff --git a/ee/api/chalicelib/core/heatmaps.py b/ee/api/chalicelib/core/heatmaps.py index 18f2fc12e..f57273ec6 100644 --- a/ee/api/chalicelib/core/heatmaps.py +++ b/ee/api/chalicelib/core/heatmaps.py @@ -192,7 +192,7 @@ if not config("EXP_SESSIONS_SEARCH", cast=bool, default=False): project_id=project_id, user_id=user_id) full_args["exclude_sessions"] = tuple(exclude_sessions) if len(exclude_sessions) > 0: - query_part += "\n AND session_id NOT IN (%(exclude_sessions)s)" + query_part += "\n AND session_id NOT IN %(exclude_sessions)s" with pg_client.PostgresClient() as cur: data.order = schemas.SortOrderType.desc data.sort = 'duration'