From 78d795ad939db24a44afbbeb7080b55c6e95e0f1 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 15 Nov 2023 16:10:11 +0100 Subject: [PATCH 01/45] Upgrade dependencies --- requirements-dev.in | 2 +- requirements-dev.txt | 48 +++++++++++--------------------------------- requirements.in | 2 +- requirements.txt | 13 +++++++----- 4 files changed, 22 insertions(+), 43 deletions(-) diff --git a/requirements-dev.in b/requirements-dev.in index 2a55d54cf7382..fac7444fb3a3d 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -12,7 +12,7 @@ -c requirements.txt ruff>=0.1.2 -pip-tools==6.13.0 +pip-tools~=7.3.0 mypy==0.981 mypy-extensions==0.4.3 datamodel-code-generator==0.21.5 diff --git a/requirements-dev.txt b/requirements-dev.txt index 4ed1eb4080e41..90b7701e6bcf1 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,7 +10,7 @@ annotated-types==0.5.0 # pydantic argcomplete==2.0.0 # via datamodel-code-generator -asgiref==3.3.2 +asgiref==3.7.2 # via # -c requirements.txt # django @@ -34,11 +34,6 @@ certifi==2019.11.28 # via # -c requirements.txt # requests - # urllib3 -cffi==1.14.5 - # via - # -c requirements.txt - # cryptography chardet==5.1.0 # via # -c requirements.txt @@ -61,15 +56,12 @@ coreapi==2.3.3 coreschema==0.0.4 # via coreapi coverage[toml]==5.5 - # via pytest-cov -cryptography==37.0.2 # via - # -c requirements.txt - # pyopenssl - # urllib3 + # coverage + # pytest-cov datamodel-code-generator==0.21.5 # via -r requirements-dev.in -django==3.2.19 +django==4.2.7 # via # -c requirements.txt # django-stubs @@ -95,7 +87,9 @@ exceptiongroup==1.1.2 faker==17.5.0 # via -r requirements-dev.in fakeredis[lua]==2.11.0 - # via -r requirements-dev.in + # via + # -r requirements-dev.in + # fakeredis flaky==3.7.0 # via -r requirements-dev.in freezegun==1.2.2 @@ -109,7 +103,6 @@ idna==2.8 # -c requirements.txt # email-validator # requests - # urllib3 importlib-resources==5.10.2 # via openapi-spec-validator inflect==5.6.2 @@ -166,7 +159,7 @@ 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 @@ -179,22 +172,15 @@ prance==0.22.2.22.0 # -c requirements.txt # -r requirements-dev.in # datamodel-code-generator -pycparser==2.20 - # via - # -c requirements.txt - # cffi pydantic[email]==2.3.0 # via # -c requirements.txt # datamodel-code-generator + # pydantic pydantic-core==2.6.3 # via # -c requirements.txt # pydantic -pyopenssl==22.0.0 - # via - # -c requirements.txt - # urllib3 pyproject-hooks==1.0.0 # via build pyrsistent==0.18.1 @@ -203,10 +189,6 @@ pyrsistent==0.18.1 # jsonschema pysnooper==1.1.1 # via datamodel-code-generator -pysocks==1.7.1 - # via - # -c requirements.txt - # urllib3 pytest==7.4.0 # via # -r requirements-dev.in @@ -241,10 +223,6 @@ python-dateutil==2.8.2 # -r requirements-dev.in # faker # freezegun -pytz==2021.1 - # via - # -c requirements.txt - # django pyyaml==6.0 # via # -c requirements.txt @@ -298,6 +276,7 @@ tomli==1.2.3 # black # build # mypy + # pip-tools # pyproject-hooks # pytest types-freezegun==1.1.10 @@ -321,6 +300,7 @@ types-retry==0.9.9.4 typing-extensions==4.7.1 # via # -c requirements.txt + # asgiref # django-stubs # django-stubs-ext # djangorestframework-stubs @@ -332,15 +312,11 @@ uritemplate==4.1.1 # via # -c requirements.txt # coreapi -urllib3[secure,socks]==1.26.13 +urllib3==1.26.13 # via # -c requirements.txt # requests # responses -urllib3-secure-extra==0.1.0 - # via - # -c requirements.txt - # urllib3 watchdog==2.1.8 # via pytest-watch wheel==0.38.1 diff --git a/requirements.in b/requirements.in index 574ff57900d39..4ddd50d948719 100644 --- a/requirements.in +++ b/requirements.in @@ -19,7 +19,7 @@ clickhouse-pool==0.5.3 cryptography==37.0.2 defusedxml==0.6.0 dj-database-url==0.5.0 -Django==3.2.19 +Django==4.2.7 django-axes==5.9.0 django-cors-headers==3.5.0 django-deprecate-fields==0.1.1 diff --git a/requirements.txt b/requirements.txt index 1efa70e5318f9..fe6db79a3b677 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,10 +4,12 @@ # # pip-compile requirements.in # -aioboto3==11.1 +aioboto3==11.1.0 # via -r requirements.in aiobotocore[boto3]==2.5.0 - # via aioboto3 + # via + # aioboto3 + # aiobotocore aiohttp==3.8.5 # via # -r requirements.in @@ -28,7 +30,7 @@ annotated-types==0.5.0 # via pydantic antlr4-python3-runtime==4.13.1 # via -r requirements.in -asgiref==3.3.2 +asgiref==3.7.2 # via django asn1crypto==1.5.1 # via @@ -133,7 +135,7 @@ defusedxml==0.6.0 # social-auth-core dj-database-url==0.5.0 # via -r requirements.in -django==3.2.19 +django==4.2.7 # via # -r requirements.in # django-axes @@ -223,6 +225,7 @@ geoip2==4.6.0 # via -r requirements.in google-api-core[grpc]==2.11.1 # via + # google-api-core # google-cloud-bigquery # google-cloud-core google-auth==2.22.0 @@ -422,7 +425,6 @@ pytz==2021.1 # via # -r requirements.in # clickhouse-driver - # django # djangorestframework # infi-clickhouse-orm # snowflake-connector-python @@ -531,6 +533,7 @@ types-s3transfer==0.6.1 # via boto3-stubs typing-extensions==4.7.1 # via + # asgiref # psycopg # pydantic # pydantic-core From 60c435181451fa3deb8fd13c7a04c5e5a3a29b64 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 15 Nov 2023 16:10:20 +0100 Subject: [PATCH 02/45] Fix middleware error Among https://docs.djangoproject.com/en/4.2/releases/4.0/#features-removed-in-4-0 --- posthog/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/middleware.py b/posthog/middleware.py index b480580afad40..34cc6f95c4f70 100644 --- a/posthog/middleware.py +++ b/posthog/middleware.py @@ -362,7 +362,7 @@ def __init__(self, get_response): # Some middlewares raise MiddlewareNotUsed if they are not # needed. In this case we want to avoid the default middlewares # being used. - middlewares.append(middleware_class(get_response=None)) + middlewares.append(middleware_class(get_response=get_response)) except MiddlewareNotUsed: pass From cb6b38902d2448790b1652b68bf9ed0bfdec4e11 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 15 Nov 2023 16:53:06 +0100 Subject: [PATCH 03/45] Upgrade psycopg We need to be on >= 3.1.8 Locally there is an additional problem that somehow psycopg2 seemingly overshadows psycopg, making it appear that 3.1 works. Had to install pip install "psycopg[binary,pool]==3.1.2" to recreate the problem. --- requirements.in | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.in b/requirements.in index 4ddd50d948719..8e6fa70575ae8 100644 --- a/requirements.in +++ b/requirements.in @@ -59,7 +59,7 @@ Pillow==9.2.0 posthoganalytics==3.0.1 prance==0.22.2.22.0 psycopg2-binary==2.9.7 -psycopg==3.1 +psycopg==3.1.12 pyarrow==12.0.1 pydantic==2.3.0 pyjwt==2.4.0 diff --git a/requirements.txt b/requirements.txt index fe6db79a3b677..1da1ff4b14370 100644 --- a/requirements.txt +++ b/requirements.txt @@ -365,7 +365,7 @@ protobuf==4.22.1 # grpcio-status # proto-plus # temporalio -psycopg==3.1 +psycopg==3.1.12 # via -r requirements.in psycopg2-binary==2.9.7 # via -r requirements.in From f764d138d12eabeae6a2ad1f5e96060ee81818dc Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 16 Nov 2023 12:45:07 +0100 Subject: [PATCH 04/45] Go to Django 4.1 because of problems with psycopg3 We use custom SQL that somehow doesn't get formatted in the right way using server or client side cursors. --- requirements-dev.txt | 2 +- requirements.in | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 90b7701e6bcf1..885e1b9964dc2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -61,7 +61,7 @@ coverage[toml]==5.5 # pytest-cov datamodel-code-generator==0.21.5 # via -r requirements-dev.in -django==4.2.7 +django==4.1.13 # via # -c requirements.txt # django-stubs diff --git a/requirements.in b/requirements.in index 8e6fa70575ae8..aadf6c970ceb7 100644 --- a/requirements.in +++ b/requirements.in @@ -19,7 +19,7 @@ clickhouse-pool==0.5.3 cryptography==37.0.2 defusedxml==0.6.0 dj-database-url==0.5.0 -Django==4.2.7 +Django==4.1.13 django-axes==5.9.0 django-cors-headers==3.5.0 django-deprecate-fields==0.1.1 diff --git a/requirements.txt b/requirements.txt index 1da1ff4b14370..e2fa2679f01ad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -135,7 +135,7 @@ defusedxml==0.6.0 # social-auth-core dj-database-url==0.5.0 # via -r requirements.in -django==4.2.7 +django==4.1.13 # via # -r requirements.in # django-axes From 197cdc886b9f11f42c1587a54ad1d82c06350d11 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:49:45 +0000 Subject: [PATCH 05/45] Update query snapshots --- .../test/__snapshots__/test_organization_resource_access.ambr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index 74507620ef4f7..553058cdac5c9 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -77,7 +77,7 @@ --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.11 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) @@ -159,7 +159,7 @@ --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.3 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) From 1513680fed91238cb6ac6b7806839a4672fde2d6 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:51:19 +0000 Subject: [PATCH 06/45] Update query snapshots --- .../test/dashboards/__snapshots__/test_dashboard.ambr | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index c5475d4515b21..83d7a875677d2 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -948,6 +948,9 @@ OR "posthog_dashboardtile"."insight_id" IS NULL) AND "posthog_dashboardtile"."dashboard_id" = 2 AND "posthog_dashboardtile"."dashboard_id" = 2 + AND NOT ("posthog_dashboard"."deleted" + AND "posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ @@ -7278,6 +7281,9 @@ OR "posthog_dashboardtile"."insight_id" IS NULL) AND "posthog_dashboardtile"."dashboard_id" = 2 AND "posthog_dashboardtile"."dashboard_id" = 2 + AND NOT ("posthog_dashboard"."deleted" + AND "posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ @@ -9928,6 +9934,9 @@ OR "posthog_dashboardtile"."insight_id" IS NULL) AND "posthog_dashboardtile"."dashboard_id" = 2 AND "posthog_dashboardtile"."dashboard_id" = 2 + AND NOT ("posthog_dashboard"."deleted" + AND "posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ From eabba3baf3dbb8f3b260e04742f288421dbb4f03 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:52:56 +0000 Subject: [PATCH 07/45] Update query snapshots --- posthog/api/test/__snapshots__/test_decide.ambr | 2 +- .../__snapshots__/test_organization_feature_flag.ambr | 6 +++--- posthog/api/test/__snapshots__/test_plugin.ambr | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index c11bcf8af7d75..93183504138f1 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -119,7 +119,7 @@ --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.3 ' - SELECT (1) AS "a" + 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'*/ diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index b0b05656ef376..08d3e86211a64 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -343,7 +343,7 @@ --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.2 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) @@ -1527,7 +1527,7 @@ --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.8 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_featureflag" WHERE (NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."key" = 'copied-flag-key' @@ -1613,7 +1613,7 @@ --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.2 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) diff --git a/posthog/api/test/__snapshots__/test_plugin.ambr b/posthog/api/test/__snapshots__/test_plugin.ambr index edd2f54f417f9..37f94e7746982 100644 --- a/posthog/api/test/__snapshots__/test_plugin.ambr +++ b/posthog/api/test/__snapshots__/test_plugin.ambr @@ -199,7 +199,7 @@ --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.15 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) @@ -378,7 +378,7 @@ --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.21 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) @@ -456,7 +456,7 @@ --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.3 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) @@ -566,7 +566,7 @@ --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.9 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) From d0d6ee624c3bfc327a062e513fa23d86ed8848ab Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:54:59 +0000 Subject: [PATCH 08/45] Update query snapshots --- .../test/__snapshots__/test_feature_flag.ambr | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index d714f9a077c0d..05f9873311799 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -372,27 +372,27 @@ # 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') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) OR (("posthog_person"."properties" -> 'number') > '100.0' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0", (((("posthog_person"."properties" -> 'version') > '"1.05"' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = 'string') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('string')) OR (("posthog_person"."properties" -> 'version') > '1.05' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('number'))) AND "posthog_person"."properties" ? 'version' AND NOT (("posthog_person"."properties" -> 'version') = 'null')) AS "flag_X_condition_0", (((("posthog_person"."properties" -> 'number') < '"31"' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = 'string') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) OR (("posthog_person"."properties" -> 'number') < '31.0' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' AND NOT (("posthog_person"."properties" -> 'number') = 'null') AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = 'string') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('string')) OR (("posthog_person"."properties" -> 'nested_prop') > '20.0' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('number'))) AND "posthog_person"."properties" ? 'nested_prop' AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null')) AS "flag_X_condition_0" FROM "posthog_person" @@ -417,9 +417,9 @@ # 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') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) OR (("posthog_person"."properties" -> 'number') >= '20.0' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0" FROM "posthog_person" @@ -432,9 +432,9 @@ # 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') + AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('string')) OR (("posthog_group"."group_properties" -> 'number') > '100.0' - AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = 'number')) + AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('number'))) AND "posthog_group"."group_properties" ? 'number' AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" FROM "posthog_group" @@ -580,27 +580,27 @@ # 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') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('string')) OR (("posthog_person"."properties" -> 'number space') > '100.0' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('number'))) AND "posthog_person"."properties" ? 'number space' AND NOT (("posthog_person"."properties" -> 'number space') = 'null') - AND ((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = 'string' + AND ((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') - OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = 'number' + OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_0", - (((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = 'string' + (((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') - OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = 'number' + OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_1", (((("posthog_person"."properties" -> 'version!!!') > '"1.05"' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = 'string') + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('string')) OR (("posthog_person"."properties" -> 'version!!!') > '1.05' - AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = 'number')) + AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('number'))) AND "posthog_person"."properties" ? 'version!!!' AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null')) AS "flag_X_condition_2", ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"' From fd8212d8ee61b1ee71b8f919dda0e7c9da7164ca Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 16 Nov 2023 14:12:30 +0100 Subject: [PATCH 09/45] Switch TaggedItem tests to assert ValidationError Because full_clean validates since Django 4.1, see https://docs.djangoproject.com/en/4.2/releases/4.1/#validation-of-constraints --- posthog/models/test/test_tagged_item_model.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/posthog/models/test/test_tagged_item_model.py b/posthog/models/test/test_tagged_item_model.py index 14d54404ee5c3..f11ed0f263518 100644 --- a/posthog/models/test/test_tagged_item_model.py +++ b/posthog/models/test/test_tagged_item_model.py @@ -1,5 +1,4 @@ from django.core.exceptions import ValidationError -from django.db import IntegrityError from posthog.models import Action, Dashboard, DashboardTile, Insight, Tag, TaggedItem from posthog.test.base import BaseTest @@ -28,7 +27,7 @@ def test_uniqueness_constraint_dashboard(self): tag = Tag.objects.create(name="tag", team_id=self.team.id) TaggedItem.objects.create(dashboard_id=dashboard.id, tag_id=tag.id) - with self.assertRaises(IntegrityError): + with self.assertRaises(ValidationError): TaggedItem.objects.create(dashboard_id=dashboard.id, tag_id=tag.id) def test_uniqueness_constraint_insight(self): @@ -38,7 +37,7 @@ def test_uniqueness_constraint_insight(self): tag = Tag.objects.create(name="tag", team_id=self.team.id) TaggedItem.objects.create(insight_id=insight.id, tag_id=tag.id) - with self.assertRaises(IntegrityError): + with self.assertRaises(ValidationError): TaggedItem.objects.create(insight_id=insight.id, tag_id=tag.id) def test_uniqueness_constraint_event_definition(self): @@ -53,7 +52,7 @@ def test_uniqueness_constraint_event_definition(self): tag = Tag.objects.create(name="tag", team_id=self.team.id) TaggedItem.objects.create(event_definition_id=event_definition.id, tag_id=tag.id) - with self.assertRaises(IntegrityError): + with self.assertRaises(ValidationError): TaggedItem.objects.create(event_definition_id=event_definition.id, tag_id=tag.id) def test_uniqueness_constraint_property_definition(self): @@ -68,7 +67,7 @@ def test_uniqueness_constraint_property_definition(self): tag = Tag.objects.create(name="tag", team_id=self.team.id) TaggedItem.objects.create(property_definition_id=property_definition.id, tag_id=tag.id) - with self.assertRaises(IntegrityError): + with self.assertRaises(ValidationError): TaggedItem.objects.create(property_definition_id=property_definition.id, tag_id=tag.id) def test_uniqueness_constraint_action(self): @@ -76,5 +75,5 @@ def test_uniqueness_constraint_action(self): tag = Tag.objects.create(name="tag", team_id=self.team.id) TaggedItem.objects.create(action_id=action.id, tag_id=tag.id) - with self.assertRaises(IntegrityError): + with self.assertRaises(ValidationError): TaggedItem.objects.create(action_id=action.id, tag_id=tag.id) From bb8d7a568d58d96f0bf121862ec438e92c1180f8 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 16 Nov 2023 14:13:01 +0100 Subject: [PATCH 10/45] Remove type: ignore comments Come up as error: Unused "type: ignore" comment --- posthog/api/test/test_organization.py | 2 +- posthog/api/test/test_team.py | 2 +- posthog/temporal/tests/conftest.py | 8 ++++---- posthog/temporal/tests/utils/models.py | 8 ++++---- posthog/temporal/workflows/batch_exports.py | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/posthog/api/test/test_organization.py b/posthog/api/test/test_organization.py index 450264b1d768e..285a074e341cc 100644 --- a/posthog/api/test/test_organization.py +++ b/posthog/api/test/test_organization.py @@ -154,4 +154,4 @@ async def acreate_organization(name: str) -> Organization: could use either the api, or django admin to create, to get better parity with real world scenarios. """ - return await sync_to_async(create_organization)(name) # type: ignore + return await sync_to_async(create_organization)(name) diff --git a/posthog/api/test/test_team.py b/posthog/api/test/test_team.py index 8924667fbbea8..982abb1def824 100644 --- a/posthog/api/test/test_team.py +++ b/posthog/api/test/test_team.py @@ -734,4 +734,4 @@ async def acreate_team(organization: Organization, name: str = "Test team") -> T could use either the api, or django admin to create, to get better parity with real world scenarios. """ - return await sync_to_async(create_team)(organization, name=name) # type: ignore + return await sync_to_async(create_team)(organization, name=name) diff --git a/posthog/temporal/tests/conftest.py b/posthog/temporal/tests/conftest.py index 4c480989db92b..8bb6785203730 100644 --- a/posthog/temporal/tests/conftest.py +++ b/posthog/temporal/tests/conftest.py @@ -40,21 +40,21 @@ def team(organization): @pytest_asyncio.fixture async def aorganization(): name = f"BatchExportsTestOrg-{random.randint(1, 99999)}" - org = await sync_to_async(Organization.objects.create)(name=name) # type: ignore + org = await sync_to_async(Organization.objects.create)(name=name) yield org - await sync_to_async(org.delete)() # type: ignore + await sync_to_async(org.delete)() @pytest_asyncio.fixture async def ateam(aorganization): name = f"BatchExportsTestTeam-{random.randint(1, 99999)}" - team = await sync_to_async(Team.objects.create)(organization=aorganization, name=name) # type: ignore + team = await sync_to_async(Team.objects.create)(organization=aorganization, name=name) yield team - await sync_to_async(team.delete)() # type: ignore + await sync_to_async(team.delete)() @pytest.fixture diff --git a/posthog/temporal/tests/utils/models.py b/posthog/temporal/tests/utils/models.py index 1ceb4f2cb9bb0..10720ae313638 100644 --- a/posthog/temporal/tests/utils/models.py +++ b/posthog/temporal/tests/utils/models.py @@ -24,7 +24,7 @@ def create_batch_export(team_id: int, interval: str, name: str, destination_data async def acreate_batch_export(team_id: int, interval: str, name: str, destination_data: dict) -> BatchExport: """Async create a BatchExport and its underlying Schedule.""" - return await sync_to_async(create_batch_export)(team_id, interval, name, destination_data) # type: ignore + return await sync_to_async(create_batch_export)(team_id, interval, name, destination_data) async def adelete_batch_export(batch_export: BatchExport, temporal_client: temporalio.client.Client) -> None: @@ -37,7 +37,7 @@ async def adelete_batch_export(batch_export: BatchExport, temporal_client: tempo # This means the schedule was already deleted, so we can continue pass - await sync_to_async(batch_export.delete)() # type: ignore + await sync_to_async(batch_export.delete)() def fetch_batch_export_runs(batch_export_id: uuid.UUID, limit: int = 100) -> list[BatchExportRun]: @@ -47,7 +47,7 @@ def fetch_batch_export_runs(batch_export_id: uuid.UUID, limit: int = 100) -> lis async def afetch_batch_export_runs(batch_export_id: uuid.UUID, limit: int = 100) -> list[BatchExportRun]: """Async fetch the BatchExportRuns for a given BatchExport.""" - return await sync_to_async(fetch_batch_export_runs)(batch_export_id, limit) # type: ignore + return await sync_to_async(fetch_batch_export_runs)(batch_export_id, limit) def fetch_batch_export_backfills(batch_export_id: uuid.UUID, limit: int = 100) -> list[BatchExportBackfill]: @@ -57,4 +57,4 @@ def fetch_batch_export_backfills(batch_export_id: uuid.UUID, limit: int = 100) - async def afetch_batch_export_backfills(batch_export_id: uuid.UUID, limit: int = 100) -> list[BatchExportBackfill]: """Fetch the BatchExportBackfills for a given BatchExport.""" - return await sync_to_async(fetch_batch_export_backfills)(batch_export_id, limit) # type: ignore + return await sync_to_async(fetch_batch_export_backfills)(batch_export_id, limit) diff --git a/posthog/temporal/workflows/batch_exports.py b/posthog/temporal/workflows/batch_exports.py index 5b71b87550892..7701c58588c4a 100644 --- a/posthog/temporal/workflows/batch_exports.py +++ b/posthog/temporal/workflows/batch_exports.py @@ -510,7 +510,7 @@ async def create_export_run(inputs: CreateBatchExportRunInputs) -> str: # 'sync_to_async' type hints are fixed in asgiref>=3.4.1 # But one of our dependencies is pinned to asgiref==3.3.2. # Remove these comments once we upgrade. - run = await sync_to_async(create_batch_export_run)( # type: ignore + run = await sync_to_async(create_batch_export_run)( batch_export_id=uuid.UUID(inputs.batch_export_id), data_interval_start=inputs.data_interval_start, data_interval_end=inputs.data_interval_end, @@ -539,7 +539,7 @@ async def update_export_run_status(inputs: UpdateBatchExportRunStatusInputs): run_id=uuid.UUID(inputs.id), status=inputs.status, latest_error=inputs.latest_error, - ) # type: ignore + ) if batch_export_run.status == "Failed": logger.error("BatchExport failed with error: %s", batch_export_run.latest_error) @@ -580,7 +580,7 @@ async def create_batch_export_backfill_model(inputs: CreateBatchExportBackfillIn # 'sync_to_async' type hints are fixed in asgiref>=3.4.1 # But one of our dependencies is pinned to asgiref==3.3.2. # Remove these comments once we upgrade. - run = await sync_to_async(create_batch_export_backfill)( # type: ignore + run = await sync_to_async(create_batch_export_backfill)( batch_export_id=uuid.UUID(inputs.batch_export_id), start_at=inputs.start_at, end_at=inputs.end_at, @@ -604,7 +604,7 @@ async def update_batch_export_backfill_model_status(inputs: UpdateBatchExportBac """Activity that updates the status of an BatchExportRun.""" backfill = await sync_to_async(update_batch_export_backfill_status)( backfill_id=uuid.UUID(inputs.id), status=inputs.status - ) # type: ignore + ) logger = await bind_batch_exports_logger(team_id=backfill.team_id) if backfill.status == "Failed": From faad0ca373e1dec83d4ee8369a9f3bbcf3dd88c1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:22:25 +0000 Subject: [PATCH 11/45] Update query snapshots --- posthog/models/filters/test/__snapshots__/test_filter.ambr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/models/filters/test/__snapshots__/test_filter.ambr b/posthog/models/filters/test/__snapshots__/test_filter.ambr index 648679a965912..a7300c5402d2c 100644 --- a/posthog/models/filters/test/__snapshots__/test_filter.ambr +++ b/posthog/models/filters/test/__snapshots__/test_filter.ambr @@ -343,7 +343,7 @@ --- # name: TestDjangoPropertiesToQ.test_person_relative_date_parsing_with_invalid_date ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' @@ -354,7 +354,7 @@ --- # name: TestDjangoPropertiesToQ.test_person_relative_date_parsing_with_invalid_date.1 ' - SELECT (1) AS "a" + SELECT 1 AS "a" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' From c474c03c0405fc2cd5d5ed87a70461ca00a094f9 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 16 Nov 2023 21:39:30 +0100 Subject: [PATCH 12/45] Figure out psycopg problem and try Django 4.2 again --- posthog/models/feature_flag/flag_matching.py | 10 ++++++---- requirements-dev.txt | 2 +- requirements.in | 2 +- requirements.txt | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/posthog/models/feature_flag/flag_matching.py b/posthog/models/feature_flag/flag_matching.py index 9a2722b86fc59..b08dbb75c394a 100644 --- a/posthog/models/feature_flag/flag_matching.py +++ b/posthog/models/feature_flag/flag_matching.py @@ -712,7 +712,8 @@ def get_all_feature_flags( distinct_ids = [distinct_id, str(hash_key_override)] query = """ WITH target_person_ids AS ( - SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND distinct_id IN %(distinct_ids)s + SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND + distinct_id = ANY(%(distinct_ids)s) ), existing_overrides AS ( SELECT team_id, person_id, feature_flag_key, hash_key FROM posthog_featureflaghashkeyoverride @@ -723,7 +724,7 @@ def get_all_feature_flags( """ cursor.execute( query, - {"team_id": team_id, "distinct_ids": tuple(distinct_ids)}, # type: ignore + {"team_id": team_id, "distinct_ids": distinct_ids}, # type: ignore ) flags_with_no_overrides = [row[0] for row in cursor.fetchall()] should_write_hash_key_override = len(flags_with_no_overrides) > 0 @@ -824,7 +825,8 @@ def set_feature_flag_hash_key_overrides(team_id: int, distinct_ids: List[str], h with execute_with_timeout(FLAG_MATCHING_QUERY_TIMEOUT_MS) as cursor: query = """ WITH target_person_ids AS ( - SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND distinct_id IN %(distinct_ids)s + SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND + distinct_id = ANY(%(distinct_ids)s) ), existing_overrides AS ( SELECT team_id, person_id, feature_flag_key, hash_key FROM posthog_featureflaghashkeyoverride @@ -853,7 +855,7 @@ def set_feature_flag_hash_key_overrides(team_id: int, distinct_ids: List[str], h query, { "team_id": team_id, - "distinct_ids": tuple(distinct_ids), # type: ignore + "distinct_ids": distinct_ids, # type: ignore "hash_key_override": hash_key_override, }, ) diff --git a/requirements-dev.txt b/requirements-dev.txt index 885e1b9964dc2..78bee6086c592 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -61,7 +61,7 @@ coverage[toml]==5.5 # pytest-cov datamodel-code-generator==0.21.5 # via -r requirements-dev.in -django==4.1.13 +django==4.2.1 # via # -c requirements.txt # django-stubs diff --git a/requirements.in b/requirements.in index aadf6c970ceb7..14aa1e06e9355 100644 --- a/requirements.in +++ b/requirements.in @@ -19,7 +19,7 @@ clickhouse-pool==0.5.3 cryptography==37.0.2 defusedxml==0.6.0 dj-database-url==0.5.0 -Django==4.1.13 +Django==4.2.1 django-axes==5.9.0 django-cors-headers==3.5.0 django-deprecate-fields==0.1.1 diff --git a/requirements.txt b/requirements.txt index e2fa2679f01ad..1f84a8b9d041d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -135,7 +135,7 @@ defusedxml==0.6.0 # social-auth-core dj-database-url==0.5.0 # via -r requirements.in -django==4.1.13 +django==4.2.1 # via # -r requirements.in # django-axes From a1731eb426e7c19031328bd4c6a7801fc51ba96d Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 20:50:05 +0000 Subject: [PATCH 13/45] Update query snapshots --- .../test/__snapshots__/test_filter.ambr | 78 +++++++++---------- .../test_historical_exports.ambr | 15 ++-- 2 files changed, 44 insertions(+), 49 deletions(-) diff --git a/posthog/models/filters/test/__snapshots__/test_filter.ambr b/posthog/models/filters/test/__snapshots__/test_filter.ambr index a7300c5402d2c..70b952e814fe2 100644 --- a/posthog/models/filters/test/__snapshots__/test_filter.ambr +++ b/posthog/models/filters/test/__snapshots__/test_filter.ambr @@ -298,7 +298,7 @@ FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> 'urls')::text) LIKE UPPER('%["abcd"]%') AND "posthog_person"."properties" ? 'urls' - AND NOT (("posthog_person"."properties" -> 'urls') = 'null') + AND NOT (("posthog_person"."properties" -> 'urls') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ' --- @@ -317,7 +317,7 @@ 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 NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ' --- @@ -327,7 +327,7 @@ 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 NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ' --- @@ -335,9 +335,9 @@ ' SELECT "posthog_person"."uuid" FROM "posthog_person" - WHERE (("posthog_person"."properties" -> '$key') > '["2"]' + WHERE (("posthog_person"."properties" -> '$key') > '["2"]'::jsonb AND "posthog_person"."properties" ? '$key' - AND NOT (("posthog_person"."properties" -> '$key') = 'null') + AND NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ' --- @@ -348,7 +348,7 @@ INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'created_at') > '"2021-02-06T10:00:00+00:00"') + AND ("posthog_person"."properties" -> 'created_at') > '"2021-02-06T10:00:00+00:00"'::jsonb) LIMIT 1 ' --- @@ -399,21 +399,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"' + WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"'::jsonb AND "posthog_person"."properties" ? 'url' - AND NOT (("posthog_person"."properties" -> 'url') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'url') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ((("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '2' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '2'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - OR (("posthog_person"."properties" -> 'bla') = '3' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)))) + OR (("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) AND "posthog_person"."team_id" = 2) ' --- @@ -471,21 +471,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"' + WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"'::jsonb AND "posthog_person"."properties" ? 'url' - AND NOT (("posthog_person"."properties" -> 'url') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'url') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '2' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '2'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '3' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) AND "posthog_person"."team_id" = 2) ' --- @@ -603,21 +603,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (NOT (((("posthog_person"."properties" -> 'bla') = '1' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '2' + WHERE (NOT ((("posthog_person"."properties" -> 'bla') = '1'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '2'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) + AND NOT ((("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - AND NOT (((("posthog_person"."properties" -> 'bla') = '3' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '4' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - AND ("posthog_person"."properties" -> 'other') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '4'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) + AND ("posthog_person"."properties" -> 'other') = '1'::jsonb AND "posthog_person"."properties" ? 'other' - AND NOT (("posthog_person"."properties" -> 'other') = 'null') + AND NOT (("posthog_person"."properties" -> 'other') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ' --- 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 9c81e9e9c5dc4..03ee57560b718 100644 --- a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr +++ b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr @@ -61,10 +61,8 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_id']) = '"1234"' - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_id}') = '"1234"'::jsonb + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) @@ -116,8 +114,7 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) @@ -169,8 +166,7 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) @@ -222,8 +218,7 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) From 15fe236625eccf6fc3a574d1fd9bff2721b542c1 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 16 Nov 2023 22:15:25 +0100 Subject: [PATCH 14/45] Fix other IN errors --- posthog/api/property_definition.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/posthog/api/property_definition.py b/posthog/api/property_definition.py index 6da00daecf445..983b49c1ff0e0 100644 --- a/posthog/api/property_definition.py +++ b/posthog/api/property_definition.py @@ -142,7 +142,7 @@ def with_properties_to_filter(self, properties_to_filter: Optional[str]) -> "Que if properties_to_filter: return dataclasses.replace( self, - name_filter="AND name IN %(names)s", + name_filter="AND name = ANY(%(names)s)", params={**self.params, "names": tuple(properties_to_filter.split(","))}, ) else: @@ -218,7 +218,7 @@ def with_event_property_filter( if event_names and len(event_names) > 0: event_property_field = f"{self.posthog_eventproperty_table_join_alias}.property is not null" - event_name_join_filter = "AND event in %(event_names)s" + event_name_join_filter = "AND event = ANY(%(event_names)s)" return dataclasses.replace( self, @@ -249,7 +249,9 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str ) return dataclasses.replace( self, - excluded_properties_filter=f"AND {self.property_definition_table}.name NOT IN %(excluded_properties)s" + excluded_properties_filter=( + f"AND NOT ({self.property_definition_table}.name = ANY(%(excluded_properties)s))" + ) if len(excluded_list) > 0 else "", params={ From 9c9bcb46d08c53299252ccffb8e385b3f1846d8e Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Fri, 17 Nov 2023 15:07:42 +0100 Subject: [PATCH 15/45] Fix getting status --- posthog/api/instance_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/api/instance_status.py b/posthog/api/instance_status.py index abdfcdad25dea..6e3a693bfce7c 100644 --- a/posthog/api/instance_status.py +++ b/posthog/api/instance_status.py @@ -92,7 +92,7 @@ def list(self, request: Request) -> Response: } ) if postgres_alive: - postgres_version = connection.cursor().connection.server_version + postgres_version = connection.cursor().connection.info.server_version metrics.append( { "key": "pg_version", From 677d38ae2df1fd293043491c7eb72754096e3215 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Fri, 17 Nov 2023 15:08:00 +0100 Subject: [PATCH 16/45] Fix psycopg3 issues --- posthog/api/property_definition.py | 6 +++--- posthog/tasks/usage_report.py | 2 +- .../temporal/tests/test_squash_person_overrides_workflow.py | 6 +++--- posthog/temporal/workflows/squash_person_overrides.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/posthog/api/property_definition.py b/posthog/api/property_definition.py index 983b49c1ff0e0..751b804c8e9fb 100644 --- a/posthog/api/property_definition.py +++ b/posthog/api/property_definition.py @@ -143,7 +143,7 @@ def with_properties_to_filter(self, properties_to_filter: Optional[str]) -> "Que return dataclasses.replace( self, name_filter="AND name = ANY(%(names)s)", - params={**self.params, "names": tuple(properties_to_filter.split(","))}, + params={**self.params, "names": properties_to_filter.split(",")}, ) else: return self @@ -227,7 +227,7 @@ def with_event_property_filter( event_name_join_filter=event_name_join_filter, event_name_filter=event_name_filter, event_property_join_type="INNER JOIN" if filter_by_event_names else "LEFT JOIN", - params={**self.params, "event_names": tuple(event_names or [])}, + params={**self.params, "event_names": event_names or []}, ) def with_search(self, search_query: str, search_kwargs: Dict) -> "QueryContext": @@ -241,7 +241,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str if excluded_properties: excluded_properties = json.loads(excluded_properties) - excluded_list = tuple( + excluded_list = list( set.union( set(excluded_properties or []), EVENTS_HIDDEN_PROPERTY_DEFINITIONS if type == "event" else [], diff --git a/posthog/tasks/usage_report.py b/posthog/tasks/usage_report.py index a9a06ecbff7c5..d43b20e9c98af 100644 --- a/posthog/tasks/usage_report.py +++ b/posthog/tasks/usage_report.py @@ -23,7 +23,7 @@ from django.db import connection from django.db.models import Count, Q from posthoganalytics.client import Client -from psycopg2 import sql +from psycopg import sql from sentry_sdk import capture_exception from posthog import version_requirement diff --git a/posthog/temporal/tests/test_squash_person_overrides_workflow.py b/posthog/temporal/tests/test_squash_person_overrides_workflow.py index 8cde17ccb42d1..bb463e6f20627 100644 --- a/posthog/temporal/tests/test_squash_person_overrides_workflow.py +++ b/posthog/temporal/tests/test_squash_person_overrides_workflow.py @@ -5,7 +5,7 @@ from typing import TypedDict from uuid import UUID, uuid4 -import psycopg2 +import psycopg import pytest from django.conf import settings from freezegun.api import freeze_time @@ -794,8 +794,8 @@ def django_db_setup_fixture(): @pytest.fixture def pg_connection(): - """Manage a Postgres connection with psycopg2.""" - conn = psycopg2.connect( + """Manage a Postgres connection with psycopg.""" + conn = psycopg.connect( dbname=settings.DATABASES["default"]["NAME"], user=settings.DATABASES["default"]["USER"], password=settings.DATABASES["default"]["PASSWORD"], diff --git a/posthog/temporal/workflows/squash_person_overrides.py b/posthog/temporal/workflows/squash_person_overrides.py index 1386964339589..3b97cbe298bca 100644 --- a/posthog/temporal/workflows/squash_person_overrides.py +++ b/posthog/temporal/workflows/squash_person_overrides.py @@ -6,7 +6,7 @@ from typing import AsyncIterator, Iterable, NamedTuple from uuid import UUID -import psycopg2 +import psycopg from temporalio import activity, workflow from temporalio.common import RetryPolicy @@ -446,7 +446,7 @@ async def delete_squashed_person_overrides_from_postgres(inputs: QueryInputs) -> from django.conf import settings activity.logger.info("Deleting squashed persons from Postgres") - with psycopg2.connect( + with psycopg.connect( dbname=settings.DATABASES["default"]["NAME"], user=settings.DATABASES["default"]["USER"], password=settings.DATABASES["default"]["PASSWORD"], From 9cc26d44d0aa9ac8854a34ee1bee3dcb0b9ed4bc Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Fri, 17 Nov 2023 16:16:11 +0100 Subject: [PATCH 17/45] Fix psycopg issues --- .../test/__snapshots__/test_feature_flag.ambr | 21 ++++++------- posthog/api/test/test_feature_flag.py | 30 +++++++++---------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 6fc6c63c17f20..26fd3b9ec6741 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -341,8 +341,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -371,8 +370,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -433,9 +431,9 @@ --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.4 ' - SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") @@ -453,8 +451,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -545,12 +542,12 @@ ' SELECT pg_sleep(1); - SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") diff --git a/posthog/api/test/test_feature_flag.py b/posthog/api/test/test_feature_flag.py index 0c6581a389561..22e42b06a445a 100644 --- a/posthog/api/test/test_feature_flag.py +++ b/posthog/api/test/test_feature_flag.py @@ -4128,7 +4128,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(4): + with self.assertNumQueries(8): # one query to get group type mappings, another to get group properties # 2 to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) @@ -4138,7 +4138,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): # now db is down with snapshot_postgres_queries_context(self), connection.execute_wrapper(QueryTimeoutWrapper()): - with self.assertNumQueries(1): + with self.assertNumQueries(3): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) self.assertTrue("group-flag" not in all_flags) @@ -4147,7 +4147,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): self.assertTrue(errors) # # now db is down, but decide was sent correct group property overrides - with self.assertNumQueries(1): + with self.assertNumQueries(3): all_flags, _, _, errors = get_all_feature_flags( team_id, "random", @@ -4160,7 +4160,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): self.assertTrue(errors) # # now db is down, but decide was sent different group property overrides - with self.assertNumQueries(1): + with self.assertNumQueries(3): all_flags, _, _, errors = get_all_feature_flags( team_id, "exam", @@ -4226,7 +4226,7 @@ def test_feature_flags_v3_with_person_properties(self, mock_counter, *args): self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(2): + with self.assertNumQueries(4): # 1 query to get person properties # 1 to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -4324,7 +4324,7 @@ def test_feature_flags_v3_with_a_working_slow_db(self, mock_postgres_check): self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(2): + with self.assertNumQueries(4): # 1 query to set statement timeout # 1 query to get person properties all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -4434,7 +4434,7 @@ def test_feature_flags_v3_with_slow_db_doesnt_try_to_compute_conditions_again(se created_by=self.user, ) - with self.assertNumQueries(2): + with self.assertNumQueries(4): # 1 query to get person properties # 1 query to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -4447,7 +4447,7 @@ def test_feature_flags_v3_with_slow_db_doesnt_try_to_compute_conditions_again(se with snapshot_postgres_queries_context(self), connection.execute_wrapper(slow_query), patch( "posthog.models.feature_flag.flag_matching.FLAG_MATCHING_QUERY_TIMEOUT_MS", 500, - ), self.assertNumQueries(2): + ), self.assertNumQueries(4): # no extra queries to get person properties for the second flag after first one failed all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -4526,7 +4526,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(4): + with self.assertNumQueries(8): # one query to get group type mappings, another to get group properties # 2 queries to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) @@ -4539,7 +4539,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, "posthog.models.feature_flag.flag_matching.FLAG_MATCHING_QUERY_TIMEOUT_MS", 500, ): - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) self.assertTrue("group-flag" not in all_flags) @@ -4548,7 +4548,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, self.assertTrue(errors) # # now db is slow, but decide was sent correct group property overrides - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags( team_id, "random", @@ -4570,7 +4570,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, ) # # now db is down, but decide was sent different group property overrides - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags( team_id, "exam", @@ -4637,7 +4637,7 @@ def test_feature_flags_v3_with_experience_continuity_working_slow_db(self, mock_ self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with snapshot_postgres_queries_context(self), self.assertNumQueries(9): + with snapshot_postgres_queries_context(self), self.assertNumQueries(17): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", hash_key_override="random") self.assertTrue(all_flags["property-flag"]) @@ -4657,7 +4657,7 @@ def test_feature_flags_v3_with_experience_continuity_working_slow_db(self, mock_ # # now db is slow, but decide was sent email parameter with correct email # still need to get hash key override from db, so should time out - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags( team_id, "random", @@ -4729,7 +4729,7 @@ def test_feature_flags_v3_with_experience_continuity_and_incident_mode(self, moc self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(5), self.settings(DECIDE_SKIP_HASH_KEY_OVERRIDE_WRITES=True): + with self.assertNumQueries(9), self.settings(DECIDE_SKIP_HASH_KEY_OVERRIDE_WRITES=True): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", hash_key_override="random") self.assertTrue(all_flags["property-flag"]) From 1dfef2852562dbd7c276f660cb87ca89e19f7885 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:19:52 +0000 Subject: [PATCH 18/45] Update query snapshots --- .../test_organization_resource_access.ambr | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index 553058cdac5c9..893fa7bbb0c81 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -24,7 +24,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.1 @@ -48,7 +48,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.10 @@ -72,7 +72,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.11 @@ -81,7 +81,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.12 @@ -95,14 +95,14 @@ FROM "posthog_organizationmembership" 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'*/ + LIMIT 21 ' --- # 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'*/ + WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.14 @@ -116,7 +116,7 @@ "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'*/ + LIMIT 100 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.15 @@ -154,7 +154,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.3 @@ -163,7 +163,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.4 @@ -177,7 +177,7 @@ FROM "posthog_organizationmembership" 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'*/ + LIMIT 21 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.5 @@ -188,14 +188,14 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # 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'*/ + WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.7 @@ -209,7 +209,7 @@ "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'*/ + LIMIT 100 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.8 @@ -238,7 +238,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.9 @@ -262,6 +262,6 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- From 3170b0362c039fd9a5b9c88457d45f0c8128db31 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:22:17 +0000 Subject: [PATCH 19/45] Update query snapshots --- .../test/__snapshots__/test_preflight.ambr | 6 +- .../api/test/__snapshots__/test_survey.ambr | 4 +- .../__snapshots__/test_dashboard.ambr | 894 +++++++++--------- .../__snapshots__/test_notebook.ambr | 42 +- 4 files changed, 473 insertions(+), 473 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr index 2d2cb9a03cbfe..8f75ffdaad658 100644 --- a/posthog/api/test/__snapshots__/test_preflight.ambr +++ b/posthog/api/test/__snapshots__/test_preflight.ambr @@ -24,7 +24,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.1 @@ -35,7 +35,7 @@ FROM "posthog_instancesetting" 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'*/ + 'constance:posthog:SLACK_APP_SIGNING_SECRET') ' --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.2 @@ -92,6 +92,6 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- diff --git a/posthog/api/test/__snapshots__/test_survey.ambr b/posthog/api/test/__snapshots__/test_survey.ambr index 4536dfb45977e..5b7c84da6bc12 100644 --- a/posthog/api/test/__snapshots__/test_survey.ambr +++ b/posthog/api/test/__snapshots__/test_survey.ambr @@ -153,7 +153,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestSurveysAPIList.test_list_surveys.6 @@ -208,6 +208,6 @@ LEFT OUTER JOIN "posthog_featureflag" ON ("posthog_survey"."linked_flag_id" = "posthog_featureflag"."id") 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'*/ + AND NOT ("posthog_survey"."archived")) ' --- diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 83d7a875677d2..72ad382809aab 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -24,7 +24,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.1 @@ -74,7 +74,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.10 @@ -85,7 +85,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.11 @@ -112,7 +112,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.12 @@ -120,7 +120,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13 @@ -149,7 +149,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.14 @@ -199,7 +199,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15 @@ -229,7 +229,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.16 @@ -253,7 +253,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17 @@ -371,7 +371,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18 @@ -393,7 +393,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19 @@ -411,7 +411,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.2 @@ -441,7 +441,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.20 @@ -608,7 +608,7 @@ 3, 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21 @@ -629,7 +629,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22 @@ -734,7 +734,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23 @@ -759,7 +759,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24 @@ -785,7 +785,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25 @@ -953,7 +953,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26 @@ -974,7 +974,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27 @@ -1079,7 +1079,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28 @@ -1104,7 +1104,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29 @@ -1130,7 +1130,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3 @@ -1154,7 +1154,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30 @@ -1176,7 +1176,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31 @@ -1203,7 +1203,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4 @@ -1230,7 +1230,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5 @@ -1287,7 +1287,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.6 @@ -1344,7 +1344,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7 @@ -1368,7 +1368,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.8 @@ -1392,7 +1392,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9 @@ -1413,7 +1413,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1 @@ -1442,7 +1442,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.1 @@ -1492,7 +1492,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.10 @@ -1503,7 +1503,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.11 @@ -1514,7 +1514,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.12 @@ -1525,7 +1525,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.13 @@ -1552,7 +1552,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.14 @@ -1609,7 +1609,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.15 @@ -1666,7 +1666,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.16 @@ -1677,7 +1677,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.17 @@ -1688,7 +1688,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.18 @@ -1699,7 +1699,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.19 @@ -1710,7 +1710,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.2 @@ -1740,7 +1740,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.20 @@ -1751,7 +1751,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.21 @@ -1762,7 +1762,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.22 @@ -1812,7 +1812,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.23 @@ -1830,7 +1830,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.24 @@ -1865,7 +1865,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.25 @@ -1888,7 +1888,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.26 @@ -1945,7 +1945,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.27 @@ -1956,7 +1956,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.28 @@ -1967,7 +1967,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.29 @@ -1978,7 +1978,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.3 @@ -2002,7 +2002,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.30 @@ -2013,7 +2013,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.31 @@ -2024,7 +2024,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.32 @@ -2035,7 +2035,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.33 @@ -2059,7 +2059,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.34 @@ -2083,7 +2083,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.35 @@ -2104,7 +2104,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.36 @@ -2115,7 +2115,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.37 @@ -2126,7 +2126,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.38 @@ -2137,7 +2137,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.39 @@ -2148,7 +2148,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.4 @@ -2198,7 +2198,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.40 @@ -2209,7 +2209,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.41 @@ -2220,7 +2220,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.42 @@ -2231,7 +2231,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.43 @@ -2242,7 +2242,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.44 @@ -2253,7 +2253,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.45 @@ -2264,7 +2264,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.46 @@ -2275,7 +2275,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.47 @@ -2286,7 +2286,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.48 @@ -2297,7 +2297,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.49 @@ -2324,7 +2324,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.5 @@ -2359,7 +2359,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.50 @@ -2388,7 +2388,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.51 @@ -2438,7 +2438,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.52 @@ -2468,7 +2468,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.53 @@ -2492,7 +2492,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.54 @@ -2500,7 +2500,7 @@ 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'*/ + AND "posthog_dashboard"."team_id" = 2) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.55 @@ -2618,7 +2618,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 300 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.56 @@ -2636,7 +2636,7 @@ 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.57 @@ -2711,7 +2711,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.7 @@ -2722,7 +2722,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.8 @@ -2733,7 +2733,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.9 @@ -2744,7 +2744,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles @@ -2773,7 +2773,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.1 @@ -2823,7 +2823,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.10 @@ -2837,7 +2837,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100 @@ -2872,7 +2872,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101 @@ -2929,7 +2929,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102 @@ -2940,7 +2940,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103 @@ -2951,7 +2951,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104 @@ -2962,7 +2962,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105 @@ -2973,7 +2973,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106 @@ -2984,7 +2984,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107 @@ -2995,7 +2995,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108 @@ -3022,7 +3022,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109 @@ -3079,7 +3079,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11 @@ -3241,7 +3241,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110 @@ -3298,7 +3298,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111 @@ -3309,7 +3309,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112 @@ -3320,7 +3320,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113 @@ -3331,7 +3331,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114 @@ -3342,7 +3342,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115 @@ -3353,7 +3353,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116 @@ -3364,7 +3364,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117 @@ -3414,7 +3414,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118 @@ -3432,7 +3432,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119 @@ -3467,7 +3467,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12 @@ -3475,7 +3475,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120 @@ -3498,7 +3498,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121 @@ -3555,7 +3555,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122 @@ -3566,7 +3566,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123 @@ -3577,7 +3577,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124 @@ -3588,7 +3588,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125 @@ -3599,7 +3599,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126 @@ -3610,7 +3610,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127 @@ -3621,7 +3621,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128 @@ -3645,7 +3645,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129 @@ -3669,7 +3669,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13 @@ -3698,7 +3698,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130 @@ -3719,7 +3719,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131 @@ -3730,7 +3730,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132 @@ -3741,7 +3741,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133 @@ -3752,7 +3752,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134 @@ -3763,7 +3763,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135 @@ -3774,7 +3774,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136 @@ -3785,7 +3785,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137 @@ -3796,7 +3796,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138 @@ -3807,7 +3807,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139 @@ -3818,7 +3818,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14 @@ -3868,7 +3868,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140 @@ -3879,7 +3879,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141 @@ -3890,7 +3890,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142 @@ -3901,7 +3901,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143 @@ -3912,7 +3912,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144 @@ -3939,7 +3939,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145 @@ -3947,7 +3947,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146 @@ -3976,7 +3976,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147 @@ -4026,7 +4026,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148 @@ -4056,7 +4056,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149 @@ -4080,7 +4080,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15 @@ -4110,7 +4110,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150 @@ -4160,7 +4160,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151 @@ -4195,7 +4195,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152 @@ -4252,7 +4252,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153 @@ -4263,7 +4263,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154 @@ -4274,7 +4274,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155 @@ -4285,7 +4285,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.156 @@ -4296,7 +4296,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.157 @@ -4307,7 +4307,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.158 @@ -4318,7 +4318,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.159 @@ -4345,7 +4345,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16 @@ -4356,7 +4356,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.160 @@ -4413,7 +4413,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.161 @@ -4470,7 +4470,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.162 @@ -4481,7 +4481,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.163 @@ -4492,7 +4492,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.164 @@ -4503,7 +4503,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.165 @@ -4514,7 +4514,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.166 @@ -4525,7 +4525,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.167 @@ -4536,7 +4536,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.168 @@ -4586,7 +4586,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.169 @@ -4604,7 +4604,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17 @@ -4628,7 +4628,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.170 @@ -4663,7 +4663,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.171 @@ -4686,7 +4686,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.172 @@ -4743,7 +4743,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.173 @@ -4754,7 +4754,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.174 @@ -4765,7 +4765,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.175 @@ -4776,7 +4776,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.176 @@ -4787,7 +4787,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.177 @@ -4798,7 +4798,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.178 @@ -4809,7 +4809,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.179 @@ -4833,7 +4833,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18 @@ -4845,7 +4845,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.180 @@ -4869,7 +4869,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.181 @@ -4890,7 +4890,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.182 @@ -4901,7 +4901,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.183 @@ -4912,7 +4912,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.184 @@ -4923,7 +4923,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.185 @@ -4934,7 +4934,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.186 @@ -4945,7 +4945,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.187 @@ -4956,7 +4956,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.188 @@ -4967,7 +4967,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.189 @@ -4978,7 +4978,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19 @@ -4992,7 +4992,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.190 @@ -5003,7 +5003,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.191 @@ -5014,7 +5014,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.192 @@ -5025,7 +5025,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.193 @@ -5036,7 +5036,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.194 @@ -5047,7 +5047,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.195 @@ -5074,7 +5074,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.196 @@ -5082,7 +5082,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.197 @@ -5111,7 +5111,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.198 @@ -5161,7 +5161,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.199 @@ -5191,7 +5191,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2 @@ -5221,14 +5221,14 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.200 @@ -5252,7 +5252,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.201 @@ -5302,7 +5302,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.202 @@ -5337,7 +5337,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.203 @@ -5394,7 +5394,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.204 @@ -5405,7 +5405,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.205 @@ -5416,7 +5416,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.206 @@ -5427,7 +5427,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.207 @@ -5438,7 +5438,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.208 @@ -5449,7 +5449,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.209 @@ -5460,7 +5460,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21 @@ -5517,7 +5517,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.210 @@ -5544,7 +5544,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.211 @@ -5601,7 +5601,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.212 @@ -5658,7 +5658,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.213 @@ -5669,7 +5669,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.214 @@ -5680,7 +5680,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.215 @@ -5691,7 +5691,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.216 @@ -5702,7 +5702,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.217 @@ -5713,7 +5713,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.218 @@ -5724,7 +5724,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.219 @@ -5774,7 +5774,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22 @@ -5788,7 +5788,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.220 @@ -5806,7 +5806,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.221 @@ -5841,7 +5841,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.222 @@ -5864,7 +5864,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.223 @@ -5921,7 +5921,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.224 @@ -5932,7 +5932,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.225 @@ -5943,7 +5943,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.226 @@ -5954,7 +5954,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.227 @@ -5965,7 +5965,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.228 @@ -5976,7 +5976,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.229 @@ -5987,7 +5987,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23 @@ -6149,7 +6149,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.230 @@ -6173,7 +6173,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.231 @@ -6197,7 +6197,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.232 @@ -6218,7 +6218,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.233 @@ -6229,7 +6229,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.234 @@ -6240,7 +6240,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.235 @@ -6251,7 +6251,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.236 @@ -6262,7 +6262,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.237 @@ -6273,7 +6273,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.238 @@ -6284,7 +6284,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.239 @@ -6295,7 +6295,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24 @@ -6303,7 +6303,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.240 @@ -6314,7 +6314,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.241 @@ -6325,7 +6325,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.242 @@ -6336,7 +6336,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.243 @@ -6347,7 +6347,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.244 @@ -6358,7 +6358,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.245 @@ -6369,7 +6369,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.246 @@ -6396,7 +6396,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.247 @@ -6404,7 +6404,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.248 @@ -6433,7 +6433,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.249 @@ -6483,7 +6483,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25 @@ -6512,7 +6512,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.250 @@ -6542,7 +6542,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.251 @@ -6566,7 +6566,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.252 @@ -6684,7 +6684,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.253 @@ -6706,7 +6706,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.254 @@ -6724,7 +6724,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.255 @@ -6891,7 +6891,7 @@ 3, 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.256 @@ -6912,7 +6912,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.257 @@ -7017,7 +7017,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.258 @@ -7042,7 +7042,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.259 @@ -7068,7 +7068,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26 @@ -7118,7 +7118,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.260 @@ -7286,7 +7286,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.261 @@ -7307,7 +7307,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.262 @@ -7412,7 +7412,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.263 @@ -7437,7 +7437,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.264 @@ -7463,7 +7463,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.265 @@ -7485,7 +7485,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.266 @@ -7496,7 +7496,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.267 @@ -7507,7 +7507,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.268 @@ -7518,7 +7518,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.269 @@ -7529,7 +7529,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27 @@ -7559,7 +7559,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.270 @@ -7570,7 +7570,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.271 @@ -7581,7 +7581,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.272 @@ -7592,7 +7592,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.273 @@ -7603,7 +7603,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.274 @@ -7614,7 +7614,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.275 @@ -7625,7 +7625,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.276 @@ -7636,7 +7636,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.277 @@ -7647,7 +7647,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.278 @@ -7674,7 +7674,7 @@ 2, 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.279 @@ -7685,7 +7685,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28 @@ -7709,7 +7709,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.280 @@ -7720,7 +7720,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.281 @@ -7731,7 +7731,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.282 @@ -7742,7 +7742,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.283 @@ -7753,7 +7753,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.284 @@ -7764,7 +7764,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.285 @@ -7775,7 +7775,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.286 @@ -7786,7 +7786,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.287 @@ -7797,7 +7797,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.288 @@ -7808,7 +7808,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.289 @@ -7819,7 +7819,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29 @@ -7843,7 +7843,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.290 @@ -7854,7 +7854,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.291 @@ -7865,7 +7865,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.292 @@ -7876,7 +7876,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.293 @@ -7887,7 +7887,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.294 @@ -7898,7 +7898,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.295 @@ -7909,7 +7909,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.296 @@ -7920,7 +7920,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.297 @@ -7931,7 +7931,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.298 @@ -7942,7 +7942,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.299 @@ -7953,7 +7953,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.3 @@ -7964,7 +7964,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.30 @@ -8014,7 +8014,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.300 @@ -8025,7 +8025,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.301 @@ -8036,7 +8036,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.302 @@ -8047,7 +8047,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.303 @@ -8058,7 +8058,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.304 @@ -8069,7 +8069,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.305 @@ -8080,7 +8080,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.306 @@ -8091,7 +8091,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.307 @@ -8102,7 +8102,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.308 @@ -8113,7 +8113,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.309 @@ -8124,7 +8124,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31 @@ -8159,7 +8159,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.310 @@ -8170,7 +8170,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.311 @@ -8181,7 +8181,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.312 @@ -8192,7 +8192,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.313 @@ -8203,7 +8203,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.314 @@ -8214,7 +8214,7 @@ 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.315 @@ -8282,7 +8282,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33 @@ -8293,7 +8293,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34 @@ -8304,7 +8304,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.35 @@ -8315,7 +8315,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36 @@ -8326,7 +8326,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37 @@ -8337,7 +8337,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38 @@ -8348,7 +8348,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39 @@ -8375,7 +8375,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.4 @@ -8386,7 +8386,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.40 @@ -8443,7 +8443,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.41 @@ -8500,7 +8500,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.42 @@ -8511,7 +8511,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.43 @@ -8522,7 +8522,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.44 @@ -8533,7 +8533,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.45 @@ -8544,7 +8544,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46 @@ -8555,7 +8555,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47 @@ -8566,7 +8566,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48 @@ -8616,7 +8616,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49 @@ -8634,7 +8634,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5 @@ -8658,7 +8658,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50 @@ -8693,7 +8693,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51 @@ -8716,7 +8716,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52 @@ -8773,7 +8773,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53 @@ -8784,7 +8784,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54 @@ -8795,7 +8795,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55 @@ -8806,7 +8806,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56 @@ -8817,7 +8817,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57 @@ -8828,7 +8828,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58 @@ -8839,7 +8839,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59 @@ -8896,7 +8896,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6 @@ -8908,7 +8908,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60 @@ -8919,7 +8919,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61 @@ -8930,7 +8930,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62 @@ -8941,7 +8941,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63 @@ -8952,7 +8952,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64 @@ -8963,7 +8963,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65 @@ -8974,7 +8974,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66 @@ -9024,7 +9024,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67 @@ -9042,7 +9042,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.68 @@ -9077,7 +9077,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69 @@ -9100,7 +9100,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.7 @@ -9114,7 +9114,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.70 @@ -9171,7 +9171,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.71 @@ -9182,7 +9182,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72 @@ -9193,7 +9193,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73 @@ -9204,7 +9204,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74 @@ -9215,7 +9215,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75 @@ -9226,7 +9226,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76 @@ -9237,7 +9237,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77 @@ -9261,7 +9261,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78 @@ -9285,7 +9285,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79 @@ -9306,14 +9306,14 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80 @@ -9324,7 +9324,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81 @@ -9335,7 +9335,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82 @@ -9346,7 +9346,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83 @@ -9357,7 +9357,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84 @@ -9368,7 +9368,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85 @@ -9379,7 +9379,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86 @@ -9390,7 +9390,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87 @@ -9401,7 +9401,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88 @@ -9412,7 +9412,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89 @@ -9423,7 +9423,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9 @@ -9480,7 +9480,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90 @@ -9491,7 +9491,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91 @@ -9502,7 +9502,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92 @@ -9513,7 +9513,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93 @@ -9540,7 +9540,7 @@ 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'*/ + 5 /* ... */)) ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94 @@ -9548,7 +9548,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95 @@ -9577,7 +9577,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96 @@ -9627,7 +9627,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97 @@ -9657,7 +9657,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98 @@ -9681,7 +9681,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99 @@ -9731,7 +9731,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard @@ -9771,7 +9771,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard.10 @@ -9939,7 +9939,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_retrieve_dashboard.2 @@ -9989,7 +9989,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard.3 @@ -10019,7 +10019,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard.4 @@ -10030,7 +10030,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_retrieve_dashboard.5 @@ -10054,7 +10054,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard.6 @@ -10172,7 +10172,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard.7 @@ -10194,7 +10194,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_retrieve_dashboard.8 @@ -10212,7 +10212,7 @@ 2, 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_retrieve_dashboard.9 @@ -10379,7 +10379,7 @@ 3, 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_retrieve_dashboard_list @@ -10408,7 +10408,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.1 @@ -10458,7 +10458,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.10 @@ -10472,7 +10472,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.11 @@ -10634,7 +10634,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_retrieve_dashboard_list.12 @@ -10642,7 +10642,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.13 @@ -10671,7 +10671,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.14 @@ -10721,7 +10721,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.15 @@ -10751,7 +10751,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.16 @@ -10762,7 +10762,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ' --- # name: TestDashboard.test_retrieve_dashboard_list.17 @@ -10786,7 +10786,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.18 @@ -10798,7 +10798,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ' --- # name: TestDashboard.test_retrieve_dashboard_list.19 @@ -10812,7 +10812,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.2 @@ -10842,14 +10842,14 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.21 @@ -10906,7 +10906,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.22 @@ -10920,7 +10920,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.23 @@ -11082,7 +11082,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ' --- # name: TestDashboard.test_retrieve_dashboard_list.24 @@ -11090,7 +11090,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.25 @@ -11119,7 +11119,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.26 @@ -11169,7 +11169,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.27 @@ -11199,7 +11199,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.28 @@ -11223,7 +11223,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.29 @@ -11231,7 +11231,7 @@ 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'*/ + AND "posthog_dashboard"."team_id" = 2) ' --- # name: TestDashboard.test_retrieve_dashboard_list.3 @@ -11242,7 +11242,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestDashboard.test_retrieve_dashboard_list.30 @@ -11360,7 +11360,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 100 ' --- # name: TestDashboard.test_retrieve_dashboard_list.31 @@ -11382,7 +11382,7 @@ 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_retrieve_dashboard_list.32 @@ -11400,7 +11400,7 @@ 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'*/ + 5 /* ... */) ' --- # name: TestDashboard.test_retrieve_dashboard_list.33 @@ -11429,7 +11429,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ' --- # name: TestDashboard.test_retrieve_dashboard_list.5 @@ -11453,7 +11453,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ' --- # name: TestDashboard.test_retrieve_dashboard_list.6 @@ -11465,7 +11465,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ' --- # name: TestDashboard.test_retrieve_dashboard_list.7 @@ -11479,14 +11479,14 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ' --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ' --- # name: TestDashboard.test_retrieve_dashboard_list.9 @@ -11543,6 +11543,6 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index fc373eefb7a43..f588816a790e0 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -24,7 +24,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.1 @@ -74,7 +74,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.10 @@ -93,7 +93,7 @@ "posthog_notebook"."last_modified_by_id" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.11 @@ -114,7 +114,7 @@ WHERE "posthog_notebook"."id" = '00000000-0000-0000-0000-000000000000'::uuid 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'*/ + UPDATE ' --- # name: TestNotebooks.test_updates_notebook.12 @@ -171,7 +171,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.13 @@ -228,7 +228,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.14 @@ -258,7 +258,7 @@ "posthog_user"."events_column_config" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.15 @@ -287,7 +287,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.16 @@ -337,7 +337,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.17 @@ -367,7 +367,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestNotebooks.test_updates_notebook.18 @@ -378,7 +378,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestNotebooks.test_updates_notebook.19 @@ -386,7 +386,7 @@ 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'*/ + AND "posthog_activitylog"."team_id" = 2) ' --- # name: TestNotebooks.test_updates_notebook.2 @@ -416,7 +416,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestNotebooks.test_updates_notebook.20 @@ -459,7 +459,7 @@ 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'*/ + LIMIT 2 ' --- # name: TestNotebooks.test_updates_notebook.3 @@ -470,7 +470,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestNotebooks.test_updates_notebook.4 @@ -499,7 +499,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.5 @@ -549,7 +549,7 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.6 @@ -579,7 +579,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ' --- # name: TestNotebooks.test_updates_notebook.7 @@ -590,7 +590,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ' --- # name: TestNotebooks.test_updates_notebook.8 @@ -709,7 +709,7 @@ LEFT OUTER JOIN "posthog_user" T4 ON ("posthog_notebook"."last_modified_by_id" = T4."id") 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'*/ + LIMIT 21 ' --- # name: TestNotebooks.test_updates_notebook.9 @@ -766,6 +766,6 @@ "posthog_team"."external_data_workspace_id" 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'*/ + LIMIT 21 ' --- From ccba43953c750ab1341c257c9ded0714279127ae Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:25:37 +0000 Subject: [PATCH 20/45] Update query snapshots --- .../test/__snapshots__/test_feature_flag.ambr | 14 - .../test/__snapshots__/test_feature_flag.ambr | 456 ++++++++++-------- 2 files changed, 249 insertions(+), 221 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 26fd3b9ec6741..8c4f598901c96 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -444,8 +444,6 @@ --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.5 ' - SELECT pg_sleep(1); - WITH target_person_ids AS (SELECT team_id, person_id @@ -475,8 +473,6 @@ --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.6 ' - SELECT pg_sleep(1); - SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" @@ -487,8 +483,6 @@ --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.7 ' - SELECT pg_sleep(1); - SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" @@ -498,8 +492,6 @@ --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db ' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -512,8 +504,6 @@ --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.1 ' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -526,8 +516,6 @@ --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.2 ' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -540,8 +528,6 @@ --- # 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"'::jsonb AND "posthog_person"."properties" ? 'email' AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index 05f9873311799..a8ba2f564d1ee 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -1,41 +1,41 @@ # name: TestFeatureFlagMatcher.test_coercion_of_booleans_with_is_not_operator ' - SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_0", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_2", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_3", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_3", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_4", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_4", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_5", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_5", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_6", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_6", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_7", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_7", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_8" + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_8" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -45,20 +45,20 @@ --- # 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')) + SELECT (NOT ((("posthog_person"."properties" -> 'Organizer Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"' - OR ("posthog_person"."properties" -> 'Organizer Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'))) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb))) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -68,20 +68,20 @@ --- # 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')) + SELECT NOT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0", - NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"' - OR ("posthog_person"."properties" -> 'Distinct Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_2", - NOT (("posthog_person"."properties" -> 'Distinct Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -217,10 +217,10 @@ --- # 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')) + SELECT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -230,9 +230,9 @@ --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.5 ' - SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -242,9 +242,9 @@ --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.6 ' - SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307' + SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -266,9 +266,9 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.1 ' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -292,12 +292,12 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.3 ' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -318,9 +318,9 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.5 ' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -334,12 +334,12 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.6 ' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo2' @@ -371,30 +371,30 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_cohorts_and_nested_cohorts.1 ' - SELECT (((("posthog_person"."properties" -> 'number') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') > '100.0' + OR (("posthog_person"."properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'version') > '"1.05"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'version') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('string')) - OR (("posthog_person"."properties" -> 'version') > '1.05' + OR (("posthog_person"."properties" -> 'version') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('number'))) AND "posthog_person"."properties" ? 'version' - AND NOT (("posthog_person"."properties" -> 'version') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'number') < '"31"' + AND NOT (("posthog_person"."properties" -> 'version') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'number') < '"31"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') < '31.0' + OR (("posthog_person"."properties" -> 'number') < '31.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null') - AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('string')) - OR (("posthog_person"."properties" -> 'nested_prop') > '20.0' + OR (("posthog_person"."properties" -> 'nested_prop') > '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('number'))) AND "posthog_person"."properties" ? 'nested_prop' - AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -416,12 +416,12 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.1 ' - SELECT (((("posthog_person"."properties" -> 'number') >= '"20"' + SELECT (((("posthog_person"."properties" -> 'number') >= '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') >= '20.0' + OR (("posthog_person"."properties" -> 'number') >= '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -431,12 +431,12 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.2 ' - SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"' + SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('string')) - OR (("posthog_group"."group_properties" -> 'number') > '100.0' + OR (("posthog_group"."group_properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('number'))) AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -445,9 +445,9 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.3 ' - SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"' + SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"'::jsonb AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo-project' @@ -456,17 +456,17 @@ --- # name: TestFeatureFlagMatcher.test_super_condition_matches_string ' - SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true' - OR ("posthog_person"."properties" -> 'is_enabled') = '"true"') + SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true'::jsonb + OR ("posthog_person"."properties" -> 'is_enabled') = '"true"'::jsonb) AND "posthog_person"."properties" ? 'is_enabled' - AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null')) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", - (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_1", - (true) AS "flag_X_condition_2" + AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null'::jsonb)) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", + (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_1", + (true) AS "flag_X_condition_2" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' @@ -579,34 +579,34 @@ --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.3 ' - SELECT (((("posthog_person"."properties" -> 'number space') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number space') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('string')) - OR (("posthog_person"."properties" -> 'number space') > '100.0' + OR (("posthog_person"."properties" -> 'number space') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('number'))) AND "posthog_person"."properties" ? 'number space' - AND NOT (("posthog_person"."properties" -> 'number space') = 'null') + AND NOT (("posthog_person"."properties" -> 'number space') = 'null'::jsonb) AND ((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_0", (((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_1", - (((("posthog_person"."properties" -> 'version!!!') > '"1.05"' + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_1", + (((("posthog_person"."properties" -> 'version!!!') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('string')) - OR (("posthog_person"."properties" -> 'version!!!') > '1.05' + OR (("posthog_person"."properties" -> 'version!!!') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('number'))) AND "posthog_person"."properties" ? 'version!!!' - AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null')) AS "flag_X_condition_2", - ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"' - OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21') + AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null'::jsonb)) AS "flag_X_condition_2", + ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"'::jsonb + OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21'::jsonb) AND "posthog_person"."properties" ? 'nested_prop --random #comment //test' - AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -615,20 +615,103 @@ ' --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.10 + ' + WITH target_person_ids AS + (SELECT team_id, + person_id + FROM posthog_persondistinctid + WHERE team_id = 2 + AND distinct_id = ANY('{other_id,example_id}') ), + existing_overrides AS + (SELECT team_id, + person_id, + feature_flag_key, + hash_key + FROM posthog_featureflaghashkeyoverride + WHERE team_id = 2 + AND person_id IN + (SELECT person_id + FROM target_person_ids) ), + flags_to_override AS + (SELECT key + FROM posthog_featureflag + WHERE team_id = 2 + AND ensure_experience_continuity = TRUE + AND active = TRUE + AND deleted = FALSE + AND key NOT IN + (SELECT feature_flag_key + FROM existing_overrides) ) + INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) + SELECT team_id, + person_id, + key, + 'example_id' + FROM flags_to_override, + target_person_ids + WHERE EXISTS + (SELECT 1 + 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.11 + 'ROLLBACK' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.12 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.13 + ' + + SET LOCAL statement_timeout = 2 + ' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.14 + ' + 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.15 + ' + 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) + ' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.16 + 'COMMIT' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -650,21 +733,26 @@ FROM existing_overrides) ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 + 'COMMIT' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -699,21 +787,35 @@ AND team_id = 2) ON CONFLICT DO NOTHING ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 + 'ROLLBACK' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.9 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 + ' + + SET LOCAL statement_timeout = 2 + ' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.10 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -748,13 +850,19 @@ AND team_id = 2) ON CONFLICT DO NOTHING ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.11 + 'COMMIT' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.12 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.13 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.14 ' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" @@ -764,7 +872,7 @@ AND "posthog_persondistinctid"."team_id" = 2) ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.15 ' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", @@ -778,21 +886,17 @@ 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.16 + 'COMMIT' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.2 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -814,70 +918,26 @@ 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 - FROM posthog_persondistinctid - WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), - existing_overrides AS - (SELECT team_id, - person_id, - feature_flag_key, - hash_key - FROM posthog_featureflaghashkeyoverride - WHERE team_id = 2 - AND person_id IN - (SELECT person_id - FROM target_person_ids) ), - flags_to_override AS - (SELECT key - FROM posthog_featureflag - WHERE team_id = 2 - AND ensure_experience_continuity = TRUE - AND active = TRUE - AND deleted = FALSE - AND key NOT IN - (SELECT feature_flag_key - FROM existing_overrides) ) - INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) - SELECT team_id, - person_id, - key, - 'example_id' - FROM flags_to_override, - target_person_ids - WHERE EXISTS - (SELECT 1 - FROM posthog_person - WHERE id = person_id - AND team_id = 2) ON CONFLICT DO NOTHING - ' + 'COMMIT' --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.4 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.6 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -912,33 +972,15 @@ 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) - ' + 'ROLLBACK' --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.8 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.9 ' - 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) + + SET LOCAL statement_timeout = 2 ' --- From 8eb8a777e105885e1594a7bac21e6896b6837112 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 14:36:20 +0000 Subject: [PATCH 21/45] Update query snapshots --- .../test/__snapshots__/test_feature_flag.ambr | 456 ++++++++++-------- 1 file changed, 249 insertions(+), 207 deletions(-) diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index d4fdc1d0dd005..3e79d019cedf5 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -1,41 +1,41 @@ # name: TestFeatureFlagMatcher.test_coercion_of_booleans_with_is_not_operator ' - SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_0", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_2", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_3", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_3", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_4", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_4", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_5", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_5", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_6", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_6", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_7", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_7", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_8" + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_8" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -45,20 +45,20 @@ --- # 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')) + SELECT (NOT ((("posthog_person"."properties" -> 'Organizer Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"' - OR ("posthog_person"."properties" -> 'Organizer Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'))) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb))) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -68,20 +68,20 @@ --- # 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')) + SELECT NOT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0", - NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"' - OR ("posthog_person"."properties" -> 'Distinct Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_2", - NOT (("posthog_person"."properties" -> 'Distinct Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -218,10 +218,10 @@ --- # 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')) + SELECT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -231,9 +231,9 @@ --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.5 ' - SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -243,9 +243,9 @@ --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.6 ' - SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307' + SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -267,9 +267,9 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.1 ' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -293,12 +293,12 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.3 ' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -319,9 +319,9 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.5 ' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -335,12 +335,12 @@ --- # name: TestFeatureFlagMatcher.test_multiple_flags.6 ' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo2' @@ -373,30 +373,30 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_cohorts_and_nested_cohorts.1 ' - SELECT (((("posthog_person"."properties" -> 'number') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') > '100.0' + OR (("posthog_person"."properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'version') > '"1.05"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'version') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('string')) - OR (("posthog_person"."properties" -> 'version') > '1.05' + OR (("posthog_person"."properties" -> 'version') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('number'))) AND "posthog_person"."properties" ? 'version' - AND NOT (("posthog_person"."properties" -> 'version') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'number') < '"31"' + AND NOT (("posthog_person"."properties" -> 'version') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'number') < '"31"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') < '31.0' + OR (("posthog_person"."properties" -> 'number') < '31.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null') - AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('string')) - OR (("posthog_person"."properties" -> 'nested_prop') > '20.0' + OR (("posthog_person"."properties" -> 'nested_prop') > '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('number'))) AND "posthog_person"."properties" ? 'nested_prop' - AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -418,12 +418,12 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.1 ' - SELECT (((("posthog_person"."properties" -> 'number') >= '"20"' + SELECT (((("posthog_person"."properties" -> 'number') >= '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') >= '20.0' + OR (("posthog_person"."properties" -> 'number') >= '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -433,12 +433,12 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.2 ' - SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"' + SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('string')) - OR (("posthog_group"."group_properties" -> 'number') > '100.0' + OR (("posthog_group"."group_properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('number'))) AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -447,9 +447,9 @@ --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.3 ' - SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"' + SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"'::jsonb AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo-project' @@ -458,17 +458,17 @@ --- # name: TestFeatureFlagMatcher.test_super_condition_matches_string ' - SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true' - OR ("posthog_person"."properties" -> 'is_enabled') = '"true"') + SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true'::jsonb + OR ("posthog_person"."properties" -> 'is_enabled') = '"true"'::jsonb) AND "posthog_person"."properties" ? 'is_enabled' - AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null')) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", - (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_1", - (true) AS "flag_X_condition_2" + AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null'::jsonb)) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", + (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_1", + (true) AS "flag_X_condition_2" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' @@ -583,34 +583,34 @@ --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.3 ' - SELECT (((("posthog_person"."properties" -> 'number space') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number space') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('string')) - OR (("posthog_person"."properties" -> 'number space') > '100.0' + OR (("posthog_person"."properties" -> 'number space') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('number'))) AND "posthog_person"."properties" ? 'number space' - AND NOT (("posthog_person"."properties" -> 'number space') = 'null') + AND NOT (("posthog_person"."properties" -> 'number space') = 'null'::jsonb) AND ((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_0", (((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_1", - (((("posthog_person"."properties" -> 'version!!!') > '"1.05"' + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_1", + (((("posthog_person"."properties" -> 'version!!!') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('string')) - OR (("posthog_person"."properties" -> 'version!!!') > '1.05' + OR (("posthog_person"."properties" -> 'version!!!') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('number'))) AND "posthog_person"."properties" ? 'version!!!' - AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null')) AS "flag_X_condition_2", - ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"' - OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21') + AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null'::jsonb)) AS "flag_X_condition_2", + ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"'::jsonb + OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21'::jsonb) AND "posthog_person"."properties" ? 'nested_prop --random #comment //test' - AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -619,20 +619,103 @@ ' --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.10 + ' + WITH target_person_ids AS + (SELECT team_id, + person_id + FROM posthog_persondistinctid + WHERE team_id = 2 + AND distinct_id = ANY('{other_id,example_id}') ), + existing_overrides AS + (SELECT team_id, + person_id, + feature_flag_key, + hash_key + FROM posthog_featureflaghashkeyoverride + WHERE team_id = 2 + AND person_id IN + (SELECT person_id + FROM target_person_ids) ), + flags_to_override AS + (SELECT key + FROM posthog_featureflag + WHERE team_id = 2 + AND ensure_experience_continuity = TRUE + AND active = TRUE + AND deleted = FALSE + AND key NOT IN + (SELECT feature_flag_key + FROM existing_overrides) ) + INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) + SELECT team_id, + person_id, + key, + 'example_id' + FROM flags_to_override, + target_person_ids + WHERE EXISTS + (SELECT 1 + 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.11 + 'ROLLBACK' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.12 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.13 + ' + + SET LOCAL statement_timeout = 2 + ' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.14 + ' + 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.15 + ' + 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) + ' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.16 + 'COMMIT' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -654,21 +737,26 @@ FROM existing_overrides) ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 + 'COMMIT' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -703,21 +791,35 @@ AND team_id = 2) ON CONFLICT DO NOTHING ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 + 'ROLLBACK' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.9 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 + ' + + SET LOCAL statement_timeout = 2 + ' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.10 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -752,13 +854,19 @@ AND team_id = 2) ON CONFLICT DO NOTHING ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.11 + 'COMMIT' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.12 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.13 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.14 ' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" @@ -768,7 +876,7 @@ AND "posthog_persondistinctid"."team_id" = 2) ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.15 ' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", @@ -782,21 +890,17 @@ 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.16 + 'COMMIT' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.2 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -818,70 +922,26 @@ 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 - FROM posthog_persondistinctid - WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), - existing_overrides AS - (SELECT team_id, - person_id, - feature_flag_key, - hash_key - FROM posthog_featureflaghashkeyoverride - WHERE team_id = 2 - AND person_id IN - (SELECT person_id - FROM target_person_ids) ), - flags_to_override AS - (SELECT key - FROM posthog_featureflag - WHERE team_id = 2 - AND ensure_experience_continuity = TRUE - AND active = TRUE - AND deleted = FALSE - AND key NOT IN - (SELECT feature_flag_key - FROM existing_overrides) ) - INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) - SELECT team_id, - person_id, - key, - 'example_id' - FROM flags_to_override, - target_person_ids - WHERE EXISTS - (SELECT 1 - FROM posthog_person - WHERE id = person_id - AND team_id = 2) ON CONFLICT DO NOTHING - ' + 'COMMIT' --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.4 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 ' SET LOCAL statement_timeout = 2 ' --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.6 ' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -916,33 +976,15 @@ 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) - ' + 'ROLLBACK' --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.8 + 'BEGIN' +--- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.9 ' - 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) + + SET LOCAL statement_timeout = 2 ' --- From 8d44eeab067fc791d58fda24e99c4d418130a81c Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 13 Feb 2024 10:16:57 +0100 Subject: [PATCH 22/45] Update deps --- mypy-baseline.txt | 6 +++--- requirements-dev.in | 1 + requirements-dev.txt | 8 ++++++-- requirements.in | 2 +- requirements.txt | 7 +++++-- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index 5976a1cc73bd2..f0863393413f9 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -366,9 +366,6 @@ posthog/hogql/query.py:0: error: "SelectQuery" has no attribute "select_queries" posthog/hogql/query.py:0: error: Subclass of "SelectQuery" and "SelectUnionQuery" cannot exist: would have incompatible method signatures [unreachable] 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/hogql_queries/insights/funnels/base.py:0: error: Incompatible types in assignment (expression has type "FunnelExclusionEventsNode | FunnelExclusionActionsNode", variable has type "EventsNode | ActionsNode") [assignment] -posthog/hogql_queries/insights/funnels/base.py:0: error: Item "EventsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] -posthog/hogql_queries/insights/funnels/base.py:0: error: Item "ActionsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] posthog/hogql_queries/sessions_timeline_query_runner.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_histogram_bin_count" [union-attr] @@ -403,6 +400,9 @@ posthog/hogql_queries/events_query_runner.py:0: error: Statement is unreachable posthog/hogql/metadata.py:0: error: Argument "metadata_source" to "translate_hogql" has incompatible type "SelectQuery | SelectUnionQuery"; expected "SelectQuery | None" [arg-type] 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/funnels/base.py:0: error: Incompatible types in assignment (expression has type "FunnelExclusionEventsNode | FunnelExclusionActionsNode", variable has type "EventsNode | ActionsNode") [assignment] +posthog/hogql_queries/insights/funnels/base.py:0: error: Item "EventsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] +posthog/hogql_queries/insights/funnels/base.py:0: error: Item "ActionsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] 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] diff --git a/requirements-dev.in b/requirements-dev.in index daa1a9b4ee4fe..0c026b19218f0 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -32,6 +32,7 @@ types-pytz==2023.3 types-redis==4.3.20 types-retry==0.9.9.4 types-requests==2.26.1 +types-tzlocal~=5.1.0.1 parameterized==0.9.0 pytest==7.4.4 pytest-asyncio==0.21.1 diff --git a/requirements-dev.txt b/requirements-dev.txt index dd53686e2dabc..58529a8bb6cdf 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -49,7 +49,7 @@ coverage[toml]==5.5 # pytest-cov datamodel-code-generator==0.25.2 # via -r requirements-dev.in -django==4.2.8 +django==4.2.10 # via # -c requirements.txt # django-stubs @@ -237,7 +237,9 @@ types-markdown==3.3.9 types-python-dateutil==2.8.3 # via -r requirements-dev.in types-pytz==2023.3.0.0 - # via -r requirements-dev.in + # via + # -r requirements-dev.in + # types-tzlocal types-pyyaml==6.0.1 # via # -r requirements-dev.in @@ -248,6 +250,8 @@ types-requests==2.26.1 # via -r requirements-dev.in types-retry==0.9.9.4 # via -r requirements-dev.in +types-tzlocal==5.1.0.1 + # via -r requirements-dev.in typing-extensions==4.7.1 # via # -c requirements.txt diff --git a/requirements.in b/requirements.in index 67edc1563863f..81f8eb8b573c8 100644 --- a/requirements.in +++ b/requirements.in @@ -19,7 +19,7 @@ clickhouse-pool==0.5.3 cryptography==37.0.2 defusedxml==0.6.0 dj-database-url==0.5.0 -Django~=4.2.8 +Django~=4.2.10 django-axes==5.9.0 django-cors-headers==3.5.0 django-deprecate-fields==0.1.1 diff --git a/requirements.txt b/requirements.txt index 1f3c200a4f768..7cfc3744b0c9c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,7 @@ aioboto3==12.0.0 aiobotocore[boto3]==2.7.0 # via # aioboto3 + # aiobotocore # s3fs aiohttp==3.9.0 # via @@ -146,7 +147,7 @@ distro==1.9.0 # via openai dj-database-url==0.5.0 # via -r requirements.in -django==4.2.8 +django==4.2.10 # via # -r requirements.in # django-axes @@ -250,8 +251,9 @@ gitpython==3.1.40 # via dlt giturlparse==0.12.0 # via dlt -google-api-core[grpc]==2.11.1 +google-api-core[grpc]==2.12.0 # via + # google-api-core # google-cloud-bigquery # google-cloud-core google-auth==2.22.0 @@ -681,6 +683,7 @@ urllib3[secure,socks]==1.26.18 # selenium # sentry-sdk # snowflake-connector-python + # urllib3 urllib3-secure-extra==0.1.0 # via urllib3 vine==5.0.0 From 2dfa67c362a5557a02ffb6b5e6996e97d8006ec6 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:22:23 +0000 Subject: [PATCH 23/45] Update query snapshots --- .../test_organization_resource_access.ambr | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index c0b2e17d3eae1..dc581365f584d 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.1 @@ -51,7 +51,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.10 @@ -75,7 +75,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.11 @@ -84,7 +84,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.12 @@ -98,14 +98,14 @@ FROM "posthog_organizationmembership" 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'*/ + LIMIT 21 ''' # --- # 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'*/ + WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.14 @@ -119,7 +119,7 @@ "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'*/ + LIMIT 100 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.2 @@ -143,7 +143,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.3 @@ -152,7 +152,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.4 @@ -166,7 +166,7 @@ FROM "posthog_organizationmembership" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.5 @@ -177,14 +177,14 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # 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'*/ + WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.7 @@ -198,7 +198,7 @@ "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'*/ + LIMIT 100 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.8 @@ -229,7 +229,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.9 @@ -253,6 +253,6 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- From 89e0728030a18d88c0ad0ebe8890159a5320f765 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:26:45 +0000 Subject: [PATCH 24/45] Update query snapshots --- .../api/test/__snapshots__/test_survey.ambr | 4 +- .../__snapshots__/test_dashboard.ambr | 894 +++++++++--------- .../__snapshots__/test_notebook.ambr | 36 +- 3 files changed, 467 insertions(+), 467 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_survey.ambr b/posthog/api/test/__snapshots__/test_survey.ambr index 41c085776554e..e1a0837d20797 100644 --- a/posthog/api/test/__snapshots__/test_survey.ambr +++ b/posthog/api/test/__snapshots__/test_survey.ambr @@ -158,7 +158,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSurveysAPIList.test_list_surveys.6 @@ -213,6 +213,6 @@ LEFT OUTER JOIN "posthog_featureflag" ON ("posthog_survey"."linked_flag_id" = "posthog_featureflag"."id") 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'*/ + AND NOT ("posthog_survey"."archived")) ''' # --- diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 27dc42ed1593d..1bea619e13d8c 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.1 @@ -79,7 +79,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.10 @@ -90,7 +90,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.11 @@ -117,7 +117,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.12 @@ -125,7 +125,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13 @@ -156,7 +156,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.14 @@ -208,7 +208,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15 @@ -238,7 +238,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.16 @@ -262,7 +262,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17 @@ -384,7 +384,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18 @@ -406,7 +406,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19 @@ -424,7 +424,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.2 @@ -454,7 +454,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.20 @@ -627,7 +627,7 @@ 3, 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21 @@ -648,7 +648,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22 @@ -755,7 +755,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23 @@ -780,7 +780,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24 @@ -806,7 +806,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25 @@ -980,7 +980,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26 @@ -1001,7 +1001,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27 @@ -1108,7 +1108,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28 @@ -1133,7 +1133,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29 @@ -1159,7 +1159,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3 @@ -1183,7 +1183,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30 @@ -1205,7 +1205,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31 @@ -1232,7 +1232,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4 @@ -1259,7 +1259,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5 @@ -1318,7 +1318,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.6 @@ -1377,7 +1377,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7 @@ -1401,7 +1401,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.8 @@ -1425,7 +1425,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9 @@ -1446,7 +1446,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1 @@ -1477,7 +1477,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.1 @@ -1529,7 +1529,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.10 @@ -1540,7 +1540,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.11 @@ -1551,7 +1551,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.12 @@ -1562,7 +1562,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.13 @@ -1589,7 +1589,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.14 @@ -1648,7 +1648,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.15 @@ -1707,7 +1707,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.16 @@ -1718,7 +1718,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.17 @@ -1729,7 +1729,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.18 @@ -1740,7 +1740,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.19 @@ -1751,7 +1751,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.2 @@ -1781,7 +1781,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.20 @@ -1792,7 +1792,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.21 @@ -1803,7 +1803,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.22 @@ -1855,7 +1855,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.23 @@ -1873,7 +1873,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.24 @@ -1908,7 +1908,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.25 @@ -1931,7 +1931,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.26 @@ -1990,7 +1990,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.27 @@ -2001,7 +2001,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.28 @@ -2012,7 +2012,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.29 @@ -2023,7 +2023,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.3 @@ -2047,7 +2047,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.30 @@ -2058,7 +2058,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.31 @@ -2069,7 +2069,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.32 @@ -2080,7 +2080,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.33 @@ -2104,7 +2104,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.34 @@ -2128,7 +2128,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.35 @@ -2149,7 +2149,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.36 @@ -2160,7 +2160,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.37 @@ -2171,7 +2171,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.38 @@ -2182,7 +2182,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.39 @@ -2193,7 +2193,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.4 @@ -2245,7 +2245,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.40 @@ -2256,7 +2256,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.41 @@ -2267,7 +2267,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.42 @@ -2278,7 +2278,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.43 @@ -2289,7 +2289,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.44 @@ -2300,7 +2300,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.45 @@ -2311,7 +2311,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.46 @@ -2322,7 +2322,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.47 @@ -2333,7 +2333,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.48 @@ -2344,7 +2344,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.49 @@ -2371,7 +2371,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.5 @@ -2406,7 +2406,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.50 @@ -2437,7 +2437,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.51 @@ -2489,7 +2489,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.52 @@ -2519,7 +2519,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.53 @@ -2543,7 +2543,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.54 @@ -2551,7 +2551,7 @@ 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'*/ + AND "posthog_dashboard"."team_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.55 @@ -2673,7 +2673,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 300 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.56 @@ -2691,7 +2691,7 @@ 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.6 @@ -2750,7 +2750,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.7 @@ -2761,7 +2761,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.8 @@ -2772,7 +2772,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.9 @@ -2783,7 +2783,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles @@ -2814,7 +2814,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.1 @@ -2866,7 +2866,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.10 @@ -2880,7 +2880,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100 @@ -2915,7 +2915,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101 @@ -2974,7 +2974,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102 @@ -2985,7 +2985,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103 @@ -2996,7 +2996,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104 @@ -3007,7 +3007,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105 @@ -3018,7 +3018,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106 @@ -3029,7 +3029,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107 @@ -3040,7 +3040,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108 @@ -3067,7 +3067,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109 @@ -3126,7 +3126,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11 @@ -3294,7 +3294,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110 @@ -3353,7 +3353,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111 @@ -3364,7 +3364,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112 @@ -3375,7 +3375,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113 @@ -3386,7 +3386,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114 @@ -3397,7 +3397,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115 @@ -3408,7 +3408,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116 @@ -3419,7 +3419,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117 @@ -3471,7 +3471,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118 @@ -3489,7 +3489,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119 @@ -3524,7 +3524,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12 @@ -3532,7 +3532,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120 @@ -3555,7 +3555,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121 @@ -3614,7 +3614,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122 @@ -3625,7 +3625,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123 @@ -3636,7 +3636,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124 @@ -3647,7 +3647,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125 @@ -3658,7 +3658,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126 @@ -3669,7 +3669,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127 @@ -3680,7 +3680,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128 @@ -3704,7 +3704,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129 @@ -3728,7 +3728,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13 @@ -3759,7 +3759,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130 @@ -3780,7 +3780,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131 @@ -3791,7 +3791,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132 @@ -3802,7 +3802,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133 @@ -3813,7 +3813,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134 @@ -3824,7 +3824,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135 @@ -3835,7 +3835,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136 @@ -3846,7 +3846,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137 @@ -3857,7 +3857,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138 @@ -3868,7 +3868,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139 @@ -3879,7 +3879,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14 @@ -3931,7 +3931,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140 @@ -3942,7 +3942,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141 @@ -3953,7 +3953,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142 @@ -3964,7 +3964,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143 @@ -3975,7 +3975,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144 @@ -4002,7 +4002,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145 @@ -4010,7 +4010,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146 @@ -4041,7 +4041,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147 @@ -4093,7 +4093,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148 @@ -4123,7 +4123,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149 @@ -4147,7 +4147,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15 @@ -4177,7 +4177,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150 @@ -4229,7 +4229,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151 @@ -4264,7 +4264,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152 @@ -4323,7 +4323,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153 @@ -4334,7 +4334,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154 @@ -4345,7 +4345,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155 @@ -4356,7 +4356,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.156 @@ -4367,7 +4367,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.157 @@ -4378,7 +4378,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.158 @@ -4389,7 +4389,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.159 @@ -4416,7 +4416,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16 @@ -4427,7 +4427,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.160 @@ -4486,7 +4486,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.161 @@ -4545,7 +4545,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.162 @@ -4556,7 +4556,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.163 @@ -4567,7 +4567,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.164 @@ -4578,7 +4578,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.165 @@ -4589,7 +4589,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.166 @@ -4600,7 +4600,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.167 @@ -4611,7 +4611,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.168 @@ -4663,7 +4663,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.169 @@ -4681,7 +4681,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17 @@ -4705,7 +4705,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.170 @@ -4740,7 +4740,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.171 @@ -4763,7 +4763,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.172 @@ -4822,7 +4822,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.173 @@ -4833,7 +4833,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.174 @@ -4844,7 +4844,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.175 @@ -4855,7 +4855,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.176 @@ -4866,7 +4866,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.177 @@ -4877,7 +4877,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.178 @@ -4888,7 +4888,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.179 @@ -4912,7 +4912,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18 @@ -4924,7 +4924,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.180 @@ -4948,7 +4948,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.181 @@ -4969,7 +4969,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.182 @@ -4980,7 +4980,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.183 @@ -4991,7 +4991,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.184 @@ -5002,7 +5002,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.185 @@ -5013,7 +5013,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.186 @@ -5024,7 +5024,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.187 @@ -5035,7 +5035,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.188 @@ -5046,7 +5046,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.189 @@ -5057,7 +5057,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19 @@ -5071,7 +5071,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.190 @@ -5082,7 +5082,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.191 @@ -5093,7 +5093,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.192 @@ -5104,7 +5104,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.193 @@ -5115,7 +5115,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.194 @@ -5126,7 +5126,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.195 @@ -5153,7 +5153,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.196 @@ -5161,7 +5161,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.197 @@ -5192,7 +5192,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.198 @@ -5244,7 +5244,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.199 @@ -5274,7 +5274,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2 @@ -5304,14 +5304,14 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.200 @@ -5335,7 +5335,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.201 @@ -5387,7 +5387,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.202 @@ -5422,7 +5422,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.203 @@ -5481,7 +5481,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.204 @@ -5492,7 +5492,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.205 @@ -5503,7 +5503,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.206 @@ -5514,7 +5514,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.207 @@ -5525,7 +5525,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.208 @@ -5536,7 +5536,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.209 @@ -5547,7 +5547,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21 @@ -5606,7 +5606,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.210 @@ -5633,7 +5633,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.211 @@ -5692,7 +5692,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.212 @@ -5751,7 +5751,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.213 @@ -5762,7 +5762,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.214 @@ -5773,7 +5773,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.215 @@ -5784,7 +5784,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.216 @@ -5795,7 +5795,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.217 @@ -5806,7 +5806,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.218 @@ -5817,7 +5817,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.219 @@ -5869,7 +5869,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22 @@ -5883,7 +5883,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.220 @@ -5901,7 +5901,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.221 @@ -5936,7 +5936,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.222 @@ -5959,7 +5959,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.223 @@ -6018,7 +6018,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.224 @@ -6029,7 +6029,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.225 @@ -6040,7 +6040,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.226 @@ -6051,7 +6051,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.227 @@ -6062,7 +6062,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.228 @@ -6073,7 +6073,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.229 @@ -6084,7 +6084,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23 @@ -6252,7 +6252,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.230 @@ -6276,7 +6276,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.231 @@ -6300,7 +6300,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.232 @@ -6321,7 +6321,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.233 @@ -6332,7 +6332,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.234 @@ -6343,7 +6343,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.235 @@ -6354,7 +6354,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.236 @@ -6365,7 +6365,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.237 @@ -6376,7 +6376,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.238 @@ -6387,7 +6387,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.239 @@ -6398,7 +6398,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24 @@ -6406,7 +6406,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.240 @@ -6417,7 +6417,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.241 @@ -6428,7 +6428,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.242 @@ -6439,7 +6439,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.243 @@ -6450,7 +6450,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.244 @@ -6461,7 +6461,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.245 @@ -6472,7 +6472,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.246 @@ -6499,7 +6499,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.247 @@ -6507,7 +6507,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.248 @@ -6538,7 +6538,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.249 @@ -6590,7 +6590,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25 @@ -6621,7 +6621,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.250 @@ -6651,7 +6651,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.251 @@ -6675,7 +6675,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.252 @@ -6797,7 +6797,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.253 @@ -6819,7 +6819,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.254 @@ -6837,7 +6837,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.255 @@ -7010,7 +7010,7 @@ 3, 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.256 @@ -7031,7 +7031,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.257 @@ -7138,7 +7138,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.258 @@ -7163,7 +7163,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.259 @@ -7189,7 +7189,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26 @@ -7241,7 +7241,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.260 @@ -7415,7 +7415,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.261 @@ -7436,7 +7436,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.262 @@ -7543,7 +7543,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.263 @@ -7568,7 +7568,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.264 @@ -7594,7 +7594,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.265 @@ -7616,7 +7616,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.266 @@ -7627,7 +7627,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.267 @@ -7638,7 +7638,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.268 @@ -7649,7 +7649,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.269 @@ -7660,7 +7660,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27 @@ -7690,7 +7690,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.270 @@ -7701,7 +7701,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.271 @@ -7712,7 +7712,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.272 @@ -7723,7 +7723,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.273 @@ -7734,7 +7734,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.274 @@ -7745,7 +7745,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.275 @@ -7756,7 +7756,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.276 @@ -7767,7 +7767,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.277 @@ -7778,7 +7778,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.278 @@ -7805,7 +7805,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.279 @@ -7816,7 +7816,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28 @@ -7840,7 +7840,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.280 @@ -7851,7 +7851,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.281 @@ -7862,7 +7862,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.282 @@ -7873,7 +7873,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.283 @@ -7884,7 +7884,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.284 @@ -7895,7 +7895,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.285 @@ -7906,7 +7906,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.286 @@ -7917,7 +7917,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.287 @@ -7928,7 +7928,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.288 @@ -7939,7 +7939,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.289 @@ -7950,7 +7950,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29 @@ -7974,7 +7974,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.290 @@ -7985,7 +7985,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.291 @@ -7996,7 +7996,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.292 @@ -8007,7 +8007,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.293 @@ -8018,7 +8018,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.294 @@ -8029,7 +8029,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.295 @@ -8040,7 +8040,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.296 @@ -8051,7 +8051,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.297 @@ -8062,7 +8062,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.298 @@ -8073,7 +8073,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.299 @@ -8084,7 +8084,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.3 @@ -8095,7 +8095,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.30 @@ -8147,7 +8147,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.300 @@ -8158,7 +8158,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.301 @@ -8169,7 +8169,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.302 @@ -8180,7 +8180,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.303 @@ -8191,7 +8191,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.304 @@ -8202,7 +8202,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.305 @@ -8213,7 +8213,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.306 @@ -8224,7 +8224,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.307 @@ -8235,7 +8235,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.308 @@ -8246,7 +8246,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.309 @@ -8257,7 +8257,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31 @@ -8292,7 +8292,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.310 @@ -8303,7 +8303,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.311 @@ -8314,7 +8314,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.312 @@ -8325,7 +8325,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.313 @@ -8336,7 +8336,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.314 @@ -8347,7 +8347,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.315 @@ -8417,7 +8417,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33 @@ -8428,7 +8428,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34 @@ -8439,7 +8439,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.35 @@ -8450,7 +8450,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36 @@ -8461,7 +8461,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37 @@ -8472,7 +8472,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38 @@ -8483,7 +8483,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39 @@ -8510,7 +8510,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.4 @@ -8521,7 +8521,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.40 @@ -8580,7 +8580,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.41 @@ -8639,7 +8639,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.42 @@ -8650,7 +8650,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.43 @@ -8661,7 +8661,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.44 @@ -8672,7 +8672,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.45 @@ -8683,7 +8683,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46 @@ -8694,7 +8694,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47 @@ -8705,7 +8705,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48 @@ -8757,7 +8757,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49 @@ -8775,7 +8775,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5 @@ -8799,7 +8799,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50 @@ -8834,7 +8834,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51 @@ -8857,7 +8857,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52 @@ -8916,7 +8916,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53 @@ -8927,7 +8927,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54 @@ -8938,7 +8938,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55 @@ -8949,7 +8949,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56 @@ -8960,7 +8960,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57 @@ -8971,7 +8971,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58 @@ -8982,7 +8982,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59 @@ -9041,7 +9041,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6 @@ -9053,7 +9053,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60 @@ -9064,7 +9064,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61 @@ -9075,7 +9075,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62 @@ -9086,7 +9086,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63 @@ -9097,7 +9097,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64 @@ -9108,7 +9108,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65 @@ -9119,7 +9119,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66 @@ -9171,7 +9171,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67 @@ -9189,7 +9189,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.68 @@ -9224,7 +9224,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69 @@ -9247,7 +9247,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.7 @@ -9261,7 +9261,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.70 @@ -9320,7 +9320,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.71 @@ -9331,7 +9331,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72 @@ -9342,7 +9342,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73 @@ -9353,7 +9353,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74 @@ -9364,7 +9364,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75 @@ -9375,7 +9375,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76 @@ -9386,7 +9386,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77 @@ -9410,7 +9410,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78 @@ -9434,7 +9434,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79 @@ -9455,14 +9455,14 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80 @@ -9473,7 +9473,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81 @@ -9484,7 +9484,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82 @@ -9495,7 +9495,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83 @@ -9506,7 +9506,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84 @@ -9517,7 +9517,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85 @@ -9528,7 +9528,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86 @@ -9539,7 +9539,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87 @@ -9550,7 +9550,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88 @@ -9561,7 +9561,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89 @@ -9572,7 +9572,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9 @@ -9631,7 +9631,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90 @@ -9642,7 +9642,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91 @@ -9653,7 +9653,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92 @@ -9664,7 +9664,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93 @@ -9691,7 +9691,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94 @@ -9699,7 +9699,7 @@ 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'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95 @@ -9730,7 +9730,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96 @@ -9782,7 +9782,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97 @@ -9812,7 +9812,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98 @@ -9836,7 +9836,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99 @@ -9888,7 +9888,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard @@ -9930,7 +9930,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.10 @@ -10104,7 +10104,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard.2 @@ -10156,7 +10156,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.3 @@ -10186,7 +10186,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard.4 @@ -10197,7 +10197,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_retrieve_dashboard.5 @@ -10221,7 +10221,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.6 @@ -10343,7 +10343,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.7 @@ -10365,7 +10365,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard.8 @@ -10383,7 +10383,7 @@ 2, 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard.9 @@ -10556,7 +10556,7 @@ 3, 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard_list @@ -10587,7 +10587,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.1 @@ -10639,7 +10639,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.10 @@ -10653,7 +10653,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.11 @@ -10821,7 +10821,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.12 @@ -10829,7 +10829,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.13 @@ -10860,7 +10860,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.14 @@ -10912,7 +10912,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.15 @@ -10942,7 +10942,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.16 @@ -10953,7 +10953,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.17 @@ -10977,7 +10977,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.18 @@ -10989,7 +10989,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.19 @@ -11003,7 +11003,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.2 @@ -11033,14 +11033,14 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.21 @@ -11099,7 +11099,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.22 @@ -11113,7 +11113,7 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.23 @@ -11281,7 +11281,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.24 @@ -11289,7 +11289,7 @@ 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.25 @@ -11320,7 +11320,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.26 @@ -11372,7 +11372,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.27 @@ -11402,7 +11402,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.28 @@ -11426,7 +11426,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.29 @@ -11434,7 +11434,7 @@ 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'*/ + AND "posthog_dashboard"."team_id" = 2) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.3 @@ -11445,7 +11445,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.30 @@ -11567,7 +11567,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") 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'*/ + LIMIT 100 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.31 @@ -11589,7 +11589,7 @@ 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.32 @@ -11607,7 +11607,7 @@ 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'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.4 @@ -11618,7 +11618,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.5 @@ -11642,7 +11642,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.6 @@ -11654,7 +11654,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.7 @@ -11668,14 +11668,14 @@ "posthog_sharingconfiguration"."enabled", "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'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # 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'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.9 @@ -11734,6 +11734,6 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index 06afc291a7d65..cb777ba49ce4e 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.1 @@ -79,7 +79,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.10 @@ -100,7 +100,7 @@ WHERE "posthog_notebook"."id" = '00000000-0000-0000-0000-000000000000'::uuid 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'*/ + UPDATE ''' # --- # name: TestNotebooks.test_updates_notebook.11 @@ -132,7 +132,7 @@ "posthog_user"."events_column_config" 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'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.12 @@ -163,7 +163,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.13 @@ -215,7 +215,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.14 @@ -245,7 +245,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestNotebooks.test_updates_notebook.15 @@ -256,7 +256,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestNotebooks.test_updates_notebook.16 @@ -264,7 +264,7 @@ 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'*/ + AND "posthog_activitylog"."team_id" = 2) ''' # --- # name: TestNotebooks.test_updates_notebook.17 @@ -310,7 +310,7 @@ 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'*/ + LIMIT 2 ''' # --- # name: TestNotebooks.test_updates_notebook.18 @@ -386,7 +386,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestNotebooks.test_updates_notebook.3 @@ -397,7 +397,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestNotebooks.test_updates_notebook.4 @@ -428,7 +428,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.5 @@ -480,7 +480,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.6 @@ -510,7 +510,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestNotebooks.test_updates_notebook.7 @@ -521,7 +521,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestNotebooks.test_updates_notebook.8 @@ -646,7 +646,7 @@ LEFT OUTER JOIN "posthog_user" T4 ON ("posthog_notebook"."last_modified_by_id" = T4."id") 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'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.9 @@ -665,6 +665,6 @@ "posthog_notebook"."last_modified_by_id" 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'*/ + LIMIT 21 ''' # --- From 2b6b6d971461ae74a218a51b563b7b0e8f23503e Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:26:55 +0000 Subject: [PATCH 25/45] Update query snapshots --- .../test/__snapshots__/test_feature_flag.ambr | 35 +- .../test/__snapshots__/test_feature_flag.ambr | 456 ++++++++++-------- 2 files changed, 258 insertions(+), 233 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 45994e5494910..1ee95614db33b 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -1968,8 +1968,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -1998,8 +1997,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -2060,9 +2058,9 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.4 ''' - SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") @@ -2073,15 +2071,12 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.5 ''' - SELECT pg_sleep(1); - WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -2105,8 +2100,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.6 ''' - SELECT pg_sleep(1); - SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" @@ -2117,8 +2110,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.7 ''' - SELECT pg_sleep(1); - SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" @@ -2128,8 +2119,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db ''' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -2142,8 +2131,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.1 ''' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -2156,8 +2143,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.2 ''' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -2170,14 +2155,12 @@ # --- # 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"' + SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index 9e11f87619e76..d06e2b88dac57 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -1,42 +1,42 @@ # 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"') + SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_0", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_2", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_3", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_3", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_4", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_4", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_5", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_5", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_6", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_6", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_7", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_7", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_8" + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_8" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -46,20 +46,20 @@ # --- # 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')) + SELECT (NOT ((("posthog_person"."properties" -> 'Organizer Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"' - OR ("posthog_person"."properties" -> 'Organizer Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'))) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb))) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -69,20 +69,20 @@ # --- # 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')) + SELECT NOT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0", - NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"' - OR ("posthog_person"."properties" -> 'Distinct Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_2", - NOT (("posthog_person"."properties" -> 'Distinct Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -220,10 +220,10 @@ # --- # 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')) + SELECT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -233,9 +233,9 @@ # --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.5 ''' - SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -245,9 +245,9 @@ # --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.6 ''' - SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307' + SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -269,9 +269,9 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.1 ''' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -295,12 +295,12 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.3 ''' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -321,9 +321,9 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.5 ''' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -337,12 +337,12 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.6 ''' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo2' @@ -375,30 +375,30 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_cohorts_and_nested_cohorts.1 ''' - SELECT (((("posthog_person"."properties" -> 'number') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') > '100.0' + OR (("posthog_person"."properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'version') > '"1.05"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'version') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('string')) - OR (("posthog_person"."properties" -> 'version') > '1.05' + OR (("posthog_person"."properties" -> 'version') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('number'))) AND "posthog_person"."properties" ? 'version' - AND NOT (("posthog_person"."properties" -> 'version') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'number') < '"31"' + AND NOT (("posthog_person"."properties" -> 'version') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'number') < '"31"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') < '31.0' + OR (("posthog_person"."properties" -> 'number') < '31.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null') - AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('string')) - OR (("posthog_person"."properties" -> 'nested_prop') > '20.0' + OR (("posthog_person"."properties" -> 'nested_prop') > '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('number'))) AND "posthog_person"."properties" ? 'nested_prop' - AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -420,12 +420,12 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.1 ''' - SELECT (((("posthog_person"."properties" -> 'number') >= '"20"' + SELECT (((("posthog_person"."properties" -> 'number') >= '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') >= '20.0' + OR (("posthog_person"."properties" -> 'number') >= '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -435,12 +435,12 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.2 ''' - SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"' + SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('string')) - OR (("posthog_group"."group_properties" -> 'number') > '100.0' + OR (("posthog_group"."group_properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('number'))) AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -449,9 +449,9 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.3 ''' - SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"' + SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"'::jsonb AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo-project' @@ -460,17 +460,17 @@ # --- # name: TestFeatureFlagMatcher.test_super_condition_matches_string ''' - SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true' - OR ("posthog_person"."properties" -> 'is_enabled') = '"true"') + SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true'::jsonb + OR ("posthog_person"."properties" -> 'is_enabled') = '"true"'::jsonb) AND "posthog_person"."properties" ? 'is_enabled' - AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null')) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", - (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_1", - (true) AS "flag_X_condition_2" + AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null'::jsonb)) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", + (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_1", + (true) AS "flag_X_condition_2" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' @@ -586,34 +586,34 @@ # --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.3 ''' - SELECT (((("posthog_person"."properties" -> 'number space') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number space') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('string')) - OR (("posthog_person"."properties" -> 'number space') > '100.0' + OR (("posthog_person"."properties" -> 'number space') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('number'))) AND "posthog_person"."properties" ? 'number space' - AND NOT (("posthog_person"."properties" -> 'number space') = 'null') + AND NOT (("posthog_person"."properties" -> 'number space') = 'null'::jsonb) AND ((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_0", (((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_1", - (((("posthog_person"."properties" -> 'version!!!') > '"1.05"' + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_1", + (((("posthog_person"."properties" -> 'version!!!') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('string')) - OR (("posthog_person"."properties" -> 'version!!!') > '1.05' + OR (("posthog_person"."properties" -> 'version!!!') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('number'))) AND "posthog_person"."properties" ? 'version!!!' - AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null')) AS "flag_X_condition_2", - ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"' - OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21') + AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null'::jsonb)) AS "flag_X_condition_2", + ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"'::jsonb + OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21'::jsonb) AND "posthog_person"."properties" ? 'nested_prop --random #comment //test' - AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -622,20 +622,103 @@ ''' # --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.10 + ''' + WITH target_person_ids AS + (SELECT team_id, + person_id + FROM posthog_persondistinctid + WHERE team_id = 2 + AND distinct_id = ANY('{other_id,example_id}') ), + existing_overrides AS + (SELECT team_id, + person_id, + feature_flag_key, + hash_key + FROM posthog_featureflaghashkeyoverride + WHERE team_id = 2 + AND person_id IN + (SELECT person_id + FROM target_person_ids) ), + flags_to_override AS + (SELECT key + FROM posthog_featureflag + WHERE team_id = 2 + AND ensure_experience_continuity = TRUE + AND active = TRUE + AND deleted = FALSE + AND key NOT IN + (SELECT feature_flag_key + FROM existing_overrides) ) + INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) + SELECT team_id, + person_id, + key, + 'example_id' + FROM flags_to_override, + target_person_ids + WHERE EXISTS + (SELECT 1 + 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.11 + 'ROLLBACK' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.12 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.13 + ''' + + SET LOCAL statement_timeout = 2 + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.14 + ''' + 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.15 + ''' + 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) + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.16 + 'COMMIT' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -657,21 +740,26 @@ FROM existing_overrides) ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 + 'COMMIT' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -706,21 +794,35 @@ AND team_id = 2) ON CONFLICT DO NOTHING ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 + 'ROLLBACK' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.9 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 + ''' + + SET LOCAL statement_timeout = 2 + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.10 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -755,13 +857,19 @@ AND team_id = 2) ON CONFLICT DO NOTHING ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.11 + 'COMMIT' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.12 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.13 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.14 ''' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" @@ -771,7 +879,7 @@ AND "posthog_persondistinctid"."team_id" = 2) ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.15 ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", @@ -785,21 +893,17 @@ 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.16 + 'COMMIT' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.2 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -821,70 +925,26 @@ 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 - FROM posthog_persondistinctid - WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), - existing_overrides AS - (SELECT team_id, - person_id, - feature_flag_key, - hash_key - FROM posthog_featureflaghashkeyoverride - WHERE team_id = 2 - AND person_id IN - (SELECT person_id - FROM target_person_ids) ), - flags_to_override AS - (SELECT key - FROM posthog_featureflag - WHERE team_id = 2 - AND ensure_experience_continuity = TRUE - AND active = TRUE - AND deleted = FALSE - AND key NOT IN - (SELECT feature_flag_key - FROM existing_overrides) ) - INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) - SELECT team_id, - person_id, - key, - 'example_id' - FROM flags_to_override, - target_person_ids - WHERE EXISTS - (SELECT 1 - FROM posthog_person - WHERE id = person_id - AND team_id = 2) ON CONFLICT DO NOTHING - ''' + 'COMMIT' # --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.4 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.6 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -919,33 +979,15 @@ 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) - ''' + 'ROLLBACK' # --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.8 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.9 ''' - 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) + + SET LOCAL statement_timeout = 2 ''' # --- From 63833af7bbd3178940169acf34132306541e4a24 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:32:06 +0000 Subject: [PATCH 26/45] Update query snapshots --- .../test/__snapshots__/test_filter.ambr | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/posthog/models/filters/test/__snapshots__/test_filter.ambr b/posthog/models/filters/test/__snapshots__/test_filter.ambr index 534870c348300..5dc46f2847f69 100644 --- a/posthog/models/filters/test/__snapshots__/test_filter.ambr +++ b/posthog/models/filters/test/__snapshots__/test_filter.ambr @@ -309,7 +309,7 @@ FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> 'urls')::text) LIKE UPPER('%["abcd"]%') AND "posthog_person"."properties" ? 'urls' - AND NOT (("posthog_person"."properties" -> 'urls') = 'null') + AND NOT (("posthog_person"."properties" -> 'urls') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -328,7 +328,7 @@ 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 NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -338,7 +338,7 @@ 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 NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -346,9 +346,9 @@ ''' SELECT "posthog_person"."uuid" FROM "posthog_person" - WHERE (("posthog_person"."properties" -> '$key') > '["2"]' + WHERE (("posthog_person"."properties" -> '$key') > '["2"]'::jsonb AND "posthog_person"."properties" ? '$key' - AND NOT (("posthog_person"."properties" -> '$key') = 'null') + AND NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -359,7 +359,7 @@ INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'created_at') > '["2m", "3d"]') + AND ("posthog_person"."properties" -> 'created_at') > '["2m", "3d"]'::jsonb) LIMIT 1 ''' # --- @@ -370,7 +370,7 @@ INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'created_at') > '"bazinga"') + AND ("posthog_person"."properties" -> 'created_at') > '"bazinga"'::jsonb) LIMIT 1 ''' # --- @@ -414,21 +414,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"' + WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"'::jsonb AND "posthog_person"."properties" ? 'url' - AND NOT (("posthog_person"."properties" -> 'url') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'url') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ((("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '2' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '2'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - OR (("posthog_person"."properties" -> 'bla') = '3' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)))) + OR (("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) AND "posthog_person"."team_id" = 2) ''' # --- @@ -490,21 +490,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"' + WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"'::jsonb AND "posthog_person"."properties" ? 'url' - AND NOT (("posthog_person"."properties" -> 'url') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'url') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '2' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '2'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '3' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) AND "posthog_person"."team_id" = 2) ''' # --- @@ -638,21 +638,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (NOT (((("posthog_person"."properties" -> 'bla') = '1' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '2' + WHERE (NOT ((("posthog_person"."properties" -> 'bla') = '1'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '2'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) + AND NOT ((("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - AND NOT (((("posthog_person"."properties" -> 'bla') = '3' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '4' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - AND ("posthog_person"."properties" -> 'other') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '4'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) + AND ("posthog_person"."properties" -> 'other') = '1'::jsonb AND "posthog_person"."properties" ? 'other' - AND NOT (("posthog_person"."properties" -> 'other') = 'null') + AND NOT (("posthog_person"."properties" -> 'other') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- From e444658858d536afdb30e412224f114cb65deafe Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 14 Feb 2024 20:49:40 +0100 Subject: [PATCH 27/45] Fix more tests --- posthog/api/test/test_decide.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index ab90187724f79..18063a8066475 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -3625,7 +3625,7 @@ def test_decide_uses_read_replica(self, mock_is_connected): # make sure we have the flags in cache response = self._post_decide(api_version=3) - with self.assertNumQueries(2, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3) # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3802,7 +3802,7 @@ def test_decide_uses_read_replica_for_cohorts_based_flags(self, mock_is_connecte # make sure we have the flags in cache response = self._post_decide(api_version=3) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3, distinct_id="cohort_founder") # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3820,7 +3820,7 @@ def test_decide_uses_read_replica_for_cohorts_based_flags(self, mock_is_connecte }, ) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3, distinct_id="example_id") # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3838,7 +3838,7 @@ def test_decide_uses_read_replica_for_cohorts_based_flags(self, mock_is_connecte }, ) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3, distinct_id="cohort_secondary") # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3931,7 +3931,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): # make sure caches are populated response = self._post_decide() - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" # WHERE ("posthog_persondistinctid"."distinct_id" IN ('example_id') AND "posthog_persondistinctid"."team_id" = 1) @@ -3964,7 +3964,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): ) # new request with hash key overrides but not writes should not go to main database - with self.assertNumQueries(7, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(11, using="replica"), self.assertNumQueries(0, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 # E 2. WITH some CTEs, @@ -4103,7 +4103,7 @@ def test_feature_flags_v3_consistent_flags_with_write_on_hash_key_overrides(self # make sure caches are populated response = self._post_decide(api_version=3) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" # WHERE ("posthog_persondistinctid"."distinct_id" IN ('example_id') AND "posthog_persondistinctid"."team_id" = 1) @@ -4122,7 +4122,7 @@ def test_feature_flags_v3_consistent_flags_with_write_on_hash_key_overrides(self PersonDistinctId.objects.using("default").create(person=person, distinct_id="other_id", team=self.team) # request with hash key overrides and _new_ writes should go to main database - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(8, using="replica"), self.assertNumQueries(9, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 # E 2. WITH some CTEs, @@ -4213,7 +4213,7 @@ def test_feature_flags_v2_with_groups(self, mock_is_connected): version=0, ) - with self.assertNumQueries(2, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_grouptypemapping"."id", -- a.k.a. get group type mappings response = self._post_decide(distinct_id="example_id") @@ -4223,7 +4223,7 @@ def test_feature_flags_v2_with_groups(self, mock_is_connected): ) self.assertFalse(response.json()["errorsWhileComputingFlags"]) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", -- a.k.a get group type mappings @@ -4240,7 +4240,7 @@ def test_feature_flags_v2_with_groups(self, mock_is_connected): ) self.assertFalse(response.json()["errorsWhileComputingFlags"]) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 2. SET LOCAL statement_timeout = 300 # E 3. SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", -- a.k.a get group type mappings @@ -4286,7 +4286,7 @@ def test_site_apps_in_decide_use_replica(self, mock_is_connected): # update caches self._post_decide(api_version=3) - with self.assertNumQueries(2, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3) self.assertEqual(response.status_code, status.HTTP_200_OK) injected = response.json()["siteApps"] From a7ef5df67178f7496b13d727b3e15d99b966db3c Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 20 Mar 2024 13:32:45 +0100 Subject: [PATCH 28/45] Adjust baseline --- mypy-baseline.txt | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index a66d1705a3d62..8523c49fa286e 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -333,11 +333,6 @@ posthog/hogql/query.py:0: error: Incompatible types in assignment (expression ha 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_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/hogql_queries/insights/funnels/base.py:0: error: Incompatible types in assignment (expression has type "FunnelExclusionEventsNode | FunnelExclusionActionsNode", variable has type "EventsNode | ActionsNode") [assignment] -posthog/hogql_queries/insights/funnels/base.py:0: error: Item "EventsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] -posthog/hogql_queries/insights/funnels/base.py:0: error: Item "ActionsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] posthog/hogql/autocomplete.py:0: error: Unused "type: ignore" comment [unused-ignore] posthog/hogql/autocomplete.py:0: error: Unused "type: ignore" comment [unused-ignore] posthog/hogql_queries/sessions_timeline_query_runner.py:0: error: Statement is unreachable [unreachable] @@ -370,9 +365,6 @@ posthog/hogql_queries/events_query_runner.py:0: error: Statement is unreachable posthog/hogql/metadata.py:0: error: Argument "metadata_source" to "translate_hogql" has incompatible type "SelectQuery | SelectUnionQuery"; expected "SelectQuery | None" [arg-type] 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/funnels/base.py:0: error: Incompatible types in assignment (expression has type "FunnelExclusionEventsNode | FunnelExclusionActionsNode", variable has type "EventsNode | ActionsNode") [assignment] -posthog/hogql_queries/insights/funnels/base.py:0: error: Item "EventsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] -posthog/hogql_queries/insights/funnels/base.py:0: error: Item "ActionsNode" of "EventsNode | ActionsNode" has no attribute "funnelFromStep" [union-attr] 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] @@ -658,6 +650,18 @@ posthog/hogql/functions/test/test_cohort.py:0: error: "TestCohort" has no attrib 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] +posthog/api/fields.py:0: error: List item 0 has incompatible type "type[PydanticModelValidator]"; expected "Callable[[dict[str, Any] | list[dict[str, Any]]], None] | ContextValidator[dict[str, Any] | list[dict[str, Any]]]" [list-item] +posthog/api/fields.py:0: note: "PydanticModelValidator" is missing following "ContextValidator" protocol member: +posthog/api/fields.py:0: note: requires_context +posthog/api/fields.py:0: note: Following member(s) of "PydanticModelValidator" have conflicts: +posthog/api/fields.py:0: note: Expected: +posthog/api/fields.py:0: note: def __call__(dict[str, Any] | list[dict[str, Any]], Field[Any, Any, Any, Any], /) -> None +posthog/api/fields.py:0: note: Got: +posthog/api/fields.py:0: note: def __init__(model: Any) -> PydanticModelValidator +posthog/api/fields.py:0: note: Expected: +posthog/api/fields.py:0: note: def __call__(dict[str, Any] | list[dict[str, Any]], Field[Any, Any, Any, Any], /) -> None +posthog/api/fields.py:0: note: Got: +posthog/api/fields.py:0: note: def __init__(model: Any) -> PydanticModelValidator 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/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] @@ -783,6 +787,17 @@ posthog/warehouse/external_data_source/source.py:0: error: Incompatible types in 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/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "FlatPostgresPersonOverridesManager" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "PersonOverrideTuple" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "QueryInputs" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "SerializablePersonOverrideToDelete" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "delete_squashed_person_overrides_from_clickhouse" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "delete_squashed_person_overrides_from_postgres" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "drop_dictionary" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "prepare_dictionary" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "prepare_person_overrides" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "select_persons_to_delete" [attr-defined] +posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "squash_events_partition" [attr-defined] 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] From d8d212b49bd9e765c94a88f13f83c4e865274df0 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 20 Mar 2024 13:33:09 +0100 Subject: [PATCH 29/45] Remove sqlcommenter (should be PostgresQL only anyways) --- posthog/settings/web.py | 1 - requirements.in | 1 - requirements.txt | 2 -- 3 files changed, 4 deletions(-) diff --git a/posthog/settings/web.py b/posthog/settings/web.py index 9d585341027d5..b84f4bd2b69b1 100644 --- a/posthog/settings/web.py +++ b/posthog/settings/web.py @@ -90,7 +90,6 @@ "posthog.health.healthcheck_middleware", "posthog.middleware.ShortCircuitMiddleware", "posthog.middleware.AllowIPMiddleware", - "google.cloud.sqlcommenter.django.middleware.SqlCommenter", "django.contrib.sessions.middleware.SessionMiddleware", "corsheaders.middleware.CorsMiddleware", "django.middleware.common.CommonMiddleware", diff --git a/requirements.in b/requirements.in index 0d01b7e250642..4e7ed8a5fd71f 100644 --- a/requirements.in +++ b/requirements.in @@ -44,7 +44,6 @@ drf-spectacular==0.27.1 gevent==23.9.1 geoip2==4.6.0 google-cloud-bigquery==3.11.4 -google-cloud-sqlcommenter==2.0.0 gunicorn==20.1.0 idna==2.8 importlib-metadata==6.8.0 diff --git a/requirements.txt b/requirements.txt index 247406ec23a74..ba058e757618c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -264,8 +264,6 @@ google-cloud-bigquery==3.11.4 # via -r requirements.in google-cloud-core==2.3.3 # via google-cloud-bigquery -google-cloud-sqlcommenter==2.0.0 - # via -r requirements.in google-crc32c==1.5.0 # via google-resumable-media google-resumable-media==2.5.0 From d24e7f40e511e7b3a0c04ad503aadacff704657f Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Wed, 20 Mar 2024 14:17:43 +0100 Subject: [PATCH 30/45] Fix file --- .../test_squash_person_overrides_workflow.py | 1170 ----------------- 1 file changed, 1170 deletions(-) delete mode 100644 posthog/temporal/tests/test_squash_person_overrides_workflow.py diff --git a/posthog/temporal/tests/test_squash_person_overrides_workflow.py b/posthog/temporal/tests/test_squash_person_overrides_workflow.py deleted file mode 100644 index 7f87db2578a1d..0000000000000 --- a/posthog/temporal/tests/test_squash_person_overrides_workflow.py +++ /dev/null @@ -1,1170 +0,0 @@ -import operator -import random -from collections import defaultdict -from datetime import datetime, timedelta -from typing import Iterator, TypedDict -from uuid import UUID, uuid4 - -import psycopg -import pytest -from django.conf import settings -from freezegun.api import freeze_time -from temporalio.client import Client -from temporalio.testing import ActivityEnvironment -from temporalio.worker import UnsandboxedWorkflowRunner, Worker - -from posthog.clickhouse.client import sync_execute -from posthog.clickhouse.test.test_person_overrides import PersonOverrideValues -from posthog.models.person_overrides.sql import ( - DROP_KAFKA_PERSON_OVERRIDES_TABLE_SQL, - DROP_PERSON_OVERRIDES_CREATE_MATERIALIZED_VIEW_SQL, - KAFKA_PERSON_OVERRIDES_TABLE_SQL, - PERSON_OVERRIDES_CREATE_MATERIALIZED_VIEW_SQL, - PERSON_OVERRIDES_CREATE_TABLE_SQL, -) -from posthog.temporal.batch_exports.squash_person_overrides import ( - FlatPostgresPersonOverridesManager, - PersonOverrideTuple, - QueryInputs, - SerializablePersonOverrideToDelete, - SquashPersonOverridesInputs, - SquashPersonOverridesWorkflow, - delete_squashed_person_overrides_from_clickhouse, - delete_squashed_person_overrides_from_postgres, - drop_dictionary, - prepare_dictionary, - prepare_person_overrides, - select_persons_to_delete, - squash_events_partition, -) - - -@freeze_time("2023-03-14") -@pytest.mark.parametrize( - "inputs,expected", - [ - ( - {"partition_ids": None, "last_n_months": 5}, - ["202303", "202302", "202301", "202212", "202211"], - ), - ({"last_n_months": 1}, ["202303"]), - ( - {"partition_ids": ["202303", "202302"], "last_n_months": 3}, - ["202303", "202302"], - ), - ( - {"partition_ids": ["202303", "202302"], "last_n_months": None}, - ["202303", "202302"], - ), - ], -) -def test_workflow_inputs_yields_partition_ids(inputs, expected): - """Assert partition keys generated by iter_partition_ids.""" - workflow_inputs = SquashPersonOverridesInputs(**inputs) - assert list(workflow_inputs.iter_partition_ids()) == expected - - -@pytest.fixture -def activity_environment(): - """Return a testing temporal ActivityEnvironment.""" - return ActivityEnvironment() - - -@pytest.fixture -def person_overrides_table(): - """Manage person_overrides tables for testing.""" - sync_execute(PERSON_OVERRIDES_CREATE_TABLE_SQL) - sync_execute(KAFKA_PERSON_OVERRIDES_TABLE_SQL) - sync_execute(PERSON_OVERRIDES_CREATE_MATERIALIZED_VIEW_SQL) - sync_execute("TRUNCATE TABLE person_overrides") - - yield - - sync_execute(DROP_KAFKA_PERSON_OVERRIDES_TABLE_SQL) - sync_execute(DROP_PERSON_OVERRIDES_CREATE_MATERIALIZED_VIEW_SQL) - sync_execute("DROP TABLE person_overrides") - - -OVERRIDES_CREATED_AT = datetime.fromisoformat("2020-01-02T00:00:00.123123+00:00") -OLDEST_EVENT_AT = OVERRIDES_CREATED_AT - timedelta(days=1) - - -@pytest.fixture -def person_overrides_data(person_overrides_table): - """Produce some fake person_overrides data for testing. - - We yield a dictionary of team_id to sets of PersonOverrideTuple. These dict can be - used to make assertions on which should be the right person id of an event. - """ - person_overrides = { - # These numbers are all arbitrary. - 100: {PersonOverrideTuple(uuid4(), uuid4()) for _ in range(5)}, - 200: {PersonOverrideTuple(uuid4(), uuid4()) for _ in range(4)}, - 300: {PersonOverrideTuple(uuid4(), uuid4()) for _ in range(3)}, - } - - all_test_values = [] - - for team_id, person_ids in person_overrides.items(): - for old_person_id, override_person_id in person_ids: - values: PersonOverrideValues = { - "team_id": team_id, - "old_person_id": old_person_id, - "override_person_id": override_person_id, - "merged_at": OVERRIDES_CREATED_AT, - "oldest_event": OLDEST_EVENT_AT, - "created_at": OVERRIDES_CREATED_AT, - "version": 1, - } - all_test_values.append(values) - - sync_execute("INSERT INTO person_overrides (*) VALUES", all_test_values) - - yield person_overrides - - sync_execute("TRUNCATE TABLE person_overrides") - - -@pytest.fixture -def query_inputs(): - """A default set of QueryInputs to use in all tests.""" - return QueryInputs() - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_prepare_dictionary(query_inputs, activity_environment, person_overrides_data): - """Test a DICTIONARY is created by the prepare_dictionary activity.""" - query_inputs.dictionary_name = "fancy_dictionary" - query_inputs.dry_run = False - - latest_merge_at = await activity_environment.run(prepare_dictionary, query_inputs) - - assert latest_merge_at == OVERRIDES_CREATED_AT.isoformat() - - for team_id, person_overrides in person_overrides_data.items(): - for person_override in person_overrides: - result = sync_execute( - f""" - SELECT - old_person_id, - dictGet( - '{settings.CLICKHOUSE_DATABASE}.fancy_dictionary', - 'override_person_id', - (toInt32(team_id), old_person_id) - ) AS override_person_id - FROM ( - SELECT - {team_id} AS team_id, - '{person_override.old_person_id}'::UUID AS old_person_id - ) - """ - ) - - assert result[0][0] == person_override.old_person_id - assert result[0][1] == person_override.override_person_id - - await activity_environment.run(drop_dictionary, query_inputs) - - -@pytest.fixture -def older_overrides(person_overrides_data): - """Generate extra test data that is in an older partition.""" - older_overrides = defaultdict(set) - - older_values_to_insert = [] - for team_id, person_override in person_overrides_data.items(): - for old_person_id, override_person_id in person_override: - override_person_id = uuid4() - values: PersonOverrideValues = { - "team_id": team_id, - "old_person_id": old_person_id, - "override_person_id": override_person_id, - "merged_at": datetime.fromisoformat("2019-12-01T00:00:00+00:00"), - "oldest_event": datetime.fromisoformat("2019-12-01T00:00:00+00:00"), - "created_at": datetime.fromisoformat("2019-12-01T00:00:00+00:00"), - "version": 1, - } - - older_overrides[team_id].add(PersonOverrideTuple(old_person_id, override_person_id)) - older_values_to_insert.append(values) - - sync_execute("INSERT INTO person_overrides (*) VALUES", older_values_to_insert) - - yield older_overrides - - -@pytest.fixture -def newer_overrides(person_overrides_data): - """Generate extra test data that is in a newer partition.""" - newer_overrides = defaultdict(set) - - newer_values_to_insert = [] - for team_id, person_override in person_overrides_data.items(): - for old_person_id, override_person_id in person_override: - override_person_id = uuid4() - values: PersonOverrideValues = { - "team_id": team_id, - "old_person_id": old_person_id, - "override_person_id": override_person_id, - "merged_at": datetime.fromisoformat("2020-02-02T00:00:00+00:00"), - "oldest_event": datetime.fromisoformat("2020-02-01T00:00:00+00:00"), - "created_at": datetime.fromisoformat("2020-02-01T00:00:00+00:00"), - "version": 1, - } - - newer_overrides[team_id].add(PersonOverrideTuple(old_person_id, override_person_id)) - newer_values_to_insert.append(values) - - sync_execute("INSERT INTO person_overrides (*) VALUES", newer_values_to_insert) - - yield newer_overrides - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_prepare_dictionary_with_older_overrides_present( - query_inputs, activity_environment, person_overrides_data, older_overrides -): - """Test a DICTIONARY contains latest available mappings.""" - query_inputs.dictionary_name = "fancy_dictionary" - query_inputs.dry_run = False - - latest_merge_at = await activity_environment.run(prepare_dictionary, query_inputs) - - assert latest_merge_at == OVERRIDES_CREATED_AT.isoformat() - - for team_id, person_overrides in person_overrides_data.items(): - for person_override in person_overrides: - result = sync_execute( - f""" - SELECT - old_person_id, - dictGet( - {settings.CLICKHOUSE_DATABASE}.fancy_dictionary, - 'override_person_id', - (toInt32(team_id), old_person_id) - ) AS override_person_id - FROM ( - SELECT - {team_id} AS team_id, - '{person_override.old_person_id}'::UUID AS old_person_id - ) - """ - ) - - assert len(result) == 1 - assert result[0][0] == person_override.old_person_id - assert result[0][1] == person_override.override_person_id - - await activity_environment.run(drop_dictionary, query_inputs) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_drop_dictionary(query_inputs, activity_environment, person_overrides_data): - """Test a DICTIONARY is dropped by drop_join_table activity.""" - query_inputs.dictionary_name = "distinguished_dictionary" - query_inputs.dry_run = False - - # Ensure we are starting from scratch - sync_execute(f"DROP DICTIONARY IF EXISTS {settings.CLICKHOUSE_DATABASE}.{query_inputs.dictionary_name}") - before = sync_execute(f"EXISTS DICTIONARY {settings.CLICKHOUSE_DATABASE}.{query_inputs.dictionary_name}")[0][0] - assert before == 0 - - await activity_environment.run(prepare_dictionary, query_inputs) - - during = sync_execute(f"EXISTS DICTIONARY {settings.CLICKHOUSE_DATABASE}.{query_inputs.dictionary_name}")[0][0] - assert during == 1 - - await activity_environment.run(drop_dictionary, query_inputs) - - after = sync_execute(f"EXISTS DICTIONARY {settings.CLICKHOUSE_DATABASE}.{query_inputs.dictionary_name}")[0][0] - assert after == 0 - - -get_team_id_old_person_id = operator.attrgetter("team_id", "old_person_id") - - -def is_equal_sorted(list_left, list_right, key=get_team_id_old_person_id) -> bool: - """Compare two lists sorted by key are equal. - - Useful when we don't care about order. - """ - return sorted(list_left, key=key) == sorted(list_right, key=key) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_select_persons_to_delete(query_inputs, activity_environment, person_overrides_data): - """Test selecting the correct dictionary of persons to delete. - - The select_persons_to_delete activity produces a dictionary of team_id to sets of - old_person_id that will be overriden during the workflow and can be safely deleted - afterwards. - """ - query_inputs.dry_run = False - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - - to_delete = await activity_environment.run(select_persons_to_delete, query_inputs) - - expected = [ - SerializablePersonOverrideToDelete( - team_id, - person_override.old_person_id, - person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - for team_id, person_overrides in person_overrides_data.items() - for person_override in person_overrides - ] - - assert is_equal_sorted(to_delete, expected) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_select_persons_to_delete_selects_persons_in_older_partitions( - query_inputs, activity_environment, person_overrides_data, older_overrides -): - """Test all (new and old) persons to delete are selected when older overrides exist. - - This is because if we are processing a newer override in the current workflow, there is - no reason to keep an older mapping for the same old_person_id around. The squash query - will prefer newer mappings, so the older ones do nothing and can cause troubles if left - uncleaned. - """ - query_inputs.dry_run = False - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - - to_delete = await activity_environment.run(select_persons_to_delete, query_inputs) - - expected = [ - SerializablePersonOverrideToDelete( - team_id, - person_override.old_person_id, - person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - for team_id, person_overrides in person_overrides_data.items() - for person_override in person_overrides - ] - - expected.extend( - [ - SerializablePersonOverrideToDelete( - team_id, - person_override.old_person_id, - person_override.override_person_id, - "2019-12-01T00:00:00+00:00", - 1, - "2019-12-01T00:00:00+00:00", - ) - for team_id, person_overrides in older_overrides.items() - for person_override in person_overrides - ] - ) - - assert is_equal_sorted(to_delete, expected) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_select_persons_to_squash_with_empty_table(query_inputs, activity_environment, person_overrides_table): - """Test nothing is selected to override when there are no person_overrides. - - If there are no person_overrides rows, then there is no work for us to do. - """ - sync_execute(PERSON_OVERRIDES_CREATE_TABLE_SQL) - - query_inputs.dry_run = False - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - - to_delete = await activity_environment.run(select_persons_to_delete, query_inputs) - - assert to_delete == [] - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_select_persons_to_squash_with_different_partition( - query_inputs, activity_environment, person_overrides_table -): - """Test nothing is selected to override when there is no data in a partition. - - If there are no person_overrides rows, then there is no work for us to do. - """ - sync_execute(PERSON_OVERRIDES_CREATE_TABLE_SQL) - - query_inputs.dry_run = False - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - - to_delete = await activity_environment.run(select_persons_to_delete, query_inputs) - - assert to_delete == [] - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_select_persons_to_delete_with_newer_merges(query_inputs, activity_environment, person_overrides_data): - """Test selecting the correct persons to delete when we got new merges after starting. - - The select_persons_to_delete activity produces a dictionary of team_id to sets of - old_person_id that will be overriden during the workflow and can be safely deleted - afterwards. - """ - newer_overrides = defaultdict(set) - - newer_values_to_insert = [] - for team_id, person_override in person_overrides_data.items(): - for old_person_id, override_person_id in person_override: - override_person_id = uuid4() - values: PersonOverrideValues = { - "team_id": team_id, - # Overrides for the same people - "old_person_id": old_person_id, - "override_person_id": override_person_id, - # But happened an hour after - "merged_at": OVERRIDES_CREATED_AT + timedelta(hours=1), - "oldest_event": OLDEST_EVENT_AT + timedelta(hours=1), - "created_at": OVERRIDES_CREATED_AT + timedelta(hours=1), - "version": 1, - } - - newer_overrides[team_id].add(PersonOverrideTuple(old_person_id, override_person_id)) - newer_values_to_insert.append(values) - - sync_execute("INSERT INTO person_overrides (*) VALUES", newer_values_to_insert) - - query_inputs.dry_run = False - query_inputs.partition_ids = ["202001"] - # Our latest_created_at is before the newer values happened - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - - to_delete = await activity_environment.run(select_persons_to_delete, query_inputs) - - expected = [ - SerializablePersonOverrideToDelete( - team_id, - person_override.old_person_id, - person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - for team_id, person_overrides in person_overrides_data.items() - for person_override in person_overrides - ] - - assert is_equal_sorted(to_delete, expected) - - -class EventValues(TypedDict): - """Events to be inserted for testing.""" - - uuid: UUID - event: str - timestamp: datetime - person_id: str - team_id: int - - -@pytest.fixture -def events_to_override(person_overrides_data): - """Produce some test events for testing. - - These events will be yielded so that we can re-fetch them and assert their - person_ids have been overriden. - """ - all_test_events = [] - for team_id, person_ids in person_overrides_data.items(): - for old_person_id, _ in person_ids: - values: EventValues = { - "uuid": uuid4(), - "event": "test-event", - "timestamp": OLDEST_EVENT_AT, - "team_id": team_id, - "person_id": old_person_id, - } - all_test_events.append(values) - - sync_execute( - "INSERT INTO sharded_events (uuid, event, timestamp, team_id, person_id) VALUES", - all_test_events, - ) - - yield all_test_events - - sync_execute("TRUNCATE TABLE sharded_events") - - -def assert_events_have_been_overriden(overriden_events, person_overrides): - """Assert each event in overriden_events has actually been overriden. - - We use person_overrides to assert the person_id of each event now matches the - overriden_person_id. - """ - for event in overriden_events: - rows = sync_execute( - "SELECT uuid, event, team_id, person_id FROM events WHERE uuid = %(uuid)s", - {"uuid": event["uuid"]}, - ) - new_event = { - "uuid": rows[0][0], - "event": rows[0][1], - "team_id": rows[0][2], - "person_id": rows[0][3], - } - - assert event["uuid"] == new_event["uuid"] # Sanity check - assert event["team_id"] == new_event["team_id"] # Sanity check - assert event["person_id"] != new_event["person_id"] - - # If all is well, we should have overriden old_person_id with an override_person_id. - # Let's find it first: - new_person_id = [ - person_override.override_person_id - for person_override in person_overrides[new_event["team_id"]] - if person_override.old_person_id == event["person_id"] - ][0] - assert new_event["person_id"] == new_person_id - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_events_partition(query_inputs, activity_environment, person_overrides_data, events_to_override): - """Test events are properly squashed by running squash_events_partition. - - After running squash_events_partition, we iterate over the test events created by - events_to_override and check the person_id associated with each of them. It should - match the override_person_id associated with the old_person_id they used to be set to. - """ - query_inputs.dictionary_name = "exciting_dictionary" - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - query_inputs.dry_run = False - - await activity_environment.run(prepare_dictionary, query_inputs) - - await activity_environment.run(squash_events_partition, query_inputs) - - await activity_environment.run(drop_dictionary, query_inputs) - - assert_events_have_been_overriden(events_to_override, person_overrides_data) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_events_partition_dry_run( - query_inputs, activity_environment, person_overrides_data, events_to_override -): - """Test events are not squashed by running squash_events_partition with dry_run=True.""" - query_inputs.dictionary_name = "exciting_dictionary" - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - - await activity_environment.run(prepare_dictionary, query_inputs) - - await activity_environment.run(squash_events_partition, query_inputs) - - await activity_environment.run(drop_dictionary, query_inputs) - - for event in events_to_override: - rows = sync_execute( - "SELECT uuid, event, team_id, person_id FROM events WHERE uuid = %(uuid)s", - {"uuid": event["uuid"]}, - ) - new_event = { - "uuid": rows[0][0], - "event": rows[0][1], - "team_id": rows[0][2], - "person_id": rows[0][3], - } - - assert event["uuid"] == new_event["uuid"] # Sanity check - assert event["team_id"] == new_event["team_id"] # Sanity check - assert event["person_id"] == new_event["person_id"] - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_events_partition_with_older_overrides( - query_inputs, - activity_environment, - person_overrides_data, - events_to_override, - older_overrides, -): - """Test events are properly squashed even in the prescence of older overrides. - - If we get an override from Postgres we can be sure it's the only one for a given - old_person_id as PG constraints enforce uniqueness on the mapping. However, ClickHouse - doesn't enforce any kind of uniqueness constraints, so our queries need to be aware there - could be duplicate overrides present, either in the partition we are currently working - with as well as older ones. - """ - query_inputs.dictionary_name = "exciting_dictionary" - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - query_inputs.dry_run = False - - await activity_environment.run(prepare_dictionary, query_inputs) - - await activity_environment.run(squash_events_partition, query_inputs) - - await activity_environment.run(drop_dictionary, query_inputs) - - assert_events_have_been_overriden(events_to_override, person_overrides_data) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_events_partition_with_newer_overrides( - query_inputs, - activity_environment, - person_overrides_data, - events_to_override, - newer_overrides, -): - """Test events are properly squashed even in the prescence of newer overrides. - - If we get an override from Postgres we can get be sure it's the only one for a given - old_person_id as PG constraints enforce uniqueness on the mapping. However, ClickHouse - doesn't enforce any kind of uniqueness constraints, so our queries need to be aware there - could be duplicate overrides present, either in the partition we are currently working - with as well as newer ones. - """ - query_inputs.dictionary_name = "exciting_dictionary" - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - query_inputs.dry_run = False - - await activity_environment.run(prepare_dictionary, query_inputs) - - await activity_environment.run(squash_events_partition, query_inputs) - - await activity_environment.run(drop_dictionary, query_inputs) - - assert_events_have_been_overriden(events_to_override, newer_overrides) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_events_partition_with_limited_team_ids( - query_inputs, activity_environment, person_overrides_data, events_to_override -): - """Test events are properly squashed when we specify team_ids.""" - dictionary_name = "exciting_limited_dictionary" - random_team = random.choice(list(person_overrides_data.keys())) - query_inputs.dictionary_name = dictionary_name - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - query_inputs.dry_run = False - query_inputs.team_ids = [random_team] - - latest_created_at = await activity_environment.run(prepare_dictionary, query_inputs) - query_inputs._latest_created_at = latest_created_at - - await activity_environment.run(squash_events_partition, query_inputs) - - await activity_environment.run(drop_dictionary, query_inputs) - - with pytest.raises(AssertionError): - # Some checks will fail as we have limited the teams overriden. - assert_events_have_been_overriden(events_to_override, person_overrides_data) - - # But if we only check the limited teams, there shouldn't be any issues. - limited_events = [event for event in events_to_override if event["team_id"] == random_team] - assert_events_have_been_overriden(limited_events, person_overrides_data) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_delete_squashed_person_overrides_from_clickhouse( - query_inputs, activity_environment, person_overrides_data -): - """Test we can delete person overrides that have already been squashed. - - For the purposes of this unit test, we take the person overrides as given. A - comprehensive test will cover the entire worflow end-to-end. - - We insert an extra person to ensure we are not deleting persons we shouldn't - delete. - """ - persons_to_delete = [ - SerializablePersonOverrideToDelete( - team_id, - person_override.old_person_id, - person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - for team_id, person_overrides in person_overrides_data.items() - for person_override in person_overrides - ] - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - query_inputs.dry_run = False - query_inputs.person_overrides_to_delete = persons_to_delete - - not_overriden_id = uuid4() - not_overriden_person: PersonOverrideValues = { - "team_id": 1, - "old_person_id": not_overriden_id, - "override_person_id": uuid4(), - "merged_at": OVERRIDES_CREATED_AT, - "oldest_event": OLDEST_EVENT_AT, - "created_at": OVERRIDES_CREATED_AT, - "version": 1, - } - - sync_execute("INSERT INTO person_overrides (*) VALUES", [not_overriden_person]) - - await activity_environment.run(delete_squashed_person_overrides_from_clickhouse, query_inputs) - - rows = sync_execute("SELECT team_id, old_person_id FROM person_overrides") - - assert len(rows) == 1 - assert rows[0][0] == 1 - assert rows[0][1] == not_overriden_id - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_delete_squashed_person_overrides_from_clickhouse_dry_run( - query_inputs, activity_environment, person_overrides_data -): - """Test we do not delete person overrides when dry_run=True.""" - persons_to_delete = [ - SerializablePersonOverrideToDelete( - team_id, - person_override.old_person_id, - person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - for team_id, person_overrides in person_overrides_data.items() - for person_override in person_overrides - ] - query_inputs.partition_ids = ["202001"] - query_inputs.latest_created_at = OVERRIDES_CREATED_AT - query_inputs.dry_run = True - query_inputs.person_overrides_to_delete = persons_to_delete - - not_overriden_id = uuid4() - not_overriden_person: PersonOverrideValues = { - "team_id": 1, - "old_person_id": not_overriden_id, - "override_person_id": uuid4(), - "merged_at": OVERRIDES_CREATED_AT, - "oldest_event": OLDEST_EVENT_AT, - "created_at": OVERRIDES_CREATED_AT, - "version": 1, - } - - sync_execute("INSERT INTO person_overrides (*) VALUES", [not_overriden_person]) - - await activity_environment.run(delete_squashed_person_overrides_from_clickhouse, query_inputs) - - rows = sync_execute("SELECT team_id, old_person_id FROM person_overrides") - - assert len(rows) == len(persons_to_delete) + 1 - - -@pytest.fixture(scope="session") -def django_db_setup_fixture(): - """Re-use pytest_django's django_db_setup.""" - from pytest_django.fixtures import django_db_setup - - yield django_db_setup - - -@pytest.fixture -def pg_connection(): - """Manage a Postgres connection with psycopg.""" - conn = psycopg.connect( - dbname=settings.DATABASES["default"]["NAME"], - user=settings.DATABASES["default"]["USER"], - password=settings.DATABASES["default"]["PASSWORD"], - host=settings.DATABASES["default"]["HOST"], - port=settings.DATABASES["default"]["PORT"], - ) - - try: - yield conn - finally: - conn.close() - - -@pytest.fixture -def organization_uuid(pg_connection, query_inputs, django_db_setup_fixture): - """Create an Organization and return its UUID. - - We cannot use the Django ORM safely in an async context, so we INSERT INTO directly - on the database. This means we need to clean up after ourselves, which we do after - yielding. - """ - organization_uuid = uuid4() - - with pg_connection: - with pg_connection.cursor() as cursor: - cursor.execute( - """ - INSERT INTO posthog_organization ( - id, - name, - created_at, - updated_at, - personalization, - setup_section_2_completed, - plugins_access_level, - for_internal_metrics, - available_features, - domain_whitelist, - is_member_join_email_enabled, - slug - ) - VALUES ( - %(uuid)s, - 'test-workflows-org', - NOW(), - NOW(), - '{}', - TRUE, - 1, - FALSE, - '{}', - '{}', - TRUE, - 'test-worflows-org' - ) - """, - {"uuid": organization_uuid}, - ) - - yield organization_uuid - - with pg_connection: - with pg_connection.cursor() as cursor: - cursor.execute("DELETE FROM posthog_organization WHERE id = %s", [organization_uuid]) - - -@pytest.fixture -def team_id(query_inputs, organization_uuid, pg_connection): - """Create a Team and return its ID. - - We cannot use the Django ORM safely in an async context, so we INSERT INTO directly - on the database. This means we need to clean up after ourselves, which we do after - yielding. - """ - with pg_connection: - with pg_connection.cursor() as cursor: - cursor.execute( - """ - INSERT INTO posthog_team ( - api_token, - name, - opt_out_capture, - app_urls, - event_names, - event_properties, - anonymize_ips, - completed_snippet_onboarding, - created_at, - updated_at, - event_properties_numerical, - ingested_event, - uuid, - organization_id, - session_recording_opt_in, - plugins_opt_in, - event_names_with_usage, - event_properties_with_usage, - is_demo, - test_account_filters, - timezone, - data_attributes, - access_control - ) - VALUES ( - 'the_token', - 'test_workflow_team', - TRUE, - '{}', - '{}', - '{}', - TRUE, - TRUE, - NOW(), - NOW(), - '{}', - TRUE, - '00000000-0000-0000-0000-000000000000'::UUID, - %(organization_uuid)s, - TRUE, - TRUE, - '{}', - '{}', - FALSE, - '{}', - 'UTC', - '{}', - TRUE - ) - RETURNING id - """, - {"organization_uuid": organization_uuid}, - ) - [team_id] = cursor.fetchone() - - yield team_id - - with pg_connection: - with pg_connection.cursor() as cursor: - cursor.execute("DELETE FROM posthog_team WHERE id = %s", [team_id]) - - -@pytest.fixture -def postgres_person_override(team_id, pg_connection) -> Iterator[PersonOverrideTuple]: - """Create a PersonOverrideMapping and a PersonOverride. - - We cannot use the Django ORM safely in an async context, so we INSERT INTO directly - on the database. This means we need to clean up after ourselves, which we do after - yielding. - """ - override = PersonOverrideTuple(uuid4(), uuid4()) - - with pg_connection: - FlatPostgresPersonOverridesManager(pg_connection).insert(team_id, override) - - yield override - - with pg_connection: - FlatPostgresPersonOverridesManager(pg_connection).clear(team_id) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_delete_squashed_person_overrides_from_postgres( - query_inputs, - activity_environment, - team_id, - postgres_person_override: PersonOverrideTuple, - pg_connection, -): - """Test we can delete person overrides that have already been squashed. - - For the purposes of this unit test, we take the person overrides as given. A - comprehensive test will cover the entire worflow end-to-end. - """ - # These are sanity checks to ensure the fixtures are working properly. - # If any assertions fail here, its likely a test setup issue. - with pg_connection: - assert FlatPostgresPersonOverridesManager(pg_connection).fetchall(team_id) == [postgres_person_override] - - person_overrides_to_delete = [ - SerializablePersonOverrideToDelete( - team_id, - postgres_person_override.old_person_id, - postgres_person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - ] - query_inputs.person_overrides_to_delete = person_overrides_to_delete - query_inputs.dry_run = False - - await activity_environment.run(delete_squashed_person_overrides_from_postgres, query_inputs) - - with pg_connection: - assert FlatPostgresPersonOverridesManager(pg_connection).fetchall(team_id) == [] - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_delete_squashed_person_overrides_from_postgres_dry_run( - query_inputs, - activity_environment, - team_id, - postgres_person_override: PersonOverrideTuple, - pg_connection, -): - """Test we do not delete person overrides when dry_run=True.""" - # These are sanity checks to ensure the fixtures are working properly. - # If any assertions fail here, its likely a test setup issue. - with pg_connection: - assert FlatPostgresPersonOverridesManager(pg_connection).fetchall(team_id) == [postgres_person_override] - - person_overrides_to_delete = [ - SerializablePersonOverrideToDelete( - team_id, - postgres_person_override.old_person_id, - postgres_person_override.override_person_id, - OVERRIDES_CREATED_AT.isoformat(), - 1, - OLDEST_EVENT_AT.isoformat(), - ) - ] - query_inputs.person_overrides_to_delete = person_overrides_to_delete - query_inputs.dry_run = True - - await activity_environment.run(delete_squashed_person_overrides_from_postgres, query_inputs) - - with pg_connection: - assert FlatPostgresPersonOverridesManager(pg_connection).fetchall(team_id) == [postgres_person_override] - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_person_overrides_workflow( - events_to_override, - person_overrides_data, - postgres_person_override: PersonOverrideTuple, - person_overrides_table, -): - """Test the squash_person_overrides workflow end-to-end.""" - client = await Client.connect( - f"{settings.TEMPORAL_HOST}:{settings.TEMPORAL_PORT}", - namespace=settings.TEMPORAL_NAMESPACE, - ) - - workflow_id = str(uuid4()) - inputs = SquashPersonOverridesInputs( - partition_ids=["202001"], - dry_run=False, - ) - - async with Worker( - client, - task_queue=settings.TEMPORAL_TASK_QUEUE, - workflows=[SquashPersonOverridesWorkflow], - activities=[ - prepare_person_overrides, - prepare_dictionary, - select_persons_to_delete, - squash_events_partition, - drop_dictionary, - delete_squashed_person_overrides_from_clickhouse, - delete_squashed_person_overrides_from_postgres, - ], - workflow_runner=UnsandboxedWorkflowRunner(), - ): - await client.execute_workflow( - SquashPersonOverridesWorkflow.run, - inputs, - id=workflow_id, - task_queue=settings.TEMPORAL_TASK_QUEUE, - ) - - assert_events_have_been_overriden(events_to_override, person_overrides_data) - - rows = sync_execute("SELECT team_id, old_person_id FROM person_overrides") - assert len(rows) == 0 - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_person_overrides_workflow_with_newer_overrides( - events_to_override, - person_overrides_data, - postgres_person_override: PersonOverrideTuple, - newer_overrides, -): - """Test the squash_person_overrides workflow end-to-end with newer overrides.""" - client = await Client.connect( - f"{settings.TEMPORAL_HOST}:{settings.TEMPORAL_PORT}", - namespace=settings.TEMPORAL_NAMESPACE, - ) - - workflow_id = str(uuid4()) - inputs = SquashPersonOverridesInputs( - partition_ids=["202001"], - dry_run=False, - ) - - async with Worker( - client, - task_queue=settings.TEMPORAL_TASK_QUEUE, - workflows=[SquashPersonOverridesWorkflow], - activities=[ - prepare_person_overrides, - prepare_dictionary, - select_persons_to_delete, - squash_events_partition, - drop_dictionary, - delete_squashed_person_overrides_from_clickhouse, - delete_squashed_person_overrides_from_postgres, - ], - workflow_runner=UnsandboxedWorkflowRunner(), - ): - await client.execute_workflow( - SquashPersonOverridesWorkflow.run, - inputs, - id=workflow_id, - task_queue=settings.TEMPORAL_TASK_QUEUE, - ) - - assert_events_have_been_overriden(events_to_override, newer_overrides) - - -@pytest.mark.django_db -@pytest.mark.asyncio -async def test_squash_person_overrides_workflow_with_limited_team_ids( - events_to_override, - person_overrides_data, - postgres_person_override: PersonOverrideTuple, -): - """Test the squash_person_overrides workflow end-to-end.""" - client = await Client.connect( - f"{settings.TEMPORAL_HOST}:{settings.TEMPORAL_PORT}", - namespace=settings.TEMPORAL_NAMESPACE, - ) - - workflow_id = str(uuid4()) - random_team = random.choice(list(person_overrides_data.keys())) - inputs = SquashPersonOverridesInputs( - partition_ids=["202001"], - team_ids=[random_team], - dry_run=False, - ) - - async with Worker( - client, - task_queue=settings.TEMPORAL_TASK_QUEUE, - workflows=[SquashPersonOverridesWorkflow], - activities=[ - prepare_person_overrides, - prepare_dictionary, - select_persons_to_delete, - squash_events_partition, - drop_dictionary, - delete_squashed_person_overrides_from_clickhouse, - delete_squashed_person_overrides_from_postgres, - ], - workflow_runner=UnsandboxedWorkflowRunner(), - ): - await client.execute_workflow( - SquashPersonOverridesWorkflow.run, - inputs, - id=workflow_id, - task_queue=settings.TEMPORAL_TASK_QUEUE, - ) - - with pytest.raises(AssertionError): - # Some checks will fail as we have limited the teams overriden. - assert_events_have_been_overriden(events_to_override, person_overrides_data) - - # But if we only check the limited teams, there shouldn't be any issues. - limited_events = [event for event in events_to_override if event["team_id"] == random_team] - assert_events_have_been_overriden(limited_events, person_overrides_data) From 62a69651fa666c1bddf914448bd580434dca2801 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:27:48 +0000 Subject: [PATCH 31/45] Update query snapshots --- posthog/test/__snapshots__/test_feature_flag.ambr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index 3cf58ae195a60..70b76aa02a9e3 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -343,7 +343,7 @@ ''' SELECT (("posthog_person"."properties" ->> 'email')::text ~ '["neil@x.com"]' AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -355,7 +355,7 @@ ''' SELECT (("posthog_person"."properties" ->> 'email')::text ~ '["neil@x.com"]' AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'another_id' From 48c8ac97a1196e699341252b66fc26a41338b561 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:29:26 +0000 Subject: [PATCH 32/45] Update query snapshots --- posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 7d75ff4e47565..45227a9c093e0 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -10251,7 +10251,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) 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'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard.11 From 94368c6211a769e0b365459eb7655366c4a9341c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:36:43 +0000 Subject: [PATCH 33/45] Update query snapshots --- .../test_session_recordings.ambr | 528 +++++++++--------- .../test_process_scheduled_changes.ambr | 2 +- 2 files changed, 265 insertions(+), 265 deletions(-) diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr index c2982e4f8526f..532f3f260dcb8 100644 --- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr +++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr @@ -327,7 +327,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.14 @@ -380,7 +380,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.15 @@ -412,7 +412,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.16 @@ -423,7 +423,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.17 @@ -434,7 +434,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.18 @@ -445,7 +445,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.19 @@ -456,7 +456,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.2 @@ -527,7 +527,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.21 @@ -538,7 +538,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.22 @@ -549,7 +549,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.23 @@ -560,7 +560,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.24 @@ -571,7 +571,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.25 @@ -582,7 +582,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.26 @@ -593,7 +593,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.27 @@ -604,7 +604,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.28 @@ -615,7 +615,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.29 @@ -626,7 +626,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.3 @@ -697,7 +697,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.31 @@ -708,7 +708,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.32 @@ -719,7 +719,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.33 @@ -747,7 +747,7 @@ FROM "posthog_sessionrecording" 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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.34 @@ -755,7 +755,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.35 @@ -779,7 +779,7 @@ INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") WHERE ("posthog_persondistinctid"."distinct_id" IN ('user2', 'user_one_0') - 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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.4 @@ -1170,7 +1170,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.1 @@ -1223,7 +1223,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.10 @@ -1234,7 +1234,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.100 @@ -1245,7 +1245,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.101 @@ -1256,7 +1256,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.102 @@ -1267,7 +1267,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.103 @@ -1278,7 +1278,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.104 @@ -1289,7 +1289,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.105 @@ -1300,7 +1300,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.106 @@ -1311,7 +1311,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.107 @@ -1322,7 +1322,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.108 @@ -1333,7 +1333,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.109 @@ -1344,7 +1344,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.11 @@ -1355,7 +1355,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.110 @@ -1385,7 +1385,7 @@ '2', '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.111 @@ -1393,7 +1393,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.112 @@ -1419,7 +1419,7 @@ 'user2', '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.113 @@ -1510,7 +1510,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.115 @@ -1563,7 +1563,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.116 @@ -1595,7 +1595,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.117 @@ -1606,7 +1606,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.118 @@ -1617,7 +1617,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.119 @@ -1628,7 +1628,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.12 @@ -1639,7 +1639,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.120 @@ -1650,7 +1650,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.121 @@ -1661,7 +1661,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.122 @@ -1672,7 +1672,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.123 @@ -1683,7 +1683,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.124 @@ -1694,7 +1694,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.125 @@ -1705,7 +1705,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.126 @@ -1716,7 +1716,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.127 @@ -1727,7 +1727,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.128 @@ -1738,7 +1738,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.129 @@ -1749,7 +1749,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.13 @@ -1760,7 +1760,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.130 @@ -1771,7 +1771,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.131 @@ -1782,7 +1782,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.132 @@ -1793,7 +1793,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.133 @@ -1824,7 +1824,7 @@ '3', '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.134 @@ -1832,7 +1832,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.135 @@ -1859,7 +1859,7 @@ 'user3', '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.136 @@ -1950,7 +1950,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.138 @@ -2003,7 +2003,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.139 @@ -2035,7 +2035,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.14 @@ -2046,7 +2046,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.140 @@ -2057,7 +2057,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.141 @@ -2068,7 +2068,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.142 @@ -2079,7 +2079,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.143 @@ -2090,7 +2090,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.144 @@ -2101,7 +2101,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.145 @@ -2112,7 +2112,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.146 @@ -2123,7 +2123,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.147 @@ -2134,7 +2134,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.148 @@ -2145,7 +2145,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.149 @@ -2156,7 +2156,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.15 @@ -2167,7 +2167,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.150 @@ -2178,7 +2178,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.151 @@ -2189,7 +2189,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.152 @@ -2200,7 +2200,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.153 @@ -2211,7 +2211,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.154 @@ -2222,7 +2222,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.155 @@ -2233,7 +2233,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.156 @@ -2265,7 +2265,7 @@ '4', '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.157 @@ -2273,7 +2273,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.158 @@ -2301,7 +2301,7 @@ 'user4', '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.159 @@ -2372,7 +2372,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.160 @@ -2403,7 +2403,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.161 @@ -2456,7 +2456,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.162 @@ -2488,7 +2488,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.163 @@ -2499,7 +2499,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.164 @@ -2510,7 +2510,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.165 @@ -2521,7 +2521,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.166 @@ -2532,7 +2532,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.167 @@ -2543,7 +2543,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.168 @@ -2554,7 +2554,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.169 @@ -2565,7 +2565,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.17 @@ -2576,7 +2576,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.170 @@ -2587,7 +2587,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.171 @@ -2598,7 +2598,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.172 @@ -2609,7 +2609,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.173 @@ -2620,7 +2620,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.174 @@ -2631,7 +2631,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.175 @@ -2642,7 +2642,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.176 @@ -2653,7 +2653,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.177 @@ -2664,7 +2664,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.178 @@ -2675,7 +2675,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.179 @@ -2708,7 +2708,7 @@ '5', '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.18 @@ -2719,7 +2719,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.180 @@ -2727,7 +2727,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.181 @@ -2756,7 +2756,7 @@ 'user5', '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.182 @@ -2847,7 +2847,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.184 @@ -2900,7 +2900,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.185 @@ -2932,7 +2932,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.186 @@ -2943,7 +2943,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.187 @@ -2954,7 +2954,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.188 @@ -2965,7 +2965,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.189 @@ -2976,7 +2976,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.19 @@ -2987,7 +2987,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.190 @@ -2998,7 +2998,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.191 @@ -3009,7 +3009,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.192 @@ -3020,7 +3020,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.193 @@ -3031,7 +3031,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.194 @@ -3042,7 +3042,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.195 @@ -3053,7 +3053,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.196 @@ -3064,7 +3064,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.197 @@ -3075,7 +3075,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.198 @@ -3086,7 +3086,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.199 @@ -3097,7 +3097,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.2 @@ -3129,7 +3129,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.20 @@ -3137,7 +3137,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.200 @@ -3148,7 +3148,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.201 @@ -3159,7 +3159,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.202 @@ -3193,7 +3193,7 @@ '6', '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.203 @@ -3201,7 +3201,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.204 @@ -3231,7 +3231,7 @@ 'user6', '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.205 @@ -3322,7 +3322,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.207 @@ -3375,7 +3375,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.208 @@ -3407,7 +3407,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.209 @@ -3418,7 +3418,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.21 @@ -3489,7 +3489,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.211 @@ -3500,7 +3500,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.212 @@ -3511,7 +3511,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.213 @@ -3522,7 +3522,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.214 @@ -3533,7 +3533,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.215 @@ -3544,7 +3544,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.216 @@ -3555,7 +3555,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.217 @@ -3566,7 +3566,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.218 @@ -3577,7 +3577,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.219 @@ -3588,7 +3588,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.22 @@ -3619,7 +3619,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.220 @@ -3630,7 +3630,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.221 @@ -3641,7 +3641,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.222 @@ -3652,7 +3652,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.223 @@ -3663,7 +3663,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.224 @@ -3674,7 +3674,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.225 @@ -3709,7 +3709,7 @@ '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.226 @@ -3717,7 +3717,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.227 @@ -3748,7 +3748,7 @@ '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.228 @@ -3839,7 +3839,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.23 @@ -3892,7 +3892,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.230 @@ -3945,7 +3945,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.231 @@ -3977,7 +3977,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.232 @@ -3988,7 +3988,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.233 @@ -3999,7 +3999,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.234 @@ -4010,7 +4010,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.235 @@ -4021,7 +4021,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.236 @@ -4032,7 +4032,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.237 @@ -4043,7 +4043,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.238 @@ -4054,7 +4054,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.239 @@ -4065,7 +4065,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.24 @@ -4097,7 +4097,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.240 @@ -4108,7 +4108,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.241 @@ -4119,7 +4119,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.242 @@ -4130,7 +4130,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.243 @@ -4141,7 +4141,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.244 @@ -4152,7 +4152,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.245 @@ -4163,7 +4163,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.246 @@ -4174,7 +4174,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.247 @@ -4185,7 +4185,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.248 @@ -4221,7 +4221,7 @@ '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.249 @@ -4229,7 +4229,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.25 @@ -4240,7 +4240,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.250 @@ -4272,7 +4272,7 @@ '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.26 @@ -4283,7 +4283,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.27 @@ -4294,7 +4294,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.28 @@ -4305,7 +4305,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.29 @@ -4316,7 +4316,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.3 @@ -4327,7 +4327,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.30 @@ -4338,7 +4338,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.31 @@ -4349,7 +4349,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.32 @@ -4360,7 +4360,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.33 @@ -4371,7 +4371,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.34 @@ -4382,7 +4382,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.35 @@ -4393,7 +4393,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.36 @@ -4404,7 +4404,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.37 @@ -4415,7 +4415,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.38 @@ -4426,7 +4426,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.39 @@ -4437,7 +4437,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.4 @@ -4448,7 +4448,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.40 @@ -4459,7 +4459,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.41 @@ -4486,7 +4486,7 @@ "posthog_sessionrecording"."storage_version" 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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.42 @@ -4494,7 +4494,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.43 @@ -4517,7 +4517,7 @@ FROM "posthog_persondistinctid" 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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.44 @@ -4608,7 +4608,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.46 @@ -4661,7 +4661,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.47 @@ -4693,7 +4693,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.48 @@ -4704,7 +4704,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.49 @@ -4715,7 +4715,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.5 @@ -4726,7 +4726,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.50 @@ -4737,7 +4737,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.51 @@ -4748,7 +4748,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.52 @@ -4759,7 +4759,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.53 @@ -4770,7 +4770,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.54 @@ -4781,7 +4781,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.55 @@ -4792,7 +4792,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.56 @@ -4803,7 +4803,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.57 @@ -4814,7 +4814,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.58 @@ -4825,7 +4825,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.59 @@ -4836,7 +4836,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.6 @@ -4847,7 +4847,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.60 @@ -4858,7 +4858,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.61 @@ -4869,7 +4869,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.62 @@ -4880,7 +4880,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.63 @@ -4891,7 +4891,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.64 @@ -4919,7 +4919,7 @@ FROM "posthog_sessionrecording" 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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.65 @@ -4927,7 +4927,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.66 @@ -4951,7 +4951,7 @@ INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") 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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.67 @@ -5042,7 +5042,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.69 @@ -5095,7 +5095,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.7 @@ -5106,7 +5106,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.70 @@ -5138,7 +5138,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.71 @@ -5149,7 +5149,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.72 @@ -5160,7 +5160,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.73 @@ -5171,7 +5171,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.74 @@ -5182,7 +5182,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.75 @@ -5193,7 +5193,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.76 @@ -5204,7 +5204,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.77 @@ -5215,7 +5215,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.78 @@ -5226,7 +5226,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.79 @@ -5237,7 +5237,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.8 @@ -5248,7 +5248,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.80 @@ -5259,7 +5259,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.81 @@ -5270,7 +5270,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.82 @@ -5281,7 +5281,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.83 @@ -5292,7 +5292,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.84 @@ -5303,7 +5303,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.85 @@ -5314,7 +5314,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.86 @@ -5325,7 +5325,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.87 @@ -5354,7 +5354,7 @@ WHERE ("posthog_sessionrecording"."session_id" IN ('1', '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'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.88 @@ -5362,7 +5362,7 @@ 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'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.89 @@ -5387,7 +5387,7 @@ WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', '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'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.9 @@ -5398,7 +5398,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.90 @@ -5489,7 +5489,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.92 @@ -5542,7 +5542,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.93 @@ -5574,7 +5574,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.94 @@ -5585,7 +5585,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.95 @@ -5596,7 +5596,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.96 @@ -5607,7 +5607,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.97 @@ -5618,7 +5618,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.98 @@ -5629,7 +5629,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.99 @@ -5640,6 +5640,6 @@ 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'*/ + LIMIT 1 ''' # --- diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr index d4ed303a0dda1..dcf75cb638fac 100644 --- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr +++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr @@ -37,7 +37,7 @@ "posthog_scheduledchange"."updated_at" FROM "posthog_scheduledchange" WHERE ("posthog_scheduledchange"."executed_at" IS NULL - AND "posthog_scheduledchange"."scheduled_at" <= '2023-12-21T09:00:00+00:00'::timestamptz) + AND "posthog_scheduledchange"."scheduled_at" <= '2023-12-21 09:00:00+00:00'::timestamptz) ORDER BY "posthog_scheduledchange"."scheduled_at" ASC LIMIT 10000 FOR From e9db3ac01b670f19f267f3add59a2fc8747aff20 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 2 Apr 2024 15:50:50 +0200 Subject: [PATCH 34/45] Fix queries --- mypy-baseline.txt | 11 ----------- posthog/api/property_definition.py | 6 +++--- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index b47116e8f89e7..ba58eadb2576d 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -778,17 +778,6 @@ posthog/warehouse/external_data_source/source.py:0: error: Incompatible types in 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/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "FlatPostgresPersonOverridesManager" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "PersonOverrideTuple" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "QueryInputs" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "SerializablePersonOverrideToDelete" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "delete_squashed_person_overrides_from_clickhouse" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "delete_squashed_person_overrides_from_postgres" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "drop_dictionary" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "prepare_dictionary" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "prepare_person_overrides" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "select_persons_to_delete" [attr-defined] -posthog/temporal/tests/test_squash_person_overrides_workflow.py:0: error: Module "posthog.temporal.batch_exports.squash_person_overrides" has no attribute "squash_events_partition" [attr-defined] 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] diff --git a/posthog/api/property_definition.py b/posthog/api/property_definition.py index ec4df39245e11..259f6028cd67b 100644 --- a/posthog/api/property_definition.py +++ b/posthog/api/property_definition.py @@ -141,7 +141,7 @@ def with_is_numerical_flag(self, is_numerical: Optional[str]) -> "QueryContext": if is_numerical: return dataclasses.replace( self, - numerical_filter="AND is_numerical = true AND name NOT IN ('distinct_id', 'timestamp')", + numerical_filter="AND is_numerical = true AND name != ANY(ARRAY['distinct_id', 'timestamp'])", ) else: return self @@ -239,7 +239,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str return dataclasses.replace( self, excluded_properties_filter=( - f"AND {self.property_definition_table}.name NOT IN %(excluded_properties)s" + f"AND {self.property_definition_table}.name != ANY(%(excluded_properties)s)" if len(excluded_list) > 0 else "" ), @@ -339,7 +339,7 @@ def add_name_alias_to_search_query(search_term: str): if not entries: return "" - return f"""OR name IN ({", ".join(entries)})""" + return f"""OR name = ANY(ARRAY[{", ".join(entries)}])""" # Event properties generated by ingestion we don't want to show to users From 8e95b93708291c9acb629dfcefb573f88dd1f9c8 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 2 Apr 2024 16:30:16 +0200 Subject: [PATCH 35/45] Fix query --- posthog/api/property_definition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/api/property_definition.py b/posthog/api/property_definition.py index 259f6028cd67b..088628a9e0a7a 100644 --- a/posthog/api/property_definition.py +++ b/posthog/api/property_definition.py @@ -141,7 +141,7 @@ def with_is_numerical_flag(self, is_numerical: Optional[str]) -> "QueryContext": if is_numerical: return dataclasses.replace( self, - numerical_filter="AND is_numerical = true AND name != ANY(ARRAY['distinct_id', 'timestamp'])", + numerical_filter="AND is_numerical = true AND NOT name = ANY(ARRAY['distinct_id', 'timestamp'])", ) else: return self @@ -239,7 +239,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str return dataclasses.replace( self, excluded_properties_filter=( - f"AND {self.property_definition_table}.name != ANY(%(excluded_properties)s)" + f"AND NOT {self.property_definition_table}.name = ANY(%(excluded_properties)s)" if len(excluded_list) > 0 else "" ), From 4fc78732b5e88676f13800f6f1acd66f24312c86 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 2 Apr 2024 16:47:40 +0200 Subject: [PATCH 36/45] Revert --- plugin-server/src/kafka/batch-consumer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin-server/src/kafka/batch-consumer.ts b/plugin-server/src/kafka/batch-consumer.ts index b28cdee1cf42b..f52aeb69093ac 100644 --- a/plugin-server/src/kafka/batch-consumer.ts +++ b/plugin-server/src/kafka/batch-consumer.ts @@ -339,6 +339,7 @@ export const startBatchConsumer = async ({ resolve(null) }, timeout) + // eslint-disable-next-line @typescript-eslint/no-floating-promises mainLoop.finally(() => { resolve(null) clearTimeout(timerHandle) From 2724b9136408fc89bd0470ca028c32e82743c484 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 2 Apr 2024 16:49:45 +0200 Subject: [PATCH 37/45] Update requirements.in --- requirements.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.in b/requirements.in index 70ed51493ffae..bc70b4828f9c1 100644 --- a/requirements.in +++ b/requirements.in @@ -19,7 +19,7 @@ clickhouse-pool==0.5.3 cryptography==37.0.2 defusedxml==0.6.0 dj-database-url==0.5.0 -Django~=4.2.10 +Django~=4.2.11 django-axes==5.9.0 django-cors-headers==3.5.0 django-deprecate-fields==0.1.1 From c2a7ef8a1e293cc6bfd9e213f564a812a7831063 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 2 Apr 2024 16:52:06 +0200 Subject: [PATCH 38/45] Remove restore-virtualenv Because not maintained anymore --- .github/actions/run-backend-tests/action.yml | 5 ----- .github/workflows/benchmark.yml | 3 --- .github/workflows/ci-backend.yml | 15 --------------- .github/workflows/ci-plugin-server.yml | 11 ----------- 4 files changed, 34 deletions(-) diff --git a/.github/actions/run-backend-tests/action.yml b/.github/actions/run-backend-tests/action.yml index a45caaf8aef18..42d9da056be5c 100644 --- a/.github/actions/run-backend-tests/action.yml +++ b/.github/actions/run-backend-tests/action.yml @@ -82,11 +82,6 @@ runs: pnpm install pnpm run build - - uses: syphar/restore-virtualenv@v1 - id: cache-backend-tests - with: - custom_cache_key_element: v2 - - name: Install Python dependencies if: steps.cache-backend-tests.outputs.cache-hit != 'true' shell: bash diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 4b63542e07606..9dd2af243b4a6 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -59,9 +59,6 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - - uses: syphar/restore-virtualenv@v1 - id: cache-benchmark-tests - - name: Install SAML (python3-saml) dependencies shell: bash run: | diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index 40a3c59e023c8..24e219c06e6be 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -112,11 +112,6 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - - uses: syphar/restore-virtualenv@v1 - id: cache-backend-tests - with: - custom_cache_key_element: v2- - - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update @@ -192,11 +187,6 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - - uses: syphar/restore-virtualenv@v1 - id: cache-backend-tests - with: - custom_cache_key_element: v1- - - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update @@ -344,11 +334,6 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - - uses: syphar/restore-virtualenv@v1 - id: cache-backend-tests - with: - custom_cache_key_element: v2- - - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml index 834bce923abbf..5ebe1a59bb0b2 100644 --- a/.github/workflows/ci-plugin-server.yml +++ b/.github/workflows/ci-plugin-server.yml @@ -122,12 +122,6 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - - uses: syphar/restore-virtualenv@v1 - if: needs.changes.outputs.plugin-server == 'true' - id: cache-backend-tests - with: - custom_cache_key_element: v1- - - name: Install SAML (python3-saml) dependencies if: needs.changes.outputs.plugin-server == 'true' run: | @@ -219,11 +213,6 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - - uses: syphar/restore-virtualenv@v1 - id: cache-backend-tests - with: - custom_cache_key_element: v1- - - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update From d22a44e0d2cda927b9fcc1365bf7fc22328c849b Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Tue, 2 Apr 2024 17:28:03 +0200 Subject: [PATCH 39/45] Revert "Remove restore-virtualenv" This reverts commit c2a7ef8a1e293cc6bfd9e213f564a812a7831063. --- .github/actions/run-backend-tests/action.yml | 5 +++++ .github/workflows/benchmark.yml | 3 +++ .github/workflows/ci-backend.yml | 15 +++++++++++++++ .github/workflows/ci-plugin-server.yml | 11 +++++++++++ 4 files changed, 34 insertions(+) diff --git a/.github/actions/run-backend-tests/action.yml b/.github/actions/run-backend-tests/action.yml index 42d9da056be5c..a45caaf8aef18 100644 --- a/.github/actions/run-backend-tests/action.yml +++ b/.github/actions/run-backend-tests/action.yml @@ -82,6 +82,11 @@ runs: pnpm install pnpm run build + - uses: syphar/restore-virtualenv@v1 + id: cache-backend-tests + with: + custom_cache_key_element: v2 + - name: Install Python dependencies if: steps.cache-backend-tests.outputs.cache-hit != 'true' shell: bash diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 9dd2af243b4a6..4b63542e07606 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -59,6 +59,9 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} + - uses: syphar/restore-virtualenv@v1 + id: cache-benchmark-tests + - name: Install SAML (python3-saml) dependencies shell: bash run: | diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index 24e219c06e6be..40a3c59e023c8 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -112,6 +112,11 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} + - uses: syphar/restore-virtualenv@v1 + id: cache-backend-tests + with: + custom_cache_key_element: v2- + - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update @@ -187,6 +192,11 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} + - uses: syphar/restore-virtualenv@v1 + id: cache-backend-tests + with: + custom_cache_key_element: v1- + - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update @@ -334,6 +344,11 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} + - uses: syphar/restore-virtualenv@v1 + id: cache-backend-tests + with: + custom_cache_key_element: v2- + - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml index 5ebe1a59bb0b2..834bce923abbf 100644 --- a/.github/workflows/ci-plugin-server.yml +++ b/.github/workflows/ci-plugin-server.yml @@ -122,6 +122,12 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} + - uses: syphar/restore-virtualenv@v1 + if: needs.changes.outputs.plugin-server == 'true' + id: cache-backend-tests + with: + custom_cache_key_element: v1- + - name: Install SAML (python3-saml) dependencies if: needs.changes.outputs.plugin-server == 'true' run: | @@ -213,6 +219,11 @@ jobs: cache-dependency-path: '**/requirements*.txt' token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} + - uses: syphar/restore-virtualenv@v1 + id: cache-backend-tests + with: + custom_cache_key_element: v1- + - name: Install SAML (python3-saml) dependencies run: | sudo apt-get update From 8c0d9c42a578ada28a96be349a0e91106ad01e9b Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Wed, 3 Apr 2024 15:45:01 +0100 Subject: [PATCH 40/45] mypy --- mypy-baseline.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index 76698d6da12b8..493a739a4fd12 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -588,18 +588,6 @@ posthog/hogql/functions/test/test_cohort.py:0: error: "TestCohort" has no attrib 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] -posthog/api/fields.py:0: error: List item 0 has incompatible type "type[PydanticModelValidator]"; expected "Callable[[dict[str, Any] | list[dict[str, Any]]], None] | ContextValidator[dict[str, Any] | list[dict[str, Any]]]" [list-item] -posthog/api/fields.py:0: note: "PydanticModelValidator" is missing following "ContextValidator" protocol member: -posthog/api/fields.py:0: note: requires_context -posthog/api/fields.py:0: note: Following member(s) of "PydanticModelValidator" have conflicts: -posthog/api/fields.py:0: note: Expected: -posthog/api/fields.py:0: note: def __call__(dict[str, Any] | list[dict[str, Any]], Field[Any, Any, Any, Any], /) -> None -posthog/api/fields.py:0: note: Got: -posthog/api/fields.py:0: note: def __init__(model: Any) -> PydanticModelValidator -posthog/api/fields.py:0: note: Expected: -posthog/api/fields.py:0: note: def __call__(dict[str, Any] | list[dict[str, Any]], Field[Any, Any, Any, Any], /) -> None -posthog/api/fields.py:0: note: Got: -posthog/api/fields.py:0: note: def __init__(model: Any) -> PydanticModelValidator 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/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] From 70e54d3e7d2c07083d55c2f9e7e2e16633056e53 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 4 Apr 2024 11:43:10 +0200 Subject: [PATCH 41/45] Adjust num queries --- posthog/api/test/test_decide.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index 6aed781f549ea..ceadacf811baa 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -3995,7 +3995,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): ) # new request with hash key overrides but not writes should not go to main database - with self.assertNumQueries(11, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(13, using="replica"), self.assertNumQueries(0, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 # E 2. WITH some CTEs, @@ -4024,7 +4024,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): # now main database is down, but does not affect replica with connections["default"].execute_wrapper(QueryTimeoutWrapper()), self.assertNumQueries( - 7, using="replica" + 13, using="replica" ), self.assertNumQueries(0, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 From b91b5e57f71fc0e18584d92c39fd702feaaddef5 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 4 Apr 2024 12:09:47 +0200 Subject: [PATCH 42/45] Adjust num queries --- posthog/api/test/test_decide.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index ceadacf811baa..a014d49ec9767 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -4420,7 +4420,7 @@ def test_local_evaluation(self, mock_rate_limit, mock_capture): response = self.client.get(f"/api/feature_flag/local_evaluation") self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(3, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4661,7 +4661,7 @@ def test_local_evaluation_for_cohorts(self, mock_rate_limit, mock_capture): PersonalAPIKey.objects.create(label="X", user=self.user, secure_value=hash_key_value(personal_api_key)) cache.clear() - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(3, using="default"): + with self.assertNumQueries(6, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4931,7 +4931,7 @@ def test_local_evaluation_for_arbitrary_cohorts(self, mock_rate_limit, mock_capt client.logout() self.client.logout() - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(3, using="default"): + with self.assertNumQueries(6, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" From e1b37a5fd8a0bd6958b607b422555a6619be8738 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 4 Apr 2024 12:32:02 +0200 Subject: [PATCH 43/45] Adjust num queries --- posthog/api/test/test_decide.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index a014d49ec9767..05b8f11d78dd6 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -4420,7 +4420,7 @@ def test_local_evaluation(self, mock_rate_limit, mock_capture): response = self.client.get(f"/api/feature_flag/local_evaluation") self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(3, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4661,7 +4661,7 @@ def test_local_evaluation_for_cohorts(self, mock_rate_limit, mock_capture): PersonalAPIKey.objects.create(label="X", user=self.user, secure_value=hash_key_value(personal_api_key)) cache.clear() - with self.assertNumQueries(6, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4931,7 +4931,7 @@ def test_local_evaluation_for_arbitrary_cohorts(self, mock_rate_limit, mock_capt client.logout() self.client.logout() - with self.assertNumQueries(6, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" From f0d9fdc9631a570caba3a826a30321a057e4d728 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:40:01 +0000 Subject: [PATCH 44/45] Update query snapshots --- .../api/test/__snapshots__/test_action.ambr | 36 ++-- .../test/__snapshots__/test_annotation.ambr | 30 ++-- .../api/test/__snapshots__/test_decide.ambr | 22 +-- .../test_early_access_feature.ambr | 4 +- .../api/test/__snapshots__/test_element.ambr | 10 +- .../test/__snapshots__/test_feature_flag.ambr | 126 +++++++------- .../api/test/__snapshots__/test_insight.ambr | 62 +++---- .../test_organization_feature_flag.ambr | 162 +++++++++--------- .../api/test/__snapshots__/test_plugin.ambr | 48 +++--- .../test/__snapshots__/test_preflight.ambr | 6 +- 10 files changed, 252 insertions(+), 254 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_action.ambr b/posthog/api/test/__snapshots__/test_action.ambr index 3b71cb1191f91..a92d37c6b730b 100644 --- a/posthog/api/test/__snapshots__/test_action.ambr +++ b/posthog/api/test/__snapshots__/test_action.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.1 @@ -80,7 +80,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.10 @@ -134,7 +134,7 @@ GROUP BY "posthog_action"."id", "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'*/ + "posthog_action"."name" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.11 @@ -158,7 +158,7 @@ 3, 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'*/ + ORDER BY "posthog_actionstep"."id" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.12 @@ -189,7 +189,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.13 @@ -242,7 +242,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.14 @@ -274,7 +274,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.15 @@ -300,7 +300,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.16 @@ -354,7 +354,7 @@ GROUP BY "posthog_action"."id", "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'*/ + "posthog_action"."name" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.17 @@ -378,7 +378,7 @@ 3, 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'*/ + ORDER BY "posthog_actionstep"."id" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.2 @@ -410,7 +410,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.3 @@ -421,7 +421,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.4 @@ -447,7 +447,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.5 @@ -501,7 +501,7 @@ GROUP BY "posthog_action"."id", "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'*/ + "posthog_action"."name" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.6 @@ -532,7 +532,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.7 @@ -585,7 +585,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.8 @@ -617,7 +617,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.9 @@ -643,6 +643,6 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index b75f8a9661f7e..043697e9d0d46 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.1 @@ -80,7 +80,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.10 @@ -111,7 +111,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 @@ -164,7 +164,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 @@ -196,7 +196,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 @@ -206,7 +206,7 @@ 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'*/ + AND NOT "posthog_annotation"."deleted") ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 @@ -285,7 +285,7 @@ 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'*/ + LIMIT 1000 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 @@ -396,7 +396,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.3 @@ -407,7 +407,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.4 @@ -417,7 +417,7 @@ 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'*/ + AND NOT "posthog_annotation"."deleted") ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.5 @@ -448,7 +448,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.6 @@ -501,7 +501,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.7 @@ -533,7 +533,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 @@ -543,7 +543,7 @@ 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'*/ + AND NOT "posthog_annotation"."deleted") ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 @@ -622,6 +622,6 @@ 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'*/ + LIMIT 1000 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index 7636905bca90b..b60f0660121b9 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -30,7 +30,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.1 @@ -90,7 +90,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.10 @@ -138,7 +138,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.3 @@ -146,7 +146,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.4 @@ -157,7 +157,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 @@ -168,7 +168,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 @@ -179,7 +179,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 @@ -554,9 +554,9 @@ # --- # name: TestDecide.test_flag_with_regular_cohorts.4 ''' - SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"' + SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"'::jsonb AND "posthog_person"."properties" ? '$some_prop_1' - AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id_1' @@ -590,9 +590,9 @@ # --- # name: TestDecide.test_flag_with_regular_cohorts.6 ''' - SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"' + SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"'::jsonb AND "posthog_person"."properties" ? '$some_prop_1' - AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'another_id' diff --git a/posthog/api/test/__snapshots__/test_early_access_feature.ambr b/posthog/api/test/__snapshots__/test_early_access_feature.ambr index 7a472bdce6edc..3838fa80136f0 100644 --- a/posthog/api/test/__snapshots__/test_early_access_feature.ambr +++ b/posthog/api/test/__snapshots__/test_early_access_feature.ambr @@ -186,7 +186,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestPreviewList.test_early_access_features.5 @@ -217,6 +217,6 @@ FROM "posthog_earlyaccessfeature" 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'*/ + AND "posthog_earlyaccessfeature"."team_id" = 2) ''' # --- diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr index 67722a01933c0..b849de02d476e 100644 --- a/posthog/api/test/__snapshots__/test_element.ambr +++ b/posthog/api/test/__snapshots__/test_element.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.1 @@ -87,7 +87,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='element-stats',route='api/element/stats/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.2 @@ -119,7 +119,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.3 @@ -130,7 +130,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.4 @@ -141,6 +141,6 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 30641095db266..b5c11e5c88298 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -397,9 +397,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 2 ''' @@ -429,8 +429,8 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid, + '00000000000040008000000000000001'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -513,9 +513,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 2 OFFSET 2 @@ -555,9 +555,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 2 OFFSET 4 @@ -568,8 +568,7 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000002'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -631,8 +630,10 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid, + '00000000000040008000000000000001'::uuid, + '00000000000040008000000000000002'::uuid, + '00000000000040008000000000000003'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -739,14 +740,14 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ((("posthog_person"."properties" -> 'group') = '"none"' + AND ((("posthog_person"."properties" -> 'group') = '"none"'::jsonb AND "posthog_person"."properties" ? 'group' - AND NOT (("posthog_person"."properties" -> 'group') = 'null')) - OR (("posthog_person"."properties" -> 'group2') IN ('1', - '2', - '3') + AND NOT (("posthog_person"."properties" -> 'group') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'group2') IN ('1'::jsonb, + '2'::jsonb, + '3'::jsonb) AND "posthog_person"."properties" ? 'group2' - AND NOT (("posthog_person"."properties" -> 'group2') = 'null')) + AND NOT (("posthog_person"."properties" -> 'group2') = 'null'::jsonb)) OR EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U0 @@ -754,12 +755,12 @@ AND U0."cohort_id" = 2 AND U0."person_id" = ("posthog_person"."id")) LIMIT 1) - OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"' + OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"'::jsonb AND "posthog_person"."properties" ? 'does-not-exist' - AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null')) - OR (("posthog_person"."properties" -> 'key') = '"value"' + AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')))) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)))) ORDER BY "posthog_person"."id" ASC LIMIT 1000 ''' @@ -874,14 +875,14 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ((("posthog_person"."properties" -> 'group') = '"none"' + AND ((("posthog_person"."properties" -> 'group') = '"none"'::jsonb AND "posthog_person"."properties" ? 'group' - AND NOT (("posthog_person"."properties" -> 'group') = 'null')) - OR (("posthog_person"."properties" -> 'group2') IN ('1', - '2', - '3') + AND NOT (("posthog_person"."properties" -> 'group') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'group2') IN ('1'::jsonb, + '2'::jsonb, + '3'::jsonb) AND "posthog_person"."properties" ? 'group2' - AND NOT (("posthog_person"."properties" -> 'group2') = 'null')) + AND NOT (("posthog_person"."properties" -> 'group2') = 'null'::jsonb)) OR EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U0 @@ -889,12 +890,12 @@ AND U0."cohort_id" = 2 AND U0."person_id" = ("posthog_person"."id")) LIMIT 1) - OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"' + OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"'::jsonb AND "posthog_person"."properties" ? 'does-not-exist' - AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null')) - OR (("posthog_person"."properties" -> 'key') = '"value"' + AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')))) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)))) ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 @@ -993,8 +994,8 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid, + '00000000000040008000000000000001'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -1079,7 +1080,7 @@ WHERE ("posthog_person"."team_id" = 2 AND UPPER(("posthog_person"."properties" ->> 'key')::text) LIKE UPPER('%value%') AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 ''' @@ -1120,7 +1121,7 @@ WHERE ("posthog_person"."team_id" = 2 AND UPPER(("posthog_person"."properties" ->> 'key')::text) LIKE UPPER('%value%') AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 @@ -1131,8 +1132,7 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -1330,9 +1330,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 ''' @@ -1413,9 +1413,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 @@ -1426,8 +1426,7 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000002'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -1524,7 +1523,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.1 @@ -1577,7 +1576,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.10 @@ -1594,12 +1593,12 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) 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'*/ + OFFSET 10000 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.11 @@ -1607,14 +1606,13 @@ 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 "posthog_person"."uuid" IN ('00000000000040008000000000000000'::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'*/ + LIMIT 1))) ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.12 @@ -1674,7 +1672,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.13 @@ -1734,7 +1732,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.14 @@ -1795,7 +1793,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.3 @@ -1806,7 +1804,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.4 @@ -1832,7 +1830,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.5 @@ -1881,7 +1879,7 @@ LEFT OUTER JOIN "posthog_user" ON ("posthog_featureflag"."created_by_id" = "posthog_user"."id") 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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.6 @@ -1904,7 +1902,7 @@ FROM "posthog_featureflag" 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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.7 @@ -1929,7 +1927,7 @@ FROM "posthog_cohort" WHERE ("posthog_cohort"."id" = 2 AND "posthog_cohort"."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'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.8 @@ -1946,11 +1944,11 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) 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'*/ + LIMIT 10000 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.9 @@ -1970,7 +1968,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index 6495d532782b2..c5b626c2d7bb2 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -666,7 +666,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.1 @@ -719,7 +719,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.10 @@ -772,7 +772,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.11 @@ -790,7 +790,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.12 @@ -825,7 +825,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.13 @@ -848,7 +848,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.14 @@ -908,7 +908,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.15 @@ -934,7 +934,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.16 @@ -958,7 +958,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.17 @@ -979,7 +979,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.18 @@ -990,7 +990,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.19 @@ -1017,7 +1017,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.2 @@ -1049,7 +1049,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.20 @@ -1087,7 +1087,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.22 @@ -1140,7 +1140,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.23 @@ -1172,7 +1172,7 @@ "posthog_organization"."available_features" 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'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.24 @@ -1198,7 +1198,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.25 @@ -1207,8 +1207,8 @@ 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'*/ + AND NOT ("posthog_dashboarditem"."filters" = '{}'::jsonb + AND "posthog_dashboarditem"."query" IS NOT NULL)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.26 @@ -1350,10 +1350,10 @@ LEFT OUTER JOIN "posthog_user" T4 ON ("posthog_dashboarditem"."last_modified_by_id" = T4."id") WHERE (NOT ("posthog_dashboarditem"."deleted") AND "posthog_dashboarditem"."team_id" = 2 - AND NOT ("posthog_dashboarditem"."filters" = '{}' + AND NOT ("posthog_dashboarditem"."filters" = '{}'::jsonb 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'*/ + LIMIT 100 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.27 @@ -1456,7 +1456,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.28 @@ -1571,7 +1571,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.29 @@ -1589,7 +1589,7 @@ 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'*/ + 5 /* ... */) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.3 @@ -1613,7 +1613,7 @@ FROM "posthog_dashboard" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.30 @@ -1684,7 +1684,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.5 @@ -1719,7 +1719,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.6 @@ -1779,7 +1779,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.7 @@ -1806,7 +1806,7 @@ 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'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.8 @@ -1866,7 +1866,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.9 @@ -1926,6 +1926,6 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index 38996ee675b74..7eeea8ed7c405 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.1 @@ -53,7 +53,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.10 @@ -76,7 +76,7 @@ FROM "posthog_featureflag" 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'*/ + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.11 @@ -136,7 +136,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.12 @@ -147,7 +147,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.13 @@ -173,7 +173,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.14 @@ -184,7 +184,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" 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'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.15 @@ -237,7 +237,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.16 @@ -272,7 +272,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.17 @@ -332,7 +332,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.18 @@ -343,7 +343,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.19 @@ -354,7 +354,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.2 @@ -363,7 +363,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.20 @@ -374,7 +374,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.21 @@ -385,7 +385,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.22 @@ -396,7 +396,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.23 @@ -407,7 +407,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.24 @@ -418,7 +418,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.25 @@ -429,7 +429,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.26 @@ -440,7 +440,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.27 @@ -451,7 +451,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.28 @@ -462,7 +462,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.29 @@ -473,7 +473,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.3 @@ -484,7 +484,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.30 @@ -537,7 +537,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.31 @@ -555,7 +555,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.32 @@ -590,7 +590,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.33 @@ -613,7 +613,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.34 @@ -673,7 +673,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.35 @@ -684,7 +684,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.36 @@ -695,7 +695,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.37 @@ -706,7 +706,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.38 @@ -717,7 +717,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.39 @@ -728,7 +728,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.4 @@ -751,7 +751,7 @@ FROM "posthog_featureflag" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.40 @@ -762,7 +762,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.41 @@ -815,7 +815,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.42 @@ -850,7 +850,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.43 @@ -910,7 +910,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.44 @@ -921,7 +921,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.45 @@ -932,7 +932,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.46 @@ -943,7 +943,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.47 @@ -954,7 +954,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.48 @@ -965,7 +965,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.49 @@ -976,7 +976,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.5 @@ -1002,7 +1002,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.50 @@ -1013,7 +1013,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.51 @@ -1024,7 +1024,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.52 @@ -1035,7 +1035,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.53 @@ -1046,7 +1046,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.54 @@ -1057,7 +1057,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.55 @@ -1068,7 +1068,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.56 @@ -1121,7 +1121,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.57 @@ -1139,7 +1139,7 @@ "posthog_dashboardtile"."deleted" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.58 @@ -1174,7 +1174,7 @@ "posthog_dashboarditem"."tags" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.59 @@ -1197,7 +1197,7 @@ "posthog_dashboard"."is_shared" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.6 @@ -1250,7 +1250,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.60 @@ -1310,7 +1310,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.61 @@ -1321,7 +1321,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.62 @@ -1332,7 +1332,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.63 @@ -1343,7 +1343,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.64 @@ -1354,7 +1354,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.65 @@ -1365,7 +1365,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.66 @@ -1376,7 +1376,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.67 @@ -1399,7 +1399,7 @@ FROM "posthog_featureflag" 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'*/ + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.68 @@ -1459,7 +1459,7 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.69 @@ -1479,7 +1479,7 @@ "posthog_experiment"."updated_at", "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'*/ + WHERE "posthog_experiment"."feature_flag_id" = 2 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.7 @@ -1504,7 +1504,7 @@ AND "posthog_featureflag"."key" = 'copied-flag-key' 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.70 @@ -1526,7 +1526,7 @@ "posthog_survey"."updated_at", "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'*/ + WHERE "posthog_survey"."linked_flag_id" = 2 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.71 @@ -1540,7 +1540,7 @@ "posthog_earlyaccessfeature"."documentation_url", "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'*/ + WHERE "posthog_earlyaccessfeature"."feature_flag_id" = 2 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.72 @@ -1564,7 +1564,7 @@ FROM "posthog_dashboard" 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'*/ + AND "posthog_featureflagdashboards"."feature_flag_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.8 @@ -1574,7 +1574,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.9 @@ -1597,7 +1597,7 @@ FROM "posthog_featureflag" 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'*/ + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success @@ -1628,7 +1628,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.1 @@ -1654,7 +1654,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.2 @@ -1663,7 +1663,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.3 @@ -1674,7 +1674,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.4 @@ -1726,7 +1726,7 @@ "posthog_team"."external_data_workspace_id", "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'*/ + WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.5 @@ -1753,7 +1753,7 @@ 2, 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'*/ + 5 /* ... */)) ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.6 @@ -1785,7 +1785,7 @@ "posthog_user"."events_column_config" 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'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.7 @@ -1817,6 +1817,6 @@ "posthog_user"."events_column_config" 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'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_plugin.ambr b/posthog/api/test/__snapshots__/test_plugin.ambr index d6ea19bbacc2f..e279c542c114c 100644 --- a/posthog/api/test/__snapshots__/test_plugin.ambr +++ b/posthog/api/test/__snapshots__/test_plugin.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.1 @@ -53,7 +53,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.10 @@ -67,7 +67,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND 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'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.11 @@ -126,7 +126,7 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" AND 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'*/ + LIMIT 100 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.12 @@ -157,7 +157,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.13 @@ -183,7 +183,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.14 @@ -209,7 +209,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.15 @@ -218,7 +218,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.16 @@ -232,7 +232,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND 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'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.17 @@ -291,7 +291,7 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" AND 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'*/ + LIMIT 100 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.18 @@ -322,7 +322,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.19 @@ -348,7 +348,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.2 @@ -374,7 +374,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.20 @@ -400,7 +400,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.21 @@ -409,7 +409,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.22 @@ -423,7 +423,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND 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'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.23 @@ -482,7 +482,7 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" AND 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'*/ + LIMIT 100 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.3 @@ -491,7 +491,7 @@ 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'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.4 @@ -502,7 +502,7 @@ FROM "posthog_instancesetting" 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'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.5 @@ -516,7 +516,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND 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'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.6 @@ -547,7 +547,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.7 @@ -573,7 +573,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.8 @@ -599,7 +599,7 @@ "posthog_organization"."available_features" 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'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.9 @@ -608,6 +608,6 @@ 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'*/ + LIMIT 1 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr index b4c8a06aad816..09c2089e7e46b 100644 --- a/posthog/api/test/__snapshots__/test_preflight.ambr +++ b/posthog/api/test/__snapshots__/test_preflight.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.1 @@ -38,7 +38,7 @@ FROM "posthog_instancesetting" 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'*/ + 'constance:posthog:SLACK_APP_SIGNING_SECRET') ''' # --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.2 @@ -98,6 +98,6 @@ "posthog_team"."external_data_workspace_last_synced_at" 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'*/ + LIMIT 21 ''' # --- From 3f2bf6356e0b5021e18d401f942a13e657399211 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Mon, 8 Apr 2024 11:31:27 +0200 Subject: [PATCH 45/45] Add to updated_fields --- posthog/models/dashboard_tile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posthog/models/dashboard_tile.py b/posthog/models/dashboard_tile.py index 7cc6b2601cb62..50af2868abf5b 100644 --- a/posthog/models/dashboard_tile.py +++ b/posthog/models/dashboard_tile.py @@ -109,6 +109,9 @@ def save(self, *args, **kwargs) -> None: if has_no_filters_hash and self.insight.filters != {}: self.filters_hash = generate_insight_cache_key(self.insight, self.dashboard) + if "update_fields" in kwargs: + kwargs["update_fields"].append("filters_hash") + super(DashboardTile, self).save(*args, **kwargs) def copy_to_dashboard(self, dashboard: Dashboard) -> None: