diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index fb9d747af9968..a1a38a751c618 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -135,7 +135,7 @@ jobs: - name: Check static typing run: | - mypy -p posthog --exclude bin/migrate_kafka_data.py --exclude posthog/hogql/grammar/HogQLParser.py --exclude gunicorn.config.py --enable-recursive-aliases + mypy -p posthog | mypy-baseline filter - name: Check if "schema.py" is up to date run: | diff --git a/bin/tests b/bin/tests index 13827ec05295a..dfcd5e2b12f9f 100755 --- a/bin/tests +++ b/bin/tests @@ -30,4 +30,4 @@ PG_PASSWORD="${PGPASSWORD:=posthog}" PG_PORT="${PGPORT:=5432}" PGOPTIONS='--client-min-messages=warning' psql posthog -d "postgres://${PG_USER}:${PG_PASSWORD}@${PG_HOST}:${PG_PORT}" -c "drop database if exists test_posthog" 1> /dev/null -nodemon -w ./posthog -w ./ee --ext py --exec "OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES pytest --reuse-db --durations-min=2.0 ${MIGRATIONS} -s $* --snapshot-update; mypy -p posthog --exclude bin/migrate_kafka_data.py --exclude posthog/hogql/grammar/HogQLParser.py --exclude gunicorn.config.py --exclude posthog/batch_exports/models.py" +nodemon -w ./posthog -w ./ee --ext py --exec "OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES pytest --reuse-db --durations-min=2.0 ${MIGRATIONS} -s $* --snapshot-update; mypy -p posthog | mypy-baseline filter" diff --git a/ee/api/test/__snapshots__/test_instance_settings.ambr b/ee/api/test/__snapshots__/test_instance_settings.ambr index 989d41b9e763c..020447634a620 100644 --- a/ee/api/test/__snapshots__/test_instance_settings.ambr +++ b/ee/api/test/__snapshots__/test_instance_settings.ambr @@ -1,12 +1,13 @@ +# serializer version: 1 # name: TestInstanceSettings.test_update_recordings_performance_events_ttl_setting - ' + ''' /* user_id:0 request:_snapshot_ */ ALTER TABLE sharded_performance_events ON CLUSTER 'posthog' MODIFY TTL toDate(timestamp) + toIntervalWeek(5) - ' ---- + ''' +# --- # name: TestInstanceSettings.test_update_recordings_ttl_setting - ' + ''' /* user_id:0 request:_snapshot_ */ ALTER TABLE sharded_session_recording_events ON CLUSTER 'posthog' MODIFY TTL toDate(created_at) + toIntervalWeek(5) - ' ---- + ''' +# --- diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index 735b995e23ca1..2343cbbee5f06 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.1 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -51,10 +52,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.10 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -75,19 +76,19 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.11 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.12 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -98,17 +99,17 @@ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.13 - ' + ''' SELECT COUNT(*) AS "__count" FROM "ee_organizationresourceaccess" WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.14 - ' + ''' SELECT "ee_organizationresourceaccess"."id", "ee_organizationresourceaccess"."resource", "ee_organizationresourceaccess"."access_level", @@ -119,24 +120,10 @@ FROM "ee_organizationresourceaccess" WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- -# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.15 - ' - SELECT "ee_organizationresourceaccess"."id", - "ee_organizationresourceaccess"."resource", - "ee_organizationresourceaccess"."access_level", - "ee_organizationresourceaccess"."organization_id", - "ee_organizationresourceaccess"."created_by_id", - "ee_organizationresourceaccess"."created_at", - "ee_organizationresourceaccess"."updated_at" - FROM "ee_organizationresourceaccess" - WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.2 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -157,19 +144,19 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.3 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.4 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -180,10 +167,10 @@ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.5 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -191,17 +178,17 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.6 - ' + ''' SELECT COUNT(*) AS "__count" FROM "ee_organizationresourceaccess" WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.7 - ' + ''' SELECT "ee_organizationresourceaccess"."id", "ee_organizationresourceaccess"."resource", "ee_organizationresourceaccess"."access_level", @@ -212,10 +199,10 @@ FROM "ee_organizationresourceaccess" WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.8 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -243,10 +230,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.9 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -267,5 +254,5 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/ee/api/test/__snapshots__/test_time_to_see_data.ambr b/ee/api/test/__snapshots__/test_time_to_see_data.ambr index 48bec559c2d19..2d93af68cee82 100644 --- a/ee/api/test/__snapshots__/test_time_to_see_data.ambr +++ b/ee/api/test/__snapshots__/test_time_to_see_data.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestTimeToSeeDataApi.test_session_events_api - ' + ''' { "type": "session", "data": { @@ -194,5 +195,5 @@ } ] } - ' ---- + ''' +# --- diff --git a/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr b/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr index 0f20bdd0e8a2f..fa58924aa8343 100644 --- a/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr +++ b/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestCohort.test_cohortpeople_basic - ' + ''' INSERT INTO cohortpeople SELECT id, @@ -32,10 +33,10 @@ AND cohort_id = 2 AND version < 0 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_cohortpeople_with_not_in_cohort_operator - ' + ''' INSERT INTO cohortpeople SELECT id, @@ -66,10 +67,10 @@ AND cohort_id = 2 AND version < 0 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_cohortpeople_with_not_in_cohort_operator.1 - ' + ''' INSERT INTO cohortpeople SELECT id, @@ -125,10 +126,10 @@ AND cohort_id = 2 AND version < 0 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_cohortpeople_with_not_in_cohort_operator_and_no_precalculation - ' + ''' SELECT uuid, distinct_id FROM events @@ -179,10 +180,10 @@ AND (((((NOT has(['something1'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), '$some_prop'), '^"|"$', ''))))))) SETTINGS optimize_aggregation_in_order = 1)) person ON person.person_id = behavior_query.person_id WHERE 1 = 1 AND ((((performed_event_condition_17_level_level_0_level_0_level_0_0)))) ) )) - ' ---- + ''' +# --- # name: TestCohort.test_cohortpeople_with_not_in_cohort_operator_for_behavioural_cohorts - ' + ''' INSERT INTO cohortpeople SELECT id, @@ -220,10 +221,10 @@ AND cohort_id = 2 AND version < 0 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_cohortpeople_with_not_in_cohort_operator_for_behavioural_cohorts.1 - ' + ''' INSERT INTO cohortpeople SELECT id, @@ -265,10 +266,10 @@ AND cohort_id = 2 AND version < 0 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_static_cohort_precalculated - ' + ''' SELECT distinct_id FROM @@ -283,5 +284,5 @@ FROM person_static_cohort WHERE cohort_id = %(_cohort_id_0)s AND team_id = %(team_id)s) - ' ---- + ''' +# --- diff --git a/ee/clickhouse/models/test/__snapshots__/test_property.ambr b/ee/clickhouse/models/test/__snapshots__/test_property.ambr index cc8e77f83a0dc..084d684e685af 100644 --- a/ee/clickhouse/models/test/__snapshots__/test_property.ambr +++ b/ee/clickhouse/models/test/__snapshots__/test_property.ambr @@ -1,15 +1,16 @@ +# serializer version: 1 # name: TestPropFormat.test_parse_groups - ' + ''' SELECT uuid FROM events WHERE team_id = 2 AND ((has(['val_1'], replaceRegexpAll(JSONExtractRaw(properties, 'attr_1'), '^"|"$', '')) AND has(['val_2'], replaceRegexpAll(JSONExtractRaw(properties, 'attr_2'), '^"|"$', ''))) OR (has(['val_2'], replaceRegexpAll(JSONExtractRaw(properties, 'attr_1'), '^"|"$', '')))) - ' ---- + ''' +# --- # name: TestPropFormat.test_parse_groups_persons - ' + ''' SELECT uuid FROM events WHERE team_id = 2 @@ -53,22 +54,22 @@ GROUP BY id HAVING is_deleted = 0) WHERE has(['2@posthog.com'], replaceRegexpAll(JSONExtractRaw(properties, 'email'), '^"|"$', '')) ) ))) - ' ---- + ''' +# --- # name: test_parse_groups_persons_edge_case_with_single_filter - ( + tuple( 'AND ( has(%(vglobalperson_0)s, replaceRegexpAll(JSONExtractRaw(person_props, %(kglobalperson_0)s), \'^"|"$\', \'\')))', - { + dict({ 'kglobalperson_0': 'email', - 'vglobalperson_0': [ + 'vglobalperson_0': list([ '1@posthog.com', - ], - }, + ]), + }), ) ---- +# --- # name: test_parse_prop_clauses_defaults - ( - ' + tuple( + ''' AND ( has(%(vglobal_0)s, replaceRegexpAll(JSONExtractRaw(properties, %(kglobal_0)s), '^"|"$', '')) AND distinct_id IN ( SELECT distinct_id FROM ( @@ -93,61 +94,61 @@ WHERE replaceRegexpAll(JSONExtractRaw(properties, %(kglobalperson_1)s), '^"|"$', '') ILIKE %(vglobalperson_1)s ) )) - ', - { + ''', + dict({ 'kglobal_0': 'event_prop', 'kglobalperson_1': 'email', - 'vglobal_0': [ + 'vglobal_0': list([ 'value', - ], + ]), 'vglobalperson_1': '%posthog%', - }, + }), ) ---- +# --- # name: test_parse_prop_clauses_defaults.1 - ( + tuple( 'AND ( has(%(vglobal_0)s, replaceRegexpAll(JSONExtractRaw(properties, %(kglobal_0)s), \'^"|"$\', \'\')) AND replaceRegexpAll(JSONExtractRaw(person_props, %(kglobalperson_1)s), \'^"|"$\', \'\') ILIKE %(vglobalperson_1)s)', - { + dict({ 'kglobal_0': 'event_prop', 'kglobalperson_1': 'email', - 'vglobal_0': [ + 'vglobal_0': list([ 'value', - ], + ]), 'vglobalperson_1': '%posthog%', - }, + }), ) ---- +# --- # name: test_parse_prop_clauses_defaults.2 - ( + tuple( 'AND ( has(%(vglobal_0)s, replaceRegexpAll(JSONExtractRaw(properties, %(kglobal_0)s), \'^"|"$\', \'\')) AND argMax(person."pmat_email", version) ILIKE %(vpersonquery_global_1)s)', - { + dict({ 'kglobal_0': 'event_prop', 'kpersonquery_global_1': 'email', - 'vglobal_0': [ + 'vglobal_0': list([ 'value', - ], + ]), 'vpersonquery_global_1': '%posthog%', - }, + }), ) ---- +# --- # name: test_parse_prop_clauses_funnel_step_element_prepend_regression - ( + tuple( 'AND ( (match(elements_chain, %(PREPEND__text_0_attributes_regex)s)))', - { + dict({ 'PREPEND__text_0_attributes_regex': '(text="Insights1")', - }, + }), ) ---- +# --- # name: test_parse_prop_clauses_precalculated_cohort - ( - ' + tuple( + ''' AND ( pdi.person_id IN ( SELECT DISTINCT person_id FROM cohortpeople WHERE team_id = %(team_id)s AND cohort_id = %(global_cohort_id_0)s AND version = %(global_version_0)s )) - ', - { + ''', + dict({ 'global_cohort_id_0': 47, 'global_version_0': None, - }, + }), ) ---- +# --- diff --git a/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel.ambr b/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel.ambr index 7786b0efe8d69..711f1ac076004 100644 --- a/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel.ambr +++ b/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -21,10 +22,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -131,10 +132,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -162,10 +163,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -278,10 +279,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -301,10 +302,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -416,10 +417,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -439,10 +440,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.3 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -551,10 +552,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.4 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -574,10 +575,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.5 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -686,10 +687,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.6 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -709,10 +710,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.7 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -821,10 +822,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.8 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -844,10 +845,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.9 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -956,10 +957,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -981,10 +982,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1091,10 +1092,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1122,10 +1123,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1238,10 +1239,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1261,10 +1262,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1376,10 +1377,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1399,10 +1400,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.3 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -1489,10 +1490,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.4 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1512,10 +1513,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.5 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -1602,10 +1603,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.6 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1625,10 +1626,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.7 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -1715,10 +1716,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.8 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1738,10 +1739,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestStrictFunnelGroupBreakdown.test_funnel_breakdown_group.9 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -1828,10 +1829,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1853,10 +1854,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1963,10 +1964,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -1994,10 +1995,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -2110,10 +2111,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2133,10 +2134,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -2248,10 +2249,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.10 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2271,10 +2272,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.11 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2294,10 +2295,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.12 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2317,10 +2318,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.13 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -2526,10 +2527,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.14 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2549,10 +2550,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.15 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2572,10 +2573,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.16 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2595,10 +2596,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.17 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -2804,10 +2805,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2827,10 +2828,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.3 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2850,10 +2851,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.4 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -2873,10 +2874,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.5 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -3082,10 +3083,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.6 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -3105,10 +3106,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.7 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -3128,10 +3129,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.8 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -3151,10 +3152,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestUnorderedFunnelGroupBreakdown.test_funnel_breakdown_group.9 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -3360,5 +3361,5 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlation.ambr b/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlation.ambr index 39fe31f7a59cc..97d0b6197b151 100644 --- a/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlation.ambr +++ b/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlation.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseFunnelCorrelation.test_action_events_are_excluded_from_correlations - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -91,10 +92,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -179,10 +180,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -263,10 +264,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -347,10 +348,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -431,10 +432,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -515,10 +516,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties_materialized - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -603,10 +604,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties_materialized.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -687,10 +688,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties_materialized.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -771,10 +772,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties_materialized.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -855,10 +856,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_basic_funnel_correlation_with_properties_materialized.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -939,10 +940,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_event_properties_and_groups - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1024,10 +1025,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_event_properties_and_groups_materialized - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1109,10 +1110,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1187,10 +1188,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.1 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1262,10 +1263,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.2 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1337,10 +1338,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.3 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1412,10 +1413,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.4 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1487,10 +1488,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1573,10 +1574,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.6 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1656,10 +1657,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups.7 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1739,10 +1740,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1825,10 +1826,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.1 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1908,10 +1909,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.2 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -1991,10 +1992,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.3 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2074,10 +2075,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.4 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2157,10 +2158,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2251,10 +2252,10 @@ countDistinctIf(actors.actor_id, actors.steps = target_step) AS success_count, countDistinctIf(actors.actor_id, actors.steps <> target_step) AS failure_count FROM funnel_actors AS actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.6 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2342,10 +2343,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_events_and_groups_poe_v2.7 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2433,10 +2434,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2513,10 +2514,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2585,10 +2586,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2657,10 +2658,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2729,10 +2730,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2801,10 +2802,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2881,10 +2882,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_materialized - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -2961,10 +2962,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_materialized.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3033,10 +3034,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_materialized.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3105,10 +3106,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_materialized.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3177,10 +3178,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_materialized.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3249,10 +3250,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_materialized.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3329,10 +3330,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3411,10 +3412,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3485,10 +3486,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3559,10 +3560,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3633,10 +3634,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3707,10 +3708,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3789,10 +3790,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_materialized - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3871,10 +3872,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_materialized.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -3945,10 +3946,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_materialized.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4019,10 +4020,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_materialized.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4093,10 +4094,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_materialized.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4167,10 +4168,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_materialized.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4249,10 +4250,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_poe_v2 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4337,10 +4338,10 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_poe_v2.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4417,10 +4418,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_poe_v2.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4497,10 +4498,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_poe_v2.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4577,10 +4578,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_poe_v2.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4657,10 +4658,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelation.test_funnel_correlation_with_properties_and_groups_person_on_events_poe_v2.5 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id , timestamp, steps, final_timestamp, @@ -4745,5 +4746,5 @@ countDistinctIf(actor_id, steps = target_step) AS success_count, countDistinctIf(actor_id, steps <> target_step) AS failure_count FROM funnel_actors - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlations_persons.ambr b/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlations_persons.ambr index ac9fb01cf79fb..ea36a9bf3d392 100644 --- a/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlations_persons.ambr +++ b/ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel_correlations_persons.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseFunnelCorrelationsActors.test_funnel_correlation_on_event_with_recordings - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id, final_matching_events as matching_events , timestamp, steps, @@ -125,10 +126,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_funnel_correlation_on_event_with_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -136,10 +137,10 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_funnel_correlation_on_event_with_recordings.2 - ' + ''' WITH funnel_actors as (SELECT aggregation_target AS actor_id, final_matching_events as matching_events , timestamp, steps, @@ -333,10 +334,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_funnel_correlation_on_event_with_recordings.3 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -344,10 +345,10 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_funnel_correlation_on_properties_with_recordings - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, final_matching_events as matching_events , timestamp, steps, @@ -467,10 +468,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_funnel_correlation_on_properties_with_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -478,10 +479,10 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_strict_funnel_correlation_with_recordings - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, final_matching_events as matching_events , timestamp, steps, @@ -599,10 +600,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_strict_funnel_correlation_with_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -610,10 +611,10 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_strict_funnel_correlation_with_recordings.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, final_matching_events as matching_events , timestamp, steps, @@ -731,10 +732,10 @@ ORDER BY actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseFunnelCorrelationsActors.test_strict_funnel_correlation_with_recordings.3 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -742,5 +743,5 @@ and session_id in ['s3'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_breakdown_props.ambr b/ee/clickhouse/queries/test/__snapshots__/test_breakdown_props.ambr index 0111a16581c61..0b209648161f3 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_breakdown_props.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_breakdown_props.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestBreakdownProps.test_breakdown_group_props - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -21,10 +22,10 @@ ORDER BY count DESC, value DESC LIMIT 6 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_group_props.1 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -46,10 +47,10 @@ ORDER BY count DESC, value DESC LIMIT 6 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_person_props - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$browser'), '^"|"$', '') AS value, count(*) as count @@ -76,10 +77,10 @@ ORDER BY count DESC, value DESC LIMIT 6 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_person_props_materialized - ' + ''' SELECT "pmat_$browser" AS value, count(*) as count @@ -106,10 +107,10 @@ ORDER BY count DESC, value DESC LIMIT 6 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_person_props_with_entity_filter_and_or_props_with_partial_pushdown - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$browser'), '^"|"$', '') AS value, count(*) as count @@ -144,10 +145,10 @@ ORDER BY count DESC, value DESC LIMIT 6 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_session_props - ' + ''' SELECT sessions.session_duration AS value, count(*) as count @@ -169,10 +170,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_with_math_property_session - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$browser'), '^"|"$', '') AS value, sum(session_duration) as count @@ -208,10 +209,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownProps.test_breakdown_with_math_property_session.1 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$browser'), '^"|"$', '') AS value, count(*) as count @@ -247,5 +248,5 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_cohort_query.ambr b/ee/clickhouse/queries/test/__snapshots__/test_cohort_query.ambr index 5ad0d10339d05..2cf8afef5e735 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_cohort_query.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_cohort_query.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestCohortQuery.test_basic_query - ' + ''' SELECT person.person_id AS id FROM @@ -44,10 +45,10 @@ AND ((((performed_event_condition_None_level_level_0_level_0_level_0_0) OR (performed_event_condition_None_level_level_0_level_0_level_1_0)) AND ((first_time_condition_None_level_level_0_level_1_level_0_0)))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_cohort_filter_with_another_cohort_with_event_sequence - ' + ''' SELECT person.person_id AS id FROM @@ -115,10 +116,10 @@ WHERE 1 = 1 AND ((((steps_0)) AND (steps_1))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_cohort_filter_with_extra - ' + ''' SELECT person.person_id AS id FROM @@ -156,10 +157,10 @@ AND ((((has(['test'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'name'), '^"|"$', '')))))) SETTINGS optimize_aggregation_in_order = 1)) person ON person.person_id = behavior_query.person_id WHERE 1 = 1 AND (((performed_event_condition_None_level_level_0_level_0_0))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_cohort_filter_with_extra.1 - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -193,10 +194,10 @@ WHERE 1 = 1 AND ((((has(['test'], replaceRegexpAll(JSONExtractRaw(person_props, 'name'), '^"|"$', '')))) OR ((performed_event_condition_None_level_level_0_level_1_level_0_0)))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_performed_event_sequence - ' + ''' SELECT funnel_query.person_id AS id FROM @@ -236,10 +237,10 @@ GROUP BY person_id) funnel_query WHERE 1 = 1 AND (((steps_0))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_performed_event_sequence_and_clause_with_additional_event - ' + ''' SELECT funnel_query.person_id AS id FROM @@ -283,10 +284,10 @@ WHERE 1 = 1 AND (((steps_0) OR (performed_event_multiple_condition_None_level_level_0_level_1_0))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_performed_event_sequence_with_person_properties - ' + ''' SELECT person.person_id AS id FROM @@ -345,10 +346,10 @@ WHERE 1 = 1 AND (((steps_0) AND (performed_event_multiple_condition_None_level_level_0_level_1_0))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_person - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -382,10 +383,10 @@ WHERE 1 = 1 AND (((performed_event_condition_None_level_level_0_level_0_0) OR (has(['test@posthog.com'], replaceRegexpAll(JSONExtractRaw(person_props, '$sample_field'), '^"|"$', ''))))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_person_materialized - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -419,10 +420,10 @@ WHERE 1 = 1 AND (((performed_event_condition_None_level_level_0_level_0_0) OR (has(['test@posthog.com'], "pmat_$sample_field")))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_person_properties_with_pushdowns - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -469,10 +470,10 @@ OR (performed_event_condition_None_level_level_0_level_0_level_1_0) OR (has(['special'], replaceRegexpAll(JSONExtractRaw(person_props, 'name'), '^"|"$', '')))) AND ((first_time_condition_None_level_level_0_level_1_level_0_0)))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_person_props_only - ' + ''' SELECT id FROM person @@ -491,30 +492,30 @@ OR (has(['test2@posthog.com'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'email'), '^"|"$', '')))) OR ((has(['test3'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'name'), '^"|"$', ''))) AND (has(['test3@posthog.com'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'email'), '^"|"$', ''))))) SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestCohortQuery.test_precalculated_cohort_filter_with_extra_filters - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestCohortQuery.test_precalculated_cohort_filter_with_extra_filters.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestCohortQuery.test_precalculated_cohort_filter_with_extra_filters.2 - ' + ''' SELECT id FROM person @@ -529,19 +530,19 @@ HAVING max(is_deleted) = 0 AND ((((has(['test'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'name'), '^"|"$', ''))))) OR (has(['test2'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'name'), '^"|"$', '')))) SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestCohortQuery.test_static_cohort_filter - ' + ''' SELECT count(DISTINCT person_id) FROM person_static_cohort WHERE team_id = 2 AND cohort_id = 2 - ' ---- + ''' +# --- # name: TestCohortQuery.test_static_cohort_filter.1 - ' + ''' SELECT person.person_id AS id FROM @@ -559,19 +560,19 @@ FROM person_static_cohort WHERE cohort_id = 2 AND team_id = 2)))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_static_cohort_filter_with_extra - ' + ''' SELECT count(DISTINCT person_id) FROM person_static_cohort WHERE team_id = 2 AND cohort_id = 2 - ' ---- + ''' +# --- # name: TestCohortQuery.test_static_cohort_filter_with_extra.1 - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -608,10 +609,10 @@ WHERE cohort_id = 2 AND team_id = 2)) AND (performed_event_condition_None_level_level_0_level_1_0))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_static_cohort_filter_with_extra.2 - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -648,19 +649,19 @@ WHERE cohort_id = 2 AND team_id = 2))) OR ((performed_event_condition_None_level_level_0_level_1_level_0_0)))) - ' ---- + ''' +# --- # name: TestCohortQuery.test_unwrapping_static_cohort_filter_hidden_in_layers_of_cohorts - ' + ''' SELECT count(DISTINCT person_id) FROM person_static_cohort WHERE team_id = 2 AND cohort_id = 2 - ' ---- + ''' +# --- # name: TestCohortQuery.test_unwrapping_static_cohort_filter_hidden_in_layers_of_cohorts.1 - ' + ''' SELECT if(behavior_query.person_id = '00000000-0000-0000-0000-000000000000', person.person_id, behavior_query.person_id) AS id FROM @@ -701,5 +702,5 @@ WHERE cohort_id = 2 AND team_id = 2))) OR (performed_event_condition_None_level_level_0_level_1_0))) - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_event_query.ambr b/ee/clickhouse/queries/test/__snapshots__/test_event_query.ambr index 54c9cd5db8ca5..b0fe5fcc7f116 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_event_query.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_event_query.ambr @@ -1,25 +1,26 @@ +# serializer version: 1 # name: TestEventQuery.test_account_filters - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestEventQuery.test_account_filters.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestEventQuery.test_account_filters.2 - ' + ''' SELECT e.timestamp as timestamp, pdi.person_id as person_id FROM events e @@ -46,20 +47,20 @@ AND event = 'event_name' AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2021-01-14 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-01-21 23:59:59', 'UTC') - ' ---- + ''' +# --- # name: TestEventQuery.test_basic_event_filter - ' + ''' SELECT e.timestamp as timestamp FROM events e WHERE team_id = 2 AND event = 'viewed' AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2021-05-01 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-05-07 23:59:59', 'UTC') - ' ---- + ''' +# --- # name: TestEventQuery.test_cohort_filter - ' + ''' SELECT e.timestamp as timestamp, pdi.person_id as person_id FROM events e @@ -92,10 +93,10 @@ GROUP BY id HAVING max(is_deleted) = 0 AND ((has(['test'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'name'), '^"|"$', '')))) SETTINGS optimize_aggregation_in_order = 1)) - ' ---- + ''' +# --- # name: TestEventQuery.test_denormalised_props - ' + ''' SELECT e.timestamp as timestamp, e."mat_test_prop" as "mat_test_prop" FROM events e @@ -105,10 +106,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC') AND ((has(['hi'], "mat_test_prop")) AND (has(['hi'], "mat_test_prop"))) - ' ---- + ''' +# --- # name: TestEventQuery.test_element - ' + ''' SELECT e.timestamp as timestamp FROM events e WHERE team_id = 2 @@ -116,10 +117,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2021-01-14 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-01-21 23:59:59', 'UTC') AND ((match(elements_chain, '(^|;)label(\\.|$|;|:)'))) - ' ---- + ''' +# --- # name: TestEventQuery.test_element.1 - ' + ''' SELECT e.timestamp as timestamp FROM events e WHERE team_id = 2 @@ -127,10 +128,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2021-01-14 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-01-21 23:59:59', 'UTC') AND (0 = 191) - ' ---- + ''' +# --- # name: TestEventQuery.test_entity_filtered_by_cohort - ' + ''' SELECT e.timestamp as timestamp, pdi.person_id as person_id FROM events e @@ -163,10 +164,10 @@ GROUP BY id HAVING max(is_deleted) = 0 AND ((has(['test'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'name'), '^"|"$', '')))) SETTINGS optimize_aggregation_in_order = 1)) - ' ---- + ''' +# --- # name: TestEventQuery.test_entity_filtered_by_multiple_session_duration_filters - ' + ''' SELECT e.timestamp as timestamp, sessions.session_duration as session_duration, sessions.$session_id as $session_id @@ -186,10 +187,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-05-03 23:59:59', 'UTC') AND (sessions.session_duration > 90.0 AND sessions.session_duration < 150.0) - ' ---- + ''' +# --- # name: TestEventQuery.test_entity_filtered_by_session_duration - ' + ''' SELECT e.timestamp as timestamp, sessions.session_duration as session_duration, sessions.$session_id as $session_id @@ -208,10 +209,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2021-05-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-05-03 23:59:59', 'UTC') AND (sessions.session_duration > 90.0) - ' ---- + ''' +# --- # name: TestEventQuery.test_event_properties_filter - ' + ''' SELECT e.timestamp as timestamp, e."properties" as "properties" FROM events e @@ -220,10 +221,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2021-05-01 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-05-07 23:59:59', 'UTC') AND (has(['test_val'], replaceRegexpAll(JSONExtractRaw(e.properties, 'some_key'), '^"|"$', ''))) - ' ---- + ''' +# --- # name: TestEventQuery.test_event_properties_filter.1 - ' + ''' SELECT e.timestamp as timestamp FROM events e WHERE team_id = 2 @@ -231,10 +232,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2021-05-01 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-05-07 23:59:59', 'UTC') AND (has(['test_val'], replaceRegexpAll(JSONExtractRaw(e.properties, 'some_key'), '^"|"$', ''))) - ' ---- + ''' +# --- # name: TestEventQuery.test_groups_filters - ' + ''' SELECT e.timestamp as timestamp FROM events e LEFT JOIN @@ -257,10 +258,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') AND ((has(['finance'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', ''))) AND (has(['value'], replaceRegexpAll(JSONExtractRaw(group_properties_1, 'another'), '^"|"$', '')))) - ' ---- + ''' +# --- # name: TestEventQuery.test_groups_filters_mixed - ' + ''' SELECT e.timestamp as timestamp, pdi.person_id as person_id FROM events e @@ -295,10 +296,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') AND ((has(['finance'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))) - ' ---- + ''' +# --- # name: TestEventQuery.test_static_cohort_filter - ' + ''' SELECT e.timestamp as timestamp, pdi.person_id as person_id FROM events e @@ -324,10 +325,10 @@ FROM person_static_cohort WHERE cohort_id = 2 AND team_id = 2)) - ' ---- + ''' +# --- # name: TestEventQuery.test_unique_session_math_filtered_by_session_duration - ' + ''' SELECT e.timestamp as timestamp, e."$session_id" as "$session_id", sessions.session_duration as session_duration @@ -346,5 +347,5 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2021-05-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-05-03 23:59:59', 'UTC') AND (sessions.session_duration > 30.0) - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_groups_join_query.ambr b/ee/clickhouse/queries/test/__snapshots__/test_groups_join_query.ambr index cab6a0a76a5bb..85b77e616249e 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_groups_join_query.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_groups_join_query.ambr @@ -1,6 +1,7 @@ +# serializer version: 1 # name: test_groups_join_query_filtering - ( - ' + tuple( + ''' LEFT JOIN ( SELECT @@ -12,16 +13,16 @@ ) groups_0 ON "$group_0" == groups_0.group_key - ', - { + ''', + dict({ 'group_index_0': 0, 'team_id': 2, - }, + }), ) ---- +# --- # name: test_groups_join_query_filtering_with_custom_key_names - ( - ' + tuple( + ''' LEFT JOIN ( SELECT @@ -44,11 +45,11 @@ ) groups_2 ON call_me_industry == groups_2.group_key - ', - { + ''', + dict({ 'group_index_0': 0, 'group_index_2': 2, 'team_id': 2, - }, + }), ) ---- +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_lifecycle.ambr b/ee/clickhouse/queries/test/__snapshots__/test_lifecycle.ambr index 5acb951590251..4a1fa4a377eba 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_lifecycle.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_lifecycle.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseLifecycle.test_interval_dates_days - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2021-05-05 23:59:59', 'UTC'))) AS start_of_period @@ -69,10 +70,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_interval_dates_months - ' + ''' WITH 'month' AS selected_period, periods AS (SELECT dateSub(month, number, dateTrunc(selected_period, toDateTime('2021-05-05 23:59:59', 'UTC'))) AS start_of_period @@ -142,10 +143,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_interval_dates_weeks - ' + ''' WITH 'week' AS selected_period, periods AS (SELECT dateSub(week, number, dateTrunc(selected_period, toDateTime('2021-05-06 23:59:59', 'UTC'))) AS start_of_period @@ -215,10 +216,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_lifecycle_edge_cases - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2020-01-18 23:59:59', 'UTC'))) AS start_of_period @@ -288,10 +289,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_lifecycle_hogql_event_properties - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2021-05-05 23:59:59', 'UTC'))) AS start_of_period @@ -362,10 +363,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_lifecycle_hogql_event_properties_materialized - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2021-05-05 23:59:59', 'UTC'))) AS start_of_period @@ -436,10 +437,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_lifecycle_hogql_person_properties - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2021-05-05 23:59:59', 'UTC'))) AS start_of_period @@ -511,10 +512,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_lifecycle_hogql_person_properties_materialized - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2021-05-05 23:59:59', 'UTC'))) AS start_of_period @@ -586,10 +587,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestClickhouseLifecycle.test_test_account_filters_with_groups - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2020-01-19 23:59:59', 'UTC'))) AS start_of_period @@ -667,5 +668,5 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_paths.ambr b/ee/clickhouse/queries/test/__snapshots__/test_paths.ambr index 89c25250fb555..098df6f8c0933 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_paths.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_paths.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhousePaths.test_by_funnel_after_dropoff - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -163,10 +164,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -325,10 +326,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -487,10 +488,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -649,10 +650,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -811,10 +812,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff_with_group_filter - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -986,10 +987,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff_with_group_filter.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -1156,10 +1157,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff_with_group_filter.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -1326,10 +1327,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff_with_group_filter.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -1496,10 +1497,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_dropoff_with_group_filter.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -1666,10 +1667,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_step - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -1833,10 +1834,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_after_step_limit - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -2000,10 +2001,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_before_dropoff - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -2167,10 +2168,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_before_step - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id , timestamp FROM @@ -2334,10 +2335,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_between_step - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, max_timestamp, @@ -2503,10 +2504,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_between_step.1 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, max_timestamp, @@ -2667,10 +2668,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_between_step.2 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, max_timestamp, @@ -2831,10 +2832,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_between_step.3 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, max_timestamp, @@ -2995,10 +2996,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_between_step.4 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, max_timestamp, @@ -3159,10 +3160,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_by_funnel_between_step.5 - ' + ''' WITH funnel_actors AS (SELECT aggregation_target AS actor_id, max_timestamp, @@ -3323,10 +3324,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_end - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3402,10 +3403,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_end.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3481,10 +3482,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_end_materialized - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3560,10 +3561,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_end_materialized.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3639,10 +3640,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_exclusion_filters_with_wildcard_groups - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3719,10 +3720,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_exclusion_filters_with_wildcard_groups.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3799,10 +3800,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3878,10 +3879,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -3957,10 +3958,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters.2 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4036,10 +4037,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters.3 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4115,10 +4116,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters.4 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4194,10 +4195,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters.5 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4275,10 +4276,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_inclusion_exclusion_filters.6 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4357,10 +4358,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_event_ordering - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4436,10 +4437,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_groups_filtering_person_on_events - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4519,10 +4520,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_groups_filtering_person_on_events.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4602,10 +4603,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_groups_filtering_person_on_events.2 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4685,10 +4686,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_path_cleaning_rules_with_wildcard_groups - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -4766,10 +4767,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -4840,10 +4841,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.1 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -4913,10 +4914,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.2 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -4986,10 +4987,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.3 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -5060,10 +5061,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.4 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -5133,10 +5134,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.5 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -5206,10 +5207,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.6 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -5280,10 +5281,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.7 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -5353,10 +5354,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_dropoffs.8 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -5426,10 +5427,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -5440,10 +5441,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'poev2_p1', -1, 0) - ' ---- + ''' +# --- # name: TestClickhousePaths.test_person_on_events_v2.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -5521,10 +5522,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording - ' + ''' SELECT person_id AS actor_id , groupUniqArray(100)((timestamp, uuid, @@ -5630,10 +5631,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -5641,10 +5642,10 @@ and session_id in ['s1', 's3', 's5'] AND min_first_timestamp >= '2011-12-31 00:00:00' AND max_last_timestamp <= '2012-01-03 00:00:00' - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_for_dropoff - ' + ''' SELECT person_id AS actor_id , groupUniqArray(100)((timestamp, uuid, @@ -5751,10 +5752,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_for_dropoff.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -5762,10 +5763,10 @@ and session_id in [] AND min_first_timestamp >= '2011-12-31 00:00:00' AND max_last_timestamp <= '2012-01-03 00:00:00' - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_for_dropoff.2 - ' + ''' SELECT person_id AS actor_id , groupUniqArray(100)((timestamp, uuid, @@ -5872,10 +5873,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_for_dropoff.3 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -5883,10 +5884,10 @@ and session_id in ['s1'] AND min_first_timestamp >= '2011-12-31 00:00:00' AND max_last_timestamp <= '2012-01-03 00:00:00' - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_with_no_window_or_session_id - ' + ''' SELECT person_id AS actor_id , groupUniqArray(100)((timestamp, uuid, @@ -5992,10 +5993,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_with_no_window_or_session_id.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -6003,10 +6004,10 @@ and session_id in [] AND min_first_timestamp >= '2011-12-31 00:00:00' AND max_last_timestamp <= '2012-01-03 00:00:00' - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_with_start_and_end - ' + ''' SELECT person_id AS actor_id , groupUniqArray(100)((timestamp, uuid, @@ -6121,10 +6122,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_recording_with_start_and_end.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -6132,10 +6133,10 @@ and session_id in ['s1'] AND min_first_timestamp >= '2011-12-31 00:00:00' AND max_last_timestamp <= '2012-01-03 00:00:00' - ' ---- + ''' +# --- # name: TestClickhousePaths.test_respect_session_limits - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -6210,10 +6211,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -6292,10 +6293,10 @@ ORDER BY event_count DESC, source_event, target_event - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end.1 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -6370,10 +6371,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end.2 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -6452,10 +6453,10 @@ ORDER BY event_count DESC, source_event, target_event - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end.3 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -6530,10 +6531,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end_materialized - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -6612,10 +6613,10 @@ ORDER BY event_count DESC, source_event, target_event - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end_materialized.1 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -6690,10 +6691,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end_materialized.2 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -6772,10 +6773,10 @@ ORDER BY event_count DESC, source_event, target_event - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_and_end_materialized.3 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -6850,10 +6851,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_start_dropping_orphaned_edges - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -6929,10 +6930,10 @@ source_event, target_event LIMIT 6 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_conversion_times - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7008,10 +7009,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7086,10 +7087,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.1 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -7159,10 +7160,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.2 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -7232,10 +7233,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.3 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7310,10 +7311,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.4 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -7383,10 +7384,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.5 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7461,10 +7462,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.6 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -7534,10 +7535,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.7 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -7607,10 +7608,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_step_limit.8 - ' + ''' SELECT DISTINCT person_id AS actor_id FROM @@ -7680,10 +7681,10 @@ ORDER BY person_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_team_and_local_path_cleaning_rules - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7761,10 +7762,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_team_and_local_path_cleaning_rules.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7842,10 +7843,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_team_and_local_path_cleaning_rules.2 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -7923,10 +7924,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_team_path_cleaning_rules - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8002,10 +8003,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_team_path_cleaning_rules.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8082,10 +8083,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8160,10 +8161,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups_across_people - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8239,10 +8240,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups_and_min_edge_weight - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8318,10 +8319,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups_and_min_edge_weight.1 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8397,10 +8398,10 @@ source_event, target_event LIMIT 2 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups_and_min_edge_weight.2 - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8477,10 +8478,10 @@ source_event, target_event LIMIT 20 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups_evil_input - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8556,10 +8557,10 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- # name: TestClickhousePaths.test_wildcard_groups_with_sampling - ' + ''' SELECT last_path_key as source_event, path_key as target_event, @@ -8634,5 +8635,5 @@ source_event, target_event LIMIT 50 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_person_distinct_id_query.ambr b/ee/clickhouse/queries/test/__snapshots__/test_person_distinct_id_query.ambr index e1567e1648c3e..31d46237934a6 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_person_distinct_id_query.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_person_distinct_id_query.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: test_person_distinct_id_query - ' + ''' SELECT distinct_id, argMax(person_id, version) as person_id FROM person_distinct_id2 @@ -7,5 +8,5 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_person_query.ambr b/ee/clickhouse/queries/test/__snapshots__/test_person_query.ambr index b45e3567dac30..5f46bd1a81461 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_person_query.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_person_query.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: test_person_query - ' + ''' SELECT id FROM person @@ -16,10 +17,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query.1 - ' + ''' SELECT id FROM person @@ -43,10 +44,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_and_and_or_property_groups - ' + ''' SELECT id, argMax(properties, version) as person_props FROM person @@ -70,10 +71,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_anded_property_groups - ' + ''' SELECT id FROM person @@ -97,10 +98,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_entity_filters - ' + ''' SELECT id, argMax(pmat_email, version) as pmat_email FROM person @@ -117,10 +118,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_entity_filters.1 - ' + ''' SELECT id FROM person @@ -144,10 +145,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_entity_filters_and_property_group_filters - ' + ''' SELECT id, argMax(pmat_email, version) as pmat_email , argMax(properties, version) as person_props FROM person @@ -171,10 +172,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_entity_filters_and_property_group_filters.1 - ' + ''' SELECT id, argMax(properties, version) as person_props FROM person @@ -198,10 +199,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_extra_fields - ' + ''' SELECT id, argMax(pmat_email, version) as pmat_email , argMax(properties, version) as person_props FROM person @@ -225,10 +226,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_extra_requested_fields - ' + ''' SELECT id, argMax(properties, version) as person_props FROM person @@ -252,10 +253,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_extra_requested_fields.1 - ' + ''' SELECT id, argMax(pmat_email, version) as pmat_email FROM person @@ -279,10 +280,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_multiple_cohorts - ' + ''' SELECT id FROM person @@ -310,10 +311,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_updated_after - ' + ''' SELECT id FROM person @@ -330,10 +331,10 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: test_person_query_with_updated_after.1 - ' + ''' SELECT id FROM person @@ -350,5 +351,5 @@ SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/queries/test/__snapshots__/test_retention.ambr b/ee/clickhouse/queries/test/__snapshots__/test_retention.ambr index 10cc23278229d..3c4f96a3602cc 100644 --- a/ee/clickhouse/queries/test/__snapshots__/test_retention.ambr +++ b/ee/clickhouse/queries/test/__snapshots__/test_retention.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseRetention.test_groups_aggregating_person_on_events - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -58,10 +59,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_aggregating_person_on_events.1 - ' + ''' SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -119,10 +120,10 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_aggregating_person_on_events.2 - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -181,10 +182,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_aggregating_person_on_events_materialized - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -243,10 +244,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_aggregating_person_on_events_materialized.1 - ' + ''' SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -304,10 +305,10 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_aggregating_person_on_events_materialized.2 - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -366,10 +367,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_filtering_person_on_events - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -442,10 +443,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_filtering_person_on_events.1 - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -518,10 +519,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_filtering_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -532,10 +533,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'person1', -1, 0) - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_filtering_person_on_events_v2.1 - ' + ''' WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -620,10 +621,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_in_period_person_on_events - ' + ''' SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -681,10 +682,10 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseRetention.test_groups_in_period_person_on_events_materialized - ' + ''' SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -742,5 +743,5 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr index 0e07c15554bae..018b6c25fd395 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results - ' + ''' /* user_id:132 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age @@ -8,10 +9,10 @@ AND timestamp < now() GROUP BY team_id ORDER BY age; - ' ---- + ''' +# --- # name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, count(*) as count @@ -24,10 +25,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -69,10 +70,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, count(*) as count @@ -85,10 +86,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -157,141 +158,5 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- -# name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 00:00:00', 'UTC')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['control', 'test', 'ablahebf', ''] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(*) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) as day_start, - replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') as breakdown_value - FROM events e - WHERE e.team_id = 2 - AND event = '$pageview' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') in (['control', 'test', 'ablahebf', '']) - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.6 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event IN ['$pageleave_funnel', '$pageview_funnel'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results.7 - ' - /* user_id:0 request:_snapshot_ */ - SELECT countIf(steps = 1) step_1, - countIf(steps = 2) step_2, - avg(step_1_average_conversion_time_inner) step_1_average_conversion_time, - median(step_1_median_conversion_time_inner) step_1_median_conversion_time, - prop - FROM - (SELECT aggregation_target, - steps, - avg(step_1_conversion_time) step_1_average_conversion_time_inner, - median(step_1_conversion_time) step_1_median_conversion_time_inner , - prop - FROM - (SELECT aggregation_target, - steps, - max(steps) over (PARTITION BY aggregation_target, - prop) as max_steps, - step_1_conversion_time , - prop - FROM - (SELECT *, - if(latest_0 <= latest_1 - AND latest_1 <= latest_0 + INTERVAL 14 DAY, 2, 1) AS steps , - if(isNotNull(latest_1) - AND latest_1 <= latest_0 + INTERVAL 14 DAY, dateDiff('second', toDateTime(latest_0), toDateTime(latest_1)), NULL) step_1_conversion_time, - prop - FROM - (SELECT aggregation_target, timestamp, step_0, - latest_0, - step_1, - min(latest_1) over (PARTITION by aggregation_target, - prop - ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1 , - if(has([['test'], ['control'], ['']], prop), prop, ['Other']) as prop - FROM - (SELECT *, - if(notEmpty(arrayFilter(x -> notEmpty(x), prop_vals)), prop_vals, ['']) as prop - FROM - (SELECT e.timestamp as timestamp, - pdi.person_id as aggregation_target, - pdi.person_id as person_id , - if(event = '$pageview_funnel', 1, 0) as step_0, - if(step_0 = 1, timestamp, null) as latest_0, - if(event = '$pageleave_funnel', 1, 0) as step_1, - if(step_1 = 1, timestamp, null) as latest_1, - array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS prop_basic, - prop_basic as prop, - argMinIf(prop, timestamp, notEmpty(arrayFilter(x -> notEmpty(x), prop))) over (PARTITION by aggregation_target) as prop_vals - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) AS pdi ON e.distinct_id = pdi.distinct_id - WHERE team_id = 2 - AND event IN ['$pageleave_funnel', '$pageview_funnel'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (step_0 = 1 - OR step_1 = 1) ))) - WHERE step_0 = 1 )) - GROUP BY aggregation_target, - steps, - prop - HAVING steps = max_steps) - GROUP BY prop - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr index 72883735513ab..975bc7ad2b0d2 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, count(*) as count @@ -12,10 +13,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -84,124 +85,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results.2 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results.3 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT countIf(steps = 1) step_1, - countIf(steps = 2) step_2, - avg(step_1_average_conversion_time_inner) step_1_average_conversion_time, - median(step_1_median_conversion_time_inner) step_1_median_conversion_time, - prop - FROM - (SELECT aggregation_target, - steps, - avg(step_1_conversion_time) step_1_average_conversion_time_inner, - median(step_1_conversion_time) step_1_median_conversion_time_inner , - prop - FROM - (SELECT aggregation_target, - steps, - max(steps) over (PARTITION BY aggregation_target, - prop) as max_steps, - step_1_conversion_time , - prop - FROM - (SELECT *, - if(latest_0 <= latest_1 - AND latest_1 <= latest_0 + INTERVAL 14 DAY, 2, 1) AS steps , - if(isNotNull(latest_1) - AND latest_1 <= latest_0 + INTERVAL 14 DAY, dateDiff('second', toDateTime(latest_0), toDateTime(latest_1)), NULL) step_1_conversion_time, - prop - FROM - (SELECT aggregation_target, timestamp, step_0, - latest_0, - step_1, - min(latest_1) over (PARTITION by aggregation_target, - prop - ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1 , - if(has([['test'], ['control'], ['']], prop), prop, ['Other']) as prop - FROM - (SELECT *, - if(notEmpty(arrayFilter(x -> notEmpty(x), prop_vals)), prop_vals, ['']) as prop - FROM - (SELECT e.timestamp as timestamp, - pdi.person_id as aggregation_target, - pdi.person_id as person_id , - if(event = '$pageview', 1, 0) as step_0, - if(step_0 = 1, timestamp, null) as latest_0, - if(event = '$pageleave', 1, 0) as step_1, - if(step_1 = 1, timestamp, null) as latest_1, - array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS prop_basic, - prop_basic as prop, - argMinIf(prop, timestamp, notEmpty(arrayFilter(x -> notEmpty(x), prop))) over (PARTITION by aggregation_target) as prop_vals - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) AS pdi ON e.distinct_id = pdi.distinct_id - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (step_0 = 1 - OR step_1 = 1) ))) - WHERE step_0 = 1 )) - GROUP BY aggregation_target, - steps, - prop - HAVING steps = max_steps) - GROUP BY prop - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, count(*) as count @@ -214,10 +101,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -286,124 +173,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones.2 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones.3 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'Europe/Amsterdam') >= toDateTime('2020-01-01 14:20:21', 'Europe/Amsterdam') - AND toTimeZone(timestamp, 'Europe/Amsterdam') <= toDateTime('2020-01-06 10:00:00', 'Europe/Amsterdam') - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT countIf(steps = 1) step_1, - countIf(steps = 2) step_2, - avg(step_1_average_conversion_time_inner) step_1_average_conversion_time, - median(step_1_median_conversion_time_inner) step_1_median_conversion_time, - prop - FROM - (SELECT aggregation_target, - steps, - avg(step_1_conversion_time) step_1_average_conversion_time_inner, - median(step_1_conversion_time) step_1_median_conversion_time_inner , - prop - FROM - (SELECT aggregation_target, - steps, - max(steps) over (PARTITION BY aggregation_target, - prop) as max_steps, - step_1_conversion_time , - prop - FROM - (SELECT *, - if(latest_0 <= latest_1 - AND latest_1 <= latest_0 + INTERVAL 14 DAY, 2, 1) AS steps , - if(isNotNull(latest_1) - AND latest_1 <= latest_0 + INTERVAL 14 DAY, dateDiff('second', toDateTime(latest_0), toDateTime(latest_1)), NULL) step_1_conversion_time, - prop - FROM - (SELECT aggregation_target, timestamp, step_0, - latest_0, - step_1, - min(latest_1) over (PARTITION by aggregation_target, - prop - ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1 , - if(has([['test'], ['control']], prop), prop, ['Other']) as prop - FROM - (SELECT *, - if(notEmpty(arrayFilter(x -> notEmpty(x), prop_vals)), prop_vals, ['']) as prop - FROM - (SELECT e.timestamp as timestamp, - pdi.person_id as aggregation_target, - pdi.person_id as person_id , - if(event = '$pageview', 1, 0) as step_0, - if(step_0 = 1, timestamp, null) as latest_0, - if(event = '$pageleave', 1, 0) as step_1, - if(step_1 = 1, timestamp, null) as latest_1, - array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS prop_basic, - prop_basic as prop, - argMinIf(prop, timestamp, notEmpty(arrayFilter(x -> notEmpty(x), prop))) over (PARTITION by aggregation_target) as prop_vals - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) AS pdi ON e.distinct_id = pdi.distinct_id - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'Europe/Amsterdam') >= toDateTime('2020-01-01 14:20:21', 'Europe/Amsterdam') - AND toTimeZone(timestamp, 'Europe/Amsterdam') <= toDateTime('2020-01-06 10:00:00', 'Europe/Amsterdam') - AND (step_0 = 1 - OR step_1 = 1) ))) - WHERE step_0 = 1 )) - GROUP BY aggregation_target, - steps, - prop - HAVING steps = max_steps) - GROUP BY prop - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, count(*) as count @@ -416,10 +189,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -488,124 +261,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.2 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.3 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT countIf(steps = 1) step_1, - countIf(steps = 2) step_2, - avg(step_1_average_conversion_time_inner) step_1_average_conversion_time, - median(step_1_median_conversion_time_inner) step_1_median_conversion_time, - prop - FROM - (SELECT aggregation_target, - steps, - avg(step_1_conversion_time) step_1_average_conversion_time_inner, - median(step_1_conversion_time) step_1_median_conversion_time_inner , - prop - FROM - (SELECT aggregation_target, - steps, - max(steps) over (PARTITION BY aggregation_target, - prop) as max_steps, - step_1_conversion_time , - prop - FROM - (SELECT *, - if(latest_0 <= latest_1 - AND latest_1 <= latest_0 + INTERVAL 14 DAY, 2, 1) AS steps , - if(isNotNull(latest_1) - AND latest_1 <= latest_0 + INTERVAL 14 DAY, dateDiff('second', toDateTime(latest_0), toDateTime(latest_1)), NULL) step_1_conversion_time, - prop - FROM - (SELECT aggregation_target, timestamp, step_0, - latest_0, - step_1, - min(latest_1) over (PARTITION by aggregation_target, - prop - ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1 , - if(has([[''], ['test_1'], ['test'], ['control'], ['unknown_3'], ['unknown_2'], ['unknown_1'], ['test_2']], prop), prop, ['Other']) as prop - FROM - (SELECT *, - if(notEmpty(arrayFilter(x -> notEmpty(x), prop_vals)), prop_vals, ['']) as prop - FROM - (SELECT e.timestamp as timestamp, - pdi.person_id as aggregation_target, - pdi.person_id as person_id , - if(event = '$pageview', 1, 0) as step_0, - if(step_0 = 1, timestamp, null) as latest_0, - if(event = '$pageleave', 1, 0) as step_1, - if(step_1 = 1, timestamp, null) as latest_1, - array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS prop_basic, - prop_basic as prop, - argMinIf(prop, timestamp, notEmpty(arrayFilter(x -> notEmpty(x), prop))) over (PARTITION by aggregation_target) as prop_vals - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) AS pdi ON e.distinct_id = pdi.distinct_id - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (step_0 = 1 - OR step_1 = 1) ))) - WHERE step_0 = 1 )) - GROUP BY aggregation_target, - steps, - prop - HAVING steps = max_steps) - GROUP BY prop - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_with_hogql_aggregation - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, count(*) as count @@ -618,124 +277,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_with_hogql_aggregation.1 - ' - /* user_id:0 request:_snapshot_ */ - SELECT countIf(steps = 1) step_1, - countIf(steps = 2) step_2, - avg(step_1_average_conversion_time_inner) step_1_average_conversion_time, - median(step_1_median_conversion_time_inner) step_1_median_conversion_time, - prop - FROM - (SELECT aggregation_target, - steps, - avg(step_1_conversion_time) step_1_average_conversion_time_inner, - median(step_1_conversion_time) step_1_median_conversion_time_inner , - prop - FROM - (SELECT aggregation_target, - steps, - max(steps) over (PARTITION BY aggregation_target, - prop) as max_steps, - step_1_conversion_time , - prop - FROM - (SELECT *, - if(latest_0 <= latest_1 - AND latest_1 <= latest_0 + INTERVAL 14 DAY, 2, 1) AS steps , - if(isNotNull(latest_1) - AND latest_1 <= latest_0 + INTERVAL 14 DAY, dateDiff('second', toDateTime(latest_0), toDateTime(latest_1)), NULL) step_1_conversion_time, - prop - FROM - (SELECT aggregation_target, timestamp, step_0, - latest_0, - step_1, - min(latest_1) over (PARTITION by aggregation_target, - prop - ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1 , - if(has([['test'], ['control'], ['']], prop), prop, ['Other']) as prop - FROM - (SELECT *, - if(notEmpty(arrayFilter(x -> notEmpty(x), prop_vals)), prop_vals, ['']) as prop - FROM - (SELECT e.timestamp as timestamp, - replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$account_id'), ''), 'null'), '^"|"$', '') as aggregation_target, - pdi.person_id as person_id , - if(event = '$pageview', 1, 0) as step_0, - if(step_0 = 1, timestamp, null) as latest_0, - if(event = '$pageleave', 1, 0) as step_1, - if(step_1 = 1, timestamp, null) as latest_1, - array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS prop_basic, - prop_basic as prop, - argMinIf(prop, timestamp, notEmpty(arrayFilter(x -> notEmpty(x), prop))) over (PARTITION by aggregation_target) as prop_vals - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) AS pdi ON e.distinct_id = pdi.distinct_id - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (step_0 = 1 - OR step_1 = 1) ))) - WHERE step_0 = 1 )) - GROUP BY aggregation_target, - steps, - prop - HAVING steps = max_steps) - GROUP BY prop - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_with_hogql_aggregation.2 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_with_hogql_aggregation.3 - ' - /* celery:posthog.celery.sync_insight_caching_state */ - SELECT team_id, - date_diff('second', max(timestamp), now()) AS age - FROM events - WHERE timestamp > date_sub(DAY, 3, now()) - AND timestamp < now() - GROUP BY team_id - ORDER BY age; - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_with_hogql_aggregation.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '')) AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event IN ['$pageleave', '$pageview'] - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_with_hogql_aggregation.5 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -804,10 +349,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, count(*) as count @@ -821,10 +366,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -867,10 +412,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, count(*) as count @@ -884,159 +429,11 @@ GROUP BY value ORDER BY count DESC, value DESC LIMIT 26 - OFFSET 0 - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.3 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 00:00:00', 'UTC')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['control', 'test'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(DISTINCT person_id) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) as day_start, - breakdown_value - FROM - (SELECT person_id, - min(timestamp) as timestamp, - breakdown_value - FROM - (SELECT pdi.person_id as person_id, timestamp, transform(ifNull(nullIf(replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', ''), ''), '$$_posthog_breakdown_null_$$'), (['control', 'test']), (['control', 'test']), '$$_posthog_breakdown_other_$$') as breakdown_value - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) as pdi ON events.distinct_id = pdi.distinct_id - WHERE e.team_id = 2 - AND event = '$feature_flag_called' - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') ) - GROUP BY person_id, - breakdown_value) AS pdi - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$pageview' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 00:00:00', 'UTC')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['test', 'control'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(*) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) as day_start, - replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') as breakdown_value - FROM events e - WHERE e.team_id = 2 - AND event = '$pageview' - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') in (['test', 'control']) - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.6 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$feature_flag_called' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.7 - ' + OFFSET 0 + ''' +# --- +# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results.3 + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1070,7 +467,7 @@ min(timestamp) as timestamp, breakdown_value FROM - (SELECT pdi.person_id as person_id, timestamp, replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') as breakdown_value + (SELECT pdi.person_id as person_id, timestamp, transform(ifNull(nullIf(replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', ''), ''), '$$_posthog_breakdown_null_$$'), (['control', 'test']), (['control', 'test']), '$$_posthog_breakdown_other_$$') as breakdown_value FROM events e INNER JOIN (SELECT distinct_id, @@ -1084,8 +481,7 @@ AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') in (['control', 'test']) ) + AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') ) GROUP BY person_id, breakdown_value) AS pdi GROUP BY day_start, @@ -1096,10 +492,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, count(*) as count @@ -1113,10 +509,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1159,10 +555,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, count(*) as count @@ -1177,114 +573,19 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.3 - ' - /* user_id:0 request:_snapshot_ */ - SELECT [now()] AS date, - [0] AS total, - '' AS breakdown_value - LIMIT 0 - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$pageview1' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (has(['control', 'test_1', 'test_2', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 00:00:00', 'UTC')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['control', 'test_1', 'test_2'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(*) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) as day_start, - replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') as breakdown_value - FROM events e - WHERE e.team_id = 2 - AND event = '$pageview1' - AND (has(['control', 'test_1', 'test_2', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') in (['control', 'test_1', 'test_2']) - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.6 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$feature_flag_called' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (has(['control', 'test_1', 'test_2', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants.7 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT [now()] AS date, [0] AS total, '' AS breakdown_value LIMIT 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, count(*) as count @@ -1298,10 +599,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1344,10 +645,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, count(*) as count @@ -1362,10 +663,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1424,159 +725,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$pageview' - AND toTimeZone(timestamp, 'US/Pacific') >= toDateTime('2020-01-01 02:10:00', 'US/Pacific') - AND toTimeZone(timestamp, 'US/Pacific') <= toDateTime('2020-01-06 07:00:00', 'US/Pacific') - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 07:00:00', 'US/Pacific')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 02:10:00', 'US/Pacific')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['test', 'control'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(*) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'US/Pacific')) as day_start, - replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') as breakdown_value - FROM events e - WHERE e.team_id = 2 - AND event = '$pageview' - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - AND toTimeZone(timestamp, 'US/Pacific') >= toDateTime('2020-01-01 02:10:00', 'US/Pacific') - AND toTimeZone(timestamp, 'US/Pacific') <= toDateTime('2020-01-06 07:00:00', 'US/Pacific') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') in (['test', 'control']) - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.6 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$feature_flag_called' - AND toTimeZone(timestamp, 'US/Pacific') >= toDateTime('2020-01-01 02:10:00', 'US/Pacific') - AND toTimeZone(timestamp, 'US/Pacific') <= toDateTime('2020-01-06 07:00:00', 'US/Pacific') - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone.7 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 07:00:00', 'US/Pacific')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 02:10:00', 'US/Pacific')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['control', 'test'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(DISTINCT person_id) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'US/Pacific')) as day_start, - breakdown_value - FROM - (SELECT person_id, - min(timestamp) as timestamp, - breakdown_value - FROM - (SELECT pdi.person_id as person_id, timestamp, replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') as breakdown_value - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) as pdi ON events.distinct_id = pdi.distinct_id - WHERE e.team_id = 2 - AND event = '$feature_flag_called' - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - AND toTimeZone(timestamp, 'US/Pacific') >= toDateTime('2020-01-01 02:10:00', 'US/Pacific') - AND toTimeZone(timestamp, 'US/Pacific') <= toDateTime('2020-01-06 07:00:00', 'US/Pacific') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') in (['control', 'test']) ) - GROUP BY person_id, - breakdown_value) AS pdi - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, count(*) as count @@ -1591,10 +743,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1638,10 +790,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, count(*) as count @@ -1656,10 +808,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1718,158 +870,5 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.4 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$pageview' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND ((has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - AND (ifNull(ilike(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, 'hogql'), ''), 'null'), '^"|"$', ''), 'true'), isNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, 'hogql'), ''), 'null'), '^"|"$', '')) - and isNull('true')))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.5 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 00:00:00', 'UTC')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['test', 'control'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(*) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) as day_start, - replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') as breakdown_value - FROM events e - WHERE e.team_id = 2 - AND event = '$pageview' - AND ((has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature/a-b-test'), '^"|"$', ''))) - AND (ifNull(ilike(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, 'hogql'), ''), 'null'), '^"|"$', ''), 'true'), isNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, 'hogql'), ''), 'null'), '^"|"$', '')) - and isNull('true')))) - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature/a-b-test'), '^"|"$', '') in (['test', 'control']) - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.6 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(value) - FROM - (SELECT replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') AS value, - count(*) as count - FROM events e - WHERE team_id = 2 - AND event = '$feature_flag_called' - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - GROUP BY value - ORDER BY count DESC, value DESC - LIMIT 25 - OFFSET 0) - ' ---- -# name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_with_hogql_filter.7 - ' - /* user_id:0 request:_snapshot_ */ - SELECT groupArray(day_start) as date, - groupArray(count) AS total, - breakdown_value - FROM - (SELECT SUM(total) as count, - day_start, - breakdown_value - FROM - (SELECT * - FROM - (SELECT toUInt16(0) AS total, - ticks.day_start as day_start, - breakdown_value - FROM - (SELECT toStartOfDay(toDateTime('2020-01-06 00:00:00', 'UTC')) - toIntervalDay(number) as day_start - FROM numbers(6) - UNION ALL SELECT toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')) as day_start) as ticks - CROSS JOIN - (SELECT breakdown_value - FROM - (SELECT ['control', 'test'] as breakdown_value) ARRAY - JOIN breakdown_value) as sec - ORDER BY breakdown_value, - day_start - UNION ALL SELECT count(DISTINCT person_id) as total, - toStartOfDay(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) as day_start, - breakdown_value - FROM - (SELECT person_id, - min(timestamp) as timestamp, - breakdown_value - FROM - (SELECT pdi.person_id as person_id, timestamp, replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') as breakdown_value - FROM events e - INNER JOIN - (SELECT distinct_id, - argMax(person_id, version) as person_id - FROM person_distinct_id2 - WHERE team_id = 2 - GROUP BY distinct_id - HAVING argMax(is_deleted, version) = 0) as pdi ON events.distinct_id = pdi.distinct_id - WHERE e.team_id = 2 - AND event = '$feature_flag_called' - AND (has(['control', 'test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag_response'), '^"|"$', '')) - AND has(['a-b-test'], replaceRegexpAll(JSONExtractRaw(e.properties, '$feature_flag'), '^"|"$', ''))) - AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-06 00:00:00', 'UTC') - AND replaceRegexpAll(JSONExtractRaw(properties, '$feature_flag_response'), '^"|"$', '') in (['control', 'test']) ) - GROUP BY person_id, - breakdown_value) AS pdi - GROUP BY day_start, - breakdown_value)) - GROUP BY day_start, - breakdown_value - ORDER BY breakdown_value, - day_start) - GROUP BY breakdown_value - ORDER BY breakdown_value - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_groups.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_groups.ambr index b37b7d7786541..6518393db2058 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_groups.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_groups.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestGroupsApi.test_related_groups - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT pdi.person_id FROM events e @@ -14,10 +15,10 @@ AND timestamp > '2021-02-09T00:00:00.000000' AND timestamp < '2021-05-10T00:00:00.000000' AND $group_0 = '0::0' - ' ---- + ''' +# --- # name: ClickhouseTestGroupsApi.test_related_groups.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT $group_1 AS group_key FROM events e @@ -33,10 +34,10 @@ AND group_key != '' AND $group_0 = '0::0' ORDER BY group_key - ' ---- + ''' +# --- # name: ClickhouseTestGroupsApi.test_related_groups_person - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT $group_0 AS group_key FROM events e @@ -59,10 +60,10 @@ AND group_key != '' AND pdi.person_id = '01795392-cc00-0003-7dc7-67a694604d72' ORDER BY group_key - ' ---- + ''' +# --- # name: ClickhouseTestGroupsApi.test_related_groups_person.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT $group_1 AS group_key FROM events e @@ -85,5 +86,5 @@ AND group_key != '' AND pdi.person_id = '01795392-cc00-0003-7dc7-67a694604d72' ORDER BY group_key - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_retention.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_retention.ambr index 1c64b1d72a4b4..4a0e871b022e5 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_retention.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_retention.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: RetentionTests.test_retention_aggregation_by_distinct_id_and_retrieve_people - ' + ''' /* user_id:0 request:_snapshot_ */ WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -55,10 +56,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: RetentionTests.test_retention_aggregation_by_distinct_id_and_retrieve_people.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -127,10 +128,10 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: RetentionTests.test_retention_aggregation_by_distinct_id_and_retrieve_people.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -199,10 +200,10 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: RetentionTests.test_retention_test_account_filters - ' + ''' /* user_id:0 request:_snapshot_ */ WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -296,10 +297,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: RetentionTests.test_retention_test_account_filters.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -392,10 +393,10 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: RetentionTests.test_retention_test_account_filters.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT actor_id, groupArray(actor_activity.intervals_from_base) AS appearances @@ -488,5 +489,5 @@ ORDER BY length(appearances) DESC, actor_id LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_stickiness.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_stickiness.ambr index edf95a37ab4b7..97d88c989a80d 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_stickiness.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_stickiness.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseStickiness.test_aggregate_by_groups - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -23,10 +24,10 @@ WHERE num_intervals <= 8 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_aggregate_by_groups.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -50,10 +51,10 @@ WHERE num_intervals = 1 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_aggregate_by_groups.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -77,10 +78,10 @@ WHERE num_intervals = 2 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_aggregate_by_groups.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -104,10 +105,10 @@ WHERE num_intervals = 3 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_compare - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -130,10 +131,10 @@ WHERE num_intervals <= 9 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_compare.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -156,10 +157,10 @@ WHERE num_intervals <= 9 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_filter_by_group_properties - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -190,10 +191,10 @@ WHERE num_intervals <= 8 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_filter_by_group_properties.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -223,10 +224,10 @@ WHERE num_intervals = 1 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_filter_by_group_properties.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -256,10 +257,10 @@ WHERE num_intervals = 2 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_filter_by_group_properties.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -289,10 +290,10 @@ WHERE num_intervals = 3 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_all_time - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT timestamp from events @@ -300,10 +301,10 @@ AND timestamp > '2015-01-01' order by timestamp limit 1 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_all_time.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -326,10 +327,10 @@ WHERE num_intervals <= 9 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_all_time_with_sampling - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT timestamp from events @@ -337,10 +338,10 @@ AND timestamp > '2015-01-01' order by timestamp limit 1 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_all_time_with_sampling.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -363,10 +364,10 @@ WHERE num_intervals <= 9 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_hours - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -389,10 +390,10 @@ WHERE num_intervals <= 10 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_people_endpoint - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -414,10 +415,10 @@ WHERE num_intervals = 1 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_people_paginated - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -439,10 +440,10 @@ WHERE num_intervals = 1 LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_people_paginated.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT aggregation_target AS actor_id FROM @@ -464,10 +465,10 @@ WHERE num_intervals = 1 LIMIT 100 OFFSET 100 - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_with_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -478,10 +479,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'person1', -1, 0) - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_stickiness_with_person_on_events_v2.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countDistinct(aggregation_target), num_intervals @@ -504,10 +505,10 @@ WHERE num_intervals <= 9 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_timezones - ' + ''' SELECT countDistinct(aggregation_target), num_intervals @@ -530,10 +531,10 @@ WHERE num_intervals <= 16 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- # name: TestClickhouseStickiness.test_timezones.1 - ' + ''' SELECT countDistinct(aggregation_target), num_intervals @@ -556,5 +557,5 @@ WHERE num_intervals <= 16 GROUP BY num_intervals ORDER BY num_intervals - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_trends.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_trends.ambr index 5bdb57e5693ef..ab2848e1dbb01 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_trends.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_trends.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestTrends.test_insight_trends_aggregate - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(*) AS total FROM events e @@ -7,10 +8,10 @@ AND event = '$pageview' AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2012-01-01 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2012-01-15 23:59:59', 'UTC') - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_aggregate.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -36,10 +37,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_basic - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -69,10 +70,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_basic.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -98,10 +99,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_clean_arg - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -125,10 +126,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_clean_arg.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -156,10 +157,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -182,10 +183,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -211,10 +212,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.10 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(*) as count @@ -227,10 +228,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.11 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -287,10 +288,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.12 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -318,10 +319,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -355,10 +356,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -384,10 +385,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(*) as count @@ -400,10 +401,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.5 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -445,10 +446,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.6 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -476,10 +477,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.7 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(DISTINCT pdi.person_id) as count @@ -513,10 +514,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.8 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -602,10 +603,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: ClickhouseTestTrends.test_insight_trends_cumulative.9 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -647,10 +648,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendsCaching.test_insight_trends_merging - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -680,10 +681,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrendsCaching.test_insight_trends_merging.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -713,10 +714,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrendsCaching.test_insight_trends_merging_skipped_interval - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -746,10 +747,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrendsCaching.test_insight_trends_merging_skipped_interval.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -779,10 +780,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrendsGroups.test_aggregating_by_group - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -807,10 +808,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrendsGroups.test_aggregating_by_group.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT $group_0 AS actor_id, count() AS actor_value @@ -830,10 +831,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestTrendsGroups.test_aggregating_by_session - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -856,10 +857,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: ClickhouseTestTrendsGroups.test_aggregating_by_session.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -886,5 +887,5 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel.ambr b/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel.ambr index 52551e0ef91ec..d608a84d783d0 100644 --- a/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel.ambr +++ b/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestFunnelGroups.test_funnel_aggregation_with_groups - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -46,10 +47,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_aggregation_with_groups.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT aggregation_target AS actor_id FROM @@ -98,10 +99,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_group_aggregation_with_groups_entity_filtering - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -149,10 +150,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_group_aggregation_with_groups_entity_filtering.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT aggregation_target AS actor_id FROM @@ -202,10 +203,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_with_groups_entity_filtering - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -260,10 +261,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_with_groups_entity_filtering.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT aggregation_target AS actor_id FROM @@ -319,10 +320,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_with_groups_global_filtering - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -384,10 +385,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: ClickhouseTestFunnelGroups.test_funnel_with_groups_global_filtering.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT aggregation_target AS actor_id FROM @@ -450,5 +451,5 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_person.ambr b/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_person.ambr index 651c72d8be2ef..af0e795b1c15b 100644 --- a/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_person.ambr +++ b/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_person.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelPerson.test_funnel_actors_with_groups_search - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT aggregation_target AS actor_id FROM @@ -104,5 +105,5 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_unordered.ambr b/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_unordered.ambr index a0a7b68edb7e5..91d83f0593b2c 100644 --- a/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_unordered.ambr +++ b/ee/clickhouse/views/test/funnel/__snapshots__/test_clickhouse_funnel_unordered.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestUnorderedFunnelGroups.test_unordered_funnel_with_groups - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -75,10 +76,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: ClickhouseTestUnorderedFunnelGroups.test_unordered_funnel_with_groups.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT aggregation_target AS actor_id FROM @@ -157,5 +158,5 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/mypy-baseline.txt b/mypy-baseline.txt new file mode 100644 index 0000000000000..45ca3fd2e3b5d --- /dev/null +++ b/mypy-baseline.txt @@ -0,0 +1,1229 @@ +posthog/temporal/common/utils.py:0: error: Argument 1 to "abstractclassmethod" has incompatible type "Callable[[HeartbeatDetails, Any], Any]"; expected "Callable[[type[Never], Any], Any]" [arg-type] +posthog/temporal/common/utils.py:0: note: This is likely because "from_activity" has named arguments: "cls". Consider marking them positional-only +posthog/temporal/common/utils.py:0: error: Argument 2 to "__get__" of "classmethod" has incompatible type "type[HeartbeatType]"; expected "type[Never]" [arg-type] +posthog/hogql/database/argmax.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/argmax.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/argmax.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/argmax.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/numbers.py:0: error: Incompatible types in assignment (expression has type "dict[str, IntegerDatabaseField]", variable has type "dict[str, FieldOrTable]") [assignment] +posthog/hogql/database/schema/numbers.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/numbers.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql/ast.py:0: error: Argument "chain" to "FieldTraverserType" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/ast.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/ast.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/ast.py:0: error: Incompatible return value type (got "bool | None", expected "bool") [return-value] +posthog/hogql/visitor.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Type | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Type | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Type | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "RatioExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Constant | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "JoinConstraint | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "JoinExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "JoinExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Incompatible types in assignment (expression has type "FieldAliasType", variable has type "BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType") [assignment] +posthog/hogql/visitor.py:0: error: Incompatible types in assignment (expression has type "Type", variable has type "BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType") [assignment] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "WindowFrameExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "WindowFrameExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "WindowExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Constant | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "RatioExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "JoinExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "JoinConstraint | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "SampleExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "JoinExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument "select" to "SelectQuery" has incompatible type "list[Expr] | None"; expected "list[Expr]" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "Expr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "WindowFrameExpr | None"; expected "AST" [arg-type] +posthog/hogql/visitor.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "WindowFrameExpr | None"; expected "AST" [arg-type] +posthog/hogql/database/schema/persons_pdi.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/person_overrides.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/log_entries.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/schema/log_entries.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/log_entries.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/schema/log_entries.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/log_entries.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/schema/log_entries.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/log_entries.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/schema/log_entries.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/groups.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/groups.py:0: error: Incompatible types in assignment (expression has type "dict[str, DatabaseField]", variable has type "dict[str, FieldOrTable]") [assignment] +posthog/hogql/database/schema/groups.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/groups.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql/database/schema/groups.py:0: error: Incompatible types in assignment (expression has type "dict[str, DatabaseField]", variable has type "dict[str, FieldOrTable]") [assignment] +posthog/hogql/database/schema/groups.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/groups.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql/resolver_utils.py:0: error: Argument 1 to "lookup_field_by_name" has incompatible type "SelectQueryType | SelectUnionQueryType"; expected "SelectQueryType" [arg-type] +posthog/hogql/database/schema/persons.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "settings" [union-attr] +posthog/hogql/database/schema/persons.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql/database/schema/persons.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/schema/persons.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/persons.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/schema/persons.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/parser.py:0: error: Key expression in dictionary comprehension has incompatible type "str"; expected type "Literal['expr', 'order_expr', 'select']" [misc] +posthog/hogql/parser.py:0: error: Missing named argument "type" for "SelectUnionQuery" [call-arg] +posthog/hogql/parser.py:0: error: Item "None" of "list[Expr] | None" has no attribute "__iter__" (not iterable) [union-attr] +posthog/hogql/parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/parser.py:0: error: "None" has no attribute "text" [attr-defined] +posthog/hogql/parser.py:0: error: "None" has no attribute "text" [attr-defined] +posthog/hogql/parser.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/parser.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/parser.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/person_distinct_ids.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/cohort_people.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/schema/cohort_people.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/cohort_people.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/schema/cohort_people.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/insights/trends/display.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/insights/trends/display.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/session_replay_events.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/schema/session_replay_events.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/session_replay_events.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/schema/session_replay_events.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/database/schema/session_replay_events.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/database/schema/session_replay_events.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/database/schema/session_replay_events.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/event_sessions.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/database/schema/event_sessions.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/database/schema/event_sessions.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/database/schema/event_sessions.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/plugins/utils.py:0: error: Subclass of "str" and "bytes" cannot exist: would have incompatible method signatures [unreachable] +posthog/plugins/utils.py:0: error: Statement is unreachable [unreachable] +posthog/plugins/utils.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/models/filters/base_filter.py:0: error: "HogQLContext" has no attribute "person_on_events_mode" [attr-defined] +posthog/models/filters/base_filter.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql/database/database.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/database/database.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/database/database.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/database/database.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/database/database.py:0: error: Incompatible types in assignment (expression has type "DataWarehouseTable", variable has type "Table") [assignment] +posthog/hogql/database/database.py:0: error: "Table" has no attribute "name" [attr-defined] +posthog/hogql/database/database.py:0: error: "Table" has no attribute "hogql_definition" [attr-defined] +posthog/hogql/database/database.py:0: error: Incompatible types in assignment (expression has type "DataWarehouseSavedQuery", variable has type "Table") [assignment] +posthog/hogql/database/database.py:0: error: "Table" has no attribute "name" [attr-defined] +posthog/hogql/database/database.py:0: error: "Table" has no attribute "hogql_definition" [attr-defined] +posthog/hogql/database/database.py:0: error: Incompatible types (expression has type "Literal['view', 'lazy_table']", TypedDict item "type" has type "Literal['integer', 'float', 'string', 'datetime', 'date', 'boolean', 'array', 'json', 'lazy_table', 'virtual_table', 'field_traverser']") [typeddict-item] +posthog/warehouse/models/datawarehouse_saved_query.py:0: error: Argument 1 to "create_hogql_database" has incompatible type "int | None"; expected "int" [arg-type] +posthog/warehouse/models/datawarehouse_saved_query.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment] +posthog/models/user.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/models/person/person.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/warehouse/models/view_link.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/models/feature_flag/flag_matching.py:0: error: Statement is unreachable [unreachable] +posthog/queries/query_date_range.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/queries/query_date_range.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/queries/query_date_range.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/queries/query_date_range.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/queries/query_date_range.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/queries/actor_base_query.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/utils/query_date_range.py:0: error: Incompatible return value type (got "str", expected "Literal['hour', 'day', 'week', 'month']") [return-value] +posthog/hogql_queries/utils/query_date_range.py:0: error: Item "None" of "dict[str, int] | None" has no attribute "get" [union-attr] +posthog/hogql_queries/utils/query_date_range.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/utils/query_date_range.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql_queries/utils/query_date_range.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/utils/query_date_range.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/utils/query_date_range.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql_queries/utils/query_date_range.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/utils/query_date_range.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/utils/query_date_range.py:0: error: Unsupported operand types for * ("object" and "int") [operator] +posthog/hogql_queries/utils/query_date_range.py:0: error: Incompatible return value type (got "int", expected "timedelta") [return-value] +posthog/hogql_queries/utils/query_date_range.py:0: error: Item "None" of "IntervalType | None" has no attribute "name" [union-attr] +posthog/hogql_queries/utils/query_date_range.py:0: error: Item "None" of "IntervalType | None" has no attribute "name" [union-attr] +posthog/hogql_queries/utils/query_date_range.py:0: error: Incompatible default for argument "source" (default has type "None", argument has type "Expr") [assignment] +posthog/hogql_queries/utils/query_date_range.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql_queries/utils/query_date_range.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql_queries/utils/query_date_range.py:0: error: Item "None" of "IntervalType | None" has no attribute "name" [union-attr] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[Any], TypeGuard[bool]]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[Any], TypeGuard[Any]]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "filter" has incompatible type "Any | None"; expected "Iterable[Any]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "map" has incompatible type "Any | None"; expected "Iterable[Any]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "map" has incompatible type "Any | None"; expected "Iterable[Any]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Dict entry 4 has incompatible type "str": "Literal[0, 1, 2, 3, 4] | None"; expected "str": "str | None" [dict-item] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument "id" to "ActionsNode" has incompatible type "int | str | None"; expected "float" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "ActionsNode" has incompatible type "**dict[str, str | None]"; expected "list[EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingDurationFilter | GroupPropertyFilter | FeaturePropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter] | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "ActionsNode" has incompatible type "**dict[str, str | None]"; expected "Literal['ActionsNode']" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "ActionsNode" has incompatible type "**dict[str, str | None]"; expected "Literal['unique_group', 'hogql'] | BaseMathType | PropertyMathType | CountPerActorMathType | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "ActionsNode" has incompatible type "**dict[str, str | None]"; expected "MathGroupTypeIndex | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "ActionsNode" has incompatible type "**dict[str, str | None]"; expected "dict[str, Any] | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument "event" to "EventsNode" has incompatible type "int | str | None"; expected "str | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "list[EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingDurationFilter | GroupPropertyFilter | FeaturePropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter] | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "Literal['EventsNode']" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "float | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "Literal['unique_group', 'hogql'] | BaseMathType | PropertyMathType | CountPerActorMathType | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "MathGroupTypeIndex | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "list[str] | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 2 to "EventsNode" has incompatible type "**dict[str, str | None]"; expected "Response | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Item "None" of "Any | None" has no attribute "__iter__" (not iterable) [union-attr] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "float" has incompatible type "Any | None"; expected "str | Buffer | SupportsFloat | SupportsIndex" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Value of type "Any | None" is not indexable [index] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Value of type "Any | None" is not indexable [index] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "clean_display" has incompatible type "Any | None"; expected "str" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Dict entry 0 has incompatible type "str": "FunnelsFilter"; expected "str": "TrendsFilter" [dict-item] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Dict entry 0 has incompatible type "str": "RetentionFilter"; expected "str": "TrendsFilter" [dict-item] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "to_base_entity_dict" has incompatible type "Any | None"; expected "dict[Any, Any]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Argument 1 to "to_base_entity_dict" has incompatible type "Any | None"; expected "dict[Any, Any]" [arg-type] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Dict entry 0 has incompatible type "str": "PathsFilter"; expected "str": "TrendsFilter" [dict-item] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Dict entry 0 has incompatible type "str": "LifecycleFilter"; expected "str": "TrendsFilter" [dict-item] +posthog/hogql_queries/legacy_compatibility/filter_to_query.py:0: error: Dict entry 0 has incompatible type "str": "StickinessFilter"; expected "str": "TrendsFilter" [dict-item] +posthog/hogql_queries/legacy_compatibility/feature_flag.py:0: error: Item "AnonymousUser" of "User | AnonymousUser" has no attribute "email" [union-attr] +posthog/hogql/transforms/property_types.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] +posthog/hogql/transforms/property_types.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/transforms/property_types.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/transforms/property_types.py:0: error: Incompatible type for lookup 'team_id': (got "int | None", expected "str | int") [misc] +posthog/hogql/transforms/property_types.py:0: error: Incompatible type for lookup 'team_id': (got "int | None", expected "str | int") [misc] +posthog/hogql/transforms/property_types.py:0: error: Argument 1 to "add" of "set" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Argument 1 to "add" of "set" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Argument 1 to "add" of "set" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Argument 3 to "_convert_string_property_to_type" of "PropertySwapper" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Argument 3 to "_convert_string_property_to_type" of "PropertySwapper" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Argument 3 to "_convert_string_property_to_type" of "PropertySwapper" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Argument 3 to "_convert_string_property_to_type" of "PropertySwapper" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Missing return statement [return] +posthog/hogql/transforms/property_types.py:0: error: Non-overlapping equality check (left operand type: "PersonsOnEventsMode | None", right operand type: "Literal[PersonOnEventsMode.DISABLED]") [comparison-overlap] +posthog/hogql/transforms/property_types.py:0: error: Argument 2 to "_get_materialized_column" of "PropertySwapper" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/transforms/property_types.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/property_types.py:0: error: Argument 2 to "_get_materialized_column" of "PropertySwapper" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/modifiers.py:0: error: Incompatible types in assignment (expression has type "PersonOnEventsMode", variable has type "PersonsOnEventsMode | None") [assignment] +posthog/hogql/modifiers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "PersonsArgMaxVersion | None") [assignment] +posthog/hogql/modifiers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "InCohortVia | None") [assignment] +posthog/hogql/functions/cohort.py:0: error: Argument 1 to "escape_clickhouse_string" has incompatible type "str | None"; expected "float | int | str | list[Any] | tuple[Any, ...] | date | datetime | UUID | UUIDT" [arg-type] +posthog/hogql/functions/cohort.py:0: error: Argument 1 to "escape_clickhouse_string" has incompatible type "str | None"; expected "float | int | str | list[Any] | tuple[Any, ...] | date | datetime | UUID | UUIDT" [arg-type] +posthog/hogql/functions/cohort.py:0: error: Incompatible types in assignment (expression has type "ValuesQuerySet[Cohort, tuple[int, bool | None]]", variable has type "ValuesQuerySet[Cohort, tuple[int, bool | None, str | None]]") [assignment] +posthog/api/utils.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/utils.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/billing/quota_limiting.py:0: error: List comprehension has incompatible type List[int]; expected List[str] [misc] +ee/billing/quota_limiting.py:0: error: Unsupported target for indexed assignment ("object") [index] +ee/billing/quota_limiting.py:0: error: "object" has no attribute "get" [attr-defined] +ee/billing/quota_limiting.py:0: error: Unsupported target for indexed assignment ("object") [index] +ee/billing/quota_limiting.py:0: error: Unsupported target for indexed assignment ("object") [index] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/permissions.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: List item 1 has incompatible type "str | None"; expected "str" [list-item] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: List item 1 has incompatible type "str | None"; expected "str" [list-item] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Argument "chain" to "Field" has incompatible type "list[str | int] | list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "None" of "list[Expr] | None" has no attribute "append" [union-attr] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/aggregation_operations.py:0: error: Item "None" of "list[Expr] | Any | None" has no attribute "append" [union-attr] +posthog/batch_exports/service.py:0: error: Missing positional argument "end_at" in call to "backfill_export" [call-arg] +ee/billing/billing_manager.py:0: error: TypedDict "CustomerInfo" has no key "available_product_features" [typeddict-item] +ee/billing/billing_manager.py:0: note: Did you mean "available_features"? +posthog/hogql/resolver.py:0: error: Argument 1 of "visit" is incompatible with supertype "Visitor"; supertype defines the argument type as "AST" [override] +posthog/hogql/resolver.py:0: note: This violates the Liskov substitution principle +posthog/hogql/resolver.py:0: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides +posthog/hogql/resolver.py:0: error: List comprehension has incompatible type List[SelectQueryType | None]; expected List[SelectQueryType] [misc] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "JoinExpr | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "JoinExpr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Need type annotation for "columns_with_visible_alias" (hint: "columns_with_visible_alias: Dict[, ] = ...") [var-annotated] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Type | None", target has type "Type") [assignment] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Type | None", target has type "Type") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "Expr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "Expr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "Expr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: List comprehension has incompatible type List[Expr]; expected List[OrderExpr] [misc] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "Expr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "Expr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Value expression in dictionary comprehension has incompatible type "Expr"; expected type "WindowExpr" [misc] +posthog/hogql/resolver.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/resolver.py:0: error: Argument 2 to "lookup_cte_by_name" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery | Field | None") [assignment] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "str | int", variable has type "str | None") [assignment] +posthog/hogql/resolver.py:0: error: Item "None" of "Database | None" has no attribute "has_table" [union-attr] +posthog/hogql/resolver.py:0: error: Argument 1 to "has_table" of "Database" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Item "None" of "Database | None" has no attribute "get_table" [union-attr] +posthog/hogql/resolver.py:0: error: Argument 1 to "get_table" of "Database" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "str | int", variable has type "str | None") [assignment] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "JoinExpr") [assignment] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "TableType", variable has type "LazyTableType") [assignment] +posthog/hogql/resolver.py:0: error: Argument "alias" to "TableAliasType" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Argument "table_type" to "TableAliasType" has incompatible type "LazyTableType"; expected "TableType" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "LazyTableType", variable has type "TableAliasType") [assignment] +posthog/hogql/resolver.py:0: error: Invalid index type "str | int" for "dict[str, BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType]"; expected type "str" [index] +posthog/hogql/resolver.py:0: error: Argument 1 to "clone_expr" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "JoinExpr | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "JoinExpr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/resolver.py:0: error: Item "None" of "JoinExpr | None" has no attribute "join_type" [union-attr] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "JoinConstraint | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "JoinConstraint | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SampleExpr | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "SampleExpr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Visitor" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "AST" [arg-type] +posthog/hogql/resolver.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/resolver.py:0: error: Argument "select_query_type" to "SelectQueryAliasType" has incompatible type "Type | Any | None"; expected "SelectQueryType | SelectUnionQueryType" [arg-type] +posthog/hogql/resolver.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Type | Any | None", variable has type "BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "append" of "list" has incompatible type "BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType | None"; expected "SelectQueryType | SelectUnionQueryType" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "JoinExpr | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "JoinExpr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "JoinConstraint | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "JoinConstraint | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SampleExpr | None") [assignment] +posthog/hogql/resolver.py:0: error: Argument 1 to "visit" of "Resolver" has incompatible type "SampleExpr | None"; expected "Expr" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 2 to "convert_hogqlx_tag" has incompatible type "int | None"; expected "int" [arg-type] +posthog/hogql/resolver.py:0: error: Invalid index type "str | int" for "dict[str, BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType]"; expected type "str" [index] +posthog/hogql/resolver.py:0: error: Argument 2 to "lookup_field_by_name" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 2 to "lookup_cte_by_name" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 1 to "get_child" of "Type" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Alias") [assignment] +posthog/hogql/resolver.py:0: error: Argument "alias" to "Alias" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/resolver.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | int]"; expected "Iterable[str]" [arg-type] +posthog/temporal/data_imports/external_data_job.py:0: error: Argument 2 to "DataImportPipeline" has incompatible type "DltSource"; expected "DltResource" [arg-type] +posthog/hogql/transforms/lazy_tables.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] +posthog/hogql/transforms/lazy_tables.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/transforms/lazy_tables.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/transforms/lazy_tables.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] +posthog/hogql/transforms/lazy_tables.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/transforms/lazy_tables.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/transforms/lazy_tables.py:0: error: Argument 1 to "append" of "list" has incompatible type "list[FieldType]"; expected "list[FieldType | PropertyType]" [arg-type] +posthog/hogql/transforms/lazy_tables.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/transforms/lazy_tables.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/transforms/lazy_tables.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/transforms/lazy_tables.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/transforms/lazy_tables.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/lazy_tables.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/transforms/lazy_tables.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/transforms/lazy_tables.py:0: error: Incompatible types in assignment (expression has type "PropertyType | FieldType", variable has type "FieldType") [assignment] +posthog/hogql/transforms/lazy_tables.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/lazy_tables.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/lazy_tables.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/lazy_tables.py:0: error: List item 0 has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [list-item] +posthog/hogql/transforms/lazy_tables.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | None" has no attribute "type" [union-attr] +posthog/hogql/transforms/lazy_tables.py:0: error: List item 0 has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [list-item] +posthog/hogql/transforms/lazy_tables.py:0: error: Incompatible types in assignment (expression has type "BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType | None", target has type "BaseTableType | SelectUnionQueryType | SelectQueryType | SelectQueryAliasType") [assignment] +posthog/hogql/transforms/lazy_tables.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/lazy_tables.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/transforms/in_cohort.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] +posthog/hogql/transforms/in_cohort.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/transforms/in_cohort.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/transforms/in_cohort.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] +posthog/hogql/transforms/in_cohort.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/transforms/in_cohort.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/transforms/in_cohort.py:0: error: Argument 1 to "escape_clickhouse_string" has incompatible type "str | None"; expected "float | int | str | list[Any] | tuple[Any, ...] | date | datetime | UUID | UUIDT" [arg-type] +posthog/hogql/transforms/in_cohort.py:0: error: Argument 1 to "escape_clickhouse_string" has incompatible type "str | None"; expected "float | int | str | list[Any] | tuple[Any, ...] | date | datetime | UUID | UUIDT" [arg-type] +posthog/hogql/transforms/in_cohort.py:0: error: Argument "is_static" to "_add_join_for_cohort" of "InCohortResolver" has incompatible type "bool | None"; expected "bool" [arg-type] +posthog/hogql/transforms/in_cohort.py:0: error: Incompatible types in assignment (expression has type "ValuesQuerySet[Cohort, tuple[int, bool | None]]", variable has type "ValuesQuerySet[Cohort, tuple[int, bool | None, str | None]]") [assignment] +posthog/hogql/transforms/in_cohort.py:0: error: Argument "is_static" to "_add_join_for_cohort" of "InCohortResolver" has incompatible type "bool | None"; expected "bool" [arg-type] +posthog/hogql/transforms/in_cohort.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/transforms/in_cohort.py:0: error: Argument "table" to "JoinExpr" has incompatible type "Expr"; expected "SelectQuery | SelectUnionQuery | Field | None" [arg-type] +posthog/hogql/transforms/in_cohort.py:0: error: List item 0 has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [list-item] +posthog/hogql/transforms/in_cohort.py:0: error: Item "None" of "JoinConstraint | None" has no attribute "expr" [union-attr] +posthog/hogql/transforms/in_cohort.py:0: error: Item "Expr" of "Expr | Any" has no attribute "left" [union-attr] +posthog/hogql/transforms/in_cohort.py:0: error: List item 0 has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [list-item] +posthog/hogql/transforms/in_cohort.py:0: error: Item "None" of "JoinConstraint | None" has no attribute "expr" [union-attr] +posthog/hogql/transforms/in_cohort.py:0: error: Item "Expr" of "Expr | Any" has no attribute "right" [union-attr] +posthog/hogql/transforms/in_cohort.py:0: error: List item 0 has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [list-item] +posthog/hogql/transforms/in_cohort.py:0: error: List item 0 has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [list-item] +posthog/api/organization.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/api/organization.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/hogql/printer.py:0: error: Argument 1 to "create_hogql_database" has incompatible type "int | None"; expected "int" [arg-type] +posthog/hogql/printer.py:0: error: List comprehension has incompatible type List[SelectQueryType | None]; expected List[SelectQueryType] [misc] +posthog/hogql/printer.py:0: error: Argument "stack" to "_Printer" has incompatible type "list[SelectQuery]"; expected "list[AST] | None" [arg-type] +posthog/hogql/printer.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/printer.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/printer.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/printer.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/printer.py:0: error: Need type annotation for "found_aliases" (hint: "found_aliases: Dict[, ] = ...") [var-annotated] +posthog/hogql/printer.py:0: error: Argument 1 to "len" has incompatible type "list[Expr] | None"; expected "Sized" [arg-type] +posthog/hogql/printer.py:0: error: Item "None" of "list[Expr] | None" has no attribute "__iter__" (not iterable) [union-attr] +posthog/hogql/printer.py:0: error: Right operand of "and" is never evaluated [unreachable] +posthog/hogql/printer.py:0: error: Subclass of "TableType" and "LazyTableType" cannot exist: would have incompatible method signatures [unreachable] +posthog/hogql/printer.py:0: error: Argument 1 to "visit" of "_Printer" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "AST" [arg-type] +posthog/hogql/printer.py:0: error: Argument 1 to "visit" of "_Printer" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "AST" [arg-type] +posthog/hogql/printer.py:0: error: Argument 1 to "visit" of "_Printer" has incompatible type "SelectQuery | SelectUnionQuery | Field | None"; expected "AST" [arg-type] +posthog/hogql/printer.py:0: error: Argument 1 to "_print_escaped_string" of "_Printer" has incompatible type "int | float | UUID | date | None"; expected "float | int | str | list[Any] | tuple[Any, ...] | datetime | date" [arg-type] +posthog/hogql/printer.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | int]"; expected "Iterable[str]" [arg-type] +posthog/hogql/printer.py:0: error: Name "args" already defined on line 0 [no-redef] +posthog/hogql/printer.py:0: error: Name "args" already defined on line 0 [no-redef] +posthog/hogql/printer.py:0: error: Argument 1 to "lookup_field_by_name" has incompatible type "SelectQueryType | None"; expected "SelectQueryType" [arg-type] +posthog/hogql/printer.py:0: error: Item "TableType" of "TableType | TableAliasType" has no attribute "alias" [union-attr] +posthog/hogql/printer.py:0: error: Non-overlapping equality check (left operand type: "PersonsOnEventsMode | None", right operand type: "Literal[PersonOnEventsMode.DISABLED]") [comparison-overlap] +posthog/hogql/printer.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/printer.py:0: error: "FieldOrTable" has no attribute "name" [attr-defined] +posthog/hogql/printer.py:0: error: Non-overlapping equality check (left operand type: "PersonsOnEventsMode | None", right operand type: "Literal[PersonOnEventsMode.DISABLED]") [comparison-overlap] +posthog/hogql/printer.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/printer.py:0: error: "FieldOrTable" has no attribute "name" [attr-defined] +posthog/hogql/printer.py:0: error: Argument 2 to "_get_materialized_column" of "_Printer" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/printer.py:0: error: Non-overlapping equality check (left operand type: "PersonsOnEventsMode | None", right operand type: "Literal[PersonOnEventsMode.DISABLED]") [comparison-overlap] +posthog/hogql/printer.py:0: error: Argument 2 to "_get_materialized_column" of "_Printer" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql/printer.py:0: error: Statement is unreachable [unreachable] +posthog/hogql/printer.py:0: error: Argument 1 to "_print_identifier" of "_Printer" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/hogql.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/hogql.py:0: error: Item "None" of "JoinExpr | None" has no attribute "alias" [union-attr] +posthog/api/team.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/models/property/util.py:0: error: Argument 3 to "format_filter_query" has incompatible type "HogQLContext | None"; expected "HogQLContext" [arg-type] +posthog/models/property/util.py:0: error: Argument 3 to "format_cohort_subquery" has incompatible type "HogQLContext | None"; expected "HogQLContext" [arg-type] +posthog/models/property/util.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | int"; expected "str" [arg-type] +posthog/models/property/util.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | int"; expected "str" [arg-type] +posthog/models/property/util.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | int"; expected "str" [arg-type] +posthog/queries/trends/util.py:0: error: Argument 1 to "translate_hogql" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/property.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/property.py:0: error: Non-overlapping equality check (left operand type: "Literal['person', 'cohort', 'element', 'static-cohort', 'precalculated-cohort', 'group', 'recording', 'behavioral', 'session']", right operand type: "Literal['feature']") [comparison-overlap] +posthog/hogql/property.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/property.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/property.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/property.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/property.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql/property.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/property.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql/property.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/property.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/property.py:0: error: Incompatible type for lookup 'pk': (got "str | float", expected "str | int") [misc] +posthog/hogql/filters.py:0: error: Incompatible default for argument "team" (default has type "None", argument has type "Team") [assignment] +posthog/hogql/filters.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/filters.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/filters.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/query.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "str | SelectQuery | SelectUnionQuery") [assignment] +posthog/hogql/query.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment] +posthog/hogql/query.py:0: error: Argument 2 to "replace_filters" has incompatible type "HogQLFilters | None"; expected "HogQLFilters" [arg-type] +posthog/hogql/query.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment] +posthog/hogql/query.py:0: error: Argument 1 to "get_default_limit_for_context" has incompatible type "LimitContext | None"; expected "LimitContext" [arg-type] +posthog/hogql/query.py:0: error: "SelectQuery" has no attribute "select_queries" [attr-defined] +posthog/hogql/query.py:0: error: Subclass of "SelectQuery" and "SelectUnionQuery" cannot exist: would have incompatible method signatures [unreachable] +posthog/hogql/query.py:0: error: Argument "query" to "HogQLQueryResponse" has incompatible type "str | SelectQuery | SelectUnionQuery"; expected "str | None" [arg-type] +posthog/hogql_queries/query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/query_runner.py:0: error: Argument "limit_context" to "TrendsQueryRunner" has incompatible type "LimitContext | None"; expected "bool | None" [arg-type] +posthog/hogql_queries/insights/trends/breakdown_values.py:0: error: Argument "chain" to "Field" has incompatible type "list[str]"; expected "list[str | int]" [arg-type] +posthog/hogql_queries/insights/trends/breakdown_values.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/trends/breakdown_values.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/insights/trends/breakdown_values.py:0: error: Argument "breakdown_type" to "get_properties_chain" has incompatible type "str"; expected "Literal['person', 'session', 'group', 'event']" [arg-type] +posthog/hogql_queries/insights/trends/breakdown_values.py:0: error: Argument "breakdown_field" to "get_properties_chain" has incompatible type "str | float"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown_values.py:0: error: Incompatible types in assignment (expression has type "float | int", variable has type "int") [assignment] +posthog/hogql_queries/insights/trends/breakdown_values.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/trends/breakdown_values.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/queries/event_query/event_query.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/sessions_timeline_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/sessions_timeline_query_runner.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/sessions_timeline_query_runner.py:0: error: Argument "elements" to "EventType" has incompatible type "ReturnDict"; expected "list[ElementType]" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_histogram_bin_count" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "parse_expr" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "int" has incompatible type "str | float | list[str | float] | Any | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "parse_expr" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "int" has incompatible type "str | float | list[str | float] | Any | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "parse_expr" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "exprs" to "Or" has incompatible type "list[CompareOperation]"; expected "list[Expr]" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/trends/breakdown.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Incompatible types in assignment (expression has type "float", variable has type "int") [assignment] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Incompatible types in assignment (expression has type "float", variable has type "int") [assignment] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "event_name" to "BreakdownValues" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "breakdown_field" to "BreakdownValues" has incompatible type "str | float | list[str | float] | Any | None"; expected "str | float" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "breakdown_type" to "BreakdownValues" has incompatible type "BreakdownType | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_histogram_bin_count" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_group_type_index" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_hide_other_aggregation" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_limit" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Unsupported operand types for + ("str" and "float") [operator] +posthog/hogql_queries/insights/trends/breakdown.py:0: note: Left operand is of type "str | int" +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Incompatible return value type (got "list[tuple[str | int, Any | float | str | int]]", expected "list[tuple[float, float]]") [return-value] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "breakdown_type" to "get_properties_chain" has incompatible type "BreakdownType | Any | None"; expected "Literal['person', 'session', 'group', 'event']" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "breakdown_field" to "get_properties_chain" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_group_type_index" [union-attr] +posthog/hogql_queries/hogql_query_runner.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/hogql_query_runner.py:0: error: Argument "placeholders" to "parse_select" has incompatible type "dict[str, Constant] | None"; expected "dict[str, Expr] | None" [arg-type] +posthog/hogql_queries/hogql_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment] +posthog/hogql_queries/hogql_query_runner.py:0: error: Incompatible return value type (got "SelectQuery | SelectUnionQuery", expected "SelectQuery") [return-value] +posthog/hogql_queries/events_query_runner.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/events_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/events_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/events_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/events_query_runner.py:0: error: Argument "order_by" to "SelectQuery" has incompatible type "list[Expr]"; expected "list[OrderExpr] | None" [arg-type] +posthog/hogql_queries/events_query_runner.py:0: error: Argument "types" to "EventsQueryResponse" has incompatible type "list[str] | None"; expected "list[str]" [arg-type] +posthog/hogql_queries/events_query_runner.py:0: error: Argument "hogql" to "EventsQueryResponse" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql_queries/actor_strategies.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql_queries/actor_strategies.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/metadata.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment] +posthog/queries/breakdown_props.py:0: error: Argument 1 to "translate_hogql" has incompatible type "str | int"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Missing named argument "type" for "SelectUnionQuery" [call-arg] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Incompatible types in assignment (expression has type "SelectUnionQuery", variable has type "SelectQuery") [assignment] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Item "None" of "list[Expr] | None" has no attribute "append" [union-attr] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Item "None" of "list[Expr] | None" has no attribute "append" [union-attr] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Item "None" of "list[Expr] | None" has no attribute "append" [union-attr] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Missing named argument "type" for "SelectUnionQuery" [call-arg] +posthog/hogql_queries/insights/trends/query_builder.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/queries/funnels/base.py:0: error: "HogQLContext" has no attribute "person_on_events_mode" [attr-defined] +posthog/queries/funnels/base.py:0: error: Argument 1 to "translate_hogql" has incompatible type "str | int"; expected "str" [arg-type] +ee/clickhouse/queries/funnels/funnel_correlation.py:0: error: Statement is unreachable [unreachable] +posthog/caching/calculate_results.py:0: error: Argument 3 to "process_query" has incompatible type "bool"; expected "LimitContext | None" [arg-type] +posthog/api/person.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/person.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/person.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/web_analytics/web_analytics_query_runner.py:0: error: Argument 1 to "append" of "list" has incompatible type "EventPropertyFilter"; expected "Expr" [arg-type] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Argument "limit_context" to "__init__" of "QueryRunner" has incompatible type "bool | None"; expected "LimitContext | None" [arg-type] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Return type "list[SelectQuery]" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Incompatible return value type (got "list[SelectQuery | SelectUnionQuery]", expected "list[SelectQuery]") [return-value] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Missing named argument "type" for "SelectUnionQuery" [call-arg] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Need type annotation for "timings" (hint: "timings: List[] = ...") [var-annotated] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Argument 1 to "extend" of "list" has incompatible type "list[QueryTiming] | None"; expected "Iterable[Any]" [arg-type] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: List item 0 has incompatible type "str | float | None"; expected "str | float" [list-item] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Argument 1 to "FormulaAST" has incompatible type "map[Any]"; expected "list[list[float]]" [arg-type] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Argument 1 to "FormulaAST" has incompatible type "map[Any]"; expected "list[list[float]]" [arg-type] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Argument 1 to "_event_property" of "TrendsQueryRunner" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_group_type_index" [union-attr] +posthog/hogql_queries/insights/trends/trends_query_runner.py:0: error: Argument 3 to "_event_property" of "TrendsQueryRunner" has incompatible type "float | Any | None"; expected "int | None" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str]"; expected "Kind | None" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str]"; expected "int | None" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str]"; expected "EntityType | None" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Call") [assignment] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Incompatible types in assignment (expression has type "Call", variable has type "Field") [assignment] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument "select" to "SelectQuery" has incompatible type "list[Alias]"; expected "list[Expr]" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/retention_query_runner.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument "group_by" to "SelectQuery" has incompatible type "list[Field] | None"; expected "list[Expr] | None" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Item "None" of "JoinExpr | None" has no attribute "sample" [union-attr] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Incompatible return value type (got "SelectQuery | SelectUnionQuery", expected "SelectQuery") [return-value] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Return type "SelectQuery | SelectUnionQuery" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument 2 to "parse_select" has incompatible type "dict[str, SelectQuery]"; expected "dict[str, Expr] | None" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/retention_query_runner.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Item "None" of "list[Any] | None" has no attribute "__iter__" (not iterable) [union-attr] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Argument "results" to "RetentionQueryResponse" has incompatible type "list[dict[str, object]]"; expected "list[RetentionResult]" [arg-type] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Unsupported operand types for - ("int" and "None") [operator] +posthog/hogql_queries/insights/retention_query_runner.py:0: note: Right operand is of type "int | None" +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/retention_query_runner.py:0: error: Incompatible return value type (got "SelectQuery | SelectUnionQuery", expected "SelectQuery") [return-value] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Return type "SelectQuery | SelectUnionQuery" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Constant") [assignment] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Constant") [assignment] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Argument "exprs" to "And" has incompatible type "list[CompareOperation]"; expected "list[Expr]" [arg-type] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Argument 1 to "sorted" has incompatible type "list[Any] | None"; expected "Iterable[Any]" [arg-type] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select_from" [union-attr] +posthog/hogql_queries/insights/lifecycle_query_runner.py:0: error: Item "None" of "JoinExpr | Any | None" has no attribute "sample" [union-attr] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: Return type "SelectQuery | SelectUnionQuery" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: List item 0 has incompatible type "dict[Any, Any]"; expected "WebOverviewItem" [list-item] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: List item 1 has incompatible type "dict[Any, Any]"; expected "WebOverviewItem" [list-item] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: List item 2 has incompatible type "dict[Any, Any]"; expected "WebOverviewItem" [list-item] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: List item 3 has incompatible type "dict[Any, Any]"; expected "WebOverviewItem" [list-item] +posthog/hogql_queries/web_analytics/web_overview.py:0: error: List item 4 has incompatible type "dict[Any, Any]"; expected "WebOverviewItem" [list-item] +posthog/hogql_queries/web_analytics/top_clicks.py:0: error: Return type "SelectQuery | SelectUnionQuery" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/web_analytics/top_clicks.py:0: error: Argument "results" to "WebTopClicksQueryResponse" has incompatible type "list[Any] | None"; expected "list[Any]" [arg-type] +posthog/hogql_queries/web_analytics/stats_table.py:0: error: Return type "SelectQuery | SelectUnionQuery" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/web_analytics/stats_table.py:0: error: Argument "results" to "WebStatsTableQueryResponse" has incompatible type "list[Any] | None"; expected "list[Any]" [arg-type] +posthog/hogql_queries/legacy_compatibility/process_insight.py:0: error: Incompatible types in assignment (expression has type "PathFilter", variable has type "RetentionFilter") [assignment] +posthog/hogql_queries/legacy_compatibility/process_insight.py:0: error: Incompatible types in assignment (expression has type "StickinessFilter", variable has type "RetentionFilter") [assignment] +posthog/hogql_queries/legacy_compatibility/process_insight.py:0: error: Incompatible types in assignment (expression has type "Filter", variable has type "RetentionFilter") [assignment] +posthog/hogql_queries/insights/insight_actors_query_runner.py:0: error: Return type "SelectQuery | SelectUnionQuery" of "to_query" incompatible with return type "SelectQuery" in supertype "QueryRunner" [override] +posthog/hogql_queries/actors_query_runner.py:0: error: Argument "results" to "ActorsQueryResponse" has incompatible type "Sequence[list[Any]] | Iterator[list[Any]]"; expected "list[list[Any]]" [arg-type] +posthog/hogql_queries/actors_query_runner.py:0: error: Argument "types" to "ActorsQueryResponse" has incompatible type "list[str] | None"; expected "list[str]" [arg-type] +posthog/hogql_queries/actors_query_runner.py:0: error: Argument "hogql" to "ActorsQueryResponse" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql_queries/actors_query_runner.py:0: error: Item "int" of "str | int" has no attribute "lower" [union-attr] +posthog/hogql_queries/actors_query_runner.py:0: error: Incompatible return value type (got "list[str | int]", expected "list[str]") [return-value] +posthog/hogql_queries/actors_query_runner.py:0: error: Argument 1 to "source_id_column" of "ActorsQueryRunner" has incompatible type "SelectQuery | SelectUnionQuery"; expected "SelectQuery" [arg-type] +posthog/hogql_queries/actors_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/actors_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/actors_query_runner.py:0: error: Incompatible types in assignment (expression has type "Field", variable has type "Constant") [assignment] +posthog/hogql_queries/actors_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Constant") [assignment] +posthog/hogql_queries/actors_query_runner.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/actors_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/actors_query_runner.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql_queries/actors_query_runner.py:0: error: List comprehension has incompatible type List[Expr]; expected List[OrderExpr] [misc] +posthog/hogql_queries/actors_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/actors_query_runner.py:0: error: Argument "select" to "SelectQuery" has incompatible type "list[Constant]"; expected "list[Expr]" [arg-type] +posthog/hogql_queries/actors_query_runner.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/actors_query_runner.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/actors_query_runner.py:0: error: Argument "group_by" to "SelectQuery" has incompatible type "list[Constant] | None"; expected "list[Expr] | None" [arg-type] +posthog/api/insight.py:0: error: Argument 1 to "is_insight_with_hogql_support" has incompatible type "Insight | DashboardTile"; expected "Insight" [arg-type] +posthog/api/insight.py:0: error: Argument 1 to "process_insight" has incompatible type "Insight | DashboardTile"; expected "Insight" [arg-type] +posthog/api/dashboards/dashboard.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/api/feature_flag.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/api/feature_flag.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/survey.py:0: error: Incompatible types in assignment (expression has type "Any | Sequence[Any] | None", variable has type "Survey | None") [assignment] +posthog/api/user.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/api/role.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +ee/api/dashboard_collaborator.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +ee/api/test/base.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/api/test/base.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/api/test/base.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/api/test/base.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/temporal/batch_exports/squash_person_overrides.py:0: error: Return type "SquashPersonOverridesInputs" of "parse_inputs" incompatible with return type "BatchExportsInputsProtocol" in supertype "PostHogWorkflow" [override] +posthog/tasks/exports/test/test_image_exporter.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_image_exporter.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_image_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_image_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_image_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_export_utils.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_export_utils.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_export_utils.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter_url_sanitising.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter_url_sanitising.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter_renders.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a return type annotation [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/tasks/exports/test/test_csv_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +posthog/session_recordings/queries/session_recording_list_from_replay_summary.py:0: error: Missing return statement [empty-body] +posthog/session_recordings/queries/session_recording_list_from_replay_summary.py:0: note: If the method is meant to be abstract, use @abc.abstractmethod +posthog/session_recordings/queries/session_recording_list_from_replay_summary.py:0: error: Missing return statement [empty-body] +posthog/session_recordings/queries/session_recording_list_from_replay_summary.py:0: note: If the method is meant to be abstract, use @abc.abstractmethod +posthog/session_recordings/queries/session_recording_list_from_replay_summary.py:0: error: Incompatible types in assignment (expression has type "PersonOnEventsMode", variable has type "PersonsOnEventsMode | None") [assignment] +posthog/session_recordings/queries/session_recording_list_from_replay_summary.py:0: error: Incompatible types in assignment (expression has type "PersonOnEventsMode", variable has type "PersonsOnEventsMode | None") [assignment] +posthog/migrations/0305_rework_person_overrides.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0176_update_person_props_function.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0175_should_update_person_props_function.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0173_should_update_person_props_function.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0148_merge_20210506_0823.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0129_merge_20210223_0757.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0117_merge_20210126_0917.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0041_merge_20200407_1805.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/migrations/0034_pg_trgm_and_btree_20200318_1447.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql_queries/test/test_query_runner.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/test/test_hogql_query_runner.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql_queries/test/test_actors_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql_queries/test/test_actors_query_runner.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Need type annotation for "properties_0" (hint: "properties_0: List[] = ...") [var-annotated] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Need type annotation for "properties_3" (hint: "properties_3: Dict[, ] = ...") [var-annotated] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Need type annotation for "filter" (hint: "filter: Dict[, ] = ...") [var-annotated] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Need type annotation for "filter" (hint: "filter: Dict[, ] = ...") [var-annotated] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "None" of "DateRange | None" has no attribute "date_from" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "None" of "DateRange | None" has no attribute "date_to" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "interval" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "interval" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Need type annotation for "filter" (hint: "filter: Dict[, ] = ...") [var-annotated] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Argument "math_group_type_index" to "EventsNode" has incompatible type "int"; expected "MathGroupTypeIndex | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "series" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "breakdown" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "FunnelsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "trendsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "trendsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "trendsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "trendsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "trendsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "TrendsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "funnelsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "funnelsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "funnelsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "funnelsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "funnelsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "TrendsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "retentionFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "FunnelsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "retentionFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "retentionFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "retentionFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "retentionFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Argument "returning_entity" to "RetentionFilter" has incompatible type "dict[str, str | None]"; expected "RetentionEntity | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Argument "target_entity" to "RetentionFilter" has incompatible type "dict[str, str | None]"; expected "RetentionEntity | None" [arg-type] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "TrendsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "pathsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "FunnelsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "pathsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "pathsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "pathsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "pathsFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "TrendsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "stickinessFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "FunnelsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "stickinessFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "stickinessFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "stickinessFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "LifecycleQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "stickinessFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "TrendsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "lifecycleFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "FunnelsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "lifecycleFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "RetentionQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "lifecycleFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "PathsQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "lifecycleFilter" [union-attr] +posthog/hogql_queries/legacy_compatibility/test/test_filter_to_query.py:0: error: Item "StickinessQuery" of "TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | StickinessQuery | LifecycleQuery" has no attribute "lifecycleFilter" [union-attr] +posthog/hogql_queries/insights/trends/test/test_trends_query_runner.py:0: error: Statement is unreachable [unreachable] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Argument 1 to "len" has incompatible type "list[Expr] | Any | None"; expected "Sized" [arg-type] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Value of type "list[Expr] | Any | None" is not indexable [index] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Argument 1 to "len" has incompatible type "list[Expr] | Any | None"; expected "Sized" [arg-type] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Value of type "list[Expr] | Any | None" is not indexable [index] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "group_by" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Value of type "list[Expr] | Any | None" is not indexable [index] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "select_from" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "None" of "JoinExpr | Any | None" has no attribute "table" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectQuery" of "SelectQuery | SelectUnionQuery | Field | Any | None" has no attribute "chain" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery | Field | Any | None" has no attribute "chain" [union-attr] +posthog/hogql_queries/insights/trends/test/test_aggregation_operations.py:0: error: Item "None" of "SelectQuery | SelectUnionQuery | Field | Any | None" has no attribute "chain" [union-attr] +posthog/hogql_queries/insights/test/test_paginators.py:0: error: Argument 2 to "execute_hogql_query" of "HogQLHasMorePaginator" has incompatible type "SelectQuery | SelectUnionQuery"; expected "SelectQuery" [arg-type] +posthog/hogql_queries/insights/test/test_paginators.py:0: error: Value of type "object" is not indexable [index] +posthog/hogql_queries/insights/test/test_paginators.py:0: error: Value of type "object" is not indexable [index] +posthog/hogql_queries/insights/test/test_paginators.py:0: error: Value of type "object" is not indexable [index] +posthog/hogql_queries/insights/test/test_lifecycle_query_runner.py:0: error: Argument "series" to "LifecycleQuery" has incompatible type "list[EventsNode]"; expected "list[EventsNode | ActionsNode]" [arg-type] +posthog/hogql_queries/insights/test/test_lifecycle_query_runner.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql_queries/insights/test/test_lifecycle_query_runner.py:0: note: Consider using "Sequence" instead, which is covariant +posthog/hogql_queries/insights/test/test_events_query_runner.py:0: error: Item "Expr" of "Expr | None" has no attribute "exprs" [union-attr] +posthog/hogql_queries/insights/test/test_events_query_runner.py:0: error: Item "None" of "Expr | None" has no attribute "exprs" [union-attr] +posthog/hogql_queries/insights/test/test_events_query_runner.py:0: error: Item "Expr" of "Expr | None" has no attribute "exprs" [union-attr] +posthog/hogql_queries/insights/test/test_events_query_runner.py:0: error: Item "None" of "Expr | None" has no attribute "exprs" [union-attr] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: "TestInCohort" has no attribute "snapshot" [attr-defined] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: "TestInCohort" has no attribute "snapshot" [attr-defined] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/transforms/test/test_in_cohort.py:0: error: "TestInCohort" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_visitor.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/test/test_visitor.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/test/test_visitor.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/test_visitor.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/test_visitor.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/test/test_timings.py:0: error: No overload variant of "__setitem__" of "list" matches argument types "int", "float" [call-overload] +posthog/hogql/test/test_timings.py:0: note: Possible overload variants: +posthog/hogql/test/test_timings.py:0: note: def __setitem__(self, SupportsIndex, int, /) -> None +posthog/hogql/test/test_timings.py:0: note: def __setitem__(self, slice, Iterable[int], /) -> None +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery") [assignment] +posthog/hogql/test/test_resolver.py:0: error: "TestResolver" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Item "SelectUnionQueryType" of "SelectQueryType | SelectUnionQueryType | None" has no attribute "columns" [union-attr] +posthog/hogql/test/test_resolver.py:0: error: Item "None" of "SelectQueryType | SelectUnionQueryType | None" has no attribute "columns" [union-attr] +posthog/hogql/test/test_resolver.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined] +posthog/hogql/test/test_resolver.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/test/test_resolver.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/test_resolver.py:0: error: Argument 1 to "clone_expr" has incompatible type "SelectQuery | SelectUnionQuery | Field | Any | None"; expected "Expr" [arg-type] +posthog/hogql/test/test_resolver.py:0: error: Item "None" of "JoinExpr | None" has no attribute "alias" [union-attr] +posthog/hogql/test/test_property.py:0: error: Incompatible default for argument "placeholders" (default has type "None", argument has type "dict[str, Any]") [assignment] +posthog/hogql/test/test_property.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/test/test_property.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/test/test_property.py:0: error: Argument 1 to "_property_to_expr" of "TestProperty" has incompatible type "HogQLPropertyFilter"; expected "PropertyGroup | Property | dict[Any, Any] | list[Any]" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, object]"; expected "str | float | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, object]"; expected "Kind | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, object]"; expected "int | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, object]"; expected "EntityType | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str]"; expected "Kind | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str]"; expected "int | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str]"; expected "EntityType | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str | None]"; expected "Kind | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str | None]"; expected "int | None" [arg-type] +posthog/hogql/test/test_property.py:0: error: Argument 1 to "RetentionEntity" has incompatible type "**dict[str, str | None]"; expected "EntityType | None" [arg-type] +posthog/hogql/test/test_printer.py:0: error: Argument "personsOnEventsMode" to "HogQLQueryModifiers" has incompatible type "PersonOnEventsMode"; expected "PersonsOnEventsMode | None" [arg-type] +posthog/hogql/test/test_printer.py:0: error: Argument "personsOnEventsMode" to "HogQLQueryModifiers" has incompatible type "PersonOnEventsMode"; expected "PersonsOnEventsMode | None" [arg-type] +posthog/hogql/test/test_printer.py:0: error: Argument 2 to "Database" has incompatible type "int"; expected "WeekStartDay | None" [arg-type] +posthog/hogql/test/test_printer.py:0: error: Argument 2 to "Database" has incompatible type "int"; expected "WeekStartDay | None" [arg-type] +posthog/hogql/test/test_printer.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "settings" [union-attr] +posthog/hogql/test/test_printer.py:0: error: Item "SelectUnionQuery" of "SelectQuery | SelectUnionQuery" has no attribute "settings" [union-attr] +posthog/hogql/test/test_printer.py:0: error: "TestPrinter" has no attribute "snapshot" [attr-defined] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "personsArgMaxVersion" to "HogQLQueryModifiers" has incompatible type "str"; expected "PersonsArgMaxVersion | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "personsArgMaxVersion" to "HogQLQueryModifiers" has incompatible type "str"; expected "PersonsArgMaxVersion | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "personsArgMaxVersion" to "HogQLQueryModifiers" has incompatible type "str"; expected "PersonsArgMaxVersion | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "personsArgMaxVersion" to "HogQLQueryModifiers" has incompatible type "str"; expected "PersonsArgMaxVersion | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "personsArgMaxVersion" to "HogQLQueryModifiers" has incompatible type "str"; expected "PersonsArgMaxVersion | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_modifiers.py:0: error: Unsupported right operand type for in ("str | None") [operator] +posthog/hogql/test/test_filters.py:0: error: Incompatible default for argument "placeholders" (default has type "None", argument has type "dict[str, Any]") [assignment] +posthog/hogql/test/test_filters.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/test/test_filters.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/test/test_filters.py:0: error: Incompatible default for argument "placeholders" (default has type "None", argument has type "dict[str, Any]") [assignment] +posthog/hogql/test/test_filters.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True +posthog/hogql/test/test_filters.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase +posthog/hogql/test/test_filters.py:0: error: Argument "operator" to "EventPropertyFilter" has incompatible type "str"; expected "PropertyOperator" [arg-type] +posthog/hogql/test/test_filters.py:0: error: Argument "operator" to "PersonPropertyFilter" has incompatible type "str"; expected "PropertyOperator" [arg-type] +posthog/hogql/test/test_filters.py:0: error: Argument "operator" to "EventPropertyFilter" has incompatible type "str"; expected "PropertyOperator" [arg-type] +posthog/hogql/test/test_filters.py:0: error: Argument "operator" to "PersonPropertyFilter" has incompatible type "str"; expected "PropertyOperator" [arg-type] +posthog/hogql/test/_test_parser.py:0: error: Invalid base class [misc] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "Or" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "And" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Argument "table" to "JoinExpr" has incompatible type "Placeholder"; expected "SelectQuery | SelectUnionQuery | Field | None" [arg-type] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "SelectUnionQuery" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "alias" [union-attr] +posthog/hogql/test/_test_parser.py:0: error: Item "None" of "JoinExpr | None" has no attribute "table" [union-attr] +posthog/hogql/functions/test/test_sparkline.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/functions/test/test_cohort.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/functions/test/test_cohort.py:0: error: "TestCohort" has no attribute "snapshot" [attr-defined] +posthog/hogql/functions/test/test_cohort.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/functions/test/test_cohort.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/functions/test/test_cohort.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/functions/test/test_cohort.py:0: error: "TestCohort" has no attribute "snapshot" [attr-defined] +posthog/hogql/functions/test/test_cohort.py:0: error: Argument "inCohortVia" to "HogQLQueryModifiers" has incompatible type "str"; expected "InCohortVia | None" [arg-type] +posthog/hogql/functions/test/test_cohort.py:0: error: "TestCohort" has no attribute "snapshot" [attr-defined] +posthog/hogql/database/test/test_argmax.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/test/test_argmax.py:0: error: Missing named argument "type" for "JoinExpr" [call-arg] +posthog/hogql/database/schema/test/test_channel_type.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/database/schema/test/test_channel_type.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/api/organization_member.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +ee/api/feature_flag_role_access.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +ee/api/integration.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/api/integration.py:0: error: Unused "type: ignore" comment [unused-ignore] +ee/clickhouse/views/insights.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined] +posthog/queries/trends/test/test_person.py:0: error: Invalid index type "int" for "HttpResponse"; expected type "str | bytes" [index] +posthog/management/commands/compare_hogql_insights.py:0: error: "BaseModel" has no attribute "results" [attr-defined] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "event" to "EventsNode" has incompatible type "int | str | None"; expected "str | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "math" to "EventsNode" has incompatible type "Literal['total', 'dau', 'weekly_active', 'monthly_active', 'unique_group', 'unique_session', 'sum', 'min', 'max', 'avg', 'median', 'p90', 'p95', 'p99', 'min_count_per_actor', 'max_count_per_actor', 'avg_count_per_actor', 'median_count_per_actor', 'p90_count_per_actor', 'p95_count_per_actor', 'p99_count_per_actor', 'hogql'] | None"; expected "Literal['unique_group', 'hogql'] | BaseMathType | PropertyMathType | CountPerActorMathType | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "math_group_type_index" to "EventsNode" has incompatible type "Literal[0, 1, 2, 3, 4] | None"; expected "MathGroupTypeIndex | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "id" to "ActionsNode" has incompatible type "int | str | None"; expected "float" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "math" to "ActionsNode" has incompatible type "Literal['total', 'dau', 'weekly_active', 'monthly_active', 'unique_group', 'unique_session', 'sum', 'min', 'max', 'avg', 'median', 'p90', 'p95', 'p99', 'min_count_per_actor', 'max_count_per_actor', 'avg_count_per_actor', 'median_count_per_actor', 'p90_count_per_actor', 'p95_count_per_actor', 'p99_count_per_actor', 'hogql'] | None"; expected "Literal['unique_group', 'hogql'] | BaseMathType | PropertyMathType | CountPerActorMathType | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "math_group_type_index" to "ActionsNode" has incompatible type "Literal[0, 1, 2, 3, 4] | None"; expected "MathGroupTypeIndex | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "breakdown" to "BreakdownFilter" has incompatible type "str | list[str | int] | None"; expected "str | float | list[str | float] | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "breakdown_type" to "BreakdownFilter" has incompatible type "Literal['event', 'person', 'cohort', 'group', 'session', 'hogql'] | None"; expected "BreakdownType | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "breakdowns" to "BreakdownFilter" has incompatible type "list[dict[str, Any]] | None"; expected "list[Breakdown] | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "interval" to "TrendsQuery" has incompatible type "Literal['hour', 'day', 'week', 'month']"; expected "IntervalType | None" [arg-type] +posthog/hogql_queries/insights/trends/test/test_trends.py:0: error: Argument "display" to "TrendsFilter" has incompatible type "Literal['ActionsLineGraph', 'ActionsLineGraphCumulative', 'ActionsTable', 'ActionsPie', 'ActionsBar', 'ActionsBarValue', 'WorldMap', 'BoldNumber']"; expected "ChartDisplayType | None" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/test/test_query.py:0: error: Value of type "list[QueryTiming] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[QueryTiming] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "pretty_print_in_tests" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "pretty_print_in_tests" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "pretty_print_in_tests" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "pretty_print_in_tests" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/test/test_query.py:0: error: Value of type "list[Any] | None" is not indexable [index] +posthog/hogql/test/test_query.py:0: error: Incompatible types in assignment (expression has type "HogQLQueryResponse", variable has type "HttpResponse") [assignment] +posthog/hogql/test/test_query.py:0: error: "HttpResponse" has no attribute "results" [attr-defined] +posthog/hogql/test/test_query.py:0: error: Argument "operator" to "EventPropertyFilter" has incompatible type "str"; expected "PropertyOperator" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument "placeholders" to "execute_hogql_query" has incompatible type "dict[str, Constant]"; expected "dict[str, Expr] | None" [arg-type] +posthog/hogql/test/test_query.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/test/test_query.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql/test/test_query.py:0: error: Argument 1 to "pretty_print_in_tests" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument "placeholders" to "execute_hogql_query" has incompatible type "dict[str, Constant]"; expected "dict[str, Expr] | None" [arg-type] +posthog/hogql/test/test_query.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/test/test_query.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql/test/test_query.py:0: error: Argument 1 to "pretty_print_in_tests" has incompatible type "str | None"; expected "str" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument "placeholders" to "execute_hogql_query" has incompatible type "dict[str, Constant]"; expected "dict[str, Expr] | None" [arg-type] +posthog/hogql/test/test_query.py:0: note: "Dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance +posthog/hogql/test/test_query.py:0: note: Consider using "Mapping" instead, which is covariant in the value type +posthog/hogql/test/test_query.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument "operator" to "EventPropertyFilter" has incompatible type "str"; expected "PropertyOperator" [arg-type] +posthog/hogql/test/test_query.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +posthog/hogql/test/test_parser_python.py:0: error: Unsupported dynamic base class "parser_test_factory" [misc] +posthog/hogql/test/test_parser_cpp.py:0: error: Unsupported dynamic base class "parser_test_factory" [misc] +posthog/hogql/test/test_parse_string_python.py:0: error: Unsupported dynamic base class "parse_string_test_factory" [misc] +posthog/hogql/test/test_parse_string_cpp.py:0: error: Unsupported dynamic base class "parse_string_test_factory" [misc] +posthog/hogql/database/test/test_view.py:0: error: Argument "dialect" to "print_ast" has incompatible type "str"; expected "Literal['hogql', 'clickhouse']" [arg-type] +posthog/hogql/database/test/test_saved_query.py:0: error: Argument "dialect" to "print_ast" has incompatible type "str"; expected "Literal['hogql', 'clickhouse']" [arg-type] +posthog/hogql/database/test/test_s3_table.py:0: error: Argument "dialect" to "print_ast" has incompatible type "str"; expected "Literal['hogql', 'clickhouse']" [arg-type] +posthog/api/search.py:0: error: Argument "extra_fields" to "class_queryset" has incompatible type "object"; expected "dict[Any, Any] | None" [arg-type] +posthog/api/property_definition.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/property_definition.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/dashboards/dashboard_templates.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/temporal/tests/batch_exports/test_snowflake_batch_export_workflow.py:0: error: Need type annotation for "_execute_calls" (hint: "_execute_calls: List[] = ...") [var-annotated] +posthog/temporal/tests/batch_exports/test_snowflake_batch_export_workflow.py:0: error: Need type annotation for "_execute_async_calls" (hint: "_execute_async_calls: List[] = ...") [var-annotated] +posthog/temporal/tests/batch_exports/test_snowflake_batch_export_workflow.py:0: error: Need type annotation for "_cursors" (hint: "_cursors: List[] = ...") [var-annotated] +posthog/temporal/tests/batch_exports/test_snowflake_batch_export_workflow.py:0: error: List item 0 has incompatible type "tuple[str, str, int, int, int, int, str, int]"; expected "tuple[str, str, int, int, str, str, str, str]" [list-item] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 4 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "int" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: Argument 5 to "S3InsertInputs" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: "tuple[Any, ...]" has no attribute "last_uploaded_part_timestamp" [attr-defined] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: "tuple[Any, ...]" has no attribute "upload_state" [attr-defined] +posthog/temporal/tests/batch_exports/test_s3_batch_export_workflow.py:0: error: "tuple[Any, ...]" has no attribute "upload_state" [attr-defined] +posthog/temporal/tests/batch_exports/test_postgres_batch_export_workflow.py:0: error: Unsupported left operand type for + ("None") [operator] +posthog/temporal/tests/batch_exports/test_postgres_batch_export_workflow.py:0: note: Left operand is of type "Any | None" +posthog/temporal/tests/batch_exports/test_logger.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/temporal/tests/batch_exports/test_logger.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_batch_exports.py:0: error: TypedDict key must be a string literal; expected one of ("_timestamp", "created_at", "distinct_id", "elements", "elements_chain", ...) [literal-required] +posthog/temporal/tests/batch_exports/test_backfill_batch_export.py:0: error: Argument "name" to "acreate_batch_export" has incompatible type "object"; expected "str" [arg-type] +posthog/temporal/tests/batch_exports/test_backfill_batch_export.py:0: error: Argument "destination_data" to "acreate_batch_export" has incompatible type "object"; expected "dict[Any, Any]" [arg-type] +posthog/temporal/tests/batch_exports/test_backfill_batch_export.py:0: error: Argument "interval" to "acreate_batch_export" has incompatible type "object"; expected "str" [arg-type] +posthog/queries/app_metrics/test/test_app_metrics.py:0: error: Argument 3 to "AppMetricsErrorDetailsQuery" has incompatible type "AppMetricsRequestSerializer"; expected "AppMetricsErrorsRequestSerializer" [arg-type] +posthog/queries/app_metrics/test/test_app_metrics.py:0: error: Argument 3 to "AppMetricsErrorDetailsQuery" has incompatible type "AppMetricsRequestSerializer"; expected "AppMetricsErrorsRequestSerializer" [arg-type] +posthog/queries/app_metrics/test/test_app_metrics.py:0: error: Argument 3 to "AppMetricsErrorDetailsQuery" has incompatible type "AppMetricsRequestSerializer"; expected "AppMetricsErrorsRequestSerializer" [arg-type] +posthog/batch_exports/http.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/batch_exports/http.py:0: error: Unsupported right operand type for in ("object") [operator] +posthog/api/plugin.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/api/plugin.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] +posthog/warehouse/external_data_source/source.py:0: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment] +posthog/warehouse/external_data_source/source.py:0: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment] +posthog/warehouse/external_data_source/source.py:0: error: Incompatible types in assignment (expression has type "dict[str, Collection[str]]", variable has type "StripeSourcePayload") [assignment] +posthog/warehouse/external_data_source/source.py:0: error: Argument 1 to "_create_source" has incompatible type "StripeSourcePayload"; expected "dict[Any, Any]" [arg-type] +posthog/temporal/tests/batch_exports/test_redshift_batch_export_workflow.py:0: error: Unsupported left operand type for + ("None") [operator] +posthog/temporal/tests/batch_exports/test_redshift_batch_export_workflow.py:0: note: Left operand is of type "Any | None" +posthog/temporal/tests/batch_exports/test_redshift_batch_export_workflow.py:0: error: Incompatible types in assignment (expression has type "str | int", variable has type "int") [assignment] +posthog/api/test/batch_exports/conftest.py:0: error: Argument "activities" to "ThreadedWorker" has incompatible type "list[function]"; expected "Sequence[Callable[..., Any]]" [arg-type] +posthog/api/sharing.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/sharing.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: Incompatible return value type (got "dict[str, Collection[str]]", expected "dict[str, str]") [return-value] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: Incompatible types in assignment (expression has type "dict[str, Collection[str]]", variable has type "dict[str, str]") [assignment] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: Unpacked dict entry 1 has incompatible type "str"; expected "SupportsKeysAndGetItem[str, str]" [dict-item] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: "str" is missing following "SupportsKeysAndGetItem" protocol member: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: keys +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Following member(s) of "str" have conflicts: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Expected: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, str, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Got: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex | slice, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Possible overload variants: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, slice, /) -> list[str] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Possible overload variants: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, slice, /) -> list[str] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Possible overload variants: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, slice, /) -> list[str] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Possible overload variants: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, slice, /) -> list[str] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Possible overload variants: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, slice, /) -> list[str] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: Possible overload variants: +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, SupportsIndex, /) -> str +posthog/management/commands/test/test_create_batch_export_from_app.py:0: note: def __getitem__(self, slice, /) -> list[str] +posthog/api/test/batch_exports/test_update.py:0: error: Unsupported target for indexed assignment ("Collection[str]") [index] +posthog/api/test/batch_exports/test_update.py:0: error: Unsupported target for indexed assignment ("Collection[str]") [index] +posthog/api/test/batch_exports/test_update.py:0: error: Dict entry 1 has incompatible type "str": "dict[str, Collection[str]]"; expected "str": "str" [dict-item] +posthog/api/test/batch_exports/test_update.py:0: error: Value of type "BatchExport" is not indexable [index] +posthog/api/test/batch_exports/test_update.py:0: error: Value of type "BatchExport" is not indexable [index] +posthog/api/test/batch_exports/test_update.py:0: error: Value of type "BatchExport" is not indexable [index] +posthog/api/test/batch_exports/test_pause.py:0: error: "batch_export_delete_schedule" does not return a value (it only ever returns None) [func-returns-value] +posthog/api/test/batch_exports/test_log_entry.py:0: error: Need type annotation for "results" (hint: "results: List[] = ...") [var-annotated] +posthog/api/test/batch_exports/test_log_entry.py:0: error: Need type annotation for "results" (hint: "results: List[] = ...") [var-annotated] +posthog/api/test/test_capture.py:0: error: Unused "type: ignore" comment [unused-ignore] +posthog/api/test/test_capture.py:0: error: Dict entry 0 has incompatible type "Any": "float"; expected "str": "int" [dict-item] +posthog/api/test/test_capture.py:0: error: Dict entry 0 has incompatible type "Any": "float"; expected "str": "int" [dict-item] +posthog/api/test/test_capture.py:0: error: Dict entry 0 has incompatible type "Any": "float"; expected "str": "int" [dict-item] +posthog/api/test/test_capture.py:0: error: Dict entry 0 has incompatible type "Any": "float"; expected "str": "int" [dict-item] +posthog/api/test/test_capture.py:0: error: Dict entry 0 has incompatible type "Any": "float"; expected "str": "int" [dict-item] +posthog/api/test/test_capture.py:0: error: Dict entry 0 has incompatible type "Any": "float"; expected "str": "int" [dict-item] diff --git a/mypy.ini b/mypy.ini index a6a90c8eff134..6cdaed95186ae 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,4 +1,5 @@ [mypy] +python_version = 3.10 plugins = mypy_django_plugin.main, mypy_drf_plugin.main @@ -9,7 +10,12 @@ check_untyped_defs = True warn_unreachable = True strict_equality = True ignore_missing_imports = True -exclude = posthog/hogql/grammar/ + +[mypy-bin.*] +ignore_errors = True + +[mypy-posthog.hogql.grammar.*] +ignore_errors = True [mypy-posthog.tasks.*] disallow_untyped_defs = True diff --git a/posthog/api/test/__snapshots__/test_action.ambr b/posthog/api/test/__snapshots__/test_action.ambr index d12e99524a0c9..a947ae0d7e6fb 100644 --- a/posthog/api/test/__snapshots__/test_action.ambr +++ b/posthog/api/test/__snapshots__/test_action.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestActionApi.test_listing_actions_is_not_nplus1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -78,10 +79,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.10 - ' + ''' SELECT "posthog_action"."id", "posthog_action"."name", "posthog_action"."team_id", @@ -132,10 +133,10 @@ "posthog_user"."id" ORDER BY "posthog_action"."last_calculated_at" DESC, "posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.11 - ' + ''' SELECT "posthog_actionstep"."id", "posthog_actionstep"."action_id", "posthog_actionstep"."tag_name", @@ -156,10 +157,10 @@ 4, 5 /* ... */) ORDER BY "posthog_actionstep"."id" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.12 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -187,10 +188,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.13 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -238,10 +239,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.14 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -268,10 +269,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.15 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -292,10 +293,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.16 - ' + ''' SELECT "posthog_action"."id", "posthog_action"."name", "posthog_action"."team_id", @@ -346,10 +347,10 @@ "posthog_user"."id" ORDER BY "posthog_action"."last_calculated_at" DESC, "posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.17 - ' + ''' SELECT "posthog_actionstep"."id", "posthog_actionstep"."action_id", "posthog_actionstep"."tag_name", @@ -370,10 +371,10 @@ 4, 5 /* ... */) ORDER BY "posthog_actionstep"."id" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -400,10 +401,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -411,10 +412,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.4 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -435,10 +436,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.5 - ' + ''' SELECT "posthog_action"."id", "posthog_action"."name", "posthog_action"."team_id", @@ -489,10 +490,10 @@ "posthog_user"."id" ORDER BY "posthog_action"."last_calculated_at" DESC, "posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.6 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -520,10 +521,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.7 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -571,10 +572,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.8 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -601,10 +602,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- # name: TestActionApi.test_listing_actions_is_not_nplus1.9 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -625,5 +626,5 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index ce84928133d9a..31298f4dbf007 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -78,10 +79,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.10 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -109,10 +110,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -160,10 +161,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -190,20 +191,20 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 - ' + ''' SELECT "posthog_annotation"."id", "posthog_annotation"."content", "posthog_annotation"."created_at", @@ -279,88 +280,10 @@ AND NOT "posthog_annotation"."deleted") ORDER BY "posthog_annotation"."date_marker" DESC LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 - ' - SELECT "posthog_annotation"."id", - "posthog_annotation"."content", - "posthog_annotation"."created_at", - "posthog_annotation"."updated_at", - "posthog_annotation"."dashboard_item_id", - "posthog_annotation"."team_id", - "posthog_annotation"."organization_id", - "posthog_annotation"."created_by_id", - "posthog_annotation"."scope", - "posthog_annotation"."creation_type", - "posthog_annotation"."date_marker", - "posthog_annotation"."deleted", - "posthog_annotation"."apply_all", - "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."is_active", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."email_opt_in", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."events_column_config" - FROM "posthog_annotation" - LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_annotation"."dashboard_item_id" = "posthog_dashboarditem"."id") - LEFT OUTER JOIN "posthog_user" ON ("posthog_annotation"."created_by_id" = "posthog_user"."id") - WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_annotation"."scope" = 'organization') - OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") - ORDER BY "posthog_annotation"."date_marker" DESC - LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -387,10 +310,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -398,20 +321,20 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.4 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.5 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -439,10 +362,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -490,10 +413,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.7 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -520,20 +443,20 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 - ' + ''' SELECT "posthog_annotation"."id", "posthog_annotation"."content", "posthog_annotation"."created_at", @@ -609,5 +532,5 @@ AND NOT "posthog_annotation"."deleted") ORDER BY "posthog_annotation"."date_marker" DESC LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_cohort.ambr b/posthog/api/test/__snapshots__/test_cohort.ambr index e8c0b7d444e0d..0bc59147eed51 100644 --- a/posthog/api/test/__snapshots__/test_cohort.ambr +++ b/posthog/api/test/__snapshots__/test_cohort.ambr @@ -1,15 +1,16 @@ +# serializer version: 1 # name: TestCohort.test_async_deletion_of_cohort - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.calculate_cohort_ch */ SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.1 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.calculate_cohort_ch */ INSERT INTO cohortpeople SELECT id, @@ -61,17 +62,17 @@ AND cohort_id = 2 AND version < 1 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.10 - ' + ''' SELECT count() FROM cohortpeople WHERE cohort_id = 2 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.11 - ' + ''' /* celery:posthog.celery.clickhouse_clear_removed_data */ SELECT DISTINCT team_id, cohort_id @@ -79,40 +80,40 @@ WHERE (team_id = 2 AND cohort_id = '1' AND version < '2') - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.2 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.calculate_cohort_ch */ SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 1 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.3 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.clear_stale_cohort */ SELECT count() FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version < 1 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.4 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.calculate_cohort_ch */ SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 1 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.5 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.calculate_cohort_ch */ INSERT INTO cohortpeople SELECT id, @@ -143,30 +144,30 @@ AND cohort_id = 2 AND version < 2 AND sign = 1 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.6 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.calculate_cohort_ch */ SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 2 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.7 - ' + ''' /* user_id:119 celery:posthog.tasks.calculate_cohort.clear_stale_cohort */ SELECT count() FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version < 2 - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.8 - ' + ''' /* celery:posthog.celery.clickhouse_clear_removed_data */ SELECT DISTINCT team_id, cohort_id @@ -174,15 +175,15 @@ WHERE (team_id = 2 AND cohort_id = '1' AND version < '2') - ' ---- + ''' +# --- # name: TestCohort.test_async_deletion_of_cohort.9 - ' + ''' /* celery:posthog.celery.clickhouse_clear_removed_data */ DELETE FROM cohortpeople WHERE (team_id = 2 AND cohort_id = '1' AND version < '2') - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index 7cfe7fc4886d1..d8daad640dd92 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -1,8 +1,6 @@ -# name: TestDatabaseCheckForDecide.test_decide_doesnt_error_out_when_database_is_down_and_database_check_isnt_cached - 'SELECT 1' ---- +# serializer version: 1 # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -30,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -88,26 +86,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.10 - ' - SELECT "posthog_pluginconfig"."id", - "posthog_pluginconfig"."web_token", - "posthog_pluginsourcefile"."updated_at", - "posthog_plugin"."updated_at", - "posthog_pluginconfig"."updated_at" - FROM "posthog_pluginconfig" - INNER JOIN "posthog_plugin" ON ("posthog_pluginconfig"."plugin_id" = "posthog_plugin"."id") - INNER JOIN "posthog_pluginsourcefile" ON ("posthog_plugin"."id" = "posthog_pluginsourcefile"."plugin_id") - WHERE ("posthog_pluginconfig"."enabled" - AND "posthog_pluginsourcefile"."filename" = 'site.ts' - AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' - AND "posthog_pluginconfig"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -134,18 +116,18 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.3 - ' + ''' SELECT (1) AS "a" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.4 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -153,10 +135,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -164,10 +146,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -175,10 +157,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:GROUPS_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -206,10 +188,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.8 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -229,10 +211,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.9 - ' + ''' SELECT "posthog_pluginconfig"."id", "posthog_pluginconfig"."web_token", "posthog_pluginsourcefile"."updated_at", @@ -245,10 +227,10 @@ AND "posthog_pluginsourcefile"."filename" = 'site.ts' AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' AND "posthog_pluginconfig"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_behavioural_cohorts - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -276,10 +258,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_behavioural_cohorts.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -334,10 +316,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_behavioural_cohorts.2 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -357,10 +339,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_behavioural_cohorts.3 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -381,10 +363,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_behavioural_cohorts.4 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -405,10 +387,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -436,10 +418,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -494,10 +476,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts.2 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -517,10 +499,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts.3 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -541,10 +523,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts.4 - ' + ''' SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"' AND "posthog_person"."properties" ? '$some_prop_1' AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null')) AS "flag_X_condition_0" @@ -553,10 +535,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id_1' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts.5 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -577,10 +559,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_flag_with_regular_cohorts.6 - ' + ''' SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"' AND "posthog_person"."properties" ? '$some_prop_1' AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null')) AS "flag_X_condition_0" @@ -589,10 +571,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'another_id' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_web_app_queries - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -640,10 +622,10 @@ FROM "posthog_team" WHERE "posthog_team"."api_token" = 'token123' LIMIT 21 - ' ---- + ''' +# --- # name: TestDecide.test_web_app_queries.1 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -663,10 +645,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_web_app_queries.2 - ' + ''' SELECT "posthog_pluginconfig"."id", "posthog_pluginconfig"."web_token", "posthog_pluginsourcefile"."updated_at", @@ -679,10 +661,10 @@ AND "posthog_pluginsourcefile"."filename" = 'site.ts' AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' AND "posthog_pluginconfig"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_web_app_queries.3 - ' + ''' SELECT "posthog_pluginconfig"."id", "posthog_pluginconfig"."web_token", "posthog_pluginsourcefile"."updated_at", @@ -695,10 +677,10 @@ AND "posthog_pluginsourcefile"."filename" = 'site.ts' AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' AND "posthog_pluginconfig"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDecide.test_web_app_queries.4 - ' + ''' SELECT "posthog_pluginconfig"."id", "posthog_pluginconfig"."web_token", "posthog_pluginsourcefile"."updated_at", @@ -711,5 +693,5 @@ AND "posthog_pluginsourcefile"."filename" = 'site.ts' AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' AND "posthog_pluginconfig"."team_id" = 2) - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_early_access_feature.ambr b/posthog/api/test/__snapshots__/test_early_access_feature.ambr index 3892cdf5a24dd..4949adab33e99 100644 --- a/posthog/api/test/__snapshots__/test_early_access_feature.ambr +++ b/posthog/api/test/__snapshots__/test_early_access_feature.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPreviewList.test_early_access_features - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -54,10 +55,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestPreviewList.test_early_access_features.1 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -77,10 +78,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestPreviewList.test_early_access_features.2 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -100,10 +101,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestPreviewList.test_early_access_features.3 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -131,10 +132,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestPreviewList.test_early_access_features.4 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -182,10 +183,10 @@ FROM "posthog_team" WHERE "posthog_team"."api_token" = 'token123' LIMIT 21 /*controller='posthog.api.early_access_feature.early_access_features',route='%5Eapi/early_access_features/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ - ' ---- + ''' +# --- # name: TestPreviewList.test_early_access_features.5 - ' + ''' SELECT "posthog_earlyaccessfeature"."id", "posthog_earlyaccessfeature"."team_id", "posthog_earlyaccessfeature"."feature_flag_id", @@ -213,5 +214,5 @@ LEFT OUTER JOIN "posthog_featureflag" ON ("posthog_earlyaccessfeature"."feature_flag_id" = "posthog_featureflag"."id") WHERE ("posthog_earlyaccessfeature"."stage" = 'beta' AND "posthog_earlyaccessfeature"."team_id" = 2) /*controller='posthog.api.early_access_feature.early_access_features',route='%5Eapi/early_access_features/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr index 44e1f20f086b6..b206ea30589d8 100644 --- a/posthog/api/test/__snapshots__/test_element.ambr +++ b/posthog/api/test/__snapshots__/test_element.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestElement.test_element_stats_postgres_queries_are_as_expected - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -85,10 +86,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='element-stats',route='api/element/stats/%3F%24'*/ - ' ---- + ''' +# --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -115,10 +116,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='element-stats',route='api/element/stats/%3F%24'*/ - ' ---- + ''' +# --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -126,10 +127,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='element-stats',route='api/element/stats/%3F%24'*/ - ' ---- + ''' +# --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.4 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -137,5 +138,5 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:HEATMAP_SAMPLE_N' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='element-stats',route='api/element/stats/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_event.ambr b/posthog/api/test/__snapshots__/test_event.ambr index e9e2385b8f3b2..a2354e5a9fa27 100644 --- a/posthog/api/test/__snapshots__/test_event.ambr +++ b/posthog/api/test/__snapshots__/test_event.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestEvents.test_event_property_values - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -8,10 +9,10 @@ AND timestamp >= '2020-01-13 00:00:00' AND timestamp <= '2020-01-20 23:59:59' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -21,10 +22,10 @@ AND timestamp <= '2020-01-20 23:59:59' AND replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') ILIKE '%qw%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -34,10 +35,10 @@ AND timestamp <= '2020-01-20 23:59:59' AND replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') ILIKE '%QW%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -47,10 +48,10 @@ AND timestamp <= '2020-01-20 23:59:59' AND replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') ILIKE '%6%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -61,10 +62,10 @@ AND (event = 'random event') AND replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') ILIKE '%6%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values.5 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -76,10 +77,10 @@ OR event = 'random event') AND replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') ILIKE '%6%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values.6 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') FROM events @@ -90,10 +91,10 @@ AND (event = '404_i_dont_exist') AND replaceRegexpAll(JSONExtractRaw(properties, 'random_prop'), '^"|"$', '') ILIKE '%qw%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -102,10 +103,10 @@ AND timestamp >= '2020-01-13 00:00:00' AND timestamp <= '2020-01-20 23:59:59' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -115,10 +116,10 @@ AND timestamp <= '2020-01-20 23:59:59' AND "mat_random_prop" ILIKE '%qw%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -128,10 +129,10 @@ AND timestamp <= '2020-01-20 23:59:59' AND "mat_random_prop" ILIKE '%QW%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -141,10 +142,10 @@ AND timestamp <= '2020-01-20 23:59:59' AND "mat_random_prop" ILIKE '%6%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -155,10 +156,10 @@ AND (event = 'random event') AND "mat_random_prop" ILIKE '%6%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized.5 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -170,10 +171,10 @@ OR event = 'random event') AND "mat_random_prop" ILIKE '%6%' LIMIT 10 - ' ---- + ''' +# --- # name: TestEvents.test_event_property_values_materialized.6 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT "mat_random_prop" FROM events @@ -184,5 +185,5 @@ AND (event = '404_i_dont_exist') AND "mat_random_prop" ILIKE '%qw%' LIMIT 10 - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index e6e9c597b21f8..b0bcd6d3ec081 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestBlastRadius.test_user_blast_radius - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -14,10 +15,10 @@ GROUP BY id HAVING max(is_deleted) = 0 AND (has(['0', '1', '2', '3'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'group'), '^"|"$', ''))) SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -26,10 +27,10 @@ WHERE team_id = 2 GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_groups - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -41,19 +42,19 @@ GROUP BY group_key HAVING 1=1 AND (has(['0', '1', '2', '3'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_groups.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(DISTINCT group_key) FROM groups WHERE team_id = 2 AND group_type_index = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_groups_multiple_queries - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -66,59 +67,59 @@ HAVING 1=1 AND ((has(['0', '1', '2', '3', '4'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', ''))) AND (has(['2', '3', '4', '5', '6'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', ''))))) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_groups_multiple_queries.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(DISTINCT group_key) FROM groups WHERE team_id = 2 AND group_type_index = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_precalculated_cohorts - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_precalculated_cohorts.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_precalculated_cohorts.2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_precalculated_cohorts.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_precalculated_cohorts.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -139,10 +140,10 @@ AND version = 0 ) GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_precalculated_cohorts.5 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -151,19 +152,19 @@ WHERE team_id = 2 GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts - ' + ''' SELECT count(DISTINCT person_id) FROM person_static_cohort WHERE team_id = 2 AND cohort_id = 2 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -186,10 +187,10 @@ GROUP BY id HAVING max(is_deleted) = 0 AND ((has(['1', '2', '4', '5', '6'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'group'), '^"|"$', '')))) SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -198,50 +199,50 @@ WHERE team_id = 2 GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.4 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.5 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.6 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_multiple_static_cohorts.7 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -261,10 +262,10 @@ AND version = 0 ) GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_single_cohort - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -281,10 +282,10 @@ HAVING max(is_deleted) = 0 AND ((has(['none'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'group'), '^"|"$', '')) OR has(['1', '2', '3'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'group'), '^"|"$', '')))) SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_single_cohort.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -293,30 +294,30 @@ WHERE team_id = 2 GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_single_cohort.2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_single_cohort.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestBlastRadius.test_user_blast_radius_with_single_cohort.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(1) FROM @@ -332,10 +333,10 @@ WHERE team_id = 2 GROUP BY id HAVING max(is_deleted) = 0 SETTINGS optimize_aggregation_in_order = 1) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -355,10 +356,10 @@ WHERE ("posthog_featureflag"."key" = 'some-feature2' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.1 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -379,10 +380,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.2 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -400,10 +401,10 @@ AND NOT (("posthog_person"."properties" -> 'key') = 'null')) ORDER BY "posthog_person"."id" ASC LIMIT 2 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.3 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -420,10 +421,10 @@ 3, 4, 5 /* ... */)) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.4 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -435,10 +436,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.5 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -493,10 +494,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.6 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -515,10 +516,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 2 OFFSET 2 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.7 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -535,10 +536,10 @@ 3, 4, 5 /* ... */)) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.8 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -557,10 +558,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 2 OFFSET 4 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_iterator.9 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -572,10 +573,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -595,10 +596,10 @@ WHERE ("posthog_featureflag"."key" = 'some-feature-new' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.1 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -619,10 +620,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.10 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -634,10 +635,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.11 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -692,10 +693,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.2 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -716,10 +717,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.3 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -755,10 +756,10 @@ AND NOT (("posthog_person"."properties" -> 'key') = 'null')))) ORDER BY "posthog_person"."id" ASC LIMIT 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.4 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -775,10 +776,10 @@ 3, 4, 5 /* ... */)) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.5 - ' + ''' SELECT ("posthog_person"."id" IS NULL OR "posthog_person"."id" IS NULL OR EXISTS @@ -794,10 +795,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'person1' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.6 - ' + ''' SELECT ("posthog_person"."id" IS NOT NULL OR "posthog_person"."id" IS NULL OR EXISTS @@ -813,10 +814,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'person2' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.7 - ' + ''' SELECT ("posthog_person"."id" IS NULL OR "posthog_person"."id" IS NOT NULL OR EXISTS @@ -832,10 +833,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'person3' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.8 - ' + ''' SELECT ("posthog_person"."id" IS NULL OR "posthog_person"."id" IS NULL OR EXISTS @@ -851,10 +852,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'person4' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_cohort_flag_adds_cohort_props_as_default_too.9 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -891,10 +892,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -914,10 +915,10 @@ WHERE ("posthog_featureflag"."key" = 'some-feature2' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.1 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -938,10 +939,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.10 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -958,10 +959,10 @@ 3, 4, 5 /* ... */)) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.11 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -978,10 +979,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.12 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -993,10 +994,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.13 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1051,10 +1052,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.2 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -1072,10 +1073,10 @@ AND NOT (("posthog_person"."properties" -> 'key') = 'null')) ORDER BY "posthog_person"."id" ASC LIMIT 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.3 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -1092,10 +1093,10 @@ 3, 4, 5 /* ... */)) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.4 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -1114,10 +1115,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.5 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -1129,10 +1130,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1187,10 +1188,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.7 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1210,10 +1211,10 @@ WHERE ("posthog_featureflag"."key" = 'some-feature-new' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.8 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -1234,10 +1235,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_default_person_properties_adjustment.9 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -1253,10 +1254,10 @@ AND ("posthog_person"."properties" -> 'key') IS NOT NULL) ORDER BY "posthog_person"."id" ASC LIMIT 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1276,10 +1277,10 @@ WHERE ("posthog_featureflag"."key" = 'some-feature2' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.1 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -1300,10 +1301,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.2 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -1321,10 +1322,10 @@ AND NOT (("posthog_person"."properties" -> 'key') = 'null')) ORDER BY "posthog_person"."id" ASC LIMIT 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.3 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -1341,10 +1342,10 @@ 3, 4, 5 /* ... */)) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.4 - ' + ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", "posthog_featureflaghashkeyoverride"."person_id" @@ -1355,10 +1356,10 @@ 4, 5 /* ... */) AND "posthog_featureflaghashkeyoverride"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.5 - ' + ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", "posthog_featureflaghashkeyoverride"."person_id" @@ -1369,10 +1370,10 @@ 4, 5 /* ... */) AND "posthog_featureflaghashkeyoverride"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.6 - ' + ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", "posthog_featureflaghashkeyoverride"."person_id" @@ -1383,10 +1384,10 @@ 4, 5 /* ... */) AND "posthog_featureflaghashkeyoverride"."team_id" = 2) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.7 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -1405,10 +1406,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.8 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -1420,10 +1421,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) - ' ---- + ''' +# --- # name: TestCohortGenerationForFeatureFlag.test_creating_static_cohort_with_experience_continuity_flag.9 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1478,10 +1479,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1509,10 +1510,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1560,10 +1561,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.10 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -1580,10 +1581,10 @@ 3, 4, 5 /* ... */)) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.11 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -1602,10 +1603,10 @@ ORDER BY "posthog_person"."id" ASC LIMIT 10000 OFFSET 10000 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.12 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 @@ -1617,10 +1618,10 @@ WHERE (U1."cohort_id" = 2 AND U1."person_id" = "posthog_person"."id") LIMIT 1))) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.13 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1675,19 +1676,19 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.14 - ' + ''' /* user_id:192 celery:posthog.tasks.calculate_cohort.insert_cohort_from_feature_flag */ SELECT count(DISTINCT person_id) FROM person_static_cohort WHERE team_id = 2 AND cohort_id = 2 - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.15 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -1704,68 +1705,10 @@ HAVING max(is_deleted) = 0 ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- -# name: TestFeatureFlag.test_creating_static_cohort.16 - ' - /* user_id:0 request:_snapshot_ */ - SELECT id - FROM person - INNER JOIN - (SELECT person_id - FROM person_static_cohort - WHERE team_id = 2 - AND cohort_id = 2 - GROUP BY person_id, - cohort_id, - team_id) cohort_persons ON cohort_persons.person_id = person.id - WHERE team_id = 2 - GROUP BY id - HAVING max(is_deleted) = 0 - ORDER BY argMax(person.created_at, version) DESC, id DESC - LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- -# name: TestFeatureFlag.test_creating_static_cohort.17 - ' - SELECT "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id" - FROM "posthog_persondistinctid" - WHERE ("posthog_persondistinctid"."distinct_id" IN ('person3') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- -# name: TestFeatureFlag.test_creating_static_cohort.18 - ' - SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", - "posthog_featureflaghashkeyoverride"."hash_key", - "posthog_featureflaghashkeyoverride"."person_id" - FROM "posthog_featureflaghashkeyoverride" - WHERE ("posthog_featureflaghashkeyoverride"."person_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) - AND "posthog_featureflaghashkeyoverride"."team_id" = 2) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- -# name: TestFeatureFlag.test_creating_static_cohort.19 - ' - SELECT "posthog_person"."uuid" - FROM "posthog_person" - WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) - AND NOT (EXISTS - (SELECT (1) AS "a" - FROM "posthog_cohortpeople" U1 - WHERE (U1."cohort_id" = 2 - AND U1."person_id" = "posthog_person"."id") - LIMIT 1))) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -1792,67 +1735,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- -# name: TestFeatureFlag.test_creating_static_cohort.20 - ' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."surveys_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id" - FROM "posthog_team" - WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1860,10 +1746,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.4 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -1884,10 +1770,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.5 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1933,10 +1819,10 @@ WHERE ("posthog_featureflag"."team_id" = 2 AND "posthog_featureflag"."id" = 2) LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1991,10 +1877,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.7 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -2014,10 +1900,10 @@ WHERE ("posthog_featureflag"."key" = 'some-feature' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.8 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -2038,10 +1924,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestFeatureFlag.test_creating_static_cohort.9 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -2059,10 +1945,10 @@ AND NOT (("posthog_person"."properties" -> 'key') = 'null')) ORDER BY "posthog_person"."id" ASC LIMIT 10000 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -2089,10 +1975,10 @@ AND key NOT IN (SELECT feature_flag_key FROM existing_overrides) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.1 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -2132,20 +2018,20 @@ FROM posthog_person WHERE id = person_id AND team_id = 2) ON CONFLICT DO NOTHING - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.2 - ' + ''' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."distinct_id" IN ('example_id', 'random') AND "posthog_persondistinctid"."team_id" = 2) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.3 - ' + ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", "posthog_featureflaghashkeyoverride"."person_id" @@ -2156,10 +2042,10 @@ 4, 5 /* ... */) AND "posthog_featureflaghashkeyoverride"."team_id" = 2) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.4 - ' + ''' SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' AND "posthog_person"."properties" ? 'email' AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", @@ -2169,10 +2055,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.5 - ' + ''' SELECT pg_sleep(1); WITH target_person_ids AS @@ -2201,10 +2087,10 @@ AND key NOT IN (SELECT feature_flag_key FROM existing_overrides) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.6 - ' + ''' SELECT pg_sleep(1); SELECT "posthog_persondistinctid"."person_id", @@ -2213,10 +2099,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" IN ('example_id', 'random') AND "posthog_persondistinctid"."team_id" = 2) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.7 - ' + ''' SELECT pg_sleep(1); SELECT "posthog_persondistinctid"."person_id", @@ -2224,10 +2110,10 @@ FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."distinct_id" IN ('random') AND "posthog_persondistinctid"."team_id" = 2) - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db - ' + ''' SELECT pg_sleep(1); SELECT "posthog_grouptypemapping"."id", @@ -2238,10 +2124,10 @@ "posthog_grouptypemapping"."name_plural" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.1 - ' + ''' SELECT pg_sleep(1); SELECT "posthog_grouptypemapping"."id", @@ -2252,10 +2138,10 @@ "posthog_grouptypemapping"."name_plural" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.2 - ' + ''' SELECT pg_sleep(1); SELECT "posthog_grouptypemapping"."id", @@ -2266,10 +2152,10 @@ "posthog_grouptypemapping"."name_plural" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - ' ---- + ''' +# --- # name: TestResiliency.test_feature_flags_v3_with_slow_db_doesnt_try_to_compute_conditions_again - ' + ''' SELECT pg_sleep(1); SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' @@ -2284,5 +2170,5 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index 409e1bd46dd5b..802090b19aaba 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestInsight.test_insight_funnels_hogql_breakdown - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT array(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person_properties, 'fish'), ''), 'null'), '^"|"$', '')) AS value, count(*) as count @@ -27,10 +28,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestInsight.test_insight_funnels_hogql_breakdown.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -108,10 +109,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestInsight.test_insight_funnels_hogql_global_filters - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -175,10 +176,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestInsight.test_insight_funnels_hogql_local_filters - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -244,10 +245,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_breakdown - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT if(ifNull(less(toInt64OrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, 'int_value'), ''), 'null'), '^"|"$', '')), 10), 0), 'le%ss', 'more') AS value, count(*) as count @@ -260,10 +261,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_breakdown.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -305,10 +306,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_breakdown_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT if(ifNull(less(toInt64OrNull(nullIf(nullIf(events.mat_int_value, ''), 'null')), 10), 0), 'le%ss', 'more') AS value, count(*) as count @@ -321,10 +322,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_breakdown_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -366,10 +367,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_global_filters - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -392,10 +393,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_global_filters.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -434,10 +435,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_global_filters_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -460,10 +461,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_global_filters_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -502,10 +503,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_local_filters - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -544,10 +545,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestInsight.test_insight_trend_hogql_local_filters_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -586,10 +587,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -617,10 +618,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -668,10 +669,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.10 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -719,10 +720,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.11 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -737,10 +738,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.12 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -772,10 +773,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.13 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -795,10 +796,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -853,10 +854,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.15 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -877,10 +878,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.16 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -901,10 +902,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.17 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -922,10 +923,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.18 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -933,10 +934,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.19 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -960,10 +961,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -990,17 +991,17 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.20 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboarditem" WHERE NOT ("posthog_dashboarditem"."deleted") - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.21 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1028,10 +1029,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.22 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1079,10 +1080,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.23 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -1109,10 +1110,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.24 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -1133,20 +1134,20 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.25 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboarditem" WHERE (NOT ("posthog_dashboarditem"."deleted") AND "posthog_dashboarditem"."team_id" = 2 AND NOT ("posthog_dashboarditem"."filters" = '{}' AND "posthog_dashboarditem"."query" IS NOT NULL)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.26 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -1286,10 +1287,10 @@ AND "posthog_dashboarditem"."query" IS NOT NULL)) ORDER BY "posthog_dashboarditem"."order" ASC LIMIT 100 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.27 - ' + ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1385,10 +1386,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.28 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -1496,10 +1497,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.29 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -1514,10 +1515,10 @@ 3, 4, 5 /* ... */) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.3 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1538,28 +1539,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- -# name: TestInsight.test_listing_insights_does_not_nplus1.30 - ' - SELECT "posthog_taggeditem"."id", - "posthog_taggeditem"."tag_id", - "posthog_taggeditem"."dashboard_id", - "posthog_taggeditem"."insight_id", - "posthog_taggeditem"."event_definition_id", - "posthog_taggeditem"."property_definition_id", - "posthog_taggeditem"."action_id", - "posthog_taggeditem"."feature_flag_id" - FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."insight_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.4 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1607,10 +1590,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.5 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -1642,10 +1625,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1700,10 +1683,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.7 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1727,10 +1710,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.8 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1785,10 +1768,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.9 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1843,5 +1826,5 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_insight_funnels.ambr b/posthog/api/test/__snapshots__/test_insight_funnels.ambr index b6526fc322f2c..055fa778fea1e 100644 --- a/posthog/api/test/__snapshots__/test_insight_funnels.ambr +++ b/posthog/api/test/__snapshots__/test_insight_funnels.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: ClickhouseTestFunnelTypes.test_funnel_time_to_convert_auto_bins - ' + ''' /* user_id:0 request:_snapshot_ */ WITH step_runs AS (SELECT aggregation_target, steps, @@ -115,10 +116,10 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- # name: ClickhouseTestFunnelTypes.test_funnel_time_to_convert_auto_bins_strict - ' + ''' /* user_id:0 request:_snapshot_ */ WITH step_runs AS (SELECT aggregation_target, steps, @@ -216,10 +217,10 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- # name: ClickhouseTestFunnelTypes.test_funnel_time_to_convert_auto_bins_unordered - ' + ''' /* user_id:0 request:_snapshot_ */ WITH step_runs AS (SELECT aggregation_target, steps, @@ -404,5 +405,5 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index 06422e173c614..381f3164ba613 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.1 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -51,10 +52,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.10 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -74,10 +75,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.11 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -132,10 +133,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.12 - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -143,10 +144,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.13 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -167,10 +168,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.14 - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -178,10 +179,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.15 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -229,10 +230,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.16 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -264,10 +265,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.17 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -322,10 +323,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.18 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -333,10 +334,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.19 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -344,19 +345,19 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.2 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.20 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -364,10 +365,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.21 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -375,10 +376,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.22 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -386,10 +387,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.23 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -397,10 +398,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.24 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -408,10 +409,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.25 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -419,10 +420,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.26 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -430,10 +431,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.27 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -441,10 +442,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.28 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -452,10 +453,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.29 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -463,10 +464,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -474,10 +475,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.30 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -525,10 +526,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.31 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -543,10 +544,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.32 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -578,10 +579,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.33 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -601,10 +602,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.34 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -659,10 +660,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.35 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -670,10 +671,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.36 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -681,10 +682,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.37 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -692,10 +693,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.38 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -703,10 +704,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.39 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -714,10 +715,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.4 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -737,10 +738,10 @@ WHERE ("posthog_featureflag"."key" = 'copied-flag-key' AND "posthog_featureflag"."team_id" = 2) LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.40 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -748,10 +749,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.41 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -799,10 +800,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.42 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -834,10 +835,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.43 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -892,10 +893,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.44 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -903,10 +904,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.45 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -914,10 +915,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.46 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -925,10 +926,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.47 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -936,10 +937,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.48 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -947,10 +948,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.49 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -958,10 +959,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.5 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -982,10 +983,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.50 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -993,10 +994,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.51 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1004,10 +1005,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.52 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1015,10 +1016,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.53 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1026,10 +1027,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.54 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1037,10 +1038,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.55 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1048,10 +1049,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.56 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1099,10 +1100,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.57 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -1117,10 +1118,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.58 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -1152,10 +1153,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.59 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1175,10 +1176,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1226,10 +1227,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.60 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1284,10 +1285,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.61 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1295,10 +1296,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.62 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1306,10 +1307,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.63 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1317,10 +1318,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.64 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1328,10 +1329,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.65 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1339,10 +1340,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.66 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1350,10 +1351,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.67 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1373,10 +1374,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.68 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1431,10 +1432,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.69 - ' + ''' SELECT "posthog_experiment"."id", "posthog_experiment"."name", "posthog_experiment"."description", @@ -1451,10 +1452,10 @@ "posthog_experiment"."archived" FROM "posthog_experiment" WHERE "posthog_experiment"."feature_flag_id" = 2 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.7 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1476,10 +1477,10 @@ AND "posthog_featureflag"."team_id" = 2) ORDER BY "posthog_featureflag"."id" ASC LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.70 - ' + ''' SELECT "posthog_survey"."id", "posthog_survey"."team_id", "posthog_survey"."name", @@ -1498,10 +1499,10 @@ "posthog_survey"."archived" FROM "posthog_survey" WHERE "posthog_survey"."linked_flag_id" = 2 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.71 - ' + ''' SELECT "posthog_earlyaccessfeature"."id", "posthog_earlyaccessfeature"."team_id", "posthog_earlyaccessfeature"."feature_flag_id", @@ -1512,10 +1513,10 @@ "posthog_earlyaccessfeature"."created_at" FROM "posthog_earlyaccessfeature" WHERE "posthog_earlyaccessfeature"."feature_flag_id" = 2 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.72 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1536,20 +1537,20 @@ INNER JOIN "posthog_featureflagdashboards" ON ("posthog_dashboard"."id" = "posthog_featureflagdashboards"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_featureflagdashboards"."feature_flag_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.8 - ' + ''' SELECT (1) AS "a" FROM "posthog_featureflag" WHERE (NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."key" = 'copied-flag-key' AND "posthog_featureflag"."team_id" = 2) LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.9 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1569,10 +1570,10 @@ WHERE ("posthog_featureflag"."deleted" AND "posthog_featureflag"."key" = 'copied-flag-key' AND "posthog_featureflag"."team_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1600,10 +1601,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.1 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -1624,19 +1625,19 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.2 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1644,10 +1645,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.4 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1694,10 +1695,10 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.5 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -1721,10 +1722,10 @@ 3, 4, 5 /* ... */)) /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.6 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1753,10 +1754,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.7 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1785,5 +1786,5 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_person.ambr b/posthog/api/test/__snapshots__/test_person.ambr index eec7af1597c4d..6bbe2fd58bb21 100644 --- a/posthog/api/test/__snapshots__/test_person.ambr +++ b/posthog/api/test/__snapshots__/test_person.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPerson.test_filter_person_email - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -10,10 +11,10 @@ AND has(['another@gmail.com'], replaceRegexpAll(JSONExtractRaw(properties, 'email'), '^"|"$', '')) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_email_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -24,10 +25,10 @@ AND has(['another@gmail.com'], "pmat_email") ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_list - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -47,10 +48,10 @@ where distinct_id = 'distinct_id' ) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_list.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -70,10 +71,10 @@ where distinct_id = 'another_one' ) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_list.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -84,10 +85,10 @@ AND has(['another@gmail.com'], replaceRegexpAll(JSONExtractRaw(properties, 'email'), '^"|"$', '')) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_list.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -98,10 +99,10 @@ AND has(['inexistent'], replaceRegexpAll(JSONExtractRaw(properties, 'email'), '^"|"$', '')) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_list.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -121,10 +122,10 @@ where distinct_id = 'inexistent' ) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_filter_person_prop - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -140,10 +141,10 @@ AND (has(['some_value'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'some_prop'), '^"|"$', ''))) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_person_property_values - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -159,10 +160,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPerson.test_person_property_values.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -177,10 +178,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPerson.test_person_property_values_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -196,10 +197,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPerson.test_person_property_values_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -214,10 +215,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPerson.test_properties - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -233,10 +234,10 @@ AND (JSONHas(argMax(person.properties, version), 'email')) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_properties.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -252,10 +253,10 @@ AND (replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), 'email'), '^"|"$', '') ILIKE '%another@gm%') ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_properties_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -271,10 +272,10 @@ AND (notEmpty(argMax(person."pmat_email", version))) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_properties_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -290,10 +291,10 @@ AND (argMax(person."pmat_email", version) ILIKE '%another@gm%') ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_search - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -329,10 +330,10 @@ WHERE distinct_id = 'another@gm' )) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_search.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -368,10 +369,10 @@ WHERE distinct_id = 'distinct_id_3' )) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_search_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -407,10 +408,10 @@ WHERE distinct_id = 'another@gm' )) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_search_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -446,10 +447,10 @@ WHERE distinct_id = 'distinct_id_3' )) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_search_person_id - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -487,10 +488,10 @@ WHERE distinct_id = '00000000-0000-4000-8000-000000000000' ))) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPerson.test_search_person_id_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT id FROM person @@ -528,10 +529,10 @@ WHERE distinct_id = '00000000-0000-4000-8000-000000000000' ))) ORDER BY argMax(person.created_at, version) DESC, id DESC LIMIT 100 SETTINGS optimize_aggregation_in_order = 1 - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_email - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -558,10 +559,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_email_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -588,10 +589,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_list - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -627,10 +628,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_list.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -666,10 +667,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_list.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -696,10 +697,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_list.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -726,10 +727,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_list.4 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -765,10 +766,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_filter_person_prop - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -800,10 +801,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_person_property_values - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -819,10 +820,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_person_property_values.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -837,10 +838,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_person_property_values_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -856,10 +857,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_person_property_values_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT value, count(value) @@ -874,10 +875,10 @@ GROUP BY value ORDER BY count(value) DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_properties - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -909,10 +910,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_properties.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -944,10 +945,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_properties_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -979,10 +980,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_properties_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1014,10 +1015,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_search - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1069,10 +1070,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_search.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1124,10 +1125,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_search_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1179,10 +1180,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_search_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1234,10 +1235,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_search_person_id - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1291,10 +1292,10 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- # name: TestPersonFromClickhouse.test_search_person_id_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person.*, groupArray(pdi.distinct_id) as distinct_ids @@ -1348,5 +1349,5 @@ GROUP BY person.* ORDER BY created_at desc, id desc - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_persons_trends.ambr b/posthog/api/test/__snapshots__/test_persons_trends.ambr index 54826f700c925..13d4ba1b6b3ef 100644 --- a/posthog/api/test/__snapshots__/test_persons_trends.ambr +++ b/posthog/api/test/__snapshots__/test_persons_trends.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPersonTrends.test_trends_people_endpoint_filters_search - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value , @@ -33,10 +34,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestPersonTrends.test_trends_people_endpoint_filters_search.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT session_id FROM session_replay_events @@ -44,10 +45,10 @@ and session_id in [] AND min_first_timestamp >= '2020-01-07 00:00:00' AND max_last_timestamp <= '2020-01-13 23:59:59' - ' ---- + ''' +# --- # name: TestPersonTrends.test_trends_people_endpoint_filters_search.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value , @@ -91,10 +92,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestPersonTrends.test_trends_people_endpoint_filters_search.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT session_id FROM session_replay_events @@ -102,10 +103,10 @@ and session_id in [] AND min_first_timestamp >= '2020-01-07 00:00:00' AND max_last_timestamp <= '2020-01-13 23:59:59' - ' ---- + ''' +# --- # name: TestPersonTrends.test_trends_people_endpoint_includes_recordings - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value , @@ -139,10 +140,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestPersonTrends.test_trends_people_endpoint_includes_recordings.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT DISTINCT session_id FROM session_replay_events @@ -150,5 +151,5 @@ and session_id in ['s1'] AND min_first_timestamp >= '2020-01-07 00:00:00' AND max_last_timestamp <= '2020-01-13 23:59:59' - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_plugin.ambr b/posthog/api/test/__snapshots__/test_plugin.ambr index 9824b517236aa..fdb247349265e 100644 --- a/posthog/api/test/__snapshots__/test_plugin.ambr +++ b/posthog/api/test/__snapshots__/test_plugin.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPluginAPI.test_listing_plugins_is_not_nplus1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.1 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -51,10 +52,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.10 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_plugin" WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid @@ -64,10 +65,10 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.11 - ' + ''' SELECT "posthog_plugin"."id", "posthog_plugin"."organization_id", "posthog_plugin"."plugin_type", @@ -120,10 +121,10 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) LIMIT 100 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.12 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -151,10 +152,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.13 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -175,10 +176,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.14 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -199,19 +200,19 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.15 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.16 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_plugin" WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid @@ -221,10 +222,10 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.17 - ' + ''' SELECT "posthog_plugin"."id", "posthog_plugin"."organization_id", "posthog_plugin"."plugin_type", @@ -277,10 +278,10 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) LIMIT 100 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.18 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -308,10 +309,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.19 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -332,10 +333,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.2 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -356,10 +357,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.20 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -380,19 +381,19 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.21 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.22 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_plugin" WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid @@ -402,10 +403,10 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.23 - ' + ''' SELECT "posthog_plugin"."id", "posthog_plugin"."organization_id", "posthog_plugin"."plugin_type", @@ -458,19 +459,19 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) LIMIT 100 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.3 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.4 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -478,10 +479,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.5 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_plugin" WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid @@ -491,10 +492,10 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.6 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -522,10 +523,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.7 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -546,10 +547,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.8 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -570,14 +571,14 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.9 - ' + ''' SELECT (1) AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr index 7a687741a3e40..7b51cd4a56964 100644 --- a/posthog/api/test/__snapshots__/test_preflight.ambr +++ b/posthog/api/test/__snapshots__/test_preflight.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPreflight.test_cloud_preflight_limited_db_queries - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.1 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -38,10 +39,10 @@ WHERE "posthog_instancesetting"."key" IN ('constance:posthog:SLACK_APP_CLIENT_ID', 'constance:posthog:SLACK_APP_CLIENT_SECRET', 'constance:posthog:SLACK_APP_SIGNING_SECRET') /*controller='posthog.views.preflight_check',route='%5E_preflight/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ - ' ---- + ''' +# --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.2 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -96,5 +97,5 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='posthog.views.preflight_check',route='%5E_preflight/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_query.ambr b/posthog/api/test/__snapshots__/test_query.ambr index 8d9a9a5c2c4c8..d6872650996c3 100644 --- a/posthog/api/test/__snapshots__/test_query.ambr +++ b/posthog/api/test/__snapshots__/test_query.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestQuery.test_event_property_filter - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -13,10 +14,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_event_property_filter.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -30,10 +31,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_event_property_filter.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -47,10 +48,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_event_property_filter_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -64,10 +65,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_event_property_filter_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -81,10 +82,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_event_property_filter_materialized.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -98,10 +99,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_events_query_all_time_date - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event FROM events @@ -111,10 +112,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_events_query_all_time_date.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event FROM events @@ -124,10 +125,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_events_query_all_time_date.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event FROM events @@ -137,10 +138,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_full_hogql_query - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -151,10 +152,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_full_hogql_query_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -165,10 +166,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_full_hogql_query_view - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -179,10 +180,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_full_hogql_query_view.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT event_view.event AS event, event_view.distinct_id AS distinct_id, @@ -197,10 +198,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -214,10 +215,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -231,10 +232,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -248,10 +249,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -265,10 +266,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -282,10 +283,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -299,10 +300,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter_materialized.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -316,10 +317,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_property_filter_materialized.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -333,10 +334,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_person_property_filter - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -367,10 +368,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_person_property_filter_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -401,10 +402,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_property_filter_aggregations - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, count() @@ -416,10 +417,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_property_filter_aggregations.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, count() @@ -432,10 +433,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_property_filter_aggregations_materialized - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT nullIf(nullIf(events.mat_key, ''), 'null') AS key, count() @@ -447,10 +448,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_property_filter_aggregations_materialized.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT nullIf(nullIf(events.mat_key, ''), 'null') AS key, count() @@ -463,10 +464,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_select_event_person - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -478,10 +479,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_select_hogql_expressions - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, events.event AS event, @@ -494,10 +495,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_select_hogql_expressions.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT tuple(events.uuid, events.event, events.properties, toTimeZone(events.timestamp, 'UTC'), events.team_id, events.distinct_id, events.elements_chain, toTimeZone(events.created_at, 'UTC')), events.event AS event @@ -508,10 +509,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_select_hogql_expressions.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(), events.event AS event @@ -523,10 +524,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestQuery.test_select_hogql_expressions.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT count(), events.event AS event @@ -538,5 +539,5 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_survey.ambr b/posthog/api/test/__snapshots__/test_survey.ambr index d9c31db6fc9e2..2188b1b6aed2e 100644 --- a/posthog/api/test/__snapshots__/test_survey.ambr +++ b/posthog/api/test/__snapshots__/test_survey.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestResponsesCount.test_responses_count - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT JSONExtractString(properties, '$survey_id') as survey_id, count() @@ -7,10 +8,10 @@ WHERE event = 'survey sent' AND team_id = 2 GROUP BY survey_id - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_survey" WHERE (NOT "posthog_survey"."archived" @@ -18,10 +19,10 @@ AND "posthog_survey"."start_date" IS NOT NULL AND "posthog_survey"."team_id" = 2 AND NOT ("posthog_survey"."type" = 'api')) - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys.1 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -41,10 +42,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys.2 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -64,10 +65,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys.3 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_survey" WHERE (NOT "posthog_survey"."archived" @@ -75,10 +76,10 @@ AND "posthog_survey"."start_date" IS NOT NULL AND "posthog_survey"."team_id" = 2 AND NOT ("posthog_survey"."type" = 'api')) - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys.4 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -106,10 +107,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys.5 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -157,10 +158,10 @@ FROM "posthog_team" WHERE "posthog_team"."api_token" = 'token123' LIMIT 21 /*controller='posthog.api.survey.surveys',route='%5Eapi/surveys/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ - ' ---- + ''' +# --- # name: TestSurveysAPIList.test_list_surveys.6 - ' + ''' SELECT "posthog_survey"."id", "posthog_survey"."team_id", "posthog_survey"."name", @@ -212,5 +213,5 @@ LEFT OUTER JOIN "posthog_featureflag" T4 ON ("posthog_survey"."targeting_flag_id" = T4."id") WHERE ("posthog_survey"."team_id" = 2 AND NOT ("posthog_survey"."archived")) /*controller='posthog.api.survey.surveys',route='%5Eapi/surveys/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 7f55ce88d93ee..5d23b9a237a64 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -78,10 +79,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.10 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -89,10 +90,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.11 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -116,18 +117,18 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.12 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -155,10 +156,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -206,10 +207,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -236,10 +237,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.16 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -260,10 +261,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -381,10 +382,10 @@ AND "posthog_dashboard"."team_id" = 2 AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -403,10 +404,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -421,10 +422,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -451,10 +452,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.20 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -623,10 +624,10 @@ 4, 5 /* ... */)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21 - ' + ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", "posthog_insightcachingstate"."insight_id", @@ -644,10 +645,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22 - ' + ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -750,10 +751,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -775,10 +776,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -801,10 +802,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -971,10 +972,10 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26 - ' + ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", "posthog_insightcachingstate"."insight_id", @@ -992,10 +993,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27 - ' + ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1098,10 +1099,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -1123,10 +1124,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1149,10 +1150,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1173,10 +1174,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -1195,10 +1196,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1222,10 +1223,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1249,10 +1250,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1307,10 +1308,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1365,10 +1366,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -1389,10 +1390,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.8 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1413,10 +1414,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -1434,10 +1435,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1465,10 +1466,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1516,10 +1517,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.10 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1527,10 +1528,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.11 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1538,10 +1539,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.12 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1549,10 +1550,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.13 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1576,10 +1577,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1634,10 +1635,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.15 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1692,10 +1693,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.16 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1703,10 +1704,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.17 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1714,10 +1715,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.18 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1725,10 +1726,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.19 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1736,10 +1737,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -1766,10 +1767,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.20 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1777,10 +1778,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.21 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1788,10 +1789,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.22 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1839,10 +1840,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.23 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -1857,10 +1858,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.24 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -1892,10 +1893,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.25 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -1915,10 +1916,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.26 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1973,10 +1974,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.27 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1984,10 +1985,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.28 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1995,10 +1996,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.29 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2006,10 +2007,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.3 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -2030,10 +2031,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.30 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2041,10 +2042,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.31 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2052,10 +2053,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.32 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2063,10 +2064,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.33 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -2087,10 +2088,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.34 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -2111,10 +2112,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.35 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -2132,10 +2133,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.36 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2143,10 +2144,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.37 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2154,10 +2155,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.38 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2165,10 +2166,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.39 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2176,10 +2177,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.4 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2227,10 +2228,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.40 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2238,10 +2239,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.41 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2249,10 +2250,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.42 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2260,10 +2261,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.43 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2271,10 +2272,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.44 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2282,10 +2283,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.45 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2293,10 +2294,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.46 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2304,10 +2305,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.47 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2315,10 +2316,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.48 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -2326,10 +2327,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.49 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -2353,10 +2354,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.5 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -2388,10 +2389,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.50 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -2419,10 +2420,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.51 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2470,10 +2471,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.52 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -2500,10 +2501,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.53 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -2524,18 +2525,18 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.54 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.55 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -2653,10 +2654,10 @@ AND "posthog_dashboard"."team_id" = 2) ORDER BY "posthog_dashboard"."name" ASC LIMIT 300 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.56 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -2671,28 +2672,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.57 - ' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2747,10 +2730,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.7 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2758,10 +2741,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.8 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2769,10 +2752,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.9 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2780,10 +2763,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -2811,10 +2794,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2862,10 +2845,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.10 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -2876,10 +2859,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -2911,10 +2894,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2969,10 +2952,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2980,10 +2963,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2991,10 +2974,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3002,10 +2985,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3013,10 +2996,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3024,10 +3007,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3035,10 +3018,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -3062,10 +3045,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3120,10 +3103,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -3287,10 +3270,10 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3345,10 +3328,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3356,10 +3339,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3367,10 +3350,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3378,10 +3361,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3389,10 +3372,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3400,10 +3383,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3411,10 +3394,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3462,10 +3445,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -3480,10 +3463,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -3515,18 +3498,18 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -3546,10 +3529,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3604,10 +3587,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3615,10 +3598,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3626,10 +3609,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3637,10 +3620,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3648,10 +3631,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3659,10 +3642,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3670,10 +3653,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -3694,10 +3677,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -3718,10 +3701,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -3749,10 +3732,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -3770,10 +3753,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3781,10 +3764,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3792,10 +3775,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3803,10 +3786,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3814,10 +3797,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3825,10 +3808,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3836,10 +3819,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3847,10 +3830,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3858,10 +3841,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3869,10 +3852,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3920,10 +3903,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3931,10 +3914,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3942,10 +3925,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3953,10 +3936,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -3964,10 +3947,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -3991,18 +3974,18 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -4030,10 +4013,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4081,10 +4064,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -4111,10 +4094,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -4135,10 +4118,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -4165,10 +4148,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4216,10 +4199,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -4251,10 +4234,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4309,10 +4292,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4320,10 +4303,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4331,10 +4314,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4342,10 +4325,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.156 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4353,10 +4336,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.157 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4364,10 +4347,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.158 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4375,10 +4358,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.159 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -4402,10 +4385,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16 - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -4413,10 +4396,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.160 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4471,10 +4454,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.161 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4529,10 +4512,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.162 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4540,10 +4523,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.163 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4551,10 +4534,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.164 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4562,10 +4545,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.165 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4573,10 +4556,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.166 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4584,10 +4567,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.167 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4595,10 +4578,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.168 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4646,10 +4629,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.169 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -4664,10 +4647,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -4688,10 +4671,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.170 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -4723,10 +4706,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.171 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -4746,10 +4729,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.172 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4804,10 +4787,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.173 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4815,10 +4798,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.174 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4826,10 +4809,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.175 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4837,10 +4820,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.176 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4848,10 +4831,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.177 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4859,10 +4842,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.178 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4870,10 +4853,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.179 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -4894,10 +4877,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -4906,10 +4889,10 @@ AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.180 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -4930,10 +4913,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.181 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -4951,10 +4934,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.182 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4962,10 +4945,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.183 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4973,10 +4956,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.184 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4984,10 +4967,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.185 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4995,10 +4978,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.186 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5006,10 +4989,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.187 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5017,10 +5000,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.188 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5028,10 +5011,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.189 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5039,10 +5022,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -5053,10 +5036,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.190 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5064,10 +5047,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.191 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5075,10 +5058,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.192 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5086,10 +5069,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.193 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5097,10 +5080,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.194 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -5108,10 +5091,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.195 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -5135,18 +5118,18 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.196 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.197 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -5174,10 +5157,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.198 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5225,10 +5208,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.199 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -5255,10 +5238,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -5285,17 +5268,17 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.20 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.200 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -5316,10 +5299,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.201 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5367,10 +5350,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.202 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -5402,10 +5385,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.203 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5460,10 +5443,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.204 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5471,10 +5454,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.205 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5482,10 +5465,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.206 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5493,10 +5476,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.207 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5504,10 +5487,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.208 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5515,10 +5498,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.209 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5526,10 +5509,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5584,10 +5567,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.210 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -5611,10 +5594,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.211 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5669,10 +5652,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.212 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5727,10 +5710,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.213 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5738,10 +5721,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.214 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5749,10 +5732,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.215 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5760,10 +5743,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.216 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5771,10 +5754,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.217 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5782,10 +5765,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.218 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -5793,10 +5776,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.219 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5844,10 +5827,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -5858,10 +5841,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.220 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -5876,10 +5859,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.221 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -5911,10 +5894,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.222 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -5934,10 +5917,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.223 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -5992,10 +5975,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.224 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6003,10 +5986,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.225 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6014,10 +5997,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.226 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6025,10 +6008,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.227 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6036,10 +6019,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.228 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6047,10 +6030,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.229 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6058,10 +6041,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -6225,10 +6208,10 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.230 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -6249,10 +6232,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.231 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -6273,10 +6256,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.232 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -6294,10 +6277,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.233 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6305,10 +6288,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.234 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6316,10 +6299,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.235 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6327,10 +6310,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.236 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6338,10 +6321,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.237 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6349,10 +6332,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.238 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6360,10 +6343,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.239 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6371,18 +6354,18 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.240 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6390,10 +6373,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.241 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6401,10 +6384,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.242 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6412,10 +6395,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.243 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6423,10 +6406,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.244 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -6434,10 +6417,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.245 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -6445,10 +6428,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.246 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -6472,18 +6455,18 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.247 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.248 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -6511,10 +6494,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.249 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -6562,10 +6545,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -6593,10 +6576,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.250 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -6623,10 +6606,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.251 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -6647,10 +6630,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.252 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -6768,10 +6751,10 @@ AND "posthog_dashboard"."team_id" = 2 AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.253 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -6790,10 +6773,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.254 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -6808,10 +6791,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.255 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -6980,10 +6963,10 @@ 4, 5 /* ... */)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.256 - ' + ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", "posthog_insightcachingstate"."insight_id", @@ -7001,10 +6984,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.257 - ' + ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -7107,10 +7090,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.258 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -7132,10 +7115,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.259 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -7158,10 +7141,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -7209,10 +7192,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.260 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -7379,10 +7362,10 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.261 - ' + ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", "posthog_insightcachingstate"."insight_id", @@ -7400,10 +7383,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.262 - ' + ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -7506,10 +7489,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.263 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -7531,10 +7514,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.264 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -7557,10 +7540,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.265 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -7579,10 +7562,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.266 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7590,10 +7573,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.267 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7601,10 +7584,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.268 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7612,10 +7595,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.269 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7623,10 +7606,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -7653,10 +7636,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.270 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7664,10 +7647,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.271 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7675,10 +7658,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.272 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7686,10 +7669,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.273 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7697,10 +7680,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.274 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7708,10 +7691,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.275 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7719,10 +7702,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.276 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7730,10 +7713,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.277 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7741,10 +7724,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.278 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -7768,10 +7751,10 @@ 3, 4, 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.279 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7779,10 +7762,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -7803,10 +7786,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.280 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7814,10 +7797,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.281 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7825,10 +7808,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.282 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7836,10 +7819,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.283 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7847,10 +7830,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.284 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7858,10 +7841,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.285 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7869,10 +7852,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.286 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7880,10 +7863,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.287 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7891,10 +7874,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.288 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7902,10 +7885,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.289 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7913,10 +7896,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -7937,10 +7920,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.290 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7948,10 +7931,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.291 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7959,10 +7942,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.292 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7970,10 +7953,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.293 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7981,10 +7964,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.294 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -7992,10 +7975,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.295 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8003,10 +7986,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.296 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8014,10 +7997,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.297 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8025,10 +8008,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.298 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8036,10 +8019,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.299 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8047,10 +8030,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8058,10 +8041,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.30 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8109,10 +8092,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.300 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8120,10 +8103,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.301 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8131,10 +8114,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.302 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8142,10 +8125,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.303 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8153,10 +8136,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.304 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8164,10 +8147,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.305 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8175,10 +8158,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.306 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8186,10 +8169,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.307 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8197,10 +8180,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.308 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8208,10 +8191,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.309 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8219,10 +8202,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -8254,10 +8237,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.310 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8265,10 +8248,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.311 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8276,10 +8259,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.312 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8287,10 +8270,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.313 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8298,10 +8281,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.314 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8309,21 +8292,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.315 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.32 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8378,10 +8350,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8389,10 +8361,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8400,10 +8372,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.35 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8411,10 +8383,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8422,10 +8394,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8433,10 +8405,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8444,10 +8416,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -8471,10 +8443,10 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.4 - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -8482,10 +8454,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.40 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8540,10 +8512,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.41 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8598,10 +8570,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.42 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8609,10 +8581,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.43 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8620,10 +8592,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.44 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8631,10 +8603,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.45 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8642,10 +8614,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8653,10 +8625,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8664,10 +8636,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8715,10 +8687,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -8733,10 +8705,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -8757,10 +8729,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -8792,10 +8764,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -8815,10 +8787,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8873,10 +8845,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8884,10 +8856,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8895,10 +8867,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8906,10 +8878,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8917,10 +8889,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8928,10 +8900,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -8939,10 +8911,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -8997,10 +8969,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -9009,10 +8981,10 @@ AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9020,10 +8992,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9031,10 +9003,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9042,10 +9014,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9053,10 +9025,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9064,10 +9036,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9075,10 +9047,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -9126,10 +9098,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -9144,10 +9116,10 @@ FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.68 - ' + ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", "posthog_dashboarditem"."derived_name", @@ -9179,10 +9151,10 @@ FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -9202,10 +9174,10 @@ FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.7 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -9216,10 +9188,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.70 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -9274,10 +9246,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.71 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9285,10 +9257,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9296,10 +9268,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9307,10 +9279,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9318,10 +9290,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9329,10 +9301,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9340,10 +9312,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -9364,10 +9336,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -9388,10 +9360,10 @@ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -9409,17 +9381,17 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.8 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9427,10 +9399,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9438,10 +9410,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9449,10 +9421,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9460,10 +9432,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9471,10 +9443,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9482,10 +9454,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9493,10 +9465,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9504,10 +9476,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9515,10 +9487,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9526,10 +9498,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -9584,10 +9556,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9595,10 +9567,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -9606,10 +9578,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92 - ' + ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -9617,10 +9589,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -9644,18 +9616,18 @@ 3, 4, 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -9683,10 +9655,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -9734,10 +9706,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -9764,10 +9736,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -9788,10 +9760,10 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -9839,10 +9811,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -9850,10 +9822,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -9881,10 +9853,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.10 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -10051,10 +10023,10 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.2 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -10102,10 +10074,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.3 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -10132,10 +10104,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.4 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -10143,10 +10115,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.5 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -10167,10 +10139,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.6 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -10288,10 +10260,10 @@ AND "posthog_dashboard"."team_id" = 2 AND "posthog_dashboard"."id" = 2) LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.7 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -10310,10 +10282,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.8 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -10328,10 +10300,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.9 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -10500,10 +10472,10 @@ 4, 5 /* ... */)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -10531,10 +10503,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -10582,10 +10554,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.10 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -10596,10 +10568,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.11 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -10763,18 +10735,18 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.12 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.13 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -10802,10 +10774,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -10853,10 +10825,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.15 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -10883,10 +10855,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.16 - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -10894,10 +10866,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.17 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -10918,10 +10890,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.18 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -10930,10 +10902,10 @@ AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.19 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -10944,10 +10916,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -10974,17 +10946,17 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.20 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.21 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -11039,10 +11011,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.22 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -11053,10 +11025,10 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.23 - ' + ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", "posthog_dashboardtile"."insight_id", @@ -11220,18 +11192,18 @@ AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.24 - ' + ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.25 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -11259,10 +11231,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.26 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -11310,10 +11282,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.27 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -11340,10 +11312,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.28 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -11364,18 +11336,18 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.29 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -11383,10 +11355,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.30 - ' + ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", "posthog_dashboard"."description", @@ -11504,10 +11476,10 @@ AND "posthog_dashboard"."team_id" = 2) ORDER BY "posthog_dashboard"."name" ASC LIMIT 100 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.31 - ' + ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", "posthog_taggeditem"."dashboard_id", @@ -11526,28 +11498,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.32 - ' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- -# name: TestDashboard.test_retrieve_dashboard_list.33 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -11562,10 +11516,10 @@ 3, 4, 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.4 - ' + ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -11573,10 +11527,10 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.5 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -11597,10 +11551,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.6 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboardtile" INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") @@ -11609,10 +11563,10 @@ AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.7 - ' + ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", "posthog_sharingconfiguration"."dashboard_id", @@ -11623,17 +11577,17 @@ "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.8 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.9 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -11688,5 +11642,5 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index 4c9660eb664b3..ff161a2839f81 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestNotebooks.test_updates_notebook - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -27,10 +28,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -78,10 +79,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.10 - ' + ''' SELECT "posthog_notebook"."id", "posthog_notebook"."short_id", "posthog_notebook"."team_id", @@ -97,10 +98,10 @@ FROM "posthog_notebook" WHERE "posthog_notebook"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.11 - ' + ''' SELECT "posthog_notebook"."id", "posthog_notebook"."short_id", "posthog_notebook"."team_id", @@ -118,10 +119,10 @@ LIMIT 21 FOR UPDATE /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.12 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -150,10 +151,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.13 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -181,10 +182,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -232,10 +233,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.15 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -262,10 +263,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.16 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -273,18 +274,18 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.17 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_activitylog" WHERE ("posthog_activitylog"."scope" = 'Notebook' AND "posthog_activitylog"."team_id" = 2) /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.18 - ' + ''' SELECT "posthog_activitylog"."id", "posthog_activitylog"."team_id", "posthog_activitylog"."organization_id", @@ -326,18 +327,10 @@ AND "posthog_activitylog"."team_id" = 2) ORDER BY "posthog_activitylog"."created_at" DESC LIMIT 2 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- -# name: TestNotebooks.test_updates_notebook.19 - ' - SELECT COUNT(*) AS "__count" - FROM "posthog_activitylog" - WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 2) /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -364,55 +357,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ - ' ---- -# name: TestNotebooks.test_updates_notebook.20 - ' - SELECT "posthog_activitylog"."id", - "posthog_activitylog"."team_id", - "posthog_activitylog"."organization_id", - "posthog_activitylog"."user_id", - "posthog_activitylog"."is_system", - "posthog_activitylog"."activity", - "posthog_activitylog"."item_id", - "posthog_activitylog"."scope", - "posthog_activitylog"."detail", - "posthog_activitylog"."created_at", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."is_active", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."email_opt_in", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."events_column_config" - FROM "posthog_activitylog" - LEFT OUTER JOIN "posthog_user" ON ("posthog_activitylog"."user_id" = "posthog_user"."id") - WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 2) - ORDER BY "posthog_activitylog"."created_at" DESC - LIMIT 2 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -420,10 +368,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.4 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -451,10 +399,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.5 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -502,10 +450,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.6 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -532,10 +480,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.7 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -543,10 +491,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.8 - ' + ''' SELECT "posthog_notebook"."id", "posthog_notebook"."short_id", "posthog_notebook"."team_id", @@ -667,10 +615,10 @@ WHERE ("posthog_notebook"."team_id" = 2 AND "posthog_notebook"."short_id" = '00000000') LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- # name: TestNotebooks.test_updates_notebook.9 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -725,5 +673,5 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/clickhouse/client/test/__snapshots__/test_execute_async.ambr b/posthog/clickhouse/client/test/__snapshots__/test_execute_async.ambr index 49c54a728a8bb..c22150e57b8c5 100644 --- a/posthog/clickhouse/client/test/__snapshots__/test_execute_async.ambr +++ b/posthog/clickhouse/client/test/__snapshots__/test_execute_async.ambr @@ -1,8 +1,9 @@ +# serializer version: 1 # name: ClickhouseClientTestCase.test_async_query_client - ' + ''' SELECT plus(1, 1) LIMIT 100 SETTINGS readonly=2, max_execution_time=600, allow_experimental_object_type=1 - ' ---- + ''' +# --- diff --git a/posthog/clickhouse/test/__snapshots__/test_schema.ambr b/posthog/clickhouse/test/__snapshots__/test_schema.ambr index d337f3d55201e..c445d3dbbe5e5 100644 --- a/posthog/clickhouse/test/__snapshots__/test_schema.ambr +++ b/posthog/clickhouse/test/__snapshots__/test_schema.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: test_create_kafka_events_with_disabled_protobuf - ' + ''' CREATE TABLE IF NOT EXISTS kafka_events_json ON CLUSTER 'posthog' ( @@ -31,10 +32,10 @@ SETTINGS kafka_skip_broken_messages = 100 - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_app_metrics] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_app_metrics ON CLUSTER 'posthog' ( @@ -52,10 +53,10 @@ ) ENGINE=Kafka('test.kafka.broker:9092', 'clickhouse_app_metrics_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_events_dead_letter_queue] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_events_dead_letter_queue ON CLUSTER 'posthog' ( @@ -78,10 +79,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'events_dead_letter_queue_test', 'group1', 'JSONEachRow') SETTINGS kafka_skip_broken_messages=1000 - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_events_json] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_events_json ON CLUSTER 'posthog' ( @@ -113,10 +114,10 @@ SETTINGS kafka_skip_broken_messages = 100 - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_groups] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_groups ON CLUSTER 'posthog' ( @@ -128,10 +129,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_groups_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_ingestion_warnings] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_ingestion_warnings ON CLUSTER 'posthog' ( @@ -143,10 +144,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_ingestion_warnings_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_log_entries ON CLUSTER 'posthog' ( @@ -172,10 +173,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'log_entries_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_performance_events] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_performance_events ON CLUSTER 'posthog' ( @@ -229,10 +230,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_performance_events_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_person] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_person ON CLUSTER 'posthog' ( @@ -246,10 +247,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_person_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_person_distinct_id2] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_person_distinct_id2 ON CLUSTER 'posthog' ( @@ -261,10 +262,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_person_distinct_id_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_person_distinct_id] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_person_distinct_id ON CLUSTER 'posthog' ( @@ -275,10 +276,10 @@ is_deleted Nullable(Int8) ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_person_unique_id_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_person_overrides] - ' + ''' CREATE TABLE IF NOT EXISTS `posthog_test`.`kafka_person_overrides` ON CLUSTER 'posthog' @@ -307,10 +308,10 @@ version FROM `posthog_test`.`person_overrides` - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_plugin_log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_plugin_log_entries ON CLUSTER 'posthog' ( @@ -326,10 +327,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'plugin_log_entries_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_session_recording_events] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_session_recording_events ON CLUSTER 'posthog' ( @@ -345,10 +346,10 @@ ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_session_recording_events_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_kafka_table_with_different_kafka_host[kafka_session_replay_events] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_session_replay_events ON CLUSTER 'posthog' ( @@ -371,10 +372,10 @@ snapshot_source LowCardinality(Nullable(String)) ) ENGINE = Kafka('test.kafka.broker:9092', 'clickhouse_session_replay_events_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[app_metrics] - ' + ''' CREATE TABLE IF NOT EXISTS app_metrics ON CLUSTER 'posthog' ( @@ -397,10 +398,10 @@ ) ENGINE=Distributed('posthog', 'posthog_test', 'sharded_app_metrics', rand()) - ' ---- + ''' +# --- # name: test_create_table_query[app_metrics_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS app_metrics_mv ON CLUSTER 'posthog' TO posthog_test.sharded_app_metrics @@ -418,10 +419,10 @@ error_details FROM posthog_test.kafka_app_metrics - ' ---- + ''' +# --- # name: test_create_table_query[channel_definition] - ' + ''' CREATE TABLE IF NOT EXISTS channel_definition ON CLUSTER 'posthog' ( domain String NOT NULL, @@ -432,10 +433,10 @@ ) ENGINE = ReplicatedMergeTree('/clickhouse/tables/77f1df52-4b43-11e9-910f-b8ca3a9b9f3e_noshard/posthog.channel_definition', '{replica}-{shard}') ORDER BY (domain, kind); - ' ---- + ''' +# --- # name: test_create_table_query[cohortpeople] - ' + ''' CREATE TABLE IF NOT EXISTS cohortpeople ON CLUSTER 'posthog' ( @@ -448,10 +449,10 @@ Order By (team_id, cohort_id, person_id, version) - ' ---- + ''' +# --- # name: test_create_table_query[events] - ' + ''' CREATE TABLE IF NOT EXISTS events ON CLUSTER 'posthog' ( @@ -492,10 +493,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_events', sipHash64(distinct_id)) - ' ---- + ''' +# --- # name: test_create_table_query[events_dead_letter_queue] - ' + ''' CREATE TABLE IF NOT EXISTS events_dead_letter_queue ON CLUSTER 'posthog' ( @@ -527,10 +528,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query[events_dead_letter_queue_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS events_dead_letter_queue_mv ON CLUSTER 'posthog' TO posthog_test.events_dead_letter_queue @@ -555,10 +556,10 @@ _offset FROM posthog_test.kafka_events_dead_letter_queue - ' ---- + ''' +# --- # name: test_create_table_query[events_json_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS events_json_mv ON CLUSTER 'posthog' TO posthog_test.writable_events @@ -589,10 +590,10 @@ _offset FROM posthog_test.kafka_events_json - ' ---- + ''' +# --- # name: test_create_table_query[groups] - ' + ''' CREATE TABLE IF NOT EXISTS groups ON CLUSTER 'posthog' ( @@ -609,10 +610,10 @@ Order By (team_id, group_type_index, group_key) - ' ---- + ''' +# --- # name: test_create_table_query[groups_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS groups_mv ON CLUSTER 'posthog' TO posthog_test.groups @@ -626,10 +627,10 @@ _offset FROM posthog_test.kafka_groups - ' ---- + ''' +# --- # name: test_create_table_query[ingestion_warnings] - ' + ''' CREATE TABLE IF NOT EXISTS ingestion_warnings ON CLUSTER 'posthog' ( @@ -645,10 +646,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_ingestion_warnings', rand()) - ' ---- + ''' +# --- # name: test_create_table_query[ingestion_warnings_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS ingestion_warnings_mv ON CLUSTER 'posthog' TO posthog_test.ingestion_warnings @@ -663,10 +664,10 @@ _partition FROM posthog_test.kafka_ingestion_warnings - ' ---- + ''' +# --- # name: test_create_table_query[kafka_app_metrics] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_app_metrics ON CLUSTER 'posthog' ( @@ -684,10 +685,10 @@ ) ENGINE=Kafka('kafka:9092', 'clickhouse_app_metrics_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_events_dead_letter_queue] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_events_dead_letter_queue ON CLUSTER 'posthog' ( @@ -710,10 +711,10 @@ ) ENGINE = Kafka('kafka:9092', 'events_dead_letter_queue_test', 'group1', 'JSONEachRow') SETTINGS kafka_skip_broken_messages=1000 - ' ---- + ''' +# --- # name: test_create_table_query[kafka_events_json] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_events_json ON CLUSTER 'posthog' ( @@ -745,10 +746,10 @@ SETTINGS kafka_skip_broken_messages = 100 - ' ---- + ''' +# --- # name: test_create_table_query[kafka_groups] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_groups ON CLUSTER 'posthog' ( @@ -760,10 +761,10 @@ ) ENGINE = Kafka('kafka:9092', 'clickhouse_groups_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_ingestion_warnings] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_ingestion_warnings ON CLUSTER 'posthog' ( @@ -775,10 +776,10 @@ ) ENGINE = Kafka('kafka:9092', 'clickhouse_ingestion_warnings_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_log_entries ON CLUSTER 'posthog' ( @@ -804,10 +805,10 @@ ) ENGINE = Kafka('kafka:9092', 'log_entries_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_performance_events] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_performance_events ON CLUSTER 'posthog' ( @@ -861,10 +862,10 @@ ) ENGINE = Kafka('kafka:9092', 'clickhouse_performance_events_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_person] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_person ON CLUSTER 'posthog' ( @@ -878,10 +879,10 @@ ) ENGINE = Kafka('kafka:9092', 'clickhouse_person_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_person_distinct_id2] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_person_distinct_id2 ON CLUSTER 'posthog' ( @@ -893,10 +894,10 @@ ) ENGINE = Kafka('kafka:9092', 'clickhouse_person_distinct_id_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_person_distinct_id] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_person_distinct_id ON CLUSTER 'posthog' ( @@ -907,10 +908,10 @@ is_deleted Nullable(Int8) ) ENGINE = Kafka('kafka:9092', 'clickhouse_person_unique_id_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_person_overrides] - ' + ''' CREATE TABLE IF NOT EXISTS `posthog_test`.`kafka_person_overrides` ON CLUSTER 'posthog' @@ -939,10 +940,10 @@ version FROM `posthog_test`.`person_overrides` - ' ---- + ''' +# --- # name: test_create_table_query[kafka_plugin_log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_plugin_log_entries ON CLUSTER 'posthog' ( @@ -958,10 +959,10 @@ ) ENGINE = Kafka('kafka:9092', 'plugin_log_entries_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_session_recording_events] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_session_recording_events ON CLUSTER 'posthog' ( @@ -977,10 +978,10 @@ ) ENGINE = Kafka('kafka:9092', 'clickhouse_session_recording_events_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[kafka_session_replay_events] - ' + ''' CREATE TABLE IF NOT EXISTS kafka_session_replay_events ON CLUSTER 'posthog' ( @@ -1003,10 +1004,10 @@ snapshot_source LowCardinality(Nullable(String)) ) ENGINE = Kafka('kafka:9092', 'clickhouse_session_replay_events_test', 'group1', 'JSONEachRow') - ' ---- + ''' +# --- # name: test_create_table_query[log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS log_entries ON CLUSTER 'posthog' ( @@ -1038,10 +1039,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query[log_entries_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS log_entries_mv ON CLUSTER 'posthog' TO posthog_test.log_entries @@ -1057,10 +1058,10 @@ _offset FROM posthog_test.kafka_log_entries - ' ---- + ''' +# --- # name: test_create_table_query[performance_events] - ' + ''' CREATE TABLE IF NOT EXISTS performance_events ON CLUSTER 'posthog' ( @@ -1118,10 +1119,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_performance_events', sipHash64(session_id)) - ' ---- + ''' +# --- # name: test_create_table_query[performance_events_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS performance_events_mv ON CLUSTER 'posthog' TO posthog_test.writeable_performance_events @@ -1130,10 +1131,10 @@ ,_timestamp, _offset, _partition FROM posthog_test.kafka_performance_events - ' ---- + ''' +# --- # name: test_create_table_query[person] - ' + ''' CREATE TABLE IF NOT EXISTS person ON CLUSTER 'posthog' ( @@ -1155,10 +1156,10 @@ Order By (team_id, id) - ' ---- + ''' +# --- # name: test_create_table_query[person_distinct_id2] - ' + ''' CREATE TABLE IF NOT EXISTS person_distinct_id2 ON CLUSTER 'posthog' ( @@ -1180,10 +1181,10 @@ ORDER BY (team_id, distinct_id) SETTINGS index_granularity = 512 - ' ---- + ''' +# --- # name: test_create_table_query[person_distinct_id2_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS person_distinct_id2_mv ON CLUSTER 'posthog' TO posthog_test.person_distinct_id2 @@ -1198,10 +1199,10 @@ _partition FROM posthog_test.kafka_person_distinct_id2 - ' ---- + ''' +# --- # name: test_create_table_query[person_distinct_id] - ' + ''' CREATE TABLE IF NOT EXISTS person_distinct_id ON CLUSTER 'posthog' ( @@ -1218,10 +1219,10 @@ Order By (team_id, distinct_id, person_id) - ' ---- + ''' +# --- # name: test_create_table_query[person_distinct_id_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS person_distinct_id_mv ON CLUSTER 'posthog' TO posthog_test.person_distinct_id @@ -1234,10 +1235,10 @@ _offset FROM posthog_test.kafka_person_distinct_id - ' ---- + ''' +# --- # name: test_create_table_query[person_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS person_mv ON CLUSTER 'posthog' TO posthog_test.person @@ -1253,10 +1254,10 @@ _offset FROM posthog_test.kafka_person - ' ---- + ''' +# --- # name: test_create_table_query[person_overrides] - ' + ''' CREATE TABLE IF NOT EXISTS `posthog_test`.`person_overrides` ON CLUSTER 'posthog' ( @@ -1323,10 +1324,10 @@ -- ensure that we are always querying the latest version of the mapping. ORDER BY (team_id, old_person_id) - ' ---- + ''' +# --- # name: test_create_table_query[person_overrides_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS `posthog_test`.`person_overrides_mv` ON CLUSTER 'posthog' @@ -1343,10 +1344,10 @@ version FROM `posthog_test`.`kafka_person_overrides` - ' ---- + ''' +# --- # name: test_create_table_query[person_static_cohort] - ' + ''' CREATE TABLE IF NOT EXISTS person_static_cohort ON CLUSTER 'posthog' ( @@ -1362,10 +1363,10 @@ Order By (team_id, cohort_id, person_id, id) - ' ---- + ''' +# --- # name: test_create_table_query[plugin_log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS plugin_log_entries ON CLUSTER 'posthog' ( @@ -1387,10 +1388,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query[plugin_log_entries_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS plugin_log_entries_mv ON CLUSTER 'posthog' TO posthog_test.plugin_log_entries @@ -1408,10 +1409,10 @@ _offset FROM posthog_test.kafka_plugin_log_entries - ' ---- + ''' +# --- # name: test_create_table_query[session_recording_events] - ' + ''' CREATE TABLE IF NOT EXISTS session_recording_events ON CLUSTER 'posthog' ( @@ -1430,10 +1431,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_session_recording_events', sipHash64(distinct_id)) - ' ---- + ''' +# --- # name: test_create_table_query[session_recording_events_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS session_recording_events_mv ON CLUSTER 'posthog' TO posthog_test.writable_session_recording_events @@ -1450,10 +1451,10 @@ _offset FROM posthog_test.kafka_session_recording_events - ' ---- + ''' +# --- # name: test_create_table_query[session_replay_events] - ' + ''' CREATE TABLE IF NOT EXISTS session_replay_events ON CLUSTER 'posthog' ( @@ -1489,10 +1490,10 @@ _timestamp SimpleAggregateFunction(max, DateTime) ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_session_replay_events', sipHash64(distinct_id)) - ' ---- + ''' +# --- # name: test_create_table_query[session_replay_events_mv] - ' + ''' CREATE MATERIALIZED VIEW IF NOT EXISTS session_replay_events_mv ON CLUSTER 'posthog' TO posthog_test.writable_session_replay_events ( @@ -1540,10 +1541,10 @@ FROM posthog_test.kafka_session_replay_events group by session_id, team_id - ' ---- + ''' +# --- # name: test_create_table_query[sharded_app_metrics] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_app_metrics ON CLUSTER 'posthog' ( @@ -1568,10 +1569,10 @@ PARTITION BY toYYYYMM(timestamp) ORDER BY (team_id, plugin_config_id, job_id, category, toStartOfHour(timestamp), error_type, error_uuid) - ' ---- + ''' +# --- # name: test_create_table_query[sharded_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_events ON CLUSTER 'posthog' ( @@ -1626,10 +1627,10 @@ SAMPLE BY cityHash64(distinct_id) - ' ---- + ''' +# --- # name: test_create_table_query[sharded_ingestion_warnings] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_ingestion_warnings ON CLUSTER 'posthog' ( @@ -1647,10 +1648,10 @@ PARTITION BY toYYYYMMDD(timestamp) ORDER BY (team_id, toHour(timestamp), type, source, timestamp) - ' ---- + ''' +# --- # name: test_create_table_query[sharded_performance_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_performance_events ON CLUSTER 'posthog' ( @@ -1712,10 +1713,10 @@ - ' ---- + ''' +# --- # name: test_create_table_query[sharded_session_recording_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_session_recording_events ON CLUSTER 'posthog' ( @@ -1741,10 +1742,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query[sharded_session_replay_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_session_replay_events ON CLUSTER 'posthog' ( @@ -1794,10 +1795,10 @@ ORDER BY (toDate(min_first_timestamp), team_id, session_id) SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query[writable_events] - ' + ''' CREATE TABLE IF NOT EXISTS writable_events ON CLUSTER 'posthog' ( @@ -1830,10 +1831,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_events', sipHash64(distinct_id)) - ' ---- + ''' +# --- # name: test_create_table_query[writable_session_recording_events] - ' + ''' CREATE TABLE IF NOT EXISTS writable_session_recording_events ON CLUSTER 'posthog' ( @@ -1852,10 +1853,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_session_recording_events', sipHash64(distinct_id)) - ' ---- + ''' +# --- # name: test_create_table_query[writeable_performance_events] - ' + ''' CREATE TABLE IF NOT EXISTS writeable_performance_events ON CLUSTER 'posthog' ( @@ -1913,10 +1914,10 @@ ) ENGINE = Distributed('posthog', 'posthog_test', 'sharded_performance_events', sipHash64(session_id)) - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[channel_definition] - ' + ''' CREATE TABLE IF NOT EXISTS channel_definition ON CLUSTER 'posthog' ( domain String NOT NULL, @@ -1927,10 +1928,10 @@ ) ENGINE = ReplicatedMergeTree('/clickhouse/tables/77f1df52-4b43-11e9-910f-b8ca3a9b9f3e_noshard/posthog.channel_definition', '{replica}-{shard}') ORDER BY (domain, kind); - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[cohortpeople] - ' + ''' CREATE TABLE IF NOT EXISTS cohortpeople ON CLUSTER 'posthog' ( @@ -1943,10 +1944,10 @@ Order By (team_id, cohort_id, person_id, version) - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[events_dead_letter_queue] - ' + ''' CREATE TABLE IF NOT EXISTS events_dead_letter_queue ON CLUSTER 'posthog' ( @@ -1978,10 +1979,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[groups] - ' + ''' CREATE TABLE IF NOT EXISTS groups ON CLUSTER 'posthog' ( @@ -1998,10 +1999,10 @@ Order By (team_id, group_type_index, group_key) SETTINGS storage_policy = 'hot_to_cold' - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS log_entries ON CLUSTER 'posthog' ( @@ -2033,10 +2034,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[person] - ' + ''' CREATE TABLE IF NOT EXISTS person ON CLUSTER 'posthog' ( @@ -2058,10 +2059,10 @@ Order By (team_id, id) SETTINGS storage_policy = 'hot_to_cold' - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[person_distinct_id2] - ' + ''' CREATE TABLE IF NOT EXISTS person_distinct_id2 ON CLUSTER 'posthog' ( @@ -2083,10 +2084,10 @@ ORDER BY (team_id, distinct_id) SETTINGS index_granularity = 512 - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[person_distinct_id] - ' + ''' CREATE TABLE IF NOT EXISTS person_distinct_id ON CLUSTER 'posthog' ( @@ -2103,10 +2104,10 @@ Order By (team_id, distinct_id, person_id) SETTINGS storage_policy = 'hot_to_cold' - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[person_overrides] - ' + ''' CREATE TABLE IF NOT EXISTS `posthog_test`.`person_overrides` ON CLUSTER 'posthog' ( @@ -2173,10 +2174,10 @@ -- ensure that we are always querying the latest version of the mapping. ORDER BY (team_id, old_person_id) - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[person_static_cohort] - ' + ''' CREATE TABLE IF NOT EXISTS person_static_cohort ON CLUSTER 'posthog' ( @@ -2192,10 +2193,10 @@ Order By (team_id, cohort_id, person_id, id) SETTINGS storage_policy = 'hot_to_cold' - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[plugin_log_entries] - ' + ''' CREATE TABLE IF NOT EXISTS plugin_log_entries ON CLUSTER 'posthog' ( @@ -2217,10 +2218,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[sharded_app_metrics] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_app_metrics ON CLUSTER 'posthog' ( @@ -2245,10 +2246,10 @@ PARTITION BY toYYYYMM(timestamp) ORDER BY (team_id, plugin_config_id, job_id, category, toStartOfHour(timestamp), error_type, error_uuid) - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[sharded_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_events ON CLUSTER 'posthog' ( @@ -2303,10 +2304,10 @@ SAMPLE BY cityHash64(distinct_id) SETTINGS storage_policy = 'hot_to_cold' - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[sharded_ingestion_warnings] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_ingestion_warnings ON CLUSTER 'posthog' ( @@ -2324,10 +2325,10 @@ PARTITION BY toYYYYMMDD(timestamp) ORDER BY (team_id, toHour(timestamp), type, source, timestamp) - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[sharded_performance_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_performance_events ON CLUSTER 'posthog' ( @@ -2389,10 +2390,10 @@ SETTINGS storage_policy = 'hot_to_cold' - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[sharded_session_recording_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_session_recording_events ON CLUSTER 'posthog' ( @@ -2418,10 +2419,10 @@ SETTINGS index_granularity=512 - ' ---- + ''' +# --- # name: test_create_table_query_replicated_and_storage[sharded_session_replay_events] - ' + ''' CREATE TABLE IF NOT EXISTS sharded_session_replay_events ON CLUSTER 'posthog' ( @@ -2471,5 +2472,5 @@ ORDER BY (toDate(min_first_timestamp), team_id, session_id) SETTINGS index_granularity=512 - ' ---- + ''' +# --- diff --git a/posthog/hogql/database/test/__snapshots__/test_database.ambr b/posthog/hogql/database/test/__snapshots__/test_database.ambr index c03b07daa0df3..b738667e12694 100644 --- a/posthog/hogql/database/test/__snapshots__/test_database.ambr +++ b/posthog/hogql/database/test/__snapshots__/test_database.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestDatabase.test_serialize_database_no_person_on_events - ' + ''' { "events": [ { @@ -762,10 +763,10 @@ } ] } - ' ---- + ''' +# --- # name: TestDatabase.test_serialize_database_with_person_on_events_enabled - ' + ''' { "events": [ { @@ -1523,5 +1524,5 @@ } ] } - ' ---- + ''' +# --- diff --git a/posthog/hogql/functions/test/__snapshots__/test_cohort.ambr b/posthog/hogql/functions/test/__snapshots__/test_cohort.ambr index b44ac2b6f0f09..bc853f4484356 100644 --- a/posthog/hogql/functions/test/__snapshots__/test_cohort.ambr +++ b/posthog/hogql/functions/test/__snapshots__/test_cohort.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestCohort.test_in_cohort_dynamic - ' + ''' -- ClickHouse SELECT events.event AS event @@ -24,10 +25,10 @@ GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0))), equals(event, 'RANDOM_TEST_ID::UUID')) LIMIT 100 - ' ---- + ''' +# --- # name: TestCohort.test_in_cohort_static - ' + ''' -- ClickHouse SELECT events.event AS event @@ -48,10 +49,10 @@ FROM static_cohort_people WHERE equals(cohort_id, 7))) LIMIT 100 - ' ---- + ''' +# --- # name: TestCohort.test_in_cohort_strings - ' + ''' -- ClickHouse SELECT events.event AS event @@ -72,5 +73,5 @@ FROM static_cohort_people WHERE equals(cohort_id, 8))) LIMIT 100 - ' ---- + ''' +# --- diff --git a/posthog/hogql/test/__snapshots__/test_printer.ambr b/posthog/hogql/test/__snapshots__/test_printer.ambr index c59af7ed313bd..ee6947efb744f 100644 --- a/posthog/hogql/test/__snapshots__/test_printer.ambr +++ b/posthog/hogql/test/__snapshots__/test_printer.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPrinter.test_large_pretty_print - ' + ''' SELECT groupArray(start_of_period) AS date, groupArray(counts) AS total, @@ -66,5 +67,5 @@ GROUP BY status LIMIT 10000 - ' ---- + ''' +# --- diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 44499a927d566..c663984e5156a 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestQuery.test_hogql_arrays - ' + ''' -- ClickHouse SELECT [1, 2, 3], [10, 11, 12][1] @@ -10,10 +11,10 @@ SELECT [1, 2, 3], [10, 11, 12][1] LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_lambdas - ' + ''' -- ClickHouse SELECT arrayMap(x -> multiply(x, 2), [1, 2, 3]), 1 @@ -24,10 +25,10 @@ SELECT arrayMap(x -> multiply(x, 2), [1, 2, 3]), 1 LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_query_filters - ' + ''' -- ClickHouse SELECT events.event AS event, events.distinct_id AS distinct_id @@ -42,19 +43,19 @@ FROM events WHERE and(equals(distinct_id, 'RANDOM_TEST_ID::UUID'), equals(properties.index, '4')) LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_query_filters.1 - ' + ''' SELECT event, distinct_id FROM events WHERE and(equals(distinct_id, 'RANDOM_TEST_ID::UUID'), equals(properties.index, '4')) LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_query_filters.2 - ' + ''' -- ClickHouse SELECT events.event AS event, events.distinct_id AS distinct_id @@ -69,19 +70,19 @@ FROM events WHERE and(equals(distinct_id, 'RANDOM_TEST_ID::UUID'), and(equals(properties.index, '4'), less(timestamp, toDateTime('2020-01-02 00:00:00.000000')), greaterOrEquals(timestamp, toDateTime('2020-01-01 00:00:00.000000')))) LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_query_filters.3 - ' + ''' SELECT event, distinct_id FROM events WHERE and(equals(distinct_id, 'RANDOM_TEST_ID::UUID'), and(equals(properties.index, '4'), less(timestamp, toDateTime('2020-01-02 00:00:00.000000')), greaterOrEquals(timestamp, toDateTime('2020-01-01 00:00:00.000000')))) LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_query_filters_alias - ' + ''' -- ClickHouse SELECT e.event AS event, e.distinct_id AS distinct_id @@ -96,10 +97,10 @@ FROM events AS e WHERE equals(properties.random_uuid, 'RANDOM_TEST_ID::UUID') LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_hogql_union_all_limits - ' + ''' -- ClickHouse SELECT events.event AS event @@ -120,10 +121,10 @@ SELECT event FROM events LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_materialized_session_id - ' + ''' -- ClickHouse SELECT e.event AS event, s.session_id AS session_id @@ -138,19 +139,19 @@ FROM events AS e LEFT JOIN session_replay_events AS s ON equals(s.session_id, e.properties.$session_id) WHERE notEquals(e.properties.$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_materialized_session_id.1 - ' + ''' SELECT e.event, s.session_id FROM events AS e LEFT JOIN session_replay_events AS s ON equals(s.session_id, e.properties.$session_id) WHERE notEquals(e.properties.$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_materialized_session_id.2 - ' + ''' -- ClickHouse SELECT e.event AS event, s.session_id AS session_id @@ -165,19 +166,19 @@ FROM session_replay_events AS s LEFT JOIN events AS e ON equals(e.properties.$session_id, s.session_id) WHERE notEquals(e.properties.$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_materialized_session_id.3 - ' + ''' SELECT e.event, s.session_id FROM session_replay_events AS s LEFT JOIN events AS e ON equals(e.properties.$session_id, s.session_id) WHERE notEquals(e.properties.$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_not_materialized - ' + ''' -- ClickHouse SELECT e.event AS event, s.session_id AS session_id @@ -192,19 +193,19 @@ FROM events AS e LEFT JOIN session_replay_events AS s ON equals(s.session_id, e.properties.$$$session_id) WHERE notEquals(e.properties.$$$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_not_materialized.1 - ' + ''' SELECT e.event, s.session_id FROM events AS e LEFT JOIN session_replay_events AS s ON equals(s.session_id, e.properties.$$$session_id) WHERE notEquals(e.properties.$$$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_not_materialized.2 - ' + ''' -- ClickHouse SELECT e.event AS event, s.session_id AS session_id @@ -219,19 +220,19 @@ FROM session_replay_events AS s LEFT JOIN events AS e ON equals(e.properties.$$$session_id, s.session_id) WHERE notEquals(e.properties.$$$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_join_with_property_not_materialized.3 - ' + ''' SELECT e.event, s.session_id FROM session_replay_events AS s LEFT JOIN events AS e ON equals(e.properties.$$$session_id, s.session_id) WHERE notEquals(e.properties.$$$session_id, NULL) LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_prop_cohort_basic - ' + ''' -- ClickHouse SELECT events.event AS event, count() @@ -263,10 +264,10 @@ HAVING greater(sum(sign), 0))) GROUP BY event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_prop_cohort_basic.1 - ' + ''' -- ClickHouse SELECT events.event AS event, count(*) @@ -293,10 +294,10 @@ HAVING greater(sum(sign), 0))) GROUP BY event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_prop_cohort_static - ' + ''' -- ClickHouse SELECT events.event AS event, count() @@ -324,10 +325,10 @@ WHERE equals(cohort_id, 14))) GROUP BY event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_prop_cohort_static.1 - ' + ''' -- ClickHouse SELECT events.event AS event, count(*) @@ -350,10 +351,10 @@ WHERE equals(cohort_id, 14))) GROUP BY event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_query - ' + ''' -- ClickHouse SELECT count(), events.event AS event @@ -370,10 +371,10 @@ WHERE equals(properties.random_uuid, 'RANDOM_TEST_ID::UUID') GROUP BY event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_query_distinct - ' + ''' -- ClickHouse SELECT DISTINCT persons.properties___sneaky_mail AS sneaky_mail @@ -397,10 +398,10 @@ FROM persons WHERE equals(properties.random_uuid, 'RANDOM_TEST_ID::UUID') LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_e_pdi - ' + ''' -- ClickHouse SELECT e.event AS event, toTimeZone(e.timestamp, %(hogql_val_0)s) AS timestamp, e__pdi.distinct_id AS distinct_id, e__pdi.person_id AS person_id @@ -419,10 +420,10 @@ SELECT event, e.timestamp, e.pdi.distinct_id, pdi.person_id FROM events AS e LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_pdi - ' + ''' -- ClickHouse SELECT events.event AS event, toTimeZone(events.timestamp, %(hogql_val_0)s) AS timestamp, events__pdi.distinct_id AS distinct_id, events__pdi.person_id AS person_id @@ -441,10 +442,10 @@ SELECT event, timestamp, pdi.distinct_id, pdi.person_id FROM events LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_pdi_e_person_properties - ' + ''' -- ClickHouse SELECT e.event AS event, toTimeZone(e.timestamp, %(hogql_val_1)s) AS timestamp, e__pdi.distinct_id AS distinct_id, e__pdi__person.properties___sneaky_mail AS sneaky_mail @@ -472,10 +473,10 @@ SELECT event, e.timestamp, pdi.distinct_id, e.pdi.person.properties.sneaky_mail FROM events AS e LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_pdi_person - ' + ''' -- ClickHouse SELECT events.event AS event, toTimeZone(events.timestamp, %(hogql_val_0)s) AS timestamp, events__pdi.distinct_id AS distinct_id, events__pdi__person.id AS id @@ -500,10 +501,10 @@ SELECT event, timestamp, pdi.distinct_id, pdi.person.id FROM events LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_pdi_person_properties - ' + ''' -- ClickHouse SELECT events.event AS event, toTimeZone(events.timestamp, %(hogql_val_1)s) AS timestamp, events__pdi.distinct_id AS distinct_id, events__pdi__person.properties___sneaky_mail AS sneaky_mail @@ -531,10 +532,10 @@ SELECT event, timestamp, pdi.distinct_id, pdi.person.properties.sneaky_mail FROM events LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_person_properties - ' + ''' -- ClickHouse SELECT e.event AS event, toTimeZone(e.timestamp, %(hogql_val_1)s) AS timestamp, e__pdi__person.properties___sneaky_mail AS sneaky_mail @@ -562,10 +563,10 @@ SELECT event, e.timestamp, e.pdi.person.properties.sneaky_mail FROM events AS e LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_events_person_properties_in_aggregration - ' + ''' -- ClickHouse SELECT s__pdi__person.properties___sneaky_mail AS sneaky_mail, count() @@ -595,10 +596,10 @@ FROM events AS s GROUP BY s.pdi.person.properties.sneaky_mail LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_pdi - ' + ''' -- ClickHouse SELECT e.event AS event, toTimeZone(e.timestamp, %(hogql_val_0)s) AS timestamp, pdi.person_id AS person_id @@ -621,10 +622,10 @@ GROUP BY distinct_id HAVING equals(argMax(is_deleted, version), 0)) AS pdi ON equals(e.distinct_id, pdi.distinct_id) LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_pdi_person_properties - ' + ''' -- ClickHouse SELECT pdi.distinct_id AS distinct_id, pdi__person.properties___sneaky_mail AS sneaky_mail @@ -647,10 +648,10 @@ SELECT pdi.distinct_id, pdi.person.properties.sneaky_mail FROM person_distinct_ids AS pdi LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_pdi_persons - ' + ''' -- ClickHouse SELECT pdi.distinct_id AS distinct_id, toTimeZone(pdi__person.created_at, %(hogql_val_0)s) AS created_at @@ -670,10 +671,10 @@ SELECT pdi.distinct_id, pdi.person.created_at FROM person_distinct_ids AS pdi LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_joins_simple - ' + ''' -- ClickHouse SELECT e.event AS event, toTimeZone(e.timestamp, %(hogql_val_0)s) AS timestamp, pdi.distinct_id AS distinct_id, p.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(p.properties, %(hogql_val_1)s), ''), 'null'), '^"|"$', '') AS sneaky_mail @@ -687,10 +688,10 @@ SELECT event, timestamp, pdi.distinct_id, p.id, p.properties.sneaky_mail FROM events AS e LEFT JOIN person_distinct_ids AS pdi ON equals(pdi.distinct_id, e.distinct_id) LEFT JOIN persons AS p ON equals(p.id, pdi.person_id) LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_query_person_distinct_ids - ' + ''' -- ClickHouse SELECT DISTINCT person_distinct_ids.person_id AS person_id, person_distinct_ids.distinct_id AS distinct_id @@ -708,10 +709,10 @@ SELECT DISTINCT person_id, distinct_id FROM person_distinct_ids LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_query_select_person_with_joins_without_poe - ' + ''' -- ClickHouse SELECT events.event AS event, toTimeZone(events.timestamp, %(hogql_val_1)s) AS timestamp, events__pdi__person.id AS id, events__pdi__person.properties___sneaky_mail AS sneaky_mail @@ -739,10 +740,10 @@ SELECT event, timestamp, person.id, person.properties.sneaky_mail FROM events LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_query_select_person_with_poe_without_joins - ' + ''' -- ClickHouse SELECT events.event AS event, toTimeZone(events.timestamp, %(hogql_val_0)s) AS timestamp, events.person_id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.person_properties, %(hogql_val_1)s), ''), 'null'), '^"|"$', '') AS sneaky_mail @@ -756,10 +757,10 @@ SELECT event, timestamp, person.id, person.properties.sneaky_mail FROM events LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_select_person_on_events - ' + ''' -- ClickHouse SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(s.person_properties, %(hogql_val_0)s), ''), 'null'), '^"|"$', '') AS sneaky_mail, count() @@ -775,10 +776,10 @@ FROM events AS s GROUP BY poe.properties.sneaky_mail LIMIT 10 - ' ---- + ''' +# --- # name: TestQuery.test_subquery - ' + ''' -- ClickHouse SELECT count AS count, event AS event @@ -801,10 +802,10 @@ GROUP BY event) GROUP BY count, event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_subquery_alias - ' + ''' -- ClickHouse SELECT c.count AS count, c.event AS event @@ -827,10 +828,10 @@ GROUP BY event) AS c GROUP BY count, event LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_tuple_access - ' + ''' -- ClickHouse SELECT col_a AS col_a, arrayZip((sumMap((g).1, (g).2) AS x).1, x.2) AS r @@ -858,10 +859,10 @@ GROUP BY col_a) GROUP BY col_a ORDER BY col_a ASC LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_with_pivot_table_1_level - ' + ''' -- ClickHouse SELECT PIVOT_FUNCTION_2.col_a AS col_a, PIVOT_FUNCTION_2.r AS r @@ -893,10 +894,10 @@ GROUP BY col_a) AS PIVOT_FUNCTION_1 GROUP BY col_a) AS PIVOT_FUNCTION_2 ORDER BY col_a ASC LIMIT 100 - ' ---- + ''' +# --- # name: TestQuery.test_with_pivot_table_2_levels - ' + ''' -- ClickHouse SELECT final.col_a AS col_a, final.r AS r @@ -932,5 +933,5 @@ GROUP BY col_a) AS PIVOT_FUNCTION_1 GROUP BY col_a) AS PIVOT_FUNCTION_2) AS final ORDER BY col_a ASC LIMIT 100 - ' ---- + ''' +# --- diff --git a/posthog/hogql/test/__snapshots__/test_resolver.ambr b/posthog/hogql/test/__snapshots__/test_resolver.ambr index d1ada1e441f6e..3e6b3c0f63962 100644 --- a/posthog/hogql/test/__snapshots__/test_resolver.ambr +++ b/posthog/hogql/test/__snapshots__/test_resolver.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestResolver.test_asterisk_expander_from_subquery_table - ' + ''' { select: [ { @@ -542,10 +543,10 @@ tables: {} } } - ' ---- + ''' +# --- # name: TestResolver.test_asterisk_expander_select_union - ' + ''' { select: [ { @@ -1389,10 +1390,10 @@ tables: {} } } - ' ---- + ''' +# --- # name: TestResolver.test_asterisk_expander_subquery - ' + ''' { select: [ { @@ -1491,10 +1492,10 @@ tables: {} } } - ' ---- + ''' +# --- # name: TestResolver.test_asterisk_expander_subquery_alias - ' + ''' { select: [ { @@ -1597,10 +1598,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_asterisk_expander_table - ' + ''' { select: [ { @@ -1892,10 +1893,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_asterisk_expander_table_alias - ' + ''' { select: [ { @@ -2191,10 +2192,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_call_type - ' + ''' { select: [ { @@ -2285,10 +2286,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_boolean_operation_types - ' + ''' { select: [ { @@ -2349,10 +2350,10 @@ tables: {} } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_constant_type - ' + ''' { select: [ { @@ -2449,10 +2450,10 @@ tables: {} } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_events_table - ' + ''' { select: [ { @@ -2577,10 +2578,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_events_table_alias - ' + ''' { select: [ { @@ -2709,10 +2710,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_events_table_column_alias - ' + ''' { select: [ { @@ -2873,10 +2874,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_events_table_column_alias_inside_subquery - ' + ''' { select: [ { @@ -3058,10 +3059,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_lazy_events_pdi_person_table - ' + ''' { select: [ { @@ -3189,10 +3190,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_lazy_events_pdi_person_table_aliased - ' + ''' { select: [ { @@ -3325,10 +3326,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_lazy_events_pdi_table - ' + ''' { select: [ { @@ -3438,10 +3439,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_lazy_events_pdi_table_aliased - ' + ''' { select: [ { @@ -3556,10 +3557,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_lazy_pdi_person_table - ' + ''' { select: [ { @@ -3646,10 +3647,10 @@ } } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_union_all - ' + ''' { select_queries: [ { @@ -3846,10 +3847,10 @@ ] } } - ' ---- + ''' +# --- # name: TestResolver.test_resolve_virtual_events_poe - ' + ''' { select: [ { @@ -3954,5 +3955,5 @@ } } } - ' ---- + ''' +# --- diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index cc92012f1806f..35f094ef7b162 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestInCohort.test_in_cohort_dynamic - ' + ''' -- ClickHouse SELECT events.event AS event @@ -24,10 +25,10 @@ HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) WHERE and(equals(in_cohort__1.matched, 1), equals(event, 'RANDOM_TEST_ID::UUID')) LIMIT 100 - ' ---- + ''' +# --- # name: TestInCohort.test_in_cohort_static - ' + ''' -- ClickHouse SELECT events.event AS event @@ -48,10 +49,10 @@ WHERE equals(cohort_id, 2)) AS in_cohort__2 ON equals(in_cohort__2.person_id, person_id) WHERE equals(in_cohort__2.matched, 1) LIMIT 100 - ' ---- + ''' +# --- # name: TestInCohort.test_in_cohort_strings - ' + ''' -- ClickHouse SELECT events.event AS event @@ -72,5 +73,5 @@ WHERE equals(cohort_id, 3)) AS in_cohort__3 ON equals(in_cohort__3.person_id, person_id) WHERE equals(in_cohort__3.matched, 1) LIMIT 100 - ' ---- + ''' +# --- diff --git a/posthog/hogql/transforms/test/__snapshots__/test_lazy_tables.ambr b/posthog/hogql/transforms/test/__snapshots__/test_lazy_tables.ambr index a0c2eda465c8d..5c75c0ab02cca 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_lazy_tables.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_lazy_tables.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestLazyJoins.test_resolve_lazy_table_as_select_table - ' + ''' SELECT persons.id AS id, persons.properties___email AS email, persons.`properties___$browser` AS `$browser` FROM ( @@ -10,10 +11,10 @@ HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0) SETTINGS optimize_aggregation_in_order=1) AS persons LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_table_as_table_in_join - ' + ''' SELECT events.event AS event, events.distinct_id AS distinct_id, events__pdi.person_id AS person_id, persons.properties___email AS email FROM events INNER JOIN ( @@ -30,10 +31,10 @@ SETTINGS optimize_aggregation_in_order=1) AS persons ON equals(persons.id, events__pdi.person_id) WHERE equals(events.team_id, 420) LIMIT 10 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables - ' + ''' SELECT events.event AS event, events__pdi.person_id AS person_id FROM events INNER JOIN ( @@ -44,10 +45,10 @@ HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS events__pdi ON equals(events.distinct_id, events__pdi.distinct_id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_one_level_properties - ' + ''' SELECT person_distinct_ids__person.`properties___$browser` AS `$browser` FROM ( @@ -63,10 +64,10 @@ HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_id, person_distinct_ids__person.id) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_one_level_properties_deep - ' + ''' SELECT person_distinct_ids__person.`properties___$browser___in___json` AS `$browser__in__json` FROM ( @@ -82,10 +83,10 @@ HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_id, person_distinct_ids__person.id) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_traversed_fields - ' + ''' SELECT events.event AS event, events__pdi.person_id AS person_id FROM events INNER JOIN ( @@ -96,10 +97,10 @@ HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS events__pdi ON equals(events.distinct_id, events__pdi.distinct_id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_two_levels - ' + ''' SELECT events.event AS event, events__pdi__person.id AS id FROM events INNER JOIN ( @@ -116,10 +117,10 @@ SETTINGS optimize_aggregation_in_order=1) AS events__pdi__person ON equals(events__pdi.person_id, events__pdi__person.id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_two_levels_properties - ' + ''' SELECT events.event AS event, events__pdi__person.`properties___$browser` AS `$browser` FROM events INNER JOIN ( @@ -136,10 +137,10 @@ SETTINGS optimize_aggregation_in_order=1) AS events__pdi__person ON equals(events__pdi.person_id, events__pdi__person.id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_two_levels_properties_duplicate - ' + ''' SELECT events.event AS event, events__pdi__person.properties AS properties, events__pdi__person.properties___name AS name FROM events INNER JOIN ( @@ -156,10 +157,10 @@ SETTINGS optimize_aggregation_in_order=1) AS events__pdi__person ON equals(events__pdi.person_id, events__pdi__person.id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_resolve_lazy_tables_two_levels_traversed - ' + ''' SELECT events.event AS event, events__pdi__person.id AS id FROM events INNER JOIN ( @@ -176,10 +177,10 @@ SETTINGS optimize_aggregation_in_order=1) AS events__pdi__person ON equals(events__pdi.person_id, events__pdi__person.id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestLazyJoins.test_select_count_from_lazy_table - ' + ''' SELECT count() FROM ( @@ -190,5 +191,5 @@ HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0) SETTINGS optimize_aggregation_in_order=1) AS persons LIMIT 10000 - ' ---- + ''' +# --- diff --git a/posthog/hogql/transforms/test/__snapshots__/test_property_types.ambr b/posthog/hogql/transforms/test/__snapshots__/test_property_types.ambr index 7150d4e4f2363..6c77e74c7eb81 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_property_types.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_property_types.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPropertyTypes.test_resolve_property_types_combined - ' + ''' SELECT multiply(toFloat64OrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_1)s), ''), 'null'), '^"|"$', '')), toFloat64OrNull(events__pdi__person.properties___tickets)) FROM events INNER JOIN ( @@ -16,19 +17,19 @@ SETTINGS optimize_aggregation_in_order=1) AS events__pdi__person ON equals(events__pdi.person_id, events__pdi__person.id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestPropertyTypes.test_resolve_property_types_event - ' + ''' SELECT multiply(toFloat64OrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_0)s), ''), 'null'), '^"|"$', '')), toFloat64OrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_1)s), ''), 'null'), '^"|"$', ''))), ifNull(equals(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, %(hogql_val_2)s), ''), 'null'), '^"|"$', ''), %(hogql_val_3)s), 0) AS bool FROM events WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestPropertyTypes.test_resolve_property_types_event_person_poe_off - ' + ''' SELECT parseDateTime64BestEffortOrNull(events__pdi__person.properties___provided_timestamp, 6, %(hogql_val_1)s) AS provided_timestamp FROM events INNER JOIN ( @@ -45,32 +46,32 @@ SETTINGS optimize_aggregation_in_order=1) AS events__pdi__person ON equals(events__pdi.person_id, events__pdi__person.id) WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestPropertyTypes.test_resolve_property_types_event_person_poe_on - ' + ''' SELECT parseDateTime64BestEffortOrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.person_properties, %(hogql_val_0)s), ''), 'null'), '^"|"$', ''), 6, %(hogql_val_1)s) AS provided_timestamp FROM events WHERE equals(events.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestPropertyTypes.test_resolve_property_types_person - ' + ''' SELECT toFloat64OrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, %(hogql_val_0)s), ''), 'null'), '^"|"$', '')) AS tickets, parseDateTime64BestEffortOrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, %(hogql_val_1)s), ''), 'null'), '^"|"$', ''), 6, %(hogql_val_2)s) AS provided_timestamp, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, %(hogql_val_3)s), ''), 'null'), '^"|"$', '') AS `$initial_browser` FROM person WHERE equals(person.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- # name: TestPropertyTypes.test_resolve_property_types_person_raw - ' + ''' SELECT toFloat64OrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, %(hogql_val_0)s), ''), 'null'), '^"|"$', '')) AS tickets, parseDateTime64BestEffortOrNull(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, %(hogql_val_1)s), ''), 'null'), '^"|"$', ''), 6, %(hogql_val_2)s) AS provided_timestamp, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, %(hogql_val_3)s), ''), 'null'), '^"|"$', '') AS `$initial_browser` FROM person WHERE equals(person.team_id, 420) LIMIT 10000 - ' ---- + ''' +# --- diff --git a/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr b/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr index 46fc4766453f0..ef3b23794866d 100644 --- a/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr +++ b/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr @@ -1,25 +1,26 @@ +# serializer version: 1 # name: TestLifecycleQueryRunner.test_cohort_filter - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestLifecycleQueryRunner.test_cohort_filter.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestLifecycleQueryRunner.test_cohort_filter.2 - ' + ''' SELECT groupArray(start_of_period) AS date, groupArray(counts) AS total, status AS status @@ -92,10 +93,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestLifecycleQueryRunner.test_sampling - ' + ''' SELECT groupArray(start_of_period) AS date, groupArray(round(multiply(counts, divide(1, 0.1)))) AS total, status AS status @@ -163,10 +164,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestLifecycleQueryRunner.test_timezones - ' + ''' SELECT groupArray(start_of_period) AS date, groupArray(counts) AS total, status AS status @@ -234,10 +235,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestLifecycleQueryRunner.test_timezones.1 - ' + ''' SELECT groupArray(start_of_period) AS date, groupArray(counts) AS total, status AS status @@ -305,5 +306,5 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- diff --git a/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr b/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr index a09f4c94e6259..29e1da71f90b0 100644 --- a/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr +++ b/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseRetentionGroupAggregation.test_groups_aggregating - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -42,10 +43,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestClickhouseRetentionGroupAggregation.test_groups_aggregating.1 - ' + ''' SELECT groups.key AS key, source.appearances AS appearances FROM @@ -104,10 +105,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestClickhouseRetentionGroupAggregation.test_groups_aggregating.2 - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -150,10 +151,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestClickhouseRetentionGroupAggregation.test_groups_aggregating_person_on_events - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -196,10 +197,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestClickhouseRetentionGroupAggregation.test_groups_aggregating_person_on_events.1 - ' + ''' SELECT groups.key AS key, source.appearances AS appearances FROM @@ -258,10 +259,10 @@ OFFSET 0 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestClickhouseRetentionGroupAggregation.test_groups_aggregating_person_on_events.2 - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -304,10 +305,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_day_interval_sampled - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -371,10 +372,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_month_interval_with_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -385,10 +386,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'person1', -1, 0) - ' ---- + ''' +# --- # name: TestRetention.test_month_interval_with_person_on_events_v2.1 - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -449,10 +450,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_retention_event_action - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -516,10 +517,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_retention_with_user_properties_via_action - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -603,10 +604,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_timezones - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -670,10 +671,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_timezones.1 - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -737,10 +738,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_week_interval - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -804,10 +805,10 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestRetention.test_week_interval.1 - ' + ''' SELECT actor_activity.breakdown_values AS breakdown_values, actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count @@ -871,5 +872,5 @@ LIMIT 10000 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- diff --git a/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr b/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr index f8145d156fe2d..68b58b6d9b72e 100644 --- a/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr +++ b/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr @@ -1,55 +1,56 @@ +# serializer version: 1 # name: TestTrends.test_action_filtering_with_cohort - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.4 - ' + ''' /* celery:posthog.tasks.calculate_cohort.clear_stale_cohort */ SELECT count() FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version < 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.5 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -94,60 +95,60 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.4 - ' + ''' /* celery:posthog.tasks.calculate_cohort.clear_stale_cohort */ SELECT count() FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version < 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.5 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -181,10 +182,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_person_on_events - ' + ''' SELECT groupArray(value) FROM (SELECT e__group_0.properties___industry AS value, @@ -205,10 +206,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_person_on_events.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -253,10 +254,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_person_on_events.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -284,10 +285,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_with_person_filter_person_on_events - ' + ''' SELECT groupArray(value) FROM (SELECT e__group_0.properties___industry AS value, @@ -308,10 +309,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_with_person_filter_person_on_events.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -356,10 +357,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$current_url'), ''), 'null'), '^"|"$', '') AS value, @@ -372,10 +373,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -412,10 +413,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$current_url'), ''), 'null'), '^"|"$', '') AS value, @@ -428,10 +429,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -468,10 +469,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, 'key'), ''), 'null'), '^"|"$', '') AS value, @@ -484,10 +485,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated.1 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -553,10 +554,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated_materialized - ' + ''' SELECT groupArray(value) FROM (SELECT nullIf(nullIf(e.mat_key, ''), 'null') AS value, @@ -569,10 +570,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated_materialized.1 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -638,30 +639,30 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_daily_based_on_action - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_daily_based_on_action.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_daily_based_on_action.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, 'key'), ''), 'null'), '^"|"$', '') AS value, @@ -696,10 +697,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_daily_based_on_action.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -774,10 +775,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, 'key'), ''), 'null'), '^"|"$', '') AS value, @@ -798,10 +799,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -846,10 +847,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -860,10 +861,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'test_breakdown_d1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events_v2.1 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, 'key'), ''), 'null'), '^"|"$', '') AS value, @@ -884,10 +885,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events_v2.2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -938,10 +939,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -954,10 +955,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -1007,10 +1008,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -1023,10 +1024,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -1076,50 +1077,50 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort.2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort.4 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1159,50 +1160,50 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2.2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2.3 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2.4 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1225,10 +1226,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_filtering_by_multiple_groups_person_on_events - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1267,10 +1268,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_filtering_by_multiple_groups_person_on_events.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -1306,10 +1307,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_filtering_with_group_props_person_on_events - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1340,10 +1341,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter - ' + ''' SELECT groupArray(value) FROM (SELECT e__pdi__person.`properties___$some_prop` AS value, @@ -1374,10 +1375,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -1448,10 +1449,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter_poe_v2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.person_properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS value, @@ -1464,10 +1465,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter_poe_v2.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -1526,10 +1527,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_non_deterministic_timezones - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1552,30 +1553,30 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -1600,10 +1601,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -1652,30 +1653,30 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action_poe_v2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action_poe_v2.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action_poe_v2.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -1699,10 +1700,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action_poe_v2.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -1750,10 +1751,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1793,10 +1794,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1836,10 +1837,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1862,10 +1863,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property_materialized - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1905,10 +1906,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property_materialized.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1931,10 +1932,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_materialized - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -1974,10 +1975,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -1988,10 +1989,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'distinctid1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2014,10 +2015,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2.2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2046,10 +2047,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2072,10 +2073,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2111,10 +2112,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2163,10 +2164,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2189,10 +2190,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.4 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$os'), ''), 'null'), '^"|"$', '') AS value, @@ -2205,10 +2206,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.5 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -2258,10 +2259,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2284,10 +2285,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2323,10 +2324,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2375,10 +2376,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2401,10 +2402,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.4 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$os'), ''), 'null'), '^"|"$', '') AS value, @@ -2417,10 +2418,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.5 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -2470,10 +2471,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2496,10 +2497,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2535,10 +2536,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2587,10 +2588,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2613,10 +2614,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.4 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$os'), ''), 'null'), '^"|"$', '') AS value, @@ -2629,10 +2630,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.5 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -2682,10 +2683,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2721,10 +2722,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2747,10 +2748,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_minus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2786,10 +2787,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_minus_utc.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2812,10 +2813,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_plus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2851,10 +2852,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_plus_utc.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2877,10 +2878,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2903,10 +2904,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2929,10 +2930,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_minus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2955,10 +2956,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_minus_utc.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -2981,10 +2982,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_plus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3007,10 +3008,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_plus_utc.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3033,10 +3034,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns - ' + ''' SELECT groupArray(value) FROM (SELECT e__pdi__person.properties___email AS value, @@ -3068,10 +3069,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -3127,10 +3128,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns.2 - ' + ''' SELECT groupArray(value) FROM (SELECT e__pdi__person.properties___email AS value, @@ -3162,10 +3163,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -3221,10 +3222,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3247,10 +3248,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3290,10 +3291,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.2 - ' + ''' SELECT groupArray(value) FROM (SELECT e__pdi__person.`properties___$some_prop` AS value, @@ -3323,10 +3324,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -3380,10 +3381,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.4 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3419,10 +3420,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.5 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3458,10 +3459,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.6 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS value, @@ -3474,10 +3475,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.7 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -3514,10 +3515,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_any_event_total_count - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3540,10 +3541,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_any_event_total_count.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3566,10 +3567,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -3582,10 +3583,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -3640,10 +3641,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative_poe_v2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -3656,10 +3657,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative_poe_v2.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -3707,10 +3708,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -3723,10 +3724,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown.1 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -3771,10 +3772,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -3787,10 +3788,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown.3 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -3835,10 +3836,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_compare_day_interval_relative_range - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3861,10 +3862,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_compare_day_interval_relative_range.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3887,10 +3888,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_compare_day_interval_relative_range.2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -3913,10 +3914,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -3961,10 +3962,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated_poe_v2 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4002,10 +4003,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated_with_event_property_breakdown_with_sampling - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, 'color'), ''), 'null'), '^"|"$', '') AS value, @@ -4018,10 +4019,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated_with_event_property_breakdown_with_sampling.1 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4076,10 +4077,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_daily - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4123,10 +4124,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_daily_poe_v2 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4163,10 +4164,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_per_day_cumulative - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4193,10 +4194,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_person_breakdown_with_session_property_single_aggregate_math_and_breakdown - ' + ''' SELECT groupArray(value) FROM (SELECT e__pdi__person.`properties___$some_prop` AS value, @@ -4226,10 +4227,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_person_breakdown_with_session_property_single_aggregate_math_and_breakdown.1 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4291,10 +4292,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_hogql_math - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4317,10 +4318,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_single_aggregate_math - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4356,10 +4357,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_single_aggregate_math.1 - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4395,10 +4396,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4433,10 +4434,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4471,10 +4472,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -4487,10 +4488,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns.1 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -4541,10 +4542,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns.2 - ' + ''' SELECT groupArray(value) FROM (SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS value, @@ -4557,10 +4558,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns.3 - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value @@ -4611,10 +4612,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_aggregated_range_narrower_than_week - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4669,10 +4670,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_aggregated_range_wider_than_week - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4727,10 +4728,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_aggregated_range_wider_than_week_with_sampling - ' + ''' SELECT sum(count) AS total, (SELECT day_start AS day_start @@ -4785,10 +4786,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_daily - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4837,10 +4838,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_daily_minus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4889,10 +4890,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_daily_plus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4941,10 +4942,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_filtering - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -4997,10 +4998,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_filtering_materialized - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -5053,10 +5054,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_hourly - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -5105,10 +5106,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_weekly - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -5157,10 +5158,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_weekly_minus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -5209,10 +5210,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_weekly_plus_utc - ' + ''' SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM @@ -5261,5 +5262,5 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- diff --git a/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr b/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr index 6f369e808e993..e0a0d7862edb8 100644 --- a/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr +++ b/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestSessionsTimelineQueryRunner.test_before_and_after - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -60,10 +61,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestSessionsTimelineQueryRunner.test_before_and_after_defaults - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -124,10 +125,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestSessionsTimelineQueryRunner.test_event_limit_and_has_more - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -188,10 +189,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestSessionsTimelineQueryRunner.test_formal_and_informal_sessions_global - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -252,10 +253,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestSessionsTimelineQueryRunner.test_formal_session_with_recording - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -316,10 +317,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestSessionsTimelineQueryRunner.test_formal_sessions_for_person - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -380,10 +381,10 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- # name: TestSessionsTimelineQueryRunner.test_formal_sessions_global - ' + ''' SELECT e.uuid AS uuid, e.timestamp AS timestamp, e.event AS event, @@ -444,5 +445,5 @@ LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 - ' ---- + ''' +# --- diff --git a/posthog/models/filters/test/__snapshots__/test_filter.ambr b/posthog/models/filters/test/__snapshots__/test_filter.ambr index 4cfbea3908442..0d114111461b2 100644 --- a/posthog/models/filters/test/__snapshots__/test_filter.ambr +++ b/posthog/models/filters/test/__snapshots__/test_filter.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -54,10 +55,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -112,10 +113,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons.2 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -170,10 +171,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons.3 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -228,10 +229,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons.4 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -286,10 +287,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons.5 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -305,49 +306,49 @@ AND "posthog_person"."properties" ? 'urls' AND NOT (("posthog_person"."properties" -> 'urls') = 'null') AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_array_property_as_string_on_persons.6 - ' + ''' SELECT "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."person_id" = 2 AND "posthog_persondistinctid"."team_id" = 2) ORDER BY "posthog_persondistinctid"."id" ASC - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_icontains_with_array_value - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> '$key')::text) LIKE UPPER('%[''red'']%') AND "posthog_person"."properties" ? '$key' AND NOT (("posthog_person"."properties" -> '$key') = 'null') AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_icontains_with_array_value.1 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> '$key')::text) LIKE UPPER('%red%') AND "posthog_person"."properties" ? '$key' AND NOT (("posthog_person"."properties" -> '$key') = 'null') AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_icontains_with_array_value.2 - ' + ''' SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE (("posthog_person"."properties" -> '$key') > '["2"]' AND "posthog_person"."properties" ? '$key' AND NOT (("posthog_person"."properties" -> '$key') = 'null') AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_person_relative_date_parsing_with_invalid_date - ' + ''' SELECT (1) AS "a" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") @@ -355,10 +356,10 @@ AND "posthog_person"."team_id" = 2 AND "posthog_person"."id" = -1) LIMIT 1 - ' ---- + ''' +# --- # name: TestDjangoPropertiesToQ.test_person_relative_date_parsing_with_invalid_date.1 - ' + ''' SELECT (1) AS "a" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") @@ -366,10 +367,10 @@ AND "posthog_person"."team_id" = 2 AND "posthog_person"."id" = -1) LIMIT 1 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -390,10 +391,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts.1 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -421,28 +422,28 @@ AND "posthog_person"."properties" ? 'bla' AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts.2 - ' + ''' SELECT "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."person_id" = 2 AND "posthog_persondistinctid"."team_id" = 2) ORDER BY "posthog_persondistinctid"."id" ASC - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts.3 - ' + ''' SELECT "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."person_id" = 2 AND "posthog_persondistinctid"."team_id" = 2) ORDER BY "posthog_persondistinctid"."id" ASC - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts_no_match - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -463,10 +464,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts_no_match.1 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -494,19 +495,19 @@ AND "posthog_person"."properties" ? 'bla' AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_cohorts_no_match.2 - ' + ''' SELECT "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."person_id" = 2 AND "posthog_persondistinctid"."team_id" = 2) ORDER BY "posthog_persondistinctid"."id" ASC - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -527,10 +528,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts.1 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -551,10 +552,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts.2 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -575,10 +576,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts.3 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -599,10 +600,10 @@ FROM "posthog_cohort" WHERE "posthog_cohort"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts.4 - ' + ''' SELECT "posthog_person"."id", "posthog_person"."created_at", "posthog_person"."properties_last_updated_at", @@ -630,23 +631,23 @@ AND "posthog_person"."properties" ? 'other' AND NOT (("posthog_person"."properties" -> 'other') = 'null') AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts.5 - ' + ''' SELECT "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."person_id" = 2 AND "posthog_persondistinctid"."team_id" = 2) ORDER BY "posthog_persondistinctid"."id" ASC - ' ---- + ''' +# --- # name: TestDjangoPropertyGroupToQ.test_property_group_to_q_with_negation_cohorts.6 - ' + ''' SELECT "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."person_id" = 2 AND "posthog_persondistinctid"."team_id" = 2) ORDER BY "posthog_persondistinctid"."id" ASC - ' ---- + ''' +# --- diff --git a/posthog/models/test/__snapshots__/test_async_deletion_model.ambr b/posthog/models/test/__snapshots__/test_async_deletion_model.ambr index 35769145ee338..1048b3e6ed9bb 100644 --- a/posthog/models/test/__snapshots__/test_async_deletion_model.ambr +++ b/posthog/models/test/__snapshots__/test_async_deletion_model.ambr @@ -1,360 +1,69 @@ -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.1 - ' - - ALTER TABLE person ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.2 - ' - - ALTER TABLE person_distinct_id ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.3 - ' - - ALTER TABLE person_distinct_id2 ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.4 - ' - - ALTER TABLE groups ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.5 - ' - - ALTER TABLE cohortpeople ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.6 - ' - - ALTER TABLE person_static_cohort ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team.7 - ' - - ALTER TABLE plugin_log_entries ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.1 - ' - - ALTER TABLE person ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.2 - ' - - ALTER TABLE person_distinct_id ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.3 - ' - - ALTER TABLE person_distinct_id2 ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.4 - ' - - ALTER TABLE groups ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.5 - ' - - ALTER TABLE cohortpeople ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.6 - ' - - ALTER TABLE person_static_cohort ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_auxilary_models_via_team_unrelated.7 - ' - - ALTER TABLE plugin_log_entries ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- +# serializer version: 1 # name: TestAsyncDeletion.test_delete_cohortpeople - ' + ''' SELECT count() FROM cohortpeople - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_delete_cohortpeople_version - ' + ''' SELECT count() FROM cohortpeople - ' ---- -# name: TestAsyncDeletion.test_delete_group - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE (team_id = 2 - AND $group_0 = 'foo') - ' ---- -# name: TestAsyncDeletion.test_delete_group_unrelated - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE (team_id = 2 - AND $group_0 = 'foo') - ' ---- -# name: TestAsyncDeletion.test_delete_person - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE (team_id = 2 - AND person_id = '6ba7b810-9dad-11d1-80b4-00c04fd430c8') - ' ---- -# name: TestAsyncDeletion.test_delete_person_unrelated - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE (team_id = 2 - AND person_id = '6ba7b810-9dad-11d1-80b4-00c04fd430c8') - ' ---- -# name: TestAsyncDeletion.test_delete_teams - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.1 - ' - - ALTER TABLE person ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.2 - ' - - ALTER TABLE person_distinct_id ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.3 - ' - - ALTER TABLE person_distinct_id2 ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.4 - ' - - ALTER TABLE groups ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.5 - ' - - ALTER TABLE cohortpeople ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.6 - ' - - ALTER TABLE person_static_cohort ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams.7 - ' - - ALTER TABLE plugin_log_entries ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated - ' - - ALTER TABLE sharded_events ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.1 - ' - - ALTER TABLE person ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.2 - ' - - ALTER TABLE person_distinct_id ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.3 - ' - - ALTER TABLE person_distinct_id2 ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.4 - ' - - ALTER TABLE groups ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.5 - ' - - ALTER TABLE cohortpeople ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.6 - ' - - ALTER TABLE person_static_cohort ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- -# name: TestAsyncDeletion.test_delete_teams_unrelated.7 - ' - - ALTER TABLE plugin_log_entries ON CLUSTER 'posthog' - DELETE - WHERE team_id = 2 - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_mark_deletions_done_groups - ' + ''' SELECT DISTINCT team_id, $group_0 FROM events WHERE (team_id = 2 AND $group_0 = 'foo') - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_mark_deletions_done_groups_when_not_done - ' + ''' SELECT DISTINCT team_id, $group_0 FROM events WHERE (team_id = 2 AND $group_0 = 'foo') - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_mark_deletions_done_person - ' + ''' SELECT DISTINCT team_id, person_id FROM events WHERE (team_id = 2 AND person_id = '6ba7b810-9dad-11d1-80b4-00c04fd430c8') - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_mark_deletions_done_person_when_not_done - ' + ''' SELECT DISTINCT team_id, person_id FROM events WHERE (team_id = 2 AND person_id = '6ba7b810-9dad-11d1-80b4-00c04fd430c8') - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_mark_deletions_done_team_when_not_done - ' + ''' SELECT DISTINCT team_id FROM events WHERE team_id = 2 - ' ---- + ''' +# --- # name: TestAsyncDeletion.test_mark_team_deletions_done - ' + ''' SELECT DISTINCT team_id FROM events WHERE team_id = 2 - ' ---- + ''' +# --- diff --git a/posthog/queries/app_metrics/test/__snapshots__/test_app_metrics.ambr b/posthog/queries/app_metrics/test/__snapshots__/test_app_metrics.ambr index 3264cb5b8ca9b..9dfdefee96c76 100644 --- a/posthog/queries/app_metrics/test/__snapshots__/test_app_metrics.ambr +++ b/posthog/queries/app_metrics/test/__snapshots__/test_app_metrics.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestAppMetricsErrorDetailsQuery.test_error_details_query - ' + ''' SELECT timestamp, error_uuid, error_type, @@ -11,10 +12,10 @@ AND category = 'processEvent' ORDER BY timestamp DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestAppMetricsErrorDetailsQuery.test_error_details_query_filter_by_job_id - ' + ''' SELECT timestamp, error_uuid, error_type, @@ -27,10 +28,10 @@ AND job_id = '1234' ORDER BY timestamp DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestAppMetricsErrorDetailsQuery.test_ignores_unrelated_data - ' + ''' SELECT timestamp, error_uuid, error_type, @@ -42,10 +43,10 @@ AND category = 'processEvent' ORDER BY timestamp DESC LIMIT 20 - ' ---- + ''' +# --- # name: TestAppMetricsErrorsQuery.test_errors_query - ' + ''' SELECT error_type, count() AS count, @@ -59,10 +60,10 @@ AND error_type <> '' GROUP BY error_type ORDER BY count DESC - ' ---- + ''' +# --- # name: TestAppMetricsErrorsQuery.test_errors_query_filter_by_job_id - ' + ''' SELECT error_type, count() AS count, @@ -77,10 +78,10 @@ AND error_type <> '' GROUP BY error_type ORDER BY count DESC - ' ---- + ''' +# --- # name: TestAppMetricsErrorsQuery.test_ignores_unrelated_data - ' + ''' SELECT error_type, count() AS count, @@ -94,10 +95,10 @@ AND error_type <> '' GROUP BY error_type ORDER BY count DESC - ' ---- + ''' +# --- # name: TestAppMetricsQuery.test_app_metrics - ' + ''' SELECT groupArray(date), groupArray(successes), @@ -122,10 +123,10 @@ GROUP BY date ORDER BY date WITH FILL FROM dateTrunc('day', toDateTime('2021-11-28 00:00:00'), 'UTC') TO dateTrunc('day', toDateTime('2021-12-05 13:23:00') + toIntervalDay(1), 'UTC') STEP 86400) - ' ---- + ''' +# --- # name: TestAppMetricsQuery.test_filter_by_hourly_date_range - ' + ''' SELECT groupArray(date), groupArray(successes), @@ -150,10 +151,10 @@ GROUP BY date ORDER BY date WITH FILL FROM dateTrunc('hour', toDateTime('2021-12-05 00:00:00'), 'UTC') TO dateTrunc('hour', toDateTime('2021-12-05 08:00:00') + toIntervalHour(1), 'UTC') STEP 3600) - ' ---- + ''' +# --- # name: TestAppMetricsQuery.test_filter_by_job_id - ' + ''' SELECT groupArray(date), groupArray(successes), @@ -179,10 +180,10 @@ GROUP BY date ORDER BY date WITH FILL FROM dateTrunc('day', toDateTime('2021-11-28 00:00:00'), 'UTC') TO dateTrunc('day', toDateTime('2021-12-05 13:23:00') + toIntervalDay(1), 'UTC') STEP 86400) - ' ---- + ''' +# --- # name: TestAppMetricsQuery.test_ignores_unrelated_data - ' + ''' SELECT groupArray(date), groupArray(successes), @@ -207,10 +208,10 @@ GROUP BY date ORDER BY date WITH FILL FROM dateTrunc('day', toDateTime('2021-11-28 00:00:00'), 'UTC') TO dateTrunc('day', toDateTime('2021-12-05 13:23:00') + toIntervalDay(1), 'UTC') STEP 86400) - ' ---- + ''' +# --- # name: TestTeamPluginsDeliveryRateQuery.test_query_delivery_rate - ' + ''' SELECT plugin_config_id, if(total > 0, success/total, 1) as rate @@ -222,5 +223,5 @@ WHERE team_id = 2 AND timestamp > '2021-12-04 13:23:00.000000' GROUP BY plugin_config_id) - ' ---- + ''' +# --- diff --git a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr index 4883d5bf60349..2069be3bc686c 100644 --- a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr +++ b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestHistoricalExports.test_historical_export_metrics - ' + ''' SELECT groupArray(date), groupArray(successes), @@ -25,10 +26,10 @@ GROUP BY date ORDER BY date WITH FILL FROM dateTrunc('hour', toDateTime('2021-08-25 00:00:00'), 'UTC') TO dateTrunc('hour', toDateTime('2021-08-25 06:00:00') + toIntervalHour(1), 'UTC') STEP 3600) - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_export_metrics.1 - ' + ''' SELECT error_type, count() AS count, @@ -43,10 +44,10 @@ AND error_type <> '' GROUP BY error_type ORDER BY count DESC - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_export_metrics.2 - ' + ''' SELECT "posthog_activitylog"."id", "posthog_activitylog"."team_id", "posthog_activitylog"."organization_id", @@ -68,10 +69,10 @@ AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_export_metrics.3 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -100,10 +101,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_failed_export - ' + ''' SELECT "posthog_activitylog"."id", "posthog_activitylog"."team_id", "posthog_activitylog"."organization_id", @@ -123,10 +124,10 @@ AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_failed_export.1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -155,10 +156,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_finished_export - ' + ''' SELECT "posthog_activitylog"."id", "posthog_activitylog"."team_id", "posthog_activitylog"."organization_id", @@ -178,10 +179,10 @@ AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_finished_export.1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -210,10 +211,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_not_finished_export - ' + ''' SELECT "posthog_activitylog"."id", "posthog_activitylog"."team_id", "posthog_activitylog"."organization_id", @@ -233,10 +234,10 @@ AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_not_finished_export.1 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -265,10 +266,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestHistoricalExports.test_historical_exports_activity_for_not_finished_export.2 - ' + ''' SELECT "posthog_pluginstorage"."id", "posthog_pluginstorage"."plugin_config_id", "posthog_pluginstorage"."key", @@ -278,5 +279,5 @@ AND "posthog_pluginstorage"."plugin_config_id" = 2) ORDER BY "posthog_pluginstorage"."id" ASC LIMIT 1 - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr b/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr index 66bd37c947545..1cfd65ed2c910 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestBreakdownsByCurrentURL.test_breakdown_by_current_url - ' + ''' SELECT array(if(empty(trim(TRAILING '/?#' from replaceRegexpAll(JSONExtractRaw(properties, '$current_url'), '^"|"$', ''))), '/', trim(TRAILING '/?#' @@ -14,10 +15,10 @@ ORDER BY count DESC, value DESC LIMIT 101 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownsByCurrentURL.test_breakdown_by_current_url.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -88,10 +89,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestBreakdownsByCurrentURL.test_breakdown_by_pathname - ' + ''' SELECT array(if(empty(trim(TRAILING '/?#' from replaceRegexpAll(JSONExtractRaw(properties, '$pathname'), '^"|"$', ''))), '/', trim(TRAILING '/?#' @@ -106,10 +107,10 @@ ORDER BY count DESC, value DESC LIMIT 101 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownsByCurrentURL.test_breakdown_by_pathname.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -180,5 +181,5 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr index e3d0070518f96..5fcc024cfd805 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFOSSFunnel.test_funnel_conversion_window_seconds - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -85,10 +86,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_conversion_window_seconds.1 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -172,10 +173,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_events_with_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -186,10 +187,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'stopped_after_signup', -1, 0) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_events_with_person_on_events_v2.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -279,10 +280,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_cohorts_step_filter - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -354,30 +355,30 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_precalculated_cohort_step_filter - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_precalculated_cohort_step_filter.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_precalculated_cohort_step_filter.2 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -443,10 +444,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_property_groups - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -552,10 +553,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_property_groups.1 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -659,10 +660,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_property_groups.2 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -766,10 +767,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_property_groups.3 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -873,19 +874,19 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_static_cohort_step_filter - ' + ''' SELECT count(DISTINCT person_id) FROM person_static_cohort WHERE team_id = 2 AND cohort_id = 2 - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_funnel_with_static_cohort_step_filter.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -950,10 +951,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFOSSFunnel.test_timezones - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1007,10 +1008,10 @@ GROUP BY aggregation_target, steps HAVING steps = max_steps) - ' ---- + ''' +# --- # name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -1023,10 +1024,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1096,10 +1097,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -1113,10 +1114,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1190,10 +1191,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelBreakdown.test_funnel_step_multiple_breakdown_snapshot - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', ''), replaceRegexpAll(JSONExtractRaw(properties, '$version'), '^"|"$', '')) AS value, count(*) as count @@ -1206,10 +1207,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelBreakdown.test_funnel_step_multiple_breakdown_snapshot.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -1278,5 +1279,5 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr index e45604987f687..a1a45650b528b 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelPersons.test_funnel_person_recordings - ' + ''' SELECT aggregation_target AS actor_id, step_0_matching_events as matching_events @@ -160,10 +161,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelPersons.test_funnel_person_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -171,10 +172,10 @@ and session_id in ['s1'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestFunnelPersons.test_funnel_person_recordings.2 - ' + ''' SELECT aggregation_target AS actor_id, step_1_matching_events as matching_events @@ -335,10 +336,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelPersons.test_funnel_person_recordings.3 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -346,10 +347,10 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestFunnelPersons.test_funnel_person_recordings.4 - ' + ''' SELECT aggregation_target AS actor_id, step_1_matching_events as matching_events @@ -510,10 +511,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelPersons.test_funnel_person_recordings.5 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -521,5 +522,5 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr index 07f673351ac22..c56275b1ebeed 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelStrictStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -12,10 +13,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelStrictStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -82,10 +83,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelStrictStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -99,10 +100,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelStrictStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -173,10 +174,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelStrictStepsBreakdown.test_funnel_step_multiple_breakdown_snapshot - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', ''), replaceRegexpAll(JSONExtractRaw(properties, '$version'), '^"|"$', '')) AS value, count(*) as count @@ -189,10 +190,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelStrictStepsBreakdown.test_funnel_step_multiple_breakdown_snapshot.1 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -258,5 +259,5 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr index 357898144a3fc..fa267c176d958 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelStrictStepsPersons.test_strict_funnel_person_recordings - ' + ''' SELECT aggregation_target AS actor_id, step_0_matching_events as matching_events @@ -121,10 +122,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelStrictStepsPersons.test_strict_funnel_person_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -132,10 +133,10 @@ and session_id in ['s1'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestFunnelStrictStepsPersons.test_strict_funnel_person_recordings.2 - ' + ''' SELECT aggregation_target AS actor_id, step_1_matching_events as matching_events @@ -257,10 +258,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelStrictStepsPersons.test_strict_funnel_person_recordings.3 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -268,10 +269,10 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- # name: TestFunnelStrictStepsPersons.test_strict_funnel_person_recordings.4 - ' + ''' SELECT aggregation_target AS actor_id, step_1_matching_events as matching_events @@ -393,10 +394,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelStrictStepsPersons.test_strict_funnel_person_recordings.5 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -404,5 +405,5 @@ and session_id in ['s2'] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr index 0e16ceb59d50c..bf03eb27cafc6 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelTimeToConvert.test_auto_bin_count_single_step - ' + ''' WITH step_runs AS (SELECT aggregation_target, steps, @@ -115,10 +116,10 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- # name: TestFunnelTimeToConvert.test_auto_bin_count_total - ' + ''' WITH step_runs AS (SELECT aggregation_target, steps, @@ -234,10 +235,10 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- # name: TestFunnelTimeToConvert.test_auto_bin_count_total.1 - ' + ''' WITH step_runs AS (SELECT aggregation_target, steps, @@ -353,10 +354,10 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- # name: TestFunnelTimeToConvert.test_basic_strict - ' + ''' WITH step_runs AS (SELECT aggregation_target, steps, @@ -454,10 +455,10 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- # name: TestFunnelTimeToConvert.test_basic_unordered - ' + ''' WITH step_runs AS (SELECT aggregation_target, steps, @@ -642,5 +643,5 @@ FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) ORDER BY bin_from_seconds - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_trends.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_trends.ambr index 49699ea7b27f0..33f6e9439dafe 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_trends.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_trends.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelTrends.test_timezones_trends - ' + ''' SELECT entrance_period_start, reached_from_step_count, @@ -81,10 +82,10 @@ (SELECT toStartOfDay(toDateTime('2021-04-30 00:00:00', 'UTC')) + toIntervalDay(number) AS entrance_period_start FROM numbers(dateDiff('day', toStartOfDay(toDateTime('2021-04-30 00:00:00', 'UTC')), toStartOfDay(toDateTime('2021-05-07 00:00:00', 'UTC'))) + 1) AS period_offsets) fill USING (entrance_period_start) ORDER BY entrance_period_start ASC - ' ---- + ''' +# --- # name: TestFunnelTrends.test_timezones_trends.1 - ' + ''' SELECT entrance_period_start, reached_from_step_count, @@ -166,10 +167,10 @@ (SELECT toStartOfDay(toDateTime('2021-04-30 00:00:00', 'US/Pacific')) + toIntervalDay(number) AS entrance_period_start FROM numbers(dateDiff('day', toStartOfDay(toDateTime('2021-04-30 00:00:00', 'US/Pacific')), toStartOfDay(toDateTime('2021-05-07 00:00:00', 'US/Pacific'))) + 1) AS period_offsets) fill USING (entrance_period_start) ORDER BY entrance_period_start ASC - ' ---- + ''' +# --- # name: TestFunnelTrends.test_week_interval - ' + ''' SELECT entrance_period_start, reached_from_step_count, @@ -251,10 +252,10 @@ (SELECT toStartOfWeek(toDateTime('2021-05-01 00:00:00', 'UTC'), 0) + toIntervalWeek(number) AS entrance_period_start FROM numbers(dateDiff('week', toStartOfWeek(toDateTime('2021-05-01 00:00:00', 'UTC'), 0), toStartOfWeek(toDateTime('2021-05-07 00:00:00', 'UTC'), 0)) + 1) AS period_offsets) fill USING (entrance_period_start) ORDER BY entrance_period_start ASC - ' ---- + ''' +# --- # name: TestFunnelTrends.test_week_interval.1 - ' + ''' SELECT aggregation_target AS actor_id FROM @@ -329,5 +330,5 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_trends_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_trends_persons.ambr index ea8be26d05717..5a61a961f8fb3 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_trends_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_trends_persons.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelTrendsPersons.test_funnel_trend_persons_returns_recordings - ' + ''' SELECT aggregation_target AS actor_id, step_1_matching_events as matching_events @@ -138,10 +139,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelTrendsPersons.test_funnel_trend_persons_returns_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -149,21 +150,10 @@ and session_id in ['s1b'] AND min_first_timestamp >= '2021-04-30 00:00:00' AND max_last_timestamp <= '2021-05-08 23:59:59' - ' ---- -# name: TestFunnelTrendsPersons.test_funnel_trend_persons_returns_recordings.2 - ' - - SELECT DISTINCT session_id - FROM session_replay_events - WHERE team_id = 2 - and session_id in ['s1b'] - AND min_first_timestamp >= '2021-04-30 00:00:00' - AND max_last_timestamp <= '2021-05-08 23:59:59' - ' ---- + ''' +# --- # name: TestFunnelTrendsPersons.test_funnel_trend_persons_with_drop_off - ' + ''' SELECT aggregation_target AS actor_id, final_matching_events as matching_events @@ -303,10 +293,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelTrendsPersons.test_funnel_trend_persons_with_drop_off.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -314,21 +304,10 @@ and session_id in ['s1a'] AND min_first_timestamp >= '2021-04-30 00:00:00' AND max_last_timestamp <= '2021-05-08 23:59:59' - ' ---- -# name: TestFunnelTrendsPersons.test_funnel_trend_persons_with_drop_off.2 - ' - - SELECT DISTINCT session_id - FROM session_replay_events - WHERE team_id = 2 - and session_id in ['s1a'] - AND min_first_timestamp >= '2021-04-30 00:00:00' - AND max_last_timestamp <= '2021-05-08 23:59:59' - ' ---- + ''' +# --- # name: TestFunnelTrendsPersons.test_funnel_trend_persons_with_no_to_step - ' + ''' SELECT aggregation_target AS actor_id, final_matching_events as matching_events @@ -467,21 +446,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelTrendsPersons.test_funnel_trend_persons_with_no_to_step.1 - ' - - SELECT DISTINCT session_id - FROM session_replay_events - WHERE team_id = 2 - and session_id in ['s1c'] - AND min_first_timestamp >= '2021-04-30 00:00:00' - AND max_last_timestamp <= '2021-05-08 23:59:59' - ' ---- -# name: TestFunnelTrendsPersons.test_funnel_trend_persons_with_no_to_step.2 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -489,5 +457,5 @@ and session_id in ['s1c'] AND min_first_timestamp >= '2021-04-30 00:00:00' AND max_last_timestamp <= '2021-05-08 23:59:59' - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr index e95f1b894c71b..5cda7d02f15c9 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelUnorderedStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -12,10 +13,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen.1 - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -28,10 +29,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen.2 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -145,10 +146,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -161,10 +162,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step.1 - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', '')) AS value, count(*) as count @@ -177,10 +178,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step.2 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -302,10 +303,10 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_step_multiple_breakdown_snapshot - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', ''), replaceRegexpAll(JSONExtractRaw(properties, '$version'), '^"|"$', '')) AS value, count(*) as count @@ -318,10 +319,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_step_multiple_breakdown_snapshot.1 - ' + ''' SELECT array(replaceRegexpAll(JSONExtractRaw(properties, '$browser'), '^"|"$', ''), replaceRegexpAll(JSONExtractRaw(properties, '$version'), '^"|"$', '')) AS value, count(*) as count @@ -334,10 +335,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsBreakdown.test_funnel_step_multiple_breakdown_snapshot.2 - ' + ''' SELECT countIf(steps = 1) step_1, countIf(steps = 2) step_2, @@ -449,5 +450,5 @@ prop HAVING steps = max_steps) GROUP BY prop - ' ---- + ''' +# --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr index 640af4ff89917..aef0f3690f8bb 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFunnelUnorderedStepsPersons.test_unordered_funnel_does_not_return_recordings - ' + ''' SELECT aggregation_target AS actor_id, array() as matching_events @@ -228,10 +229,10 @@ ORDER BY aggregation_target LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestFunnelUnorderedStepsPersons.test_unordered_funnel_does_not_return_recordings.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -239,5 +240,5 @@ and session_id in [] AND min_first_timestamp >= '2020-12-31 00:00:00' AND max_last_timestamp <= '2021-01-09 23:59:59' - ' ---- + ''' +# --- diff --git a/posthog/queries/test/__snapshots__/test_lifecycle.ambr b/posthog/queries/test/__snapshots__/test_lifecycle.ambr index db6a8f351c496..9ff418103fe08 100644 --- a/posthog/queries/test/__snapshots__/test_lifecycle.ambr +++ b/posthog/queries/test/__snapshots__/test_lifecycle.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestLifecycle.test_sampling - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2020-01-19 23:59:59', 'UTC'))) AS start_of_period @@ -69,10 +70,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestLifecycle.test_timezones - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2020-01-19 23:59:59', 'UTC'))) AS start_of_period @@ -142,10 +143,10 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- # name: TestLifecycle.test_timezones.1 - ' + ''' WITH 'day' AS selected_period, periods AS (SELECT dateSub(day, number, dateTrunc(selected_period, toDateTime('2020-01-19 23:59:59', 'US/Pacific'))) AS start_of_period @@ -215,5 +216,5 @@ status ORDER BY start_of_period ASC) GROUP BY status - ' ---- + ''' +# --- diff --git a/posthog/queries/test/__snapshots__/test_retention.ambr b/posthog/queries/test/__snapshots__/test_retention.ambr index 98afedfabf020..535fa2dee8a6b 100644 --- a/posthog/queries/test/__snapshots__/test_retention.ambr +++ b/posthog/queries/test/__snapshots__/test_retention.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFOSSRetention.test_day_interval_sampled - ' + ''' WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -68,10 +69,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_month_interval_with_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -82,10 +83,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'person1', -1, 0) - ' ---- + ''' +# --- # name: TestFOSSRetention.test_month_interval_with_person_on_events_v2.1 - ' + ''' WITH actor_query AS (WITH 'Month' as period, NULL as breakdown_values_filter, @@ -154,10 +155,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_retention_event_action - ' + ''' WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -226,10 +227,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_retention_with_user_properties_via_action - ' + ''' WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -313,10 +314,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_timezones - ' + ''' WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -385,10 +386,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_timezones.1 - ' + ''' WITH actor_query AS (WITH 'Day' as period, NULL as breakdown_values_filter, @@ -457,10 +458,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_week_interval - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -529,10 +530,10 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- # name: TestFOSSRetention.test_week_interval.1 - ' + ''' WITH actor_query AS (WITH 'Week' as period, NULL as breakdown_values_filter, @@ -601,5 +602,5 @@ intervals_from_base ORDER BY breakdown_values, intervals_from_base - ' ---- + ''' +# --- diff --git a/posthog/queries/test/__snapshots__/test_trends.ambr b/posthog/queries/test/__snapshots__/test_trends.ambr index 121fd084fb97a..18978d88301ff 100644 --- a/posthog/queries/test/__snapshots__/test_trends.ambr +++ b/posthog/queries/test/__snapshots__/test_trends.ambr @@ -1,35 +1,36 @@ +# serializer version: 1 # name: TestTrends.test_action_filtering_with_cohort - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.2 - ' + ''' /* celery:posthog.tasks.calculate_cohort.clear_stale_cohort */ SELECT count() FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version < 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -77,40 +78,40 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.2 - ' + ''' /* celery:posthog.tasks.calculate_cohort.clear_stale_cohort */ SELECT count() FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version < 2 - ' ---- + ''' +# --- # name: TestTrends.test_action_filtering_with_cohort_poe_v2.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -147,10 +148,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_person_on_events - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -171,10 +172,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_person_on_events.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -225,10 +226,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_person_on_events.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -256,10 +257,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_with_person_filter_person_on_events - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value, count(*) as count @@ -281,10 +282,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_by_group_props_with_person_filter_person_on_events.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -336,10 +337,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$current_url'), '^"|"$', '') AS value, count(*) as count @@ -355,10 +356,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -403,10 +404,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$current_url'), '^"|"$', '') AS value, count(*) as count @@ -422,18 +423,18 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_filtering_with_properties_in_new_format.3 - ' + ''' SELECT [now()] AS date, [0] AS total, '' AS breakdown_value LIMIT 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(DISTINCT pdi.person_id) as count @@ -453,10 +454,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated.1 - ' + ''' SELECT count(DISTINCT pdi.person_id) AS total, transform(ifNull(nullIf(replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', ''), ''), '$$_posthog_breakdown_null_$$'), (['val', 'bor']), (['val', 'bor']), '$$_posthog_breakdown_other_$$') as breakdown_value @@ -476,10 +477,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-11 23:59:59', 'UTC') GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated_materialized - ' + ''' SELECT "mat_key" AS value, count(DISTINCT pdi.person_id) as count @@ -499,10 +500,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_aggregated_materialized.1 - ' + ''' SELECT count(DISTINCT pdi.person_id) AS total, transform(ifNull(nullIf("mat_key", ''), '$$_posthog_breakdown_null_$$'), (['val', 'bor']), (['val', 'bor']), '$$_posthog_breakdown_other_$$') as breakdown_value @@ -522,10 +523,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-11 23:59:59', 'UTC') GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_daily_based_on_action - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(DISTINCT pdi.person_id) as count @@ -565,10 +566,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_weekly_active_users_daily_based_on_action.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -660,10 +661,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(*) as count @@ -684,10 +685,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -737,10 +738,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -751,10 +752,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'test_breakdown_d1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events_v2.1 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'key'), '^"|"$', '') AS value, count(*) as count @@ -782,10 +783,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_breakdown_with_filter_groups_person_on_events_v2.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -843,10 +844,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, count(*) as count @@ -859,10 +860,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -911,10 +912,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, count(*) as count @@ -927,10 +928,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_dau_with_breakdown_filtering_with_sampling.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -979,30 +980,30 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1044,30 +1045,30 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestTrends.test_filter_events_by_precalculated_cohort_poe_v2.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1092,10 +1093,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_filtering_by_multiple_groups_person_on_events - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1135,10 +1136,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_filtering_by_multiple_groups_person_on_events.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -1174,10 +1175,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_filtering_with_group_props_person_on_events - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1210,10 +1211,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$some_prop'), '^"|"$', '') AS value, count(DISTINCT pdi.person_id) as count @@ -1246,10 +1247,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1334,10 +1335,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter_poe_v2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_properties, '$some_prop'), '^"|"$', '') AS value, count(DISTINCT if(notEmpty(overrides.person_id), overrides.person_id, e.person_id)) as count @@ -1358,10 +1359,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_mau_with_breakdown_filtering_and_prop_filter_poe_v2.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1435,10 +1436,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_non_deterministic_timezones - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1461,10 +1462,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, count(*) as count @@ -1496,10 +1497,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1560,10 +1561,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action_poe_v2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, count(*) as count @@ -1595,10 +1596,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_person_filtering_in_cohort_in_action_poe_v2.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1660,10 +1661,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1705,10 +1706,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1750,10 +1751,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1777,10 +1778,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property_materialized - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1822,10 +1823,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_clashing_with_event_property_materialized.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1849,10 +1850,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_person_property_filtering_materialized - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1894,10 +1895,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2 - ' + ''' SELECT distinct_id, person_id @@ -1908,10 +1909,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'distinctid1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1935,10 +1936,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -1968,10 +1969,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2_latest_override - ' + ''' SELECT distinct_id, person_id @@ -1982,10 +1983,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'distinctid1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2_latest_override.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2015,10 +2016,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2_latest_override.2 - ' + ''' SELECT distinct_id, person_id @@ -2029,10 +2030,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'distinctid1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2_latest_override.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2062,10 +2063,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2_latest_override.4 - ' + ''' SELECT distinct_id, person_id @@ -2076,10 +2077,10 @@ GROUP BY distinct_id, person_id ORDER BY if(distinct_id = 'distinctid1', -1, 0) - ' ---- + ''' +# --- # name: TestTrends.test_same_day_with_person_on_events_v2_latest_override.5 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2109,10 +2110,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2135,10 +2136,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2168,10 +2169,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2217,10 +2218,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-05 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2243,10 +2244,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.4 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$os'), '^"|"$', '') AS value, count(*) as count @@ -2259,10 +2260,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily.5 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -2311,10 +2312,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2337,10 +2338,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2370,10 +2371,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2419,10 +2420,10 @@ AND toTimeZone(timestamp, 'America/Phoenix') <= toDateTime('2020-01-05 23:59:59', 'America/Phoenix') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2445,10 +2446,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.4 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$os'), '^"|"$', '') AS value, count(*) as count @@ -2461,10 +2462,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_minus_utc.5 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -2513,10 +2514,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2539,10 +2540,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2572,10 +2573,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2621,10 +2622,10 @@ AND toTimeZone(timestamp, 'Asia/Tokyo') <= toDateTime('2020-01-05 23:59:59', 'Asia/Tokyo') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2647,10 +2648,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.4 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$os'), '^"|"$', '') AS value, count(*) as count @@ -2663,10 +2664,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_daily_plus_utc.5 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -2715,10 +2716,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2748,10 +2749,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -2777,10 +2778,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2803,10 +2804,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_minus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2836,10 +2837,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_minus_utc.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -2865,10 +2866,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_minus_utc.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2891,10 +2892,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_plus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2924,10 +2925,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_plus_utc.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -2953,10 +2954,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_timezones_hourly_relative_from_plus_utc.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -2979,10 +2980,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3005,10 +3006,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3031,10 +3032,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_minus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3057,10 +3058,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_minus_utc.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3083,10 +3084,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_plus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3109,10 +3110,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_timezones_weekly_plus_utc.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3135,10 +3136,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trend_actors_person_on_events_pagination_with_alias_inconsistencies - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3169,10 +3170,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trend_actors_person_on_events_pagination_with_alias_inconsistencies.1 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -3199,10 +3200,10 @@ actor_id DESC LIMIT 5 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trend_actors_person_on_events_pagination_with_alias_inconsistencies.2 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -3229,10 +3230,10 @@ actor_id DESC LIMIT 5 OFFSET 5 - ' ---- + ''' +# --- # name: TestTrends.test_trend_actors_person_on_events_pagination_with_alias_inconsistencies.3 - ' + ''' /* user_id:0 request:_snapshot_ */ SELECT person_id AS actor_id, count() AS actor_value @@ -3259,10 +3260,10 @@ actor_id DESC LIMIT 5 OFFSET 10 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, 'email'), '^"|"$', '') AS value, count(*) as count @@ -3299,10 +3300,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -3368,10 +3369,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, 'email'), '^"|"$', '') AS value, count(*) as count @@ -3409,10 +3410,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trend_breakdown_user_props_with_filter_with_partial_property_pushdowns.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -3479,10 +3480,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3505,10 +3506,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3550,10 +3551,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$some_prop'), '^"|"$', '') AS value, count(*) as count @@ -3580,10 +3581,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -3639,10 +3640,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.4 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3681,10 +3682,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2019-12-31 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.5 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3723,10 +3724,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2019-12-31 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.6 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_prop'), '^"|"$', '') AS value, count(*) as count @@ -3739,10 +3740,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_aggregate_by_distinct_id.7 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -3784,10 +3785,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_any_event_total_count - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3810,10 +3811,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_any_event_total_count.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -3836,10 +3837,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, count(*) as count @@ -3852,10 +3853,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -3912,10 +3913,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative_poe_v2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, count(*) as count @@ -3935,10 +3936,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_cumulative_poe_v2.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -3996,10 +3997,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, quantile(0.50)(session_duration) as count @@ -4021,10 +4022,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown.1 - ' + ''' SELECT quantile(0.50)(session_duration) AS total, breakdown_value @@ -4053,10 +4054,10 @@ breakdown_value) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, quantile(0.50)(session_duration) as count @@ -4078,10 +4079,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_breakdown_with_session_property_single_aggregate_math_and_breakdown.3 - ' + ''' SELECT quantile(0.50)(session_duration) AS total, breakdown_value @@ -4110,10 +4111,10 @@ breakdown_value) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_compare_day_interval_relative_range - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4136,10 +4137,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_compare_day_interval_relative_range.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4162,10 +4163,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_compare_day_interval_relative_range.2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4188,10 +4189,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_group_average_aggregated - ' + ''' SELECT avg(intermediate_count) AS total FROM @@ -4203,10 +4204,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-07 23:59:59', 'UTC') AND "$group_0" != '' GROUP BY "$group_0") events - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_group_average_daily - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4233,10 +4234,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated - ' + ''' SELECT avg(intermediate_count) AS total FROM @@ -4260,10 +4261,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2020-01-01 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-07 23:59:59', 'UTC') GROUP BY pdi.person_id) events - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated_poe_v2 - ' + ''' SELECT avg(intermediate_count) AS total FROM @@ -4281,10 +4282,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-07 23:59:59', 'UTC') AND notEmpty(e.person_id) GROUP BY if(notEmpty(overrides.person_id), overrides.person_id, e.person_id)) events - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated_with_event_property_breakdown_with_sampling - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'color'), '^"|"$', '') AS value, count(*) as count @@ -4310,10 +4311,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_aggregated_with_event_property_breakdown_with_sampling.1 - ' + ''' SELECT avg(intermediate_count) AS total, breakdown_value @@ -4343,10 +4344,10 @@ breakdown_value) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_daily - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4385,10 +4386,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_count_per_user_average_daily_poe_v2 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4421,10 +4422,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_groups_per_day_cumulative - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4453,10 +4454,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_per_day_cumulative - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4479,10 +4480,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_person_breakdown_with_session_property_single_aggregate_math_and_breakdown - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(person_props, '$some_prop'), '^"|"$', '') AS value, quantile(0.50)(session_duration) as count @@ -4518,10 +4519,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_person_breakdown_with_session_property_single_aggregate_math_and_breakdown.1 - ' + ''' SELECT quantile(0.50)(session_duration) AS total, breakdown_value @@ -4564,10 +4565,10 @@ breakdown_value) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_hogql_math - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4590,10 +4591,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_single_aggregate_math - ' + ''' SELECT quantile(0.50)(session_duration) AS total FROM @@ -4613,10 +4614,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfWeek(toDateTime('2019-12-28 00:00:00', 'UTC'), 0), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-04 23:59:59', 'UTC') GROUP BY e."$session_id") - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_single_aggregate_math.1 - ' + ''' SELECT quantile(0.50)(session_duration) AS total FROM @@ -4636,10 +4637,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2019-12-28 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-04 23:59:59', 'UTC') GROUP BY e."$session_id") - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4674,10 +4675,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4712,10 +4713,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, quantile(0.50)(session_duration) as count @@ -4737,10 +4738,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -4803,10 +4804,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns.2 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$some_property'), '^"|"$', '') AS value, quantile(0.50)(session_duration) as count @@ -4828,10 +4829,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestTrends.test_trends_with_session_property_total_volume_math_with_breakdowns.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -4894,10 +4895,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_aggregated_range_narrower_than_week - ' + ''' SELECT count(DISTINCT pdi.person_id) AS total FROM events e @@ -4912,10 +4913,10 @@ AND event = '$pageview' AND toDateTime(timestamp, 'UTC') >= toDateTime('2020-01-05 23:59:59', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_aggregated_range_wider_than_week - ' + ''' SELECT count(DISTINCT pdi.person_id) AS total FROM events e @@ -4930,10 +4931,10 @@ AND event = '$pageview' AND toDateTime(timestamp, 'UTC') >= toDateTime('2020-01-01 23:59:59', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC') - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_aggregated_range_wider_than_week_with_sampling - ' + ''' SELECT count(DISTINCT pdi.person_id) AS total FROM events e SAMPLE 1.0 @@ -4948,10 +4949,10 @@ AND event = '$pageview' AND toDateTime(timestamp, 'UTC') >= toDateTime('2020-01-01 23:59:59', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC') - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_daily - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -4997,10 +4998,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-19 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_daily_minus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5046,10 +5047,10 @@ AND toTimeZone(timestamp, 'America/Phoenix') <= toDateTime('2020-01-19 23:59:59', 'America/Phoenix') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_daily_plus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5095,10 +5096,10 @@ AND toTimeZone(timestamp, 'Asia/Tokyo') <= toDateTime('2020-01-19 23:59:59', 'Asia/Tokyo') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_filtering - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5156,10 +5157,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_filtering_materialized - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5217,10 +5218,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_hourly - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5266,10 +5267,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-09 17:00:00', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_monthly - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5315,10 +5316,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-02-29 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_monthly_minus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5364,10 +5365,10 @@ AND toTimeZone(timestamp, 'America/Phoenix') <= toDateTime('2020-02-29 23:59:59', 'America/Phoenix') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_monthly_plus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5413,10 +5414,10 @@ AND toTimeZone(timestamp, 'Asia/Tokyo') <= toDateTime('2020-02-29 23:59:59', 'Asia/Tokyo') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_weekly - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5462,10 +5463,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-18 23:59:59', 'UTC') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_weekly_minus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5511,10 +5512,10 @@ AND toTimeZone(timestamp, 'America/Phoenix') <= toDateTime('2020-01-18 23:59:59', 'America/Phoenix') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- # name: TestTrends.test_weekly_active_users_weekly_plus_utc - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total @@ -5560,5 +5561,5 @@ AND toTimeZone(timestamp, 'Asia/Tokyo') <= toDateTime('2020-01-18 23:59:59', 'Asia/Tokyo') ) GROUP BY day_start ORDER BY day_start) - ' ---- + ''' +# --- diff --git a/posthog/queries/trends/test/__snapshots__/test_breakdowns.ambr b/posthog/queries/trends/test/__snapshots__/test_breakdowns.ambr index b8f635bc61459..e162fde73a100 100644 --- a/posthog/queries/trends/test/__snapshots__/test_breakdowns.ambr +++ b/posthog/queries/trends/test/__snapshots__/test_breakdowns.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestBreakdowns.test_breakdown_by_event_property_of_unique_sessions_with_bucketing - ' + ''' SELECT arrayCompact(arrayMap(x -> floor(x, 2), quantiles(0.00, 0.33, 0.67, 1.00)(value))) FROM @@ -11,10 +12,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') GROUP BY value) - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_event_property_of_unique_sessions_with_bucketing.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -62,10 +63,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_event_property_with_bucketing - ' + ''' SELECT arrayCompact(arrayMap(x -> floor(x, 2), quantiles(0.00, 0.33, 0.67, 1.00)(value))) FROM @@ -77,10 +78,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') GROUP BY value) - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_event_property_with_bucketing.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -128,10 +129,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_event_property_with_entity_session_filter - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, '$current_url'), '^"|"$', '') AS value, count(*) as count @@ -154,10 +155,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_event_property_with_entity_session_filter.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -209,10 +210,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_events - ' + ''' SELECT sessions.session_duration AS value, count(*) as count @@ -235,10 +236,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_events.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -290,10 +291,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_events_single_aggregate - ' + ''' SELECT arrayCompact(arrayMap(x -> floor(x, 2), quantiles(0.00, 0.33, 0.67, 1.00)(value))) FROM @@ -314,10 +315,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') GROUP BY value) - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_events_single_aggregate.1 - ' + ''' SELECT count(*) AS total, multiIf(toFloat64OrNull(toString(sessions.session_duration)) >= 0.0 @@ -341,10 +342,10 @@ AND toFloat64OrNull(toString(sessions.session_duration)) is not null GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_events_with_bucketing - ' + ''' SELECT arrayCompact(arrayMap(x -> floor(x, 2), quantiles(0.00, 0.33, 0.67, 1.00)(value))) FROM @@ -366,10 +367,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') AND (NOT has(['https://test.com'], replaceRegexpAll(JSONExtractRaw(e.properties, '$current_url'), '^"|"$', ''))) GROUP BY value) - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_events_with_bucketing.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -427,10 +428,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_unique_sessions - ' + ''' SELECT sessions.session_duration AS value, count(DISTINCT e."$session_id") as count @@ -452,10 +453,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_unique_sessions.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -506,10 +507,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_unique_sessions_with_bucketing - ' + ''' SELECT arrayCompact(arrayMap(x -> floor(x, 2), quantiles(0.00, 0.33, 0.67, 1.00)(value))) FROM @@ -530,10 +531,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') GROUP BY value) - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_by_session_duration_of_unique_sessions_with_bucketing.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -590,10 +591,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_histogram_by_missing_property_regression - ' + ''' SELECT arrayCompact(arrayMap(x -> floor(x, 2), quantiles(0.00, 0.10, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 1.00)(value))) FROM @@ -605,10 +606,10 @@ AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-02 00:00:00', 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-12 23:59:59', 'UTC') GROUP BY value) - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_histogram_by_missing_property_regression.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -652,10 +653,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_numeric_hogql - ' + ''' SELECT length(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$current_url'), ''), 'null'), '^"|"$', '')) AS value, count(*) as count @@ -668,10 +669,10 @@ ORDER BY count DESC, value DESC LIMIT 3 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_numeric_hogql.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -713,10 +714,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_numeric_hogql_hide_other - ' + ''' SELECT length(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$current_url'), ''), 'null'), '^"|"$', '')) AS value, count(*) as count @@ -729,10 +730,10 @@ ORDER BY count DESC, value DESC LIMIT 3 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_numeric_hogql_hide_other.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -775,10 +776,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_numeric_hogql_hide_other.2 - ' + ''' SELECT length(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$current_url'), ''), 'null'), '^"|"$', '')) AS value, count(*) as count @@ -791,10 +792,10 @@ ORDER BY count DESC, value DESC LIMIT 4 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_numeric_hogql_hide_other.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -837,10 +838,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_string_hogql - ' + ''' SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$current_url'), ''), 'null'), '^"|"$', '') AS value, count(*) as count @@ -853,10 +854,10 @@ ORDER BY count DESC, value DESC LIMIT 3 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_string_hogql.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -898,10 +899,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_string_hogql_hide_other - ' + ''' SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$current_url'), ''), 'null'), '^"|"$', '') AS value, count(*) as count @@ -914,10 +915,10 @@ ORDER BY count DESC, value DESC LIMIT 3 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_string_hogql_hide_other.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -960,10 +961,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_string_hogql_hide_other.2 - ' + ''' SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, '$current_url'), ''), 'null'), '^"|"$', '') AS value, count(*) as count @@ -976,10 +977,10 @@ ORDER BY count DESC, value DESC LIMIT 4 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdowns.test_breakdown_string_hogql_hide_other.3 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -1022,5 +1023,5 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- diff --git a/posthog/queries/trends/test/__snapshots__/test_breakdowns_by_current_url.ambr b/posthog/queries/trends/test/__snapshots__/test_breakdowns_by_current_url.ambr index 2562ad16d95a4..c5f9bae980d08 100644 --- a/posthog/queries/trends/test/__snapshots__/test_breakdowns_by_current_url.ambr +++ b/posthog/queries/trends/test/__snapshots__/test_breakdowns_by_current_url.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestBreakdownsByCurrentURL.test_breakdown_by_current_url - ' + ''' SELECT if(empty(trim(TRAILING '/?#' from replaceRegexpAll(JSONExtractRaw(properties, '$current_url'), '^"|"$', ''))), '/', trim(TRAILING '/?#' @@ -14,10 +15,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownsByCurrentURL.test_breakdown_by_current_url.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -61,10 +62,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- # name: TestBreakdownsByCurrentURL.test_breakdown_by_pathname - ' + ''' SELECT if(empty(trim(TRAILING '/?#' from replaceRegexpAll(JSONExtractRaw(properties, '$pathname'), '^"|"$', ''))), '/', trim(TRAILING '/?#' @@ -79,10 +80,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestBreakdownsByCurrentURL.test_breakdown_by_pathname.1 - ' + ''' SELECT groupArray(day_start) as date, groupArray(count) AS total, @@ -126,5 +127,5 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value - ' ---- + ''' +# --- diff --git a/posthog/queries/trends/test/__snapshots__/test_formula.ambr b/posthog/queries/trends/test/__snapshots__/test_formula.ambr index d12a680c5d04f..a93cc3c412d00 100644 --- a/posthog/queries/trends/test/__snapshots__/test_formula.ambr +++ b/posthog/queries/trends/test/__snapshots__/test_formula.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFormula.test_aggregated_one_without_events - ' + ''' SELECT '' as date, arrayMap((A, B) -> B + A, [ifNull(sub_A.total, 0)], [ifNull(sub_B.total, 0)]) FROM @@ -16,10 +17,10 @@ AND event = 'session error' AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfDay(toDateTime('2019-12-28 00:00:00', 'UTC')), 'UTC') AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-04 23:59:59', 'UTC') ) as sub_B - ' ---- + ''' +# --- # name: TestFormula.test_breakdown - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'location'), '^"|"$', '') AS value, sum(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -32,10 +33,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown.1 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'location'), '^"|"$', '') AS value, avg(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -48,10 +49,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown.2 - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A - B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayFilter(x -> notEmpty(x), [replaceRegexpAll(sub_A.breakdown_value, '^"|"$', ''), replaceRegexpAll(sub_B.breakdown_value, '^"|"$', '')])[1] , @@ -138,10 +139,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value) as sub_B ON sub_A.breakdown_value = sub_B.breakdown_value - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_aggregated - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'location'), '^"|"$', '') AS value, sum(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -154,10 +155,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_aggregated.1 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'location'), '^"|"$', '') AS value, avg(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -170,10 +171,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_aggregated.2 - ' + ''' SELECT '' as date, arrayMap((A, B) -> A - B, [ifNull(sub_A.total, 0)], [ifNull(sub_B.total, 0)]) , arrayFilter(x -> notEmpty(x), [replaceRegexpAll(sub_A.breakdown_value, '^"|"$', ''), replaceRegexpAll(sub_B.breakdown_value, '^"|"$', '')])[1] @@ -197,10 +198,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-04 23:59:59', 'UTC') GROUP BY breakdown_value ORDER BY breakdown_value) as sub_B ON sub_A.breakdown_value = sub_B.breakdown_value - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_cohort - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A + B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayFilter(x -> x != 0, [sub_A.breakdown_value, sub_B.breakdown_value])[1] , @@ -343,10 +344,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value) as sub_B ON sub_A.breakdown_value = sub_B.breakdown_value - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_hogql - ' + ''' SELECT concat(ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person_properties, '$some_prop'), ''), 'null'), '^"|"$', '')), ''), ' : ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'location'), ''), 'null'), '^"|"$', '')), '')) AS value, sum(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -373,10 +374,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_hogql.1 - ' + ''' SELECT concat(ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person_properties, '$some_prop'), ''), 'null'), '^"|"$', '')), ''), ' : ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'location'), ''), 'null'), '^"|"$', '')), '')) AS value, avg(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -403,10 +404,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_hogql.2 - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A + B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayFilter(x -> notEmpty(x), [replaceRegexpAll(sub_A.breakdown_value, '^"|"$', ''), replaceRegexpAll(sub_B.breakdown_value, '^"|"$', '')])[1] , @@ -521,10 +522,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value) as sub_B ON sub_A.breakdown_value = sub_B.breakdown_value - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_with_different_breakdown_values_per_series - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'location'), '^"|"$', '') AS value, sum(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -537,10 +538,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_with_different_breakdown_values_per_series.1 - ' + ''' SELECT replaceRegexpAll(JSONExtractRaw(properties, 'location'), '^"|"$', '') AS value, sum(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) as count @@ -553,10 +554,10 @@ ORDER BY count DESC, value DESC LIMIT 26 OFFSET 0 - ' ---- + ''' +# --- # name: TestFormula.test_breakdown_with_different_breakdown_values_per_series.2 - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A + B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayFilter(x -> notEmpty(x), [replaceRegexpAll(sub_A.breakdown_value, '^"|"$', ''), replaceRegexpAll(sub_B.breakdown_value, '^"|"$', '')])[1] , @@ -643,10 +644,10 @@ day_start) GROUP BY breakdown_value ORDER BY breakdown_value) as sub_B ON sub_A.breakdown_value = sub_B.breakdown_value - ' ---- + ''' +# --- # name: TestFormula.test_formula_with_unique_sessions - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A / B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length @@ -701,61 +702,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start)) as sub_B - ' ---- -# name: TestFormula.test_hour_interval - ' - SELECT sub_A.date, - arrayMap((A, B) -> A + B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , - arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length - FROM - (SELECT groupArray(day_start) as date, - groupArray(count) AS total - FROM - (SELECT SUM(total) AS count, - day_start - FROM - (SELECT toUInt16(0) AS total, - toStartOfHour(toDateTime('2020-01-03 13:59:59', 'UTC') - toIntervalHour(number)) AS day_start - FROM numbers(dateDiff('hour', toStartOfHour(toDateTime('2020-01-02 13:00:00', 'UTC')), toDateTime('2020-01-03 13:59:59', 'UTC'))) - UNION ALL SELECT toUInt16(0) AS total, - toStartOfHour(toDateTime('2020-01-02 13:00:00', 'UTC')) - UNION ALL SELECT sum(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) AS total, - toStartOfHour(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) AS date - FROM events e - WHERE team_id = 2 - AND event = 'session start' - AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfHour(toDateTime('2020-01-02 13:00:00', 'UTC')), 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-03 13:59:59', 'UTC') - GROUP BY date) - GROUP BY day_start - ORDER BY day_start)) as sub_A - CROSS JOIN - (SELECT groupArray(day_start) as date, - groupArray(count) AS total - FROM - (SELECT SUM(total) AS count, - day_start - FROM - (SELECT toUInt16(0) AS total, - toStartOfHour(toDateTime('2020-01-03 13:59:59', 'UTC') - toIntervalHour(number)) AS day_start - FROM numbers(dateDiff('hour', toStartOfHour(toDateTime('2020-01-02 13:00:00', 'UTC')), toDateTime('2020-01-03 13:59:59', 'UTC'))) - UNION ALL SELECT toUInt16(0) AS total, - toStartOfHour(toDateTime('2020-01-02 13:00:00', 'UTC')) - UNION ALL SELECT avg(toFloat64OrNull(replaceRegexpAll(JSONExtractRaw(properties, 'session duration'), '^"|"$', ''))) AS total, - toStartOfHour(toTimeZone(toDateTime(timestamp, 'UTC'), 'UTC')) AS date - FROM events e - WHERE team_id = 2 - AND event = 'session start' - AND toTimeZone(timestamp, 'UTC') >= toDateTime(toStartOfHour(toDateTime('2020-01-02 13:00:00', 'UTC')), 'UTC') - AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-03 13:59:59', 'UTC') - GROUP BY date) - GROUP BY day_start - ORDER BY day_start)) as sub_B - ' ---- + ''' +# --- # name: TestFormula.test_hour_interval_day_level_relative - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A + B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length @@ -803,10 +753,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start)) as sub_B - ' ---- + ''' +# --- # name: TestFormula.test_hour_interval_hour_level_relative - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A + B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length @@ -854,10 +804,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start)) as sub_B - ' ---- + ''' +# --- # name: TestFormula.test_regression_formula_with_session_duration_aggregation - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A / B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length @@ -926,10 +876,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start)) as sub_B - ' ---- + ''' +# --- # name: TestFormula.test_regression_formula_with_unique_sessions_2x_and_duration_filter - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> A / B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length @@ -996,10 +946,10 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start)) as sub_B - ' ---- + ''' +# --- # name: TestFormula.test_regression_formula_with_unique_sessions_2x_and_duration_filter_2x - ' + ''' SELECT sub_A.date, arrayMap((A, B) -> B, arrayResize(sub_A.total, max_length, 0), arrayResize(sub_B.total, max_length, 0)) , arrayMax([length(sub_A.total), length(sub_B.total)]) as max_length @@ -1067,5 +1017,5 @@ GROUP BY date) GROUP BY day_start ORDER BY day_start)) as sub_B - ' ---- + ''' +# --- diff --git a/posthog/queries/trends/test/__snapshots__/test_person.ambr b/posthog/queries/trends/test/__snapshots__/test_person.ambr index 723f799dcb64e..cfd9ccbe8de4c 100644 --- a/posthog/queries/trends/test/__snapshots__/test_person.ambr +++ b/posthog/queries/trends/test/__snapshots__/test_person.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPerson.test_group_query_includes_recording_events - ' + ''' SELECT $group_0 AS actor_id, count() AS actor_value , @@ -23,10 +24,10 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- # name: TestPerson.test_group_query_includes_recording_events.1 - ' + ''' SELECT DISTINCT session_id FROM session_replay_events @@ -34,10 +35,10 @@ and session_id in ['s1'] AND min_first_timestamp >= '2021-01-20 00:00:00' AND max_last_timestamp <= '2021-01-22 23:59:59' - ' ---- + ''' +# --- # name: TestPerson.test_person_query_does_not_include_recording_events_if_flag_not_set - ' + ''' SELECT person_id AS actor_id, count() AS actor_value @@ -63,5 +64,5 @@ actor_id DESC LIMIT 100 OFFSET 0 - ' ---- + ''' +# --- diff --git a/posthog/schema.py b/posthog/schema.py index 8c15dd8cfb890..da0c90e2290e0 100644 --- a/posthog/schema.py +++ b/posthog/schema.py @@ -3,15 +3,14 @@ from __future__ import annotations -from datetime import datetime from enum import Enum from typing import Any, Dict, List, Optional, Union -from pydantic import BaseModel, ConfigDict, Field, RootModel +from pydantic import AwareDatetime, BaseModel, ConfigDict, Field, RootModel from typing_extensions import Literal -class SchemaRoot(RootModel): +class SchemaRoot(RootModel[Any]): root: Any @@ -461,14 +460,14 @@ class QueryStatus(BaseModel): extra="forbid", ) complete: Optional[bool] = False - end_time: Optional[datetime] = None + end_time: Optional[AwareDatetime] = None error: Optional[bool] = False error_message: Optional[str] = "" - expiration_time: Optional[datetime] = None + expiration_time: Optional[AwareDatetime] = None id: str query_async: Optional[bool] = True results: Optional[Any] = None - start_time: Optional[datetime] = None + start_time: Optional[AwareDatetime] = None task_id: Optional[str] = None team_id: int @@ -748,7 +747,7 @@ class ActorsQueryResponse(BaseModel): types: List[str] -class AnyResponseTypeItem(BaseModel): +class AnyResponseType1(BaseModel): model_config = ConfigDict( extra="forbid", ) @@ -986,7 +985,7 @@ class RetentionResult(BaseModel): model_config = ConfigDict( extra="forbid", ) - date: datetime + date: AwareDatetime label: str values: List[RetentionValue] @@ -1061,7 +1060,7 @@ class TimeToSeeDataJSONNode(BaseModel): source: TimeToSeeDataQuery -class TimeToSeeDataNode(RootModel): +class TimeToSeeDataNode(RootModel[Union[TimeToSeeDataJSONNode, TimeToSeeDataWaterfallNode]]): root: Union[TimeToSeeDataJSONNode, TimeToSeeDataWaterfallNode] @@ -1115,9 +1114,15 @@ class WebTopClicksQuery(BaseModel): response: Optional[WebTopClicksQueryResponse] = None -class AnyResponseType(RootModel): +class AnyResponseType( + RootModel[ + Union[ + Dict[str, Any], HogQLQueryResponse, HogQLMetadataResponse, Union[AnyResponseType1, Any], EventsQueryResponse + ] + ] +): root: Union[ - Dict[str, Any], HogQLQueryResponse, HogQLMetadataResponse, Union[AnyResponseTypeItem, Any], EventsQueryResponse + Dict[str, Any], HogQLQueryResponse, HogQLMetadataResponse, Union[AnyResponseType1, Any], EventsQueryResponse ] @@ -1351,7 +1356,9 @@ class HogQLQuery(BaseModel): ) -class InsightFilter(RootModel): +class InsightFilter( + RootModel[Union[TrendsFilter, FunnelsFilter, RetentionFilter, PathsFilter, StickinessFilter, LifecycleFilter]] +): root: Union[TrendsFilter, FunnelsFilter, RetentionFilter, PathsFilter, StickinessFilter, LifecycleFilter] @@ -1516,7 +1523,7 @@ class DataVisualizationNode(BaseModel): source: HogQLQuery -class HasPropertiesNode(RootModel): +class HasPropertiesNode(RootModel[Union[EventsNode, EventsQuery, PersonsNode]]): root: Union[EventsNode, EventsQuery, PersonsNode] @@ -2010,7 +2017,39 @@ class HogQLMetadata(BaseModel): table: Optional[str] = Field(default=None, description="Table to validate the expression against") -class QuerySchema(RootModel): +class QuerySchema( + RootModel[ + Union[ + DataVisualizationNode, + DataTableNode, + SavedInsightNode, + InsightVizNode, + TrendsQuery, + FunnelsQuery, + RetentionQuery, + PathsQuery, + StickinessQuery, + LifecycleQuery, + TimeToSeeDataSessionsQuery, + DatabaseSchemaQuery, + Union[ + EventsNode, + ActionsNode, + PersonsNode, + TimeToSeeDataSessionsQuery, + EventsQuery, + ActorsQuery, + InsightActorsQuery, + SessionsTimelineQuery, + HogQLQuery, + HogQLMetadata, + WebOverviewQuery, + WebStatsTableQuery, + WebTopClicksQuery, + ], + ] + ] +): root: Union[ DataVisualizationNode, DataTableNode, diff --git a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr index 45667c11eb6b3..c976d41882ca4 100644 --- a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr +++ b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_action_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -44,10 +45,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_action_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -91,10 +92,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_action_filter.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -139,10 +140,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_action_filter.3 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -187,10 +188,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_all_filters_at_once - ' + ''' SELECT s.session_id, any(s.team_id), @@ -254,10 +255,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_any_event_filter_with_properties - ' + ''' SELECT s.session_id, any(s.team_id), @@ -297,10 +298,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_any_event_filter_with_properties.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -341,10 +342,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_any_event_filter_with_properties.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -385,10 +386,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_any_event_filter_with_properties_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -428,10 +429,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_any_event_filter_with_properties_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -472,10 +473,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_any_event_filter_with_properties_materialized.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -516,10 +517,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query - ' + ''' SELECT s.session_id, any(s.team_id), @@ -546,10 +547,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query_active_sessions - ' + ''' SELECT s.session_id, any(s.team_id), @@ -577,10 +578,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query_active_sessions.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -608,10 +609,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query_active_sessions.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -639,10 +640,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query_with_paging - ' + ''' SELECT s.session_id, any(s.team_id), @@ -669,10 +670,10 @@ ORDER BY start_time DESC LIMIT 2 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query_with_paging.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -699,10 +700,10 @@ ORDER BY start_time DESC LIMIT 2 OFFSET 1 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_basic_query_with_paging.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -729,10 +730,10 @@ ORDER BY start_time DESC LIMIT 2 OFFSET 2 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_from_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -759,10 +760,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_from_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -789,10 +790,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_from_filter_cannot_search_before_ttl - ' + ''' SELECT s.session_id, any(s.team_id), @@ -819,10 +820,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_from_filter_cannot_search_before_ttl.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -849,10 +850,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_from_filter_cannot_search_before_ttl.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -879,10 +880,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_to_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -909,10 +910,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_date_to_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -939,10 +940,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_duration_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -970,10 +971,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_duration_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1001,10 +1002,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1046,10 +1047,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1091,10 +1092,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_has_ttl_applied_too - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1136,10 +1137,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_has_ttl_applied_too.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1166,10 +1167,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_active_sessions - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1212,10 +1213,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_active_sessions.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1258,10 +1259,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_group_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1311,10 +1312,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_event_properties_test_accounts_excluded - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1356,10 +1357,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_event_properties_test_accounts_excluded.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1437,10 +1438,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_event_properties_test_accounts_excluded.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1516,10 +1517,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_event_properties_test_accounts_excluded_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1561,10 +1562,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_event_properties_test_accounts_excluded_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1640,10 +1641,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_event_properties_test_accounts_excluded_materialized.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1717,10 +1718,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_person_properties - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1795,10 +1796,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_person_properties.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1873,10 +1874,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_properties - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1919,10 +1920,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_properties.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -1965,10 +1966,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_properties_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2011,10 +2012,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_hogql_properties_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2057,10 +2058,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_matching_on_session_id - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2102,10 +2103,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_matching_on_session_id.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2147,10 +2148,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_person_properties - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2198,10 +2199,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_properties - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2244,10 +2245,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_properties.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2290,10 +2291,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_properties_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2336,10 +2337,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_properties_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2382,10 +2383,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_test_accounts_excluded - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2471,10 +2472,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_test_accounts_excluded.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2516,10 +2517,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_test_accounts_excluded_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2605,10 +2606,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_test_accounts_excluded_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2650,10 +2651,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_event_filter_with_two_events_and_multiple_teams - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2696,10 +2697,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_by_console_text - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2738,10 +2739,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_by_console_text.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2780,10 +2781,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_by_console_text.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2822,10 +2823,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_by_console_text.3 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2863,10 +2864,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_by_console_text.4 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2904,10 +2905,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_errors - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2935,10 +2936,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_errors.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2966,10 +2967,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_errors.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -2997,10 +2998,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_logs - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3028,10 +3029,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_logs.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3059,10 +3060,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_logs.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3090,10 +3091,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_warns - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3121,10 +3122,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_warns.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3152,10 +3153,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_console_warns.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3183,10 +3184,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_mixed_console_counts - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3215,10 +3216,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_mixed_console_counts.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3246,10 +3247,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_for_recordings_with_mixed_console_counts.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3277,30 +3278,30 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_cohort_properties - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_cohort_properties.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_cohort_properties.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3348,30 +3349,30 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_events_and_cohorts - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = NULL - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_events_and_cohorts.1 - ' + ''' SELECT count(DISTINCT person_id) FROM cohortpeople WHERE team_id = 2 AND cohort_id = 2 AND version = 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_events_and_cohorts.2 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3455,10 +3456,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_filter_with_events_and_cohorts.3 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3542,10 +3543,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_multiple_event_filters - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3588,10 +3589,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_multiple_event_filters.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3634,10 +3635,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_person_id_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3674,10 +3675,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_event_property_test_account_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3719,10 +3720,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_event_property_test_account_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3762,10 +3763,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_event_property_test_account_filter_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3807,10 +3808,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_event_property_test_account_filter_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3850,10 +3851,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_event_property_test_account_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3895,10 +3896,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_event_property_test_account_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3938,10 +3939,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_event_property_test_account_filter_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -3983,10 +3984,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_event_property_test_account_filter_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4026,10 +4027,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_person_property_test_account_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4071,10 +4072,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_person_property_test_account_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4119,10 +4120,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_person_property_test_account_filter_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4164,10 +4165,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_hogql_person_property_test_account_filter_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4211,10 +4212,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_person_property_test_account_filter - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4256,10 +4257,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_person_property_test_account_filter.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4307,10 +4308,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_person_property_test_account_filter_materialized - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4352,10 +4353,10 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- # name: TestClickhouseSessionRecordingsListFromSessionReplay.test_top_level_person_property_test_account_filter_materialized.1 - ' + ''' SELECT s.session_id, any(s.team_id), @@ -4403,5 +4404,5 @@ ORDER BY start_time DESC LIMIT 51 OFFSET 0 - ' ---- + ''' +# --- diff --git a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_properties.ambr b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_properties.ambr index bdd22e7d719e9..da4e23370201d 100644 --- a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_properties.ambr +++ b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_properties.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestSessionRecordingProperties.test_properties_list - ' + ''' SELECT "$session_id" AS session_id, any(properties) AS properties @@ -9,5 +10,5 @@ AND timestamp >= '2021-01-13 12:00:00' AND timestamp <= '2021-01-22 08:00:00' GROUP BY session_id - ' ---- + ''' +# --- diff --git a/posthog/session_recordings/queries/test/__snapshots__/test_session_replay_summaries.ambr b/posthog/session_recordings/queries/test/__snapshots__/test_session_replay_summaries.ambr index 3dea66381e7c1..1ad2368a0b1f8 100644 --- a/posthog/session_recordings/queries/test/__snapshots__/test_session_replay_summaries.ambr +++ b/posthog/session_recordings/queries/test/__snapshots__/test_session_replay_summaries.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestReceiveSummarizedSessionReplays.test_session_replay_summaries_can_be_queried - ' + ''' select session_id, any(team_id), @@ -17,5 +18,5 @@ and max_last_timestamp <= '2023-04-28 19:18:24.597000' and session_id in ('test_session_replay_summaries_can_be_queried-session-id') group by session_id - ' ---- + ''' +# --- diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr index c0ddaa28bbc82..3ab7e2a06682a 100644 --- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr +++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestSessionRecordings.test_get_session_recordings - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -54,10 +55,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -112,10 +113,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.10 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -170,10 +171,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.11 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -228,10 +229,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.12 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -286,10 +287,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.13 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -317,10 +318,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.14 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -368,10 +369,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.15 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -398,10 +399,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.16 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -409,10 +410,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.17 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -420,10 +421,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.18 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -431,10 +432,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.19 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -442,10 +443,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.2 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -500,10 +501,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.20 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -511,10 +512,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.21 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -522,10 +523,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.22 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -533,10 +534,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.23 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -544,10 +545,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.24 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -555,10 +556,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.25 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -566,10 +567,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.26 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -577,10 +578,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.27 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -605,18 +606,18 @@ WHERE ("posthog_sessionrecording"."session_id" IN ('test_get_session_recordings-1', 'test_get_session_recordings-2') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.28 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.29 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -637,10 +638,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" IN ('user2', 'user_one_2') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.3 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -695,25 +696,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- -# name: TestSessionRecordings.test_get_session_recordings.30 - ' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version" - FROM "posthog_persondistinctid" - WHERE "posthog_persondistinctid"."person_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.4 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -768,10 +754,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.5 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -826,10 +812,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -884,10 +870,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.7 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -942,10 +928,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.8 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1000,10 +986,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.9 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1058,10 +1044,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1089,10 +1075,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.1 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1140,10 +1126,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.10 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1151,10 +1137,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.100 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1209,10 +1195,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.101 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1240,10 +1226,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.102 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1291,10 +1277,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.103 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -1321,10 +1307,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.104 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1332,10 +1318,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.105 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1343,10 +1329,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.106 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1354,10 +1340,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.107 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1365,10 +1351,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.108 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1376,10 +1362,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.109 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1387,10 +1373,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.11 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1398,10 +1384,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.110 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1409,10 +1395,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.111 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1420,10 +1406,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.112 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1431,10 +1417,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.113 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1442,10 +1428,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.114 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -1474,18 +1460,18 @@ '5', '6') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.115 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.116 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -1510,10 +1496,10 @@ 'user5', 'user6') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.117 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1568,10 +1554,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.118 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1599,10 +1585,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.119 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1650,10 +1636,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.12 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1661,10 +1647,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.120 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -1691,10 +1677,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.121 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1702,10 +1688,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.122 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1713,10 +1699,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.123 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1724,10 +1710,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.124 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1735,10 +1721,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.125 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1746,10 +1732,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.126 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1757,10 +1743,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.127 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1768,10 +1754,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.128 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1779,10 +1765,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.129 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1790,10 +1776,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.13 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1801,10 +1787,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.130 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -1812,10 +1798,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.131 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -1845,18 +1831,18 @@ '6', '7') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.132 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.133 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -1882,10 +1868,10 @@ 'user6', 'user7') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.134 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -1940,10 +1926,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.135 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -1971,10 +1957,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.136 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2022,10 +2008,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.137 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -2052,10 +2038,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.138 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2063,10 +2049,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.139 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2074,18 +2060,18 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.14 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.140 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2093,10 +2079,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.141 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2104,10 +2090,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.142 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2115,10 +2101,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.143 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2126,10 +2112,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.144 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2137,10 +2123,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.145 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2148,10 +2134,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.146 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2159,10 +2145,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.147 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2170,10 +2156,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.148 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -2204,18 +2190,18 @@ '7', '8') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.149 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.15 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2270,10 +2256,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.150 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -2300,10 +2286,10 @@ 'user7', 'user8') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.151 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2358,10 +2344,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.152 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -2389,10 +2375,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.153 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2440,10 +2426,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.154 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -2470,10 +2456,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.155 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2481,10 +2467,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.156 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2492,10 +2478,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.157 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2503,10 +2489,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.158 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2514,10 +2500,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.159 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2525,10 +2511,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.16 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -2556,10 +2542,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.160 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2567,10 +2553,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.161 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2578,10 +2564,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.162 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2589,10 +2575,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.163 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2600,10 +2586,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.164 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2611,10 +2597,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.165 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -2646,18 +2632,18 @@ '8', '9') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.166 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.167 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -2685,10 +2671,10 @@ 'user8', 'user9') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.168 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2743,10 +2729,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.169 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -2774,10 +2760,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.17 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2825,10 +2811,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.170 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -2876,10 +2862,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.171 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -2906,10 +2892,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.172 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2917,10 +2903,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.173 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2928,10 +2914,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.174 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2939,10 +2925,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.175 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2950,10 +2936,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.176 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2961,10 +2947,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.177 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2972,10 +2958,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.178 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2983,10 +2969,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.179 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -2994,10 +2980,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.18 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -3024,10 +3010,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.180 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3035,10 +3021,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.181 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3046,10 +3032,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.182 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -3082,18 +3068,18 @@ '8', '9') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.183 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.184 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -3122,65 +3108,10 @@ 'user8', 'user9') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.185 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.186 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.187 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.188 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.189 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.19 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3188,159 +3119,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.190 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.191 - ' - SELECT "posthog_sessionrecording"."id", - "posthog_sessionrecording"."session_id", - "posthog_sessionrecording"."team_id", - "posthog_sessionrecording"."created_at", - "posthog_sessionrecording"."deleted", - "posthog_sessionrecording"."object_storage_path", - "posthog_sessionrecording"."distinct_id", - "posthog_sessionrecording"."duration", - "posthog_sessionrecording"."active_seconds", - "posthog_sessionrecording"."inactive_seconds", - "posthog_sessionrecording"."start_time", - "posthog_sessionrecording"."end_time", - "posthog_sessionrecording"."click_count", - "posthog_sessionrecording"."keypress_count", - "posthog_sessionrecording"."mouse_activity_count", - "posthog_sessionrecording"."console_log_count", - "posthog_sessionrecording"."console_warn_count", - "posthog_sessionrecording"."console_error_count", - "posthog_sessionrecording"."start_url", - "posthog_sessionrecording"."storage_version" - FROM "posthog_sessionrecording" - WHERE ("posthog_sessionrecording"."session_id" IN ('1', - '10', - '2', - '3', - '4', - '5', - '6', - '7', - '8', - '9') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.192 - ' - SELECT "posthog_sessionrecordingviewed"."session_id" - FROM "posthog_sessionrecordingviewed" - WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.193 - ' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version", - "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_persondistinctid" - INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") - WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', - 'user10', - 'user2', - 'user3', - 'user4', - 'user5', - 'user6', - 'user7', - 'user8', - 'user9') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.194 - ' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version" - FROM "posthog_persondistinctid" - WHERE "posthog_persondistinctid"."person_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.195 - ' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version", - "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_persondistinctid" - INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") - WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', - 'user10', - 'user2', - 'user3', - 'user4', - 'user5', - 'user6', - 'user7', - 'user8', - 'user9') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.196 - ' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version" - FROM "posthog_persondistinctid" - WHERE "posthog_persondistinctid"."person_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.2 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -3367,10 +3149,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.20 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3378,10 +3160,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.21 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3389,10 +3171,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.22 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3400,10 +3182,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.23 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3411,10 +3193,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.24 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3422,10 +3204,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.25 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3433,10 +3215,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.26 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3444,10 +3226,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.27 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3455,10 +3237,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.28 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3466,10 +3248,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.29 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -3493,10 +3275,10 @@ FROM "posthog_sessionrecording" WHERE ("posthog_sessionrecording"."session_id" IN ('1') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.3 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3504,18 +3286,18 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.30 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.31 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -3535,10 +3317,10 @@ INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.32 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3593,10 +3375,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.33 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -3624,10 +3406,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.34 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3675,10 +3457,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.35 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -3705,10 +3487,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.36 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3716,10 +3498,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.37 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3727,10 +3509,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.38 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3738,10 +3520,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.39 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3749,10 +3531,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.4 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3760,10 +3542,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.40 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3771,10 +3553,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.41 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3782,10 +3564,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.42 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3793,10 +3575,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.43 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3804,10 +3586,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.44 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3815,10 +3597,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.45 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3826,10 +3608,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.46 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -3854,18 +3636,18 @@ WHERE ("posthog_sessionrecording"."session_id" IN ('1', '2') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.47 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.48 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -3886,10 +3668,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', 'user2') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.49 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -3944,10 +3726,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.5 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -3955,10 +3737,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.50 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -3986,10 +3768,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.51 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4037,10 +3819,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.52 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -4067,10 +3849,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.53 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4078,10 +3860,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.54 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4089,10 +3871,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.55 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4100,10 +3882,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.56 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4111,10 +3893,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.57 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4122,10 +3904,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.58 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4133,10 +3915,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.59 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4144,10 +3926,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.6 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4155,10 +3937,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.60 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4166,10 +3948,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.61 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4177,10 +3959,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.62 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4188,10 +3970,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.63 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -4217,18 +3999,18 @@ '2', '3') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.64 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.65 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -4250,10 +4032,10 @@ 'user2', 'user3') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.66 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4308,10 +4090,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.67 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -4339,10 +4121,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.68 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4390,10 +4172,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.69 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -4420,10 +4202,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.7 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4431,10 +4213,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.70 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4442,10 +4224,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.71 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4453,10 +4235,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.72 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4464,10 +4246,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.73 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4475,10 +4257,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.74 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4486,10 +4268,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.75 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4497,10 +4279,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.76 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4508,10 +4290,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.77 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4519,10 +4301,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.78 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4530,10 +4312,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.79 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4541,10 +4323,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.8 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4552,10 +4334,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.80 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -4582,18 +4364,18 @@ '3', '4') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.81 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.82 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -4616,10 +4398,10 @@ 'user3', 'user4') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.83 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4674,10 +4456,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.84 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -4705,10 +4487,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 /**/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.85 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -4756,10 +4538,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.86 - ' + ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", "posthog_organizationmembership"."user_id", @@ -4786,10 +4568,10 @@ FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.87 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4797,10 +4579,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.88 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4808,10 +4590,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.89 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4819,10 +4601,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.9 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4830,10 +4612,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.90 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4841,10 +4623,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.91 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4852,10 +4634,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.92 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4863,10 +4645,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.93 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4874,10 +4656,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.94 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4885,10 +4667,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.95 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4896,10 +4678,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.96 - ' + ''' SELECT "posthog_instancesetting"."id", "posthog_instancesetting"."key", "posthog_instancesetting"."raw_value" @@ -4907,10 +4689,10 @@ WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.97 - ' + ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", "posthog_sessionrecording"."team_id", @@ -4938,18 +4720,18 @@ '4', '5') AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.98 - ' + ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.99 - ' + ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", "posthog_persondistinctid"."person_id", @@ -4973,5 +4755,5 @@ 'user4', 'user5') AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ - ' ---- + ''' +# --- diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr index 8797637ca1f61..0e3728f3faad9 100644 --- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr +++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -19,10 +20,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.1 - ' + ''' SELECT "posthog_scheduledchange"."id", "posthog_scheduledchange"."record_id", "posthog_scheduledchange"."model_name", @@ -41,10 +42,10 @@ LIMIT 10000 FOR UPDATE NOWAIT - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.10 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -65,10 +66,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.11 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -123,10 +124,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.12 - ' + ''' SELECT "posthog_scheduledchange"."id", "posthog_scheduledchange"."record_id", "posthog_scheduledchange"."model_name", @@ -141,10 +142,10 @@ FROM "posthog_scheduledchange" WHERE "posthog_scheduledchange"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.13 - ' + ''' SELECT "posthog_scheduledchange"."id", "posthog_scheduledchange"."record_id", "posthog_scheduledchange"."model_name", @@ -159,10 +160,10 @@ FROM "posthog_scheduledchange" WHERE "posthog_scheduledchange"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.14 - ' + ''' SELECT "posthog_scheduledchange"."id", "posthog_scheduledchange"."record_id", "posthog_scheduledchange"."model_name", @@ -177,10 +178,10 @@ FROM "posthog_scheduledchange" WHERE "posthog_scheduledchange"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.15 - ' + ''' SELECT "posthog_scheduledchange"."id", "posthog_scheduledchange"."record_id", "posthog_scheduledchange"."model_name", @@ -195,10 +196,10 @@ FROM "posthog_scheduledchange" WHERE "posthog_scheduledchange"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.16 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -217,10 +218,10 @@ FROM "posthog_featureflag" WHERE "posthog_featureflag"."key" = 'flag-1' LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.2 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -239,10 +240,10 @@ FROM "posthog_featureflag" WHERE "posthog_featureflag"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.3 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -271,10 +272,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.4 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -294,10 +295,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.5 - ' + ''' SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", @@ -318,10 +319,10 @@ FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.6 - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -376,10 +377,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.7 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -398,10 +399,10 @@ FROM "posthog_featureflag" WHERE "posthog_featureflag"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.8 - ' + ''' SELECT "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", @@ -430,10 +431,10 @@ FROM "posthog_user" WHERE "posthog_user"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestProcessScheduledChanges.test_schedule_feature_flag_multiple_changes.9 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -453,5 +454,5 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- diff --git a/posthog/tasks/test/__snapshots__/test_usage_report.ambr b/posthog/tasks/test/__snapshots__/test_usage_report.ambr index 3cadd9faae952..4e5039c1df0b1 100644 --- a/posthog/tasks/test/__snapshots__/test_usage_report.ambr +++ b/posthog/tasks/test/__snapshots__/test_usage_report.ambr @@ -1,14 +1,15 @@ +# serializer version: 1 # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests - ' + ''' SELECT team_id, count(1) as count FROM events GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.1 - ' + ''' SELECT team_id, count(distinct toDate(timestamp), event, cityHash64(distinct_id), cityHash64(uuid)) as count @@ -19,10 +20,10 @@ 'survey shown', 'survey dismissed') GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.10 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -36,10 +37,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = '' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.11 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -53,10 +54,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = '' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.12 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -70,10 +71,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = '' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.13 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -87,10 +88,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = 'personal_api_key' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.14 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -104,10 +105,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = 'personal_api_key' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.15 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -121,10 +122,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = 'personal_api_key' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.16 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -138,10 +139,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = '' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.17 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -155,10 +156,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = '' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.18 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -172,10 +173,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = '' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.19 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -189,10 +190,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = 'personal_api_key' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.2 - ' + ''' SELECT team_id, count(1) as count @@ -203,10 +204,10 @@ 'survey shown', 'survey dismissed') GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.20 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -220,10 +221,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = 'personal_api_key' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.21 - ' + ''' WITH JSONExtractInt(log_comment, 'team_id') as team_id, JSONExtractString(log_comment, 'query_type') as query_type, JSONExtractString(log_comment, 'access_method') as access_method @@ -237,10 +238,10 @@ AND query_start_time between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND access_method = 'personal_api_key' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.22 - ' + ''' SELECT team_id, COUNT() as count @@ -248,10 +249,10 @@ WHERE event = 'survey sent' AND timestamp between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.23 - ' + ''' SELECT team_id, COUNT() as count @@ -259,10 +260,10 @@ WHERE event = 'survey sent' AND timestamp between '2022-01-01 00:00:00' AND '2022-01-10 23:59:59' GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.24 - ' + ''' SELECT team, sum(rows_synced) @@ -277,10 +278,10 @@ GROUP BY job_id, team) GROUP BY team - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.3 - ' + ''' SELECT team_id, count(1) as count @@ -292,10 +293,10 @@ OR $group_3 != '' OR $group_4 != '') GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.4 - ' + ''' SELECT team_id, count(distinct session_id) as count @@ -307,19 +308,19 @@ WHERE min_first_timestamp BETWEEN '2022-01-09 00:00:00' AND '2022-01-10 00:00:00' GROUP BY session_id) GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.5 - ' + ''' SELECT team_id, count(distinct session_id) as count FROM session_replay_events GROUP BY team_id - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.6 - ' + ''' SELECT distinct_id as team, sum(JSONExtractInt(properties, 'count')) as sum @@ -329,10 +330,10 @@ AND timestamp between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND has(['correct'], replaceRegexpAll(JSONExtractRaw(properties, 'token'), '^"|"$', '')) GROUP BY team - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.7 - ' + ''' SELECT distinct_id as team, sum(JSONExtractInt(properties, 'count')) as sum @@ -342,10 +343,10 @@ AND timestamp between '2022-01-01 00:00:00' AND '2022-01-10 23:59:59' AND has(['correct'], replaceRegexpAll(JSONExtractRaw(properties, 'token'), '^"|"$', '')) GROUP BY team - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.8 - ' + ''' SELECT distinct_id as team, sum(JSONExtractInt(properties, 'count')) as sum @@ -355,10 +356,10 @@ AND timestamp between '2022-01-10 00:00:00' AND '2022-01-10 23:59:59' AND has(['correct'], replaceRegexpAll(JSONExtractRaw(properties, 'token'), '^"|"$', '')) GROUP BY team - ' ---- + ''' +# --- # name: TestFeatureFlagsUsageReport.test_usage_report_decide_requests.9 - ' + ''' SELECT distinct_id as team, sum(JSONExtractInt(properties, 'count')) as sum @@ -368,5 +369,5 @@ AND timestamp between '2022-01-01 00:00:00' AND '2022-01-10 23:59:59' AND has(['correct'], replaceRegexpAll(JSONExtractRaw(properties, 'token'), '^"|"$', '')) GROUP BY team - ' ---- + ''' +# --- diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index cc8c0d48fa7ad..76ad9fae52868 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestFeatureFlagMatcher.test_coercion_of_booleans_with_is_not_operator - ' + ''' SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false' OR ("posthog_person"."properties" -> 'disabled') = '"false"') AND "posthog_person"."properties" ? 'disabled' @@ -41,10 +42,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_coercion_of_strings_and_numbers_with_is_not_operator - ' + ''' SELECT (NOT ((("posthog_person"."properties" -> 'Organizer Id') IN ('"307"') OR ("posthog_person"."properties" -> 'Organizer Id') IN ('307')) AND "posthog_person"."properties" ? 'Organizer Id' @@ -64,10 +65,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_coercion_of_strings_and_numbers_with_is_not_operator.1 - ' + ''' SELECT NOT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"') OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307')) AND "posthog_person"."properties" ? 'Distinct Id' @@ -87,10 +88,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -145,10 +146,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.1 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -168,10 +169,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.2 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -191,10 +192,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.3 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -214,10 +215,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.4 - ' + ''' SELECT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"') OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307')) AND "posthog_person"."properties" ? 'Distinct Id' @@ -227,10 +228,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.5 - ' + ''' SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') AND "posthog_person"."properties" ? 'Distinct Id' AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" @@ -239,10 +240,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.6 - ' + ''' SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307' AND "posthog_person"."properties" ? 'Distinct Id' AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" @@ -251,10 +252,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags - ' + ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -263,10 +264,10 @@ "posthog_grouptypemapping"."name_plural" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags.1 - ' + ''' SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' AND "posthog_person"."properties" ? 'email' AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", @@ -279,20 +280,20 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags.2 - ' + ''' SELECT (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'group_key' AND "posthog_group"."group_type_index" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags.3 - ' + ''' SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') AND "posthog_group"."group_properties" ? 'name' AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", @@ -303,10 +304,10 @@ WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' AND "posthog_group"."group_type_index" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags.4 - ' + ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -315,10 +316,10 @@ "posthog_grouptypemapping"."name_plural" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags.5 - ' + ''' SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' AND "posthog_person"."properties" ? 'email' AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", @@ -331,10 +332,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_multiple_flags.6 - ' + ''' SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') AND "posthog_group"."group_properties" ? 'name' AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", @@ -345,10 +346,10 @@ WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo2' AND "posthog_group"."group_type_index" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_cohorts_and_nested_cohorts - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -369,10 +370,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_cohorts_and_nested_cohorts.1 - ' + ''' SELECT (((("posthog_person"."properties" -> 'number') > '"100"' AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = 'string') OR (("posthog_person"."properties" -> 'number') > '100.0' @@ -402,10 +403,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags - ' + ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -414,10 +415,10 @@ "posthog_grouptypemapping"."name_plural" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.1 - ' + ''' SELECT (((("posthog_person"."properties" -> 'number') >= '"20"' AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = 'string') OR (("posthog_person"."properties" -> 'number') >= '20.0' @@ -429,10 +430,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.2 - ' + ''' SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"' AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = 'string') OR (("posthog_group"."group_properties" -> 'number') > '100.0' @@ -443,10 +444,10 @@ WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' AND "posthog_group"."group_type_index" = 0) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.3 - ' + ''' SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"' AND "posthog_group"."group_properties" ? 'number' AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" @@ -454,10 +455,10 @@ WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo-project' AND "posthog_group"."group_type_index" = 1) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_super_condition_matches_string - ' + ''' SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true' OR ("posthog_person"."properties" -> 'is_enabled') = '"true"') AND "posthog_person"."properties" ? 'is_enabled' @@ -474,10 +475,10 @@ WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases - ' + ''' SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", @@ -532,10 +533,10 @@ FROM "posthog_team" WHERE "posthog_team"."id" = 2 LIMIT 21 - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.1 - ' + ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", "posthog_featureflag"."name", @@ -555,10 +556,10 @@ WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.2 - ' + ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", "posthog_cohort"."description", @@ -579,10 +580,10 @@ FROM "posthog_cohort" WHERE (NOT "posthog_cohort"."deleted" AND "posthog_cohort"."team_id" = 2) - ' ---- + ''' +# --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.3 - ' + ''' SELECT (((("posthog_person"."properties" -> 'number space') > '"100"' AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = 'string') OR (("posthog_person"."properties" -> 'number space') > '100.0' @@ -616,16 +617,16 @@ WHERE ("posthog_persondistinctid"."distinct_id" = '307' AND "posthog_persondistinctid"."team_id" = 2 AND "posthog_person"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -652,16 +653,16 @@ AND key NOT IN (SELECT feature_flag_key FROM existing_overrides) - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -701,16 +702,16 @@ FROM posthog_person WHERE id = person_id AND team_id = 2) ON CONFLICT DO NOTHING - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -750,26 +751,26 @@ FROM posthog_person WHERE id = person_id AND team_id = 2) ON CONFLICT DO NOTHING - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 - ' + ''' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."distinct_id" IN ('other_id', 'example_id') AND "posthog_persondistinctid"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 - ' + ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", "posthog_featureflaghashkeyoverride"."person_id" @@ -780,16 +781,16 @@ 4, 5 /* ... */) AND "posthog_featureflaghashkeyoverride"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -816,16 +817,16 @@ AND key NOT IN (SELECT feature_flag_key FROM existing_overrides) - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.2 - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.3 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -865,16 +866,16 @@ FROM posthog_person WHERE id = person_id AND team_id = 2) ON CONFLICT DO NOTHING - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.4 - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 - ' + ''' WITH target_person_ids AS (SELECT team_id, person_id @@ -914,26 +915,26 @@ FROM posthog_person WHERE id = person_id AND team_id = 2) ON CONFLICT DO NOTHING - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.6 - ' + ''' SET LOCAL statement_timeout = 2 - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.7 - ' + ''' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" WHERE ("posthog_persondistinctid"."distinct_id" IN ('other_id', 'example_id') AND "posthog_persondistinctid"."team_id" = 2) - ' ---- + ''' +# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.8 - ' + ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", "posthog_featureflaghashkeyoverride"."person_id" @@ -944,5 +945,5 @@ 4, 5 /* ... */) AND "posthog_featureflaghashkeyoverride"."team_id" = 2) - ' ---- + ''' +# --- diff --git a/posthog/test/__snapshots__/test_plugin.ambr b/posthog/test/__snapshots__/test_plugin.ambr index 55697e192d1a0..9d2f526c3e4d1 100644 --- a/posthog/test/__snapshots__/test_plugin.ambr +++ b/posthog/test/__snapshots__/test_plugin.ambr @@ -1,5 +1,6 @@ +# serializer version: 1 # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_tgz_with_explicit_index_js_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -14,10 +15,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_tgz_with_explicit_index_js_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -32,16 +33,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_tgz_with_explicit_index_js_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_tgz_with_explicit_index_js_works.3 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -56,10 +57,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_tgz_with_explicit_index_js_works.4 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -74,16 +75,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_tgz_with_explicit_index_js_works.5 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_with_explicit_index_js_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -98,10 +99,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_with_explicit_index_js_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -116,16 +117,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_with_explicit_index_js_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_with_index_ts_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -140,10 +141,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_with_index_ts_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -158,16 +159,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_with_index_ts_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_without_index_ts_but_frontend_tsx_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -182,10 +183,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_without_index_ts_but_frontend_tsx_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -200,16 +201,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_without_index_ts_but_frontend_tsx_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_without_index_ts_but_site_Ts_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -224,10 +225,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_without_index_ts_but_site_Ts_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -242,16 +243,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_from_zip_without_index_ts_but_site_Ts_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_twice_from_zip_with_index_ts_replaced_by_frontend_tsx_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -266,10 +267,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_twice_from_zip_with_index_ts_replaced_by_frontend_tsx_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -284,16 +285,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_twice_from_zip_with_index_ts_replaced_by_frontend_tsx_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_twice_from_zip_with_index_ts_replaced_by_frontend_tsx_works.3 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -308,10 +309,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_twice_from_zip_with_index_ts_replaced_by_frontend_tsx_works.4 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -326,16 +327,16 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_twice_from_zip_with_index_ts_replaced_by_frontend_tsx_works.5 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_with_subdir_works - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -350,10 +351,10 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_with_subdir_works.1 - ' + ''' SELECT "posthog_pluginsourcefile"."id", "posthog_pluginsourcefile"."plugin_id", "posthog_pluginsourcefile"."filename", @@ -368,11 +369,11 @@ LIMIT 21 FOR UPDATE - ' ---- + ''' +# --- # name: TestPluginSourceFile.test_sync_from_plugin_archive_with_subdir_works.2 - ' + ''' SELECT COUNT(*) AS "__count" FROM "posthog_pluginsourcefile" - ' ---- + ''' +# --- diff --git a/requirements-dev.in b/requirements-dev.in index 290af187070f1..619351688c2a8 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -12,18 +12,18 @@ -c requirements.txt ruff>=0.1.2 -pip-tools==6.13.0 -mypy==0.981 -mypy-extensions==0.4.3 -datamodel-code-generator==0.21.5 +pip-tools==7.3.0 +mypy~=1.8.0 +mypy-baseline~=0.6.1 +mypy-extensions==1.0.0 +datamodel-code-generator==0.25.2 djangorestframework-stubs==1.4.0 django-stubs==1.8.0 Faker==17.5.0 fakeredis[lua]==2.11.0 freezegun==1.2.2 packaging==23.1 -prance==0.22.2.22.0 -black==22.8.0 +black~=22.8.0 types-markdown==3.3.9 types-PyYAML==6.0.1 types-freezegun==1.1.10 @@ -44,5 +44,5 @@ pytest-split==0.8.1 pytest-watch==4.2.0 python-dateutil>=2.8.2 responses==0.23.1 -syrupy==1.7.4 +syrupy~=4.6.0 flaky==3.7.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 96d3b31c4dc83..2a96c2821e843 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -18,12 +18,6 @@ async-timeout==4.0.2 # via # -c requirements.txt # redis -attrs==21.4.0 - # via - # -c requirements.txt - # jsonschema - # openapi-schema-validator - # syrupy black==22.8.0 # via # -r requirements-dev.in @@ -34,10 +28,6 @@ certifi==2019.11.28 # via # -c requirements.txt # requests -chardet==5.1.0 - # via - # -c requirements.txt - # prance charset-normalizer==2.1.0 # via # -c requirements.txt @@ -49,8 +39,6 @@ click==8.1.7 # pip-tools colorama==0.4.4 # via pytest-watch -colored==1.4.2 - # via syrupy coreapi==2.3.3 # via djangorestframework-stubs coreschema==0.0.4 @@ -59,7 +47,7 @@ coverage[toml]==5.5 # via # coverage # pytest-cov -datamodel-code-generator==0.21.5 +datamodel-code-generator==0.25.2 # via -r requirements-dev.in django==3.2.23 # via @@ -103,8 +91,6 @@ idna==2.8 # -c requirements.txt # email-validator # requests -importlib-resources==5.10.2 - # via openapi-spec-validator inflect==5.6.2 # via datamodel-code-generator iniconfig==1.1.1 @@ -117,49 +103,34 @@ jinja2==2.11.3 # via # coreschema # datamodel-code-generator -jsonschema==4.4.0 - # via - # -c requirements.txt - # jsonschema-spec - # openapi-schema-validator - # openapi-spec-validator -jsonschema-spec==0.1.2 - # via openapi-spec-validator -lazy-object-proxy==1.9.0 - # via openapi-spec-validator lupa==1.14.1 # via fakeredis markupsafe==1.1.1 # via jinja2 -mypy==0.981 +mypy==1.8.0 # via # -r requirements-dev.in # django-stubs # djangorestframework-stubs -mypy-extensions==0.4.3 +mypy-baseline==0.6.1 + # via -r requirements-dev.in +mypy-extensions==1.0.0 # via # -r requirements-dev.in # black # mypy -openapi-schema-validator==0.3.4 - # via openapi-spec-validator -openapi-spec-validator==0.5.1 - # via datamodel-code-generator packaging==23.1 # via # -c requirements.txt # -r requirements-dev.in # build # datamodel-code-generator - # prance # pytest parameterized==0.9.0 # via -r requirements-dev.in -pathable==0.4.3 - # via jsonschema-spec pathspec==0.9.0 # via black -pip-tools==6.13.0 +pip-tools==7.3.0 # via -r requirements-dev.in platformdirs==2.5.2 # via black @@ -167,28 +138,17 @@ pluggy==0.13.1 # via pytest pprintpp==0.4.0 # via pytest-icdiff -prance==0.22.2.22.0 - # via - # -c requirements.txt - # -r requirements-dev.in - # datamodel-code-generator -pydantic[email]==2.3.0 +pydantic[email]==2.5.3 # via # -c requirements.txt # datamodel-code-generator # pydantic -pydantic-core==2.6.3 +pydantic-core==2.14.6 # via # -c requirements.txt # pydantic pyproject-hooks==1.0.0 # via build -pyrsistent==0.18.1 - # via - # -c requirements.txt - # jsonschema -pysnooper==1.1.1 - # via datamodel-code-generator pytest==7.4.0 # via # -r requirements-dev.in @@ -227,39 +187,28 @@ pytz==2023.3 # via # -c requirements.txt # django -pyyaml==6.0 +pyyaml==6.0.1 # via # -c requirements.txt - # jsonschema-spec - # openapi-spec-validator + # datamodel-code-generator # responses redis==4.5.4 # via # -c requirements.txt # fakeredis -requests==2.28.1 +requests==2.31.0 # via # -c requirements.txt # coreapi # djangorestframework-stubs - # prance # responses responses==0.23.1 # via -r requirements-dev.in -ruamel-yaml==0.17.21 - # via - # -c requirements.txt - # prance -ruamel-yaml-clib==0.2.7 - # via - # -c requirements.txt - # ruamel-yaml ruff==0.1.2 # via -r requirements-dev.in six==1.16.0 # via # -c requirements.txt - # prance # python-dateutil sortedcontainers==2.4.0 # via @@ -269,7 +218,7 @@ sqlparse==0.4.4 # via # -c requirements.txt # django -syrupy==1.7.4 +syrupy==4.6.0 # via -r requirements-dev.in toml==0.10.1 # via @@ -280,6 +229,7 @@ tomli==1.2.3 # black # build # mypy + # pip-tools # pyproject-hooks # pytest types-freezegun==1.1.10 @@ -306,7 +256,6 @@ typing-extensions==4.7.1 # django-stubs # django-stubs-ext # djangorestframework-stubs - # jsonschema-spec # mypy # pydantic # pydantic-core diff --git a/requirements.in b/requirements.in index a1e12d28a3e0d..20dcb3d3f6497 100644 --- a/requirements.in +++ b/requirements.in @@ -40,7 +40,7 @@ dlt==0.4.1a2 dnspython==2.2.1 drf-exceptions-hog==0.4.0 drf-extensions==0.7.0 -drf-spectacular==0.24.2 +drf-spectacular==0.27.0 geoip2==4.6.0 google-cloud-bigquery==3.11.4 google-cloud-sqlcommenter==2.0.0 @@ -53,23 +53,24 @@ kafka-helper==0.2 kombu==5.3.2 lzstring==1.0.4 numpy==1.23.3 +openapi-spec-validator==0.7.1 parso==0.8.1 pexpect==4.7.0 pickleshare==0.7.5 Pillow==9.2.0 posthoganalytics==3.0.1 -prance==0.22.2.22.0 +prance==23.06.21.0 psycopg2-binary==2.9.7 psycopg==3.1.13 pyarrow==12.0.1 -pydantic==2.3.0 +pydantic==2.5.3 pyjwt==2.4.0 python-dateutil>=2.8.2 python3-saml==1.12.0 pytz==2023.3 redis==4.5.4 retry==0.9.2 -requests==2.28.1 +requests~=2.31.0 requests-oauthlib==1.3.0 s3fs==2023.10.0 stripe==7.4.0 diff --git a/requirements.txt b/requirements.txt index e1460168e0bea..41d4af7b5084a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -49,11 +49,12 @@ async-timeout==4.0.2 # aiohttp # aiokafka # redis -attrs==21.4.0 +attrs==23.2.0 # via # aiohttp # jsonschema # outcome + # referencing # trio backoff==2.2.1 # via posthoganalytics @@ -217,7 +218,7 @@ drf-exceptions-hog==0.4.0 # via -r requirements.in drf-extensions==0.7.0 # via -r requirements.in -drf-spectacular==0.24.2 +drf-spectacular==0.27.0 # via -r requirements.in filelock==3.12.0 # via snowflake-connector-python @@ -262,8 +263,6 @@ googleapis-common-protos==1.60.0 # via # google-api-core # grpcio-status -greenlet==3.0.3 - # via sqlalchemy grpcio==1.57.0 # via # google-api-core @@ -305,8 +304,17 @@ jmespath==1.0.0 # botocore jsonpath-ng==1.6.0 # via dlt -jsonschema==4.4.0 - # via drf-spectacular +jsonschema==4.20.0 + # via + # drf-spectacular + # openapi-schema-validator + # openapi-spec-validator +jsonschema-path==0.3.2 + # via openapi-spec-validator +jsonschema-specifications==2023.12.1 + # via + # jsonschema + # openapi-schema-validator kafka-helper==0.2 # via -r requirements.in kafka-python==2.0.2 @@ -317,6 +325,8 @@ kombu==5.3.2 # via # -r requirements.in # celery +lazy-object-proxy==1.10.0 + # via openapi-spec-validator lxml==4.6.5 # via # python3-saml @@ -352,6 +362,10 @@ oauthlib==3.1.0 # social-auth-core openai==0.27.8 # via -r requirements.in +openapi-schema-validator==0.6.2 + # via openapi-spec-validator +openapi-spec-validator==0.7.1 + # via -r requirements.in orjson==3.9.10 # via dlt oscrypto==1.3.0 @@ -368,6 +382,8 @@ packaging==23.1 # webdriver-manager parso==0.8.1 # via -r requirements.in +pathable==0.4.3 + # via jsonschema-path pathvalidate==3.2.0 # via dlt pendulum==2.1.2 @@ -384,7 +400,7 @@ ply==3.11 # via jsonpath-ng posthoganalytics==3.0.1 # via -r requirements.in -prance==0.22.2.22.0 +prance==23.6.21.0 # via -r requirements.in prometheus-client==0.14.1 # via django-prometheus @@ -420,9 +436,9 @@ pycparser==2.20 # via cffi pycryptodomex==3.18.0 # via snowflake-connector-python -pydantic==2.3.0 +pydantic==2.5.3 # via -r requirements.in -pydantic-core==2.6.3 +pydantic-core==2.14.6 # via pydantic pyjwt==2.4.0 # via @@ -435,8 +451,6 @@ pyopenssl==22.0.0 # urllib3 pypng==0.20220715.0 # via qrcode -pyrsistent==0.18.1 - # via jsonschema pysocks==1.7.1 # via urllib3 python-dateutil==2.8.2 @@ -469,10 +483,11 @@ pytz==2023.3 # tzlocal pytzdata==2020.1 # via pendulum -pyyaml==6.0 +pyyaml==6.0.1 # via # dlt # drf-spectacular + # jsonschema-path qrcode==7.4.2 # via django-two-factor-auth redis==4.5.4 @@ -480,7 +495,12 @@ redis==4.5.4 # -r requirements.in # celery-redbeat # django-redis -requests==2.28.1 +referencing==0.31.1 + # via + # jsonschema + # jsonschema-path + # jsonschema-specifications +requests==2.31.0 # via # -r requirements.in # dlt @@ -488,6 +508,7 @@ requests==2.28.1 # google-api-core # google-cloud-bigquery # infi-clickhouse-orm + # jsonschema-path # openai # posthoganalytics # prance @@ -504,6 +525,12 @@ requirements-parser==0.5.0 # via dlt retry==0.9.2 # via -r requirements.in +rfc3339-validator==0.1.4 + # via openapi-schema-validator +rpds-py==0.16.2 + # via + # jsonschema + # referencing rsa==4.9 # via google-auth ruamel-yaml==0.17.21 @@ -533,6 +560,7 @@ six==1.16.0 # posthoganalytics # prance # python-dateutil + # rfc3339-validator slack-sdk==3.17.1 # via -r requirements.in smmap==5.0.1