* 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 heatmap update with no selected session
This commit is contained in:
Kraiem Taha Yassine 2024-07-04 16:58:07 +02:00 committed by GitHub
parent 11e600ee61
commit 5619629bb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -403,7 +403,7 @@ def update_card(metric_id, user_id, project_id, data: schemas.CardSchema):
elif data.metric_type == schemas.MetricType.heat_map:
if data.session_id is not None:
params["session_data"] = json.dumps({"sessionId": data.session_id})
elif "data" in metric:
elif metric.get("data"):
params["session_data"] = json.dumps({"sessionId": metric["data"]["sessionId"]})
with pg_client.PostgresClient() as cur:

View file

@ -435,7 +435,7 @@ def update_card(metric_id, user_id, project_id, data: schemas.CardSchema):
elif data.metric_type == schemas.MetricType.heat_map:
if data.session_id is not None:
params["session_data"] = json.dumps({"sessionId": data.session_id})
elif "data" in metric:
elif metric.get("data"):
params["session_data"] = json.dumps({"sessionId": metric["data"]["sessionId"]})
with pg_client.PostgresClient() as cur: