From 241fcc8821863d56753be2551078d5e9e256f1d8 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:22:23 +0000 Subject: [PATCH] Update query snapshots --- .../test/__snapshots__/test_heatmaps_api.ambr | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/posthog/heatmaps/test/__snapshots__/test_heatmaps_api.ambr b/posthog/heatmaps/test/__snapshots__/test_heatmaps_api.ambr index faa7d77c2c79a..9c6645397c12f 100644 --- a/posthog/heatmaps/test/__snapshots__/test_heatmaps_api.ambr +++ b/posthog/heatmaps/test/__snapshots__/test_heatmaps_api.ambr @@ -78,7 +78,7 @@ round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x, multiply(heatmaps.y, heatmaps.scale_factor) AS client_y FROM heatmaps - WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(150, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')))) + WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(150, 16))), 0))) GROUP BY pointer_target_fixed, pointer_relative_x, client_y @@ -100,7 +100,7 @@ round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x, multiply(heatmaps.y, heatmaps.scale_factor) AS client_y FROM heatmaps - WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')))) + WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0))) GROUP BY pointer_target_fixed, pointer_relative_x, client_y @@ -122,7 +122,7 @@ round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x, multiply(heatmaps.y, heatmaps.scale_factor) AS client_y FROM heatmaps - WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(177, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')))) + WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(177, 16))), 0))) GROUP BY pointer_target_fixed, pointer_relative_x, client_y @@ -144,7 +144,7 @@ round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x, multiply(heatmaps.y, heatmaps.scale_factor) AS client_y FROM heatmaps - WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(201, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')))) + WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(201, 16))), 0))) GROUP BY pointer_target_fixed, pointer_relative_x, client_y @@ -166,7 +166,7 @@ round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x, multiply(heatmaps.y, heatmaps.scale_factor) AS client_y FROM heatmaps - WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0), ifNull(lessOrEquals(heatmaps.viewport_width, round(divide(192, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')))) + WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0), ifNull(lessOrEquals(heatmaps.viewport_width, round(divide(192, 16))), 0))) GROUP BY pointer_target_fixed, pointer_relative_x, client_y @@ -263,6 +263,22 @@ allow_experimental_object_type=1 ''' # --- +# name: TestSessionRecordings.test_can_get_example_sessions + ''' + /* user_id:0 request:_snapshot_ */ + SELECT heatmaps.session_id AS session_id, + toTimeZone(heatmaps.timestamp, 'UTC') AS timestamp, + round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS relative_client_x, + multiply(heatmaps.y, heatmaps.scale_factor) AS client_y + FROM heatmaps + WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-06')), ifNull(equals(heatmaps.x, round(divide(999, 16))), isNull(heatmaps.x) + and isNull(round(divide(999, 16)))), ifNull(equals(heatmaps.y, round(divide(11, 16))), isNull(heatmaps.y) + and isNull(round(divide(11, 16))))) + LIMIT 1000000 SETTINGS readonly=2, + max_execution_time=60, + allow_experimental_object_type=1 + ''' +# --- # name: TestSessionRecordings.test_can_get_filter_by_click ''' /* user_id:0 request:_snapshot_ */