From 61f97f85bf438a3db5af377c8c1324dd4475159e Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Sat, 21 Dec 2024 22:44:10 +0000 Subject: [PATCH] Default was 10 --- posthog/hogql/database/schema/sessions_v1.py | 2 +- posthog/hogql/database/schema/sessions_v2.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/posthog/hogql/database/schema/sessions_v1.py b/posthog/hogql/database/schema/sessions_v1.py index d8fb3df8c1376..f3c167dcb227c 100644 --- a/posthog/hogql/database/schema/sessions_v1.py +++ b/posthog/hogql/database/schema/sessions_v1.py @@ -233,7 +233,7 @@ def arg_max_merge_field(field_name: str) -> ast.Call: ast.Call( name="greater", args=[aggregate_fields["$autocapture_count"], ast.Constant(value=0)] ), - # if session duration >= 10 seconds, not a bounce + # if session duration >= bounce_rate_duration_seconds, not a bounce ast.Call( name="greaterOrEquals", args=[ diff --git a/posthog/hogql/database/schema/sessions_v2.py b/posthog/hogql/database/schema/sessions_v2.py index e883875cea9a3..aee627f294546 100644 --- a/posthog/hogql/database/schema/sessions_v2.py +++ b/posthog/hogql/database/schema/sessions_v2.py @@ -38,7 +38,7 @@ from posthog.models.team import Team -DEFAULT_BOUNCE_RATE_DURATION_SECONDS = 30 +DEFAULT_BOUNCE_RATE_DURATION_SECONDS = 10 RAW_SESSIONS_FIELDS: dict[str, FieldOrTable] = { "session_id_v7": IntegerDatabaseField(name="session_id_v7"), @@ -276,7 +276,7 @@ def arg_max_merge_field(field_name: str) -> ast.Call: args=[ # if pageviews + autocaptures > 1, not a bounce ast.Call(name="greater", args=[bounce_event_count, ast.Constant(value=1)]), - # if session duration >= 10 seconds, not a bounce + # if session duration >= bounce_rate_duration_seconds, not a bounce ast.Call( name="greaterOrEquals", args=[ @@ -310,7 +310,7 @@ def arg_max_merge_field(field_name: str) -> ast.Call: ast.Call( name="greater", args=[aggregate_fields["$autocapture_count"], ast.Constant(value=0)] ), - # if session duration >= 10 seconds, not a bounce + # if session duration >= bounce_rate_duration_seconds, not a bounce ast.Call( name="greaterOrEquals", args=[