Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(activity-logging): skip reads for fields a logged save cannot change (#126422)

Paul D'Ambra617e91769904
diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
index 8c33f0378af5..3443aa0b5dcc 100644
--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
@@ -8662,71 +8662,37 @@
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.100
'''
- SELECT "customer_analytics_teamcustomeranalyticsconfig"."account_group_type_index" AS "account_group_type_index"
- FROM "customer_analytics_teamcustomeranalyticsconfig"
- WHERE "customer_analytics_teamcustomeranalyticsconfig"."team_id" = 99999
- ORDER BY "customer_analytics_teamcustomeranalyticsconfig"."team_id" ASC
- LIMIT 1
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.101
'''
- SELECT "posthog_tag"."name" AS "tag__name"
- FROM "posthog_taggeditem"
- INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id")
- WHERE ("posthog_taggeditem"."content_type_id" = 99999
- AND "posthog_taggeditem"."object_id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.102
- '''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
- "posthog_user"."toolbar_mode",
- "posthog_user"."hedgehog_config",
- "posthog_user"."allow_sidebar_suggestions",
- "posthog_user"."shortcut_position",
- "posthog_user"."passkeys_enabled_for_2fa",
- "posthog_user"."hide_mcp_hints",
- "posthog_user"."ui_configuration",
- "posthog_user"."onboarding_skipped_at",
- "posthog_user"."onboarding_skipped_reason",
- "posthog_user"."onboarding_skipped_organization_id",
- "posthog_user"."onboarding_delegated_to_invite_id",
- "posthog_user"."onboarding_delegated_to_organization_id",
- "posthog_user"."onboarding_delegation_accepted_at",
- "posthog_user"."events_column_config",
- "posthog_user"."email_opt_in"
- FROM "posthog_user"
- WHERE ("posthog_user"."is_active"
- AND "posthog_user"."id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.103
- '''
- SELECT "posthog_organization"."id",
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
"posthog_organization"."name",
"posthog_organization"."slug",
"posthog_organization"."logo_media_id",
@@ -8765,12 +8731,90 @@
"posthog_organization"."personalization",
"posthog_organization"."domain_whitelist",
"posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.102
+ '''
+ SELECT "posthog_dashboard"."id" AS "id"
+ FROM "posthog_dashboard"
+ INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
+ WHERE (NOT ("posthog_dashboard"."deleted")
+ AND ("posthog_dashboard"."team_id" =
+ (SELECT "U0"."parent_team_id" AS "parent_team_id"
+ FROM "posthog_team" "U0"
+ WHERE "U0"."id" = 99999
+ LIMIT 1)
+ OR ("posthog_team"."parent_team_id" IS NULL
+ AND "posthog_dashboard"."team_id" = 99999))
+ AND "posthog_dashboard"."id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.103
+ '''
+ SELECT "posthog_dashboard"."id" AS "id",
+ "posthog_dashboard"."name" AS "name"
+ FROM "posthog_dashboard"
+ WHERE (NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboard"."id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.104
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ WHERE (NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL)
+ AND NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboardtile"."dashboard_id" = 99999
+ AND NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.105
+ '''
+ SELECT "posthog_dashboard"."id",
+ "posthog_dashboard"."name",
+ "posthog_dashboard"."description",
+ "posthog_dashboard"."team_id",
+ "posthog_dashboard"."pinned",
+ "posthog_dashboard"."created_at",
+ "posthog_dashboard"."created_by_id",
+ "posthog_dashboard"."deleted",
+ "posthog_dashboard"."last_accessed_at",
+ "posthog_dashboard"."last_refresh",
+ "posthog_dashboard"."filters",
+ "posthog_dashboard"."variables",
+ "posthog_dashboard"."breakdown_colors",
+ "posthog_dashboard"."data_color_theme_id",
+ "posthog_dashboard"."creation_mode",
+ "posthog_dashboard"."quick_filter_ids",
+ "posthog_dashboard"."customization",
+ "posthog_dashboard"."deprecated_tags",
+ "posthog_dashboard"."tags",
+ "posthog_dashboard"."share_token",
+ "posthog_dashboard"."is_shared"
+ FROM "posthog_dashboard"
+ WHERE (NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboard"."id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.106
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -8862,62 +8906,15 @@
"posthog_team"."api_query_rate_limit",
"posthog_team"."drop_events_older_than",
"posthog_team"."base_currency",
- "posthog_team"."business_model",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
+ "posthog_team"."business_model"
FROM "posthog_team"
- INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
WHERE "posthog_team"."id" = 99999
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.105
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.107
'''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
+ SELECT "posthog_organization"."id",
"posthog_organization"."name",
"posthog_organization"."slug",
"posthog_organization"."logo_media_id",
@@ -8956,194 +8953,12 @@
"posthog_organization"."personalization",
"posthog_organization"."domain_whitelist",
"posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.106
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.107
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.108
- '''
- SELECT "posthog_dashboard"."id" AS "id"
- FROM "posthog_dashboard"
- INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
- WHERE (NOT ("posthog_dashboard"."deleted")
- AND ("posthog_dashboard"."team_id" =
- (SELECT "U0"."parent_team_id" AS "parent_team_id"
- FROM "posthog_team" "U0"
- WHERE "U0"."id" = 99999
- LIMIT 1)
- OR ("posthog_team"."parent_team_id" IS NULL
- AND "posthog_dashboard"."team_id" = 99999))
- AND "posthog_dashboard"."id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.109
- '''
- SELECT "posthog_dashboard"."id" AS "id",
- "posthog_dashboard"."name" AS "name"
- FROM "posthog_dashboard"
- WHERE (NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboard"."id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.11
- '''
- SELECT "posthog_identityproviderconfig"."id",
- "posthog_identityproviderconfig"."organization_id",
- "posthog_identityproviderconfig"."name",
- "posthog_identityproviderconfig"."domain_scope",
- "posthog_identityproviderconfig"."config_scope",
- "posthog_identityproviderconfig"."created_at",
- "posthog_identityproviderconfig"."updated_at",
- "posthog_identityproviderconfig"."saml_entity_id",
- "posthog_identityproviderconfig"."saml_acs_url",
- "posthog_identityproviderconfig"."saml_x509_cert",
- "posthog_identityproviderconfig"."oidc_issuer_url",
- "posthog_identityproviderconfig"."oidc_client_id",
- "posthog_identityproviderconfig"."oidc_credentials",
- "posthog_identityproviderconfig"."saml_relay_state",
- "posthog_identityproviderconfig"."scim_slug",
- "posthog_identityproviderconfig"."scim_enabled",
- "posthog_identityproviderconfig"."scim_bearer_token",
- "posthog_identityproviderconfig"."id_jag_issuer_url",
- "posthog_identityproviderconfig"."id_jag_jwks_url",
- "posthog_identityproviderconfig"."id_jag_allowed_clients"
- FROM "posthog_identityproviderconfig"
- WHERE "posthog_identityproviderconfig"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.110
- '''
- SELECT COUNT(*) AS "__count"
- FROM "posthog_dashboardtile"
- INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
- WHERE (NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL)
- AND NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboardtile"."dashboard_id" = 99999
- AND NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.111
- '''
- SELECT "posthog_dashboard"."id",
- "posthog_dashboard"."name",
- "posthog_dashboard"."description",
- "posthog_dashboard"."team_id",
- "posthog_dashboard"."pinned",
- "posthog_dashboard"."created_at",
- "posthog_dashboard"."created_by_id",
- "posthog_dashboard"."deleted",
- "posthog_dashboard"."last_accessed_at",
- "posthog_dashboard"."last_refresh",
- "posthog_dashboard"."filters",
- "posthog_dashboard"."variables",
- "posthog_dashboard"."breakdown_colors",
- "posthog_dashboard"."data_color_theme_id",
- "posthog_dashboard"."creation_mode",
- "posthog_dashboard"."quick_filter_ids",
- "posthog_dashboard"."customization",
- "posthog_dashboard"."deprecated_tags",
- "posthog_dashboard"."tags",
- "posthog_dashboard"."share_token",
- "posthog_dashboard"."is_shared"
- FROM "posthog_dashboard"
- WHERE (NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboard"."id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.112
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.108
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9241,7 +9056,76 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.113
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.109
+ '''
+ SELECT "posthog_filesystem"."team_id",
+ "posthog_filesystem"."id",
+ "posthog_filesystem"."path",
+ "posthog_filesystem"."depth",
+ "posthog_filesystem"."type",
+ "posthog_filesystem"."ref",
+ "posthog_filesystem"."href",
+ "posthog_filesystem"."shortcut",
+ "posthog_filesystem"."meta",
+ "posthog_filesystem"."created_at",
+ "posthog_filesystem"."created_by_id",
+ "posthog_filesystem"."surface",
+ "posthog_filesystem"."project_id"
+ FROM "posthog_filesystem"
+ WHERE (("posthog_filesystem"."surface" IS NULL
+ OR "posthog_filesystem"."surface" = 'web')
+ AND "posthog_filesystem"."ref" = '0001'
+ AND "posthog_filesystem"."team_id" = 99999
+ AND "posthog_filesystem"."type" = 'insight'
+ AND NOT ("posthog_filesystem"."shortcut"
+ AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.11
+ '''
+ SELECT "posthog_identityproviderconfig"."id",
+ "posthog_identityproviderconfig"."organization_id",
+ "posthog_identityproviderconfig"."name",
+ "posthog_identityproviderconfig"."domain_scope",
+ "posthog_identityproviderconfig"."config_scope",
+ "posthog_identityproviderconfig"."created_at",
+ "posthog_identityproviderconfig"."updated_at",
+ "posthog_identityproviderconfig"."saml_entity_id",
+ "posthog_identityproviderconfig"."saml_acs_url",
+ "posthog_identityproviderconfig"."saml_x509_cert",
+ "posthog_identityproviderconfig"."oidc_issuer_url",
+ "posthog_identityproviderconfig"."oidc_client_id",
+ "posthog_identityproviderconfig"."oidc_credentials",
+ "posthog_identityproviderconfig"."saml_relay_state",
+ "posthog_identityproviderconfig"."scim_slug",
+ "posthog_identityproviderconfig"."scim_enabled",
+ "posthog_identityproviderconfig"."scim_bearer_token",
+ "posthog_identityproviderconfig"."id_jag_issuer_url",
+ "posthog_identityproviderconfig"."id_jag_jwks_url",
+ "posthog_identityproviderconfig"."id_jag_allowed_clients"
+ FROM "posthog_identityproviderconfig"
+ WHERE "posthog_identityproviderconfig"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.110
+ '''
+ SELECT "posthog_insightviewed"."id",
+ "posthog_insightviewed"."team_id",
+ "posthog_insightviewed"."user_id",
+ "posthog_insightviewed"."insight_id",
+ "posthog_insightviewed"."last_viewed_at",
+ "posthog_insightviewed"."source",
+ "posthog_insightviewed"."dashboard_id"
+ FROM "posthog_insightviewed"
+ WHERE ("posthog_insightviewed"."insight_id" = 99999
+ AND "posthog_insightviewed"."team_id" = 99999
+ AND "posthog_insightviewed"."user_id" = 99999)
+ LIMIT 21
+ FOR
+ UPDATE
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.111
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -9287,7 +9171,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.114
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.112
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9385,194 +9269,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.115
- '''
- SELECT "posthog_filesystem"."team_id",
- "posthog_filesystem"."id",
- "posthog_filesystem"."path",
- "posthog_filesystem"."depth",
- "posthog_filesystem"."type",
- "posthog_filesystem"."ref",
- "posthog_filesystem"."href",
- "posthog_filesystem"."shortcut",
- "posthog_filesystem"."meta",
- "posthog_filesystem"."created_at",
- "posthog_filesystem"."created_by_id",
- "posthog_filesystem"."surface",
- "posthog_filesystem"."project_id"
- FROM "posthog_filesystem"
- WHERE (("posthog_filesystem"."surface" IS NULL
- OR "posthog_filesystem"."surface" = 'web')
- AND "posthog_filesystem"."ref" = '0001'
- AND "posthog_filesystem"."team_id" = 99999
- AND "posthog_filesystem"."type" = 'insight'
- AND NOT ("posthog_filesystem"."shortcut"
- AND "posthog_filesystem"."shortcut" IS NOT NULL))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.116
- '''
- SELECT "posthog_insightviewed"."id",
- "posthog_insightviewed"."team_id",
- "posthog_insightviewed"."user_id",
- "posthog_insightviewed"."insight_id",
- "posthog_insightviewed"."last_viewed_at",
- "posthog_insightviewed"."source",
- "posthog_insightviewed"."dashboard_id"
- FROM "posthog_insightviewed"
- WHERE ("posthog_insightviewed"."insight_id" = 99999
- AND "posthog_insightviewed"."team_id" = 99999
- AND "posthog_insightviewed"."user_id" = 99999)
- LIMIT 21
- FOR
- UPDATE
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.117
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.118
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.119
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.113
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -9601,30 +9298,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.12
- '''
- SELECT "posthog_organizationdomain"."id",
- "posthog_organizationdomain"."organization_id",
- "posthog_organizationdomain"."domain",
- "posthog_organizationdomain"."verification_challenge",
- "posthog_organizationdomain"."verified_at",
- "posthog_organizationdomain"."last_verification_retry",
- "posthog_organizationdomain"."jit_provisioning_enabled",
- "posthog_organizationdomain"."sso_enforcement",
- "posthog_organizationdomain"."saml_entity_id",
- "posthog_organizationdomain"."saml_acs_url",
- "posthog_organizationdomain"."saml_x509_cert",
- "posthog_organizationdomain"."scim_enabled",
- "posthog_organizationdomain"."scim_bearer_token",
- "posthog_organizationdomain"."id_jag_issuer_url",
- "posthog_organizationdomain"."id_jag_jwks_url",
- "posthog_organizationdomain"."id_jag_allowed_clients",
- "posthog_organizationdomain"."identity_provider_config_id"
- FROM "posthog_organizationdomain"
- WHERE "posthog_organizationdomain"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.120
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.114
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -9653,7 +9327,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.121
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.115
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -9673,7 +9347,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.122
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.116
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -9686,7 +9360,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.123
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.117
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -9702,7 +9376,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.124
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.118
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -9720,7 +9394,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.125
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.119
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -9729,7 +9403,30 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.126
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.12
+ '''
+ SELECT "posthog_organizationdomain"."id",
+ "posthog_organizationdomain"."organization_id",
+ "posthog_organizationdomain"."domain",
+ "posthog_organizationdomain"."verification_challenge",
+ "posthog_organizationdomain"."verified_at",
+ "posthog_organizationdomain"."last_verification_retry",
+ "posthog_organizationdomain"."jit_provisioning_enabled",
+ "posthog_organizationdomain"."sso_enforcement",
+ "posthog_organizationdomain"."saml_entity_id",
+ "posthog_organizationdomain"."saml_acs_url",
+ "posthog_organizationdomain"."saml_x509_cert",
+ "posthog_organizationdomain"."scim_enabled",
+ "posthog_organizationdomain"."scim_bearer_token",
+ "posthog_organizationdomain"."id_jag_issuer_url",
+ "posthog_organizationdomain"."id_jag_jwks_url",
+ "posthog_organizationdomain"."id_jag_allowed_clients",
+ "posthog_organizationdomain"."identity_provider_config_id"
+ FROM "posthog_organizationdomain"
+ WHERE "posthog_organizationdomain"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.120
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -9775,7 +9472,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.127
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.121
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -9821,7 +9518,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.128
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.122
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9959,7 +9656,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.129
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.123
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -10014,30 +9711,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.13
- '''
- SELECT "posthog_organizationdomain"."id",
- "posthog_organizationdomain"."organization_id",
- "posthog_organizationdomain"."domain",
- "posthog_organizationdomain"."verification_challenge",
- "posthog_organizationdomain"."verified_at",
- "posthog_organizationdomain"."last_verification_retry",
- "posthog_organizationdomain"."jit_provisioning_enabled",
- "posthog_organizationdomain"."sso_enforcement",
- "posthog_organizationdomain"."saml_entity_id",
- "posthog_organizationdomain"."saml_acs_url",
- "posthog_organizationdomain"."saml_x509_cert",
- "posthog_organizationdomain"."scim_enabled",
- "posthog_organizationdomain"."scim_bearer_token",
- "posthog_organizationdomain"."id_jag_issuer_url",
- "posthog_organizationdomain"."id_jag_jwks_url",
- "posthog_organizationdomain"."id_jag_allowed_clients",
- "posthog_organizationdomain"."identity_provider_config_id"
- FROM "posthog_organizationdomain"
- WHERE "posthog_organizationdomain"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.130
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.124
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -10060,7 +9734,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.131
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.125
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -10113,7 +9787,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.132
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.126
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -10133,7 +9807,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.133
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.127
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -10146,7 +9820,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.134
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.128
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -10159,7 +9833,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.135
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.129
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -10191,7 +9865,30 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.136
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.13
+ '''
+ SELECT "posthog_organizationdomain"."id",
+ "posthog_organizationdomain"."organization_id",
+ "posthog_organizationdomain"."domain",
+ "posthog_organizationdomain"."verification_challenge",
+ "posthog_organizationdomain"."verified_at",
+ "posthog_organizationdomain"."last_verification_retry",
+ "posthog_organizationdomain"."jit_provisioning_enabled",
+ "posthog_organizationdomain"."sso_enforcement",
+ "posthog_organizationdomain"."saml_entity_id",
+ "posthog_organizationdomain"."saml_acs_url",
+ "posthog_organizationdomain"."saml_x509_cert",
+ "posthog_organizationdomain"."scim_enabled",
+ "posthog_organizationdomain"."scim_bearer_token",
+ "posthog_organizationdomain"."id_jag_issuer_url",
+ "posthog_organizationdomain"."id_jag_jwks_url",
+ "posthog_organizationdomain"."id_jag_allowed_clients",
+ "posthog_organizationdomain"."identity_provider_config_id"
+ FROM "posthog_organizationdomain"
+ WHERE "posthog_organizationdomain"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.130
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10289,7 +9986,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.137
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.131
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -10335,7 +10032,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.138
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.132
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10433,7 +10130,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.139
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.133
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -10458,24 +10155,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.14
- '''
- SELECT "posthog_roleexternalreference"."id",
- "posthog_roleexternalreference"."organization_id",
- "posthog_roleexternalreference"."role_id",
- "posthog_roleexternalreference"."provider",
- "posthog_roleexternalreference"."provider_organization_id",
- "posthog_roleexternalreference"."provider_role_id",
- "posthog_roleexternalreference"."provider_role_slug",
- "posthog_roleexternalreference"."provider_role_name",
- "posthog_roleexternalreference"."created_at",
- "posthog_roleexternalreference"."updated_at",
- "posthog_roleexternalreference"."created_by_id"
- FROM "posthog_roleexternalreference"
- WHERE "posthog_roleexternalreference"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.140
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.134
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -10493,7 +10173,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.141
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.135
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -10539,7 +10219,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.142
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.136
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10637,7 +10317,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.143
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.137
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -10666,7 +10346,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.144
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.138
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -10695,7 +10375,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.145
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.139
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -10715,7 +10395,24 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.146
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.14
+ '''
+ SELECT "posthog_roleexternalreference"."id",
+ "posthog_roleexternalreference"."organization_id",
+ "posthog_roleexternalreference"."role_id",
+ "posthog_roleexternalreference"."provider",
+ "posthog_roleexternalreference"."provider_organization_id",
+ "posthog_roleexternalreference"."provider_role_id",
+ "posthog_roleexternalreference"."provider_role_slug",
+ "posthog_roleexternalreference"."provider_role_name",
+ "posthog_roleexternalreference"."created_at",
+ "posthog_roleexternalreference"."updated_at",
+ "posthog_roleexternalreference"."created_by_id"
+ FROM "posthog_roleexternalreference"
+ WHERE "posthog_roleexternalreference"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.140
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -10728,7 +10425,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.147
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.141
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -10744,7 +10441,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.148
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.142
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -10762,7 +10459,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.149
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.143
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -10771,24 +10468,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.15
- '''
- SELECT "posthog_roleexternalreference"."id",
- "posthog_roleexternalreference"."organization_id",
- "posthog_roleexternalreference"."role_id",
- "posthog_roleexternalreference"."provider",
- "posthog_roleexternalreference"."provider_organization_id",
- "posthog_roleexternalreference"."provider_role_id",
- "posthog_roleexternalreference"."provider_role_slug",
- "posthog_roleexternalreference"."provider_role_name",
- "posthog_roleexternalreference"."created_at",
- "posthog_roleexternalreference"."updated_at",
- "posthog_roleexternalreference"."created_by_id"
- FROM "posthog_roleexternalreference"
- WHERE "posthog_roleexternalreference"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.150
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.144
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -10834,7 +10514,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.151
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.145
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -10880,7 +10560,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.152
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.146
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -11018,7 +10698,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.153
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.147
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11073,7 +10753,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.154
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.148
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -11096,7 +10776,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.155
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.149
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11149,7 +10829,24 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.156
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.15
+ '''
+ SELECT "posthog_roleexternalreference"."id",
+ "posthog_roleexternalreference"."organization_id",
+ "posthog_roleexternalreference"."role_id",
+ "posthog_roleexternalreference"."provider",
+ "posthog_roleexternalreference"."provider_organization_id",
+ "posthog_roleexternalreference"."provider_role_id",
+ "posthog_roleexternalreference"."provider_role_slug",
+ "posthog_roleexternalreference"."provider_role_name",
+ "posthog_roleexternalreference"."created_at",
+ "posthog_roleexternalreference"."updated_at",
+ "posthog_roleexternalreference"."created_by_id"
+ FROM "posthog_roleexternalreference"
+ WHERE "posthog_roleexternalreference"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.150
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -11163,7 +10860,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.157
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.151
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -11268,7 +10965,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.158
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.152
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -11291,7 +10988,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.159
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.153
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -11312,18 +11009,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.16
- '''
- SELECT "posthog_organizationprovisioning"."organization_id",
- "posthog_organizationprovisioning"."partner",
- "posthog_organizationprovisioning"."application_id",
- "posthog_organizationprovisioning"."created_at"
- FROM "posthog_organizationprovisioning"
- WHERE "posthog_organizationprovisioning"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.160
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.154
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -11369,7 +11055,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.161
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.155
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -11415,7 +11101,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.162
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.156
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -11553,7 +11239,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.163
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.157
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11608,7 +11294,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.164
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.158
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -11631,7 +11317,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.165
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.159
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11684,7 +11370,23 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.166
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.16
+ '''
+ SELECT "posthog_proxyrecord"."id",
+ "posthog_proxyrecord"."organization_id",
+ "posthog_proxyrecord"."domain",
+ "posthog_proxyrecord"."target_cname",
+ "posthog_proxyrecord"."root_redirect_url",
+ "posthog_proxyrecord"."message",
+ "posthog_proxyrecord"."status",
+ "posthog_proxyrecord"."created_by_id",
+ "posthog_proxyrecord"."created_at",
+ "posthog_proxyrecord"."updated_at"
+ FROM "posthog_proxyrecord"
+ WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.160
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -11700,7 +11402,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.167
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.161
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -11798,7 +11500,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.168
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.162
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -11823,7 +11525,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.169
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.163
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -11835,23 +11537,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.17
- '''
- SELECT "posthog_proxyrecord"."id",
- "posthog_proxyrecord"."organization_id",
- "posthog_proxyrecord"."domain",
- "posthog_proxyrecord"."target_cname",
- "posthog_proxyrecord"."root_redirect_url",
- "posthog_proxyrecord"."message",
- "posthog_proxyrecord"."status",
- "posthog_proxyrecord"."created_by_id",
- "posthog_proxyrecord"."created_at",
- "posthog_proxyrecord"."updated_at"
- FROM "posthog_proxyrecord"
- WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.170
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.164
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -11870,7 +11556,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.171
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.165
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -11878,7 +11564,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.172
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.166
'''
SELECT "posthog_dashboardtile"."group_key" AS "group_key"
FROM "posthog_dashboardtile"
@@ -11892,7 +11578,7 @@
OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.173
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.167
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -11908,7 +11594,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.174
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.168
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -11924,7 +11610,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.175
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.169
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -11940,7 +11626,23 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.176
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.17
+ '''
+ SELECT "posthog_proxyrecord"."id",
+ "posthog_proxyrecord"."organization_id",
+ "posthog_proxyrecord"."domain",
+ "posthog_proxyrecord"."target_cname",
+ "posthog_proxyrecord"."root_redirect_url",
+ "posthog_proxyrecord"."message",
+ "posthog_proxyrecord"."status",
+ "posthog_proxyrecord"."created_by_id",
+ "posthog_proxyrecord"."created_at",
+ "posthog_proxyrecord"."updated_at"
+ FROM "posthog_proxyrecord"
+ WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.170
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -11959,7 +11661,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.177
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.171
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -11979,7 +11681,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.178
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.172
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -12336,7 +12038,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.179
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.173
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -12345,23 +12047,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.18
- '''
- SELECT "posthog_proxyrecord"."id",
- "posthog_proxyrecord"."organization_id",
- "posthog_proxyrecord"."domain",
- "posthog_proxyrecord"."target_cname",
- "posthog_proxyrecord"."root_redirect_url",
- "posthog_proxyrecord"."message",
- "posthog_proxyrecord"."status",
- "posthog_proxyrecord"."created_by_id",
- "posthog_proxyrecord"."created_at",
- "posthog_proxyrecord"."updated_at"
- FROM "posthog_proxyrecord"
- WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.180
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.174
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -12407,7 +12093,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.181
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.175
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -12453,7 +12139,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.182
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.176
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -12591,7 +12277,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.183
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.177
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -12646,7 +12332,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.184
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.178
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -12669,7 +12355,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.185
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.179
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -12722,7 +12408,26 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.186
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.18
+ '''
+ SELECT "legal_documents_legaldocument"."created_by_id",
+ "legal_documents_legaldocument"."created_at",
+ "legal_documents_legaldocument"."updated_at",
+ "legal_documents_legaldocument"."id",
+ "legal_documents_legaldocument"."organization_id",
+ "legal_documents_legaldocument"."document_type",
+ "legal_documents_legaldocument"."company_name",
+ "legal_documents_legaldocument"."company_address",
+ "legal_documents_legaldocument"."representative_email",
+ "legal_documents_legaldocument"."status",
+ "legal_documents_legaldocument"."pandadoc_document_id",
+ "legal_documents_legaldocument"."signed_pdf_stored"
+ FROM "legal_documents_legaldocument"
+ WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "legal_documents_legaldocument"."created_at" DESC
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.180
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -12742,7 +12447,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.187
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.181
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -12755,7 +12460,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.188
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.182
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -12768,7 +12473,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.189
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.183
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -12800,33 +12505,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.19
- '''
- SELECT "posthog_duckgresserver"."created_by_id",
- "posthog_duckgresserver"."created_at",
- "posthog_duckgresserver"."updated_at",
- "posthog_duckgresserver"."id",
- "posthog_duckgresserver"."organization_id",
- "posthog_duckgresserver"."host",
- "posthog_duckgresserver"."port",
- "posthog_duckgresserver"."flight_port",
- "posthog_duckgresserver"."database",
- "posthog_duckgresserver"."username",
- "posthog_duckgresserver"."password",
- "posthog_duckgresserver"."trino_password",
- "posthog_duckgresserver"."catalog_host",
- "posthog_duckgresserver"."catalog_port",
- "posthog_duckgresserver"."catalog_database",
- "posthog_duckgresserver"."catalog_username",
- "posthog_duckgresserver"."catalog_password",
- "posthog_duckgresserver"."bucket",
- "posthog_duckgresserver"."bucket_region"
- FROM "posthog_duckgresserver"
- WHERE "posthog_duckgresserver"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.190
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.184
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -12924,7 +12603,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.191
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.185
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -12970,7 +12649,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.192
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.186
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13068,7 +12747,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.193
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.187
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -13093,7 +12772,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.194
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.188
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -13111,7 +12790,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.195
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.189
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -13157,7 +12836,26 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.196
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.19
+ '''
+ SELECT "legal_documents_legaldocument"."created_by_id",
+ "legal_documents_legaldocument"."created_at",
+ "legal_documents_legaldocument"."updated_at",
+ "legal_documents_legaldocument"."id",
+ "legal_documents_legaldocument"."organization_id",
+ "legal_documents_legaldocument"."document_type",
+ "legal_documents_legaldocument"."company_name",
+ "legal_documents_legaldocument"."company_address",
+ "legal_documents_legaldocument"."representative_email",
+ "legal_documents_legaldocument"."status",
+ "legal_documents_legaldocument"."pandadoc_document_id",
+ "legal_documents_legaldocument"."signed_pdf_stored"
+ FROM "legal_documents_legaldocument"
+ WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "legal_documents_legaldocument"."created_at" DESC
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.190
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13255,7 +12953,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.197
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.191
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -13284,7 +12982,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.198
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.192
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -13313,7 +13011,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.199
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.193
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -13333,67 +13031,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.2
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "posthog_organization"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.20
- '''
- SELECT "posthog_managedwarehousesourcelifecycle"."organization_id",
- "posthog_managedwarehousesourcelifecycle"."generation",
- "posthog_managedwarehousesourcelifecycle"."desired_active",
- "posthog_managedwarehousesourcelifecycle"."internal_only",
- "posthog_managedwarehousesourcelifecycle"."background_loading_enabled",
- "posthog_managedwarehousesourcelifecycle"."legacy_conversion_generation"
- FROM "posthog_managedwarehousesourcelifecycle"
- WHERE "posthog_managedwarehousesourcelifecycle"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.200
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.194
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -13406,7 +13044,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.201
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.195
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -13422,7 +13060,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.202
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.196
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -13440,7 +13078,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.203
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.197
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -13449,7 +13087,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.204
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.198
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -13495,7 +13133,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.205
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.199
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -13541,7 +13179,75 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.206
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.2
+ '''
+ SELECT "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "posthog_organization"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.20
+ '''
+ SELECT "growth_productpushcampaign"."updated_at",
+ "growth_productpushcampaign"."id",
+ "growth_productpushcampaign"."organization_id",
+ "growth_productpushcampaign"."created_by_id",
+ "growth_productpushcampaign"."product_key",
+ "growth_productpushcampaign"."status",
+ "growth_productpushcampaign"."position",
+ "growth_productpushcampaign"."scheduled_for",
+ "growth_productpushcampaign"."started_at",
+ "growth_productpushcampaign"."ends_at",
+ "growth_productpushcampaign"."ended_at",
+ "growth_productpushcampaign"."source",
+ "growth_productpushcampaign"."reason_text",
+ "growth_productpushcampaign"."metadata",
+ "growth_productpushcampaign"."created_at"
+ FROM "growth_productpushcampaign"
+ WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.200
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13679,7 +13385,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.207
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.201
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -13734,7 +13440,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.208
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.202
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -13757,7 +13463,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.209
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.203
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -13810,26 +13516,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.21
- '''
- SELECT "legal_documents_legaldocument"."created_by_id",
- "legal_documents_legaldocument"."created_at",
- "legal_documents_legaldocument"."updated_at",
- "legal_documents_legaldocument"."id",
- "legal_documents_legaldocument"."organization_id",
- "legal_documents_legaldocument"."document_type",
- "legal_documents_legaldocument"."company_name",
- "legal_documents_legaldocument"."company_address",
- "legal_documents_legaldocument"."representative_email",
- "legal_documents_legaldocument"."status",
- "legal_documents_legaldocument"."pandadoc_document_id",
- "legal_documents_legaldocument"."signed_pdf_stored"
- FROM "legal_documents_legaldocument"
- WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "legal_documents_legaldocument"."created_at" DESC
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.210
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.204
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -13849,7 +13536,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.211
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.205
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -13862,7 +13549,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.212
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.206
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -13875,7 +13562,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.213
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.207
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -13907,7 +13594,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.214
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.208
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14005,7 +13692,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.215
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.209
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -14051,7 +13738,28 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.216
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.21
+ '''
+ SELECT "growth_productpushcampaign"."updated_at",
+ "growth_productpushcampaign"."id",
+ "growth_productpushcampaign"."organization_id",
+ "growth_productpushcampaign"."created_by_id",
+ "growth_productpushcampaign"."product_key",
+ "growth_productpushcampaign"."status",
+ "growth_productpushcampaign"."position",
+ "growth_productpushcampaign"."scheduled_for",
+ "growth_productpushcampaign"."started_at",
+ "growth_productpushcampaign"."ends_at",
+ "growth_productpushcampaign"."ended_at",
+ "growth_productpushcampaign"."source",
+ "growth_productpushcampaign"."reason_text",
+ "growth_productpushcampaign"."metadata",
+ "growth_productpushcampaign"."created_at"
+ FROM "growth_productpushcampaign"
+ WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.210
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14149,7 +13857,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.217
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.211
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -14174,7 +13882,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.218
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.212
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -14192,7 +13900,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.219
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.213
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -14238,26 +13946,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.22
- '''
- SELECT "legal_documents_legaldocument"."created_by_id",
- "legal_documents_legaldocument"."created_at",
- "legal_documents_legaldocument"."updated_at",
- "legal_documents_legaldocument"."id",
- "legal_documents_legaldocument"."organization_id",
- "legal_documents_legaldocument"."document_type",
- "legal_documents_legaldocument"."company_name",
- "legal_documents_legaldocument"."company_address",
- "legal_documents_legaldocument"."representative_email",
- "legal_documents_legaldocument"."status",
- "legal_documents_legaldocument"."pandadoc_document_id",
- "legal_documents_legaldocument"."signed_pdf_stored"
- FROM "legal_documents_legaldocument"
- WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "legal_documents_legaldocument"."created_at" DESC
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.220
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.214
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14355,7 +14044,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.221
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.215
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -14384,7 +14073,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.222
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.216
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -14413,7 +14102,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.223
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.217
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -14433,7 +14122,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.224
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.218
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -14446,7 +14135,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.225
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.219
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -14462,7 +14151,19 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.226
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.22
+ '''
+ SELECT "growth_organizationenrichmentfetch"."id",
+ "growth_organizationenrichmentfetch"."organization_id",
+ "growth_organizationenrichmentfetch"."provider",
+ "growth_organizationenrichmentfetch"."fetched_at",
+ "growth_organizationenrichmentfetch"."is_recheck",
+ "growth_organizationenrichmentfetch"."payload"
+ FROM "growth_organizationenrichmentfetch"
+ WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.220
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -14480,7 +14181,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.227
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.221
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -14489,7 +14190,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.228
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.222
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -14535,7 +14236,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.229
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.223
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -14581,28 +14282,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.23
- '''
- SELECT "growth_productpushcampaign"."updated_at",
- "growth_productpushcampaign"."id",
- "growth_productpushcampaign"."organization_id",
- "growth_productpushcampaign"."created_by_id",
- "growth_productpushcampaign"."product_key",
- "growth_productpushcampaign"."status",
- "growth_productpushcampaign"."position",
- "growth_productpushcampaign"."scheduled_for",
- "growth_productpushcampaign"."started_at",
- "growth_productpushcampaign"."ends_at",
- "growth_productpushcampaign"."ended_at",
- "growth_productpushcampaign"."source",
- "growth_productpushcampaign"."reason_text",
- "growth_productpushcampaign"."metadata",
- "growth_productpushcampaign"."created_at"
- FROM "growth_productpushcampaign"
- WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.230
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.224
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14740,7 +14420,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.231
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.225
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -14795,7 +14475,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.232
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.226
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -14818,7 +14498,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.233
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.227
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -14871,7 +14551,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.234
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.228
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -14891,7 +14571,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.235
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.229
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -14904,7 +14584,19 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.236
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.23
+ '''
+ SELECT "growth_organizationenrichmentfetch"."id",
+ "growth_organizationenrichmentfetch"."organization_id",
+ "growth_organizationenrichmentfetch"."provider",
+ "growth_organizationenrichmentfetch"."fetched_at",
+ "growth_organizationenrichmentfetch"."is_recheck",
+ "growth_organizationenrichmentfetch"."payload"
+ FROM "growth_organizationenrichmentfetch"
+ WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.230
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -14917,7 +14609,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.237
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.231
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -14949,7 +14641,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.238
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.232
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15047,7 +14739,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.239
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.233
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -15093,28 +14785,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.24
- '''
- SELECT "growth_productpushcampaign"."updated_at",
- "growth_productpushcampaign"."id",
- "growth_productpushcampaign"."organization_id",
- "growth_productpushcampaign"."created_by_id",
- "growth_productpushcampaign"."product_key",
- "growth_productpushcampaign"."status",
- "growth_productpushcampaign"."position",
- "growth_productpushcampaign"."scheduled_for",
- "growth_productpushcampaign"."started_at",
- "growth_productpushcampaign"."ends_at",
- "growth_productpushcampaign"."ended_at",
- "growth_productpushcampaign"."source",
- "growth_productpushcampaign"."reason_text",
- "growth_productpushcampaign"."metadata",
- "growth_productpushcampaign"."created_at"
- FROM "growth_productpushcampaign"
- WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.240
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.234
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15212,7 +14883,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.241
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.235
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -15237,7 +14908,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.242
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.236
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -15255,7 +14926,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.243
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.237
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -15301,7 +14972,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.244
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.238
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15399,7 +15070,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.245
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.239
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -15428,7 +15099,23 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.246
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.24
+ '''
+ SELECT "growth_enrichmentlabelresult"."id",
+ "growth_enrichmentlabelresult"."organization_id",
+ "growth_enrichmentlabelresult"."fetch_id",
+ "growth_enrichmentlabelresult"."label_name",
+ "growth_enrichmentlabelresult"."prompt_version",
+ "growth_enrichmentlabelresult"."prompt_hash",
+ "growth_enrichmentlabelresult"."model",
+ "growth_enrichmentlabelresult"."output",
+ "growth_enrichmentlabelresult"."inputs",
+ "growth_enrichmentlabelresult"."created_at"
+ FROM "growth_enrichmentlabelresult"
+ WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.240
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -15457,7 +15144,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.247
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.241
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -15477,7 +15164,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.248
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.242
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -15490,7 +15177,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.249
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.243
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -15506,19 +15193,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.25
- '''
- SELECT "growth_organizationenrichment"."id",
- "growth_organizationenrichment"."organization_id",
- "growth_organizationenrichment"."data",
- "growth_organizationenrichment"."created_at",
- "growth_organizationenrichment"."updated_at"
- FROM "growth_organizationenrichment"
- WHERE "growth_organizationenrichment"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.250
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.244
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -15536,7 +15211,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.251
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.245
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -15545,7 +15220,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.252
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.246
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -15591,7 +15266,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.253
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.247
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -15637,7 +15312,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.254
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.248
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15775,7 +15450,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.255
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.249
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -15830,7 +15505,23 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.256
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.25
+ '''
+ SELECT "growth_enrichmentlabelresult"."id",
+ "growth_enrichmentlabelresult"."organization_id",
+ "growth_enrichmentlabelresult"."fetch_id",
+ "growth_enrichmentlabelresult"."label_name",
+ "growth_enrichmentlabelresult"."prompt_version",
+ "growth_enrichmentlabelresult"."prompt_hash",
+ "growth_enrichmentlabelresult"."model",
+ "growth_enrichmentlabelresult"."output",
+ "growth_enrichmentlabelresult"."inputs",
+ "growth_enrichmentlabelresult"."created_at"
+ FROM "growth_enrichmentlabelresult"
+ WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.250
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -15853,7 +15544,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.257
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.251
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -15906,7 +15597,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.258
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.252
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -15920,7 +15611,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.259
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.253
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -16025,19 +15716,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.26
- '''
- SELECT "growth_organizationenrichmentfetch"."id",
- "growth_organizationenrichmentfetch"."organization_id",
- "growth_organizationenrichmentfetch"."provider",
- "growth_organizationenrichmentfetch"."fetched_at",
- "growth_organizationenrichmentfetch"."is_recheck",
- "growth_organizationenrichmentfetch"."payload"
- FROM "growth_organizationenrichmentfetch"
- WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.260
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.254
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -16060,7 +15739,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.261
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.255
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -16081,7 +15760,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.262
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.256
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -16127,7 +15806,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.263
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.257
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -16173,7 +15852,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.264
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.258
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -16311,7 +15990,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.265
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.259
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -16366,9 +16045,22 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.266
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.26
'''
- SELECT "ee_accesscontrol"."id",
+ SELECT "ee_organizationresourceaccess"."id",
+ "ee_organizationresourceaccess"."resource",
+ "ee_organizationresourceaccess"."access_level",
+ "ee_organizationresourceaccess"."organization_id",
+ "ee_organizationresourceaccess"."created_by_id",
+ "ee_organizationresourceaccess"."created_at",
+ "ee_organizationresourceaccess"."updated_at"
+ FROM "ee_organizationresourceaccess"
+ WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.260
+ '''
+ SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
"ee_accesscontrol"."access_level",
"ee_accesscontrol"."resource",
@@ -16389,7 +16081,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.267
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.261
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -16442,7 +16134,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.268
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.262
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -16458,7 +16150,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.269
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.263
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -16556,19 +16248,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.27
- '''
- SELECT "growth_organizationenrichmentfetch"."id",
- "growth_organizationenrichmentfetch"."organization_id",
- "growth_organizationenrichmentfetch"."provider",
- "growth_organizationenrichmentfetch"."fetched_at",
- "growth_organizationenrichmentfetch"."is_recheck",
- "growth_organizationenrichmentfetch"."payload"
- FROM "growth_organizationenrichmentfetch"
- WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.270
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.264
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -16593,7 +16273,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.271
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.265
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -16605,7 +16285,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.272
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.266
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -16624,7 +16304,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.273
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.267
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -16632,7 +16312,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.274
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.268
'''
SELECT "posthog_dashboardtile"."group_key" AS "group_key"
FROM "posthog_dashboardtile"
@@ -16646,7 +16326,7 @@
OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.275
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.269
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -16662,7 +16342,20 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.276
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.27
+ '''
+ SELECT "ee_organizationresourceaccess"."id",
+ "ee_organizationresourceaccess"."resource",
+ "ee_organizationresourceaccess"."access_level",
+ "ee_organizationresourceaccess"."organization_id",
+ "ee_organizationresourceaccess"."created_by_id",
+ "ee_organizationresourceaccess"."created_at",
+ "ee_organizationresourceaccess"."updated_at"
+ FROM "ee_organizationresourceaccess"
+ WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.270
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -16678,7 +16371,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.277
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.271
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -16694,7 +16387,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.278
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.272
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -16713,7 +16406,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.279
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.273
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -16733,23 +16426,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.28
- '''
- SELECT "growth_enrichmentlabelresult"."id",
- "growth_enrichmentlabelresult"."organization_id",
- "growth_enrichmentlabelresult"."fetch_id",
- "growth_enrichmentlabelresult"."label_name",
- "growth_enrichmentlabelresult"."prompt_version",
- "growth_enrichmentlabelresult"."prompt_hash",
- "growth_enrichmentlabelresult"."model",
- "growth_enrichmentlabelresult"."output",
- "growth_enrichmentlabelresult"."inputs",
- "growth_enrichmentlabelresult"."created_at"
- FROM "growth_enrichmentlabelresult"
- WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.280
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.274
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -17106,7 +16783,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.281
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.275
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -17115,7 +16792,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.282
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.276
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -17161,7 +16838,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.283
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.277
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -17207,7 +16884,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.284
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.278
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17345,7 +17022,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.285
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.279
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -17400,7 +17077,16 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.286
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.28
+ '''
+ SELECT "posthog_team"."organization_id" AS "organization_id"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ ORDER BY "posthog_team"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.280
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -17423,7 +17109,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.287
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.281
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -17476,7 +17162,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.288
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.282
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -17496,7 +17182,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.289
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.283
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -17509,23 +17195,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.29
- '''
- SELECT "growth_enrichmentlabelresult"."id",
- "growth_enrichmentlabelresult"."organization_id",
- "growth_enrichmentlabelresult"."fetch_id",
- "growth_enrichmentlabelresult"."label_name",
- "growth_enrichmentlabelresult"."prompt_version",
- "growth_enrichmentlabelresult"."prompt_hash",
- "growth_enrichmentlabelresult"."model",
- "growth_enrichmentlabelresult"."output",
- "growth_enrichmentlabelresult"."inputs",
- "growth_enrichmentlabelresult"."created_at"
- FROM "growth_enrichmentlabelresult"
- WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.290
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.284
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -17538,7 +17208,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.291
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.285
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -17570,7 +17240,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.292
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.286
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17668,7 +17338,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.293
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.287
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -17714,7 +17384,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.294
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.288
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17812,7 +17482,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.295
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.289
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -17837,7 +17507,20 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.296
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.29
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id"
+ FROM "posthog_organizationmembership"
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.290
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -17855,7 +17538,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.297
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.291
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -17901,7 +17584,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.298
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.292
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17999,7 +17682,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.299
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.293
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -18028,27 +17711,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.3
- '''
- SELECT "posthog_organization"."is_active" AS "is_active",
- "posthog_organization"."has_active_subscription" AS "has_active_subscription"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "posthog_organization"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.30
- '''
- SELECT "growth_enrichmentsignupsnapshot"."id",
- "growth_enrichmentsignupsnapshot"."organization_id",
- "growth_enrichmentsignupsnapshot"."created_at"
- FROM "growth_enrichmentsignupsnapshot"
- WHERE "growth_enrichmentsignupsnapshot"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.300
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.294
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -18077,7 +17740,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.301
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.295
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -18097,7 +17760,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.302
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.296
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -18110,7 +17773,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.303
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.297
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -18126,7 +17789,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.304
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.298
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -18144,7 +17807,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.305
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.299
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -18153,7 +17816,31 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.306
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.3
+ '''
+ SELECT "posthog_organization"."is_active" AS "is_active",
+ "posthog_organization"."has_active_subscription" AS "has_active_subscription"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "posthog_organization"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.30
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id"
+ FROM "posthog_organizationmembership"
+ WHERE "posthog_organizationmembership"."id" = '00000000000000000000000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.300
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -18199,7 +17886,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.307
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.301
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -18245,7 +17932,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.308
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.302
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18383,7 +18070,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.309
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.303
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -18438,20 +18125,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.31
- '''
- SELECT "ee_organizationresourceaccess"."id",
- "ee_organizationresourceaccess"."resource",
- "ee_organizationresourceaccess"."access_level",
- "ee_organizationresourceaccess"."organization_id",
- "ee_organizationresourceaccess"."created_by_id",
- "ee_organizationresourceaccess"."created_at",
- "ee_organizationresourceaccess"."updated_at"
- FROM "ee_organizationresourceaccess"
- WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.310
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.304
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -18474,7 +18148,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.311
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.305
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -18527,7 +18201,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.312
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.306
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -18547,7 +18221,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.313
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.307
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -18560,7 +18234,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.314
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.308
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -18573,7 +18247,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.315
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.309
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -18605,7 +18279,15 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.316
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.31
+ '''
+ SELECT "posthog_team"."id" AS "id"
+ FROM "posthog_team"
+ WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_team"."receive_org_level_activity_logs")
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.310
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18703,7 +18385,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.317
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.311
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -18749,7 +18431,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.318
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.312
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18847,7 +18529,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.319
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.313
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -18872,20 +18554,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.32
- '''
- SELECT "ee_organizationresourceaccess"."id",
- "ee_organizationresourceaccess"."resource",
- "ee_organizationresourceaccess"."access_level",
- "ee_organizationresourceaccess"."organization_id",
- "ee_organizationresourceaccess"."created_by_id",
- "ee_organizationresourceaccess"."created_at",
- "ee_organizationresourceaccess"."updated_at"
- FROM "ee_organizationresourceaccess"
- WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.320
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.314
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -18903,7 +18572,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.321
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.315
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -18949,7 +18618,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.322
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.316
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19047,7 +18716,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.323
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.317
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -19076,7 +18745,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.324
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.318
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -19105,7 +18774,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.325
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.319
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -19125,7 +18794,106 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.326
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.32
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model"
+ FROM "posthog_team"
+ WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "posthog_team"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.320
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -19138,7 +18906,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.327
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.321
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -19154,7 +18922,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.328
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.322
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -19172,7 +18940,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.329
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.323
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -19181,16 +18949,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.33
- '''
- SELECT "posthog_team"."organization_id" AS "organization_id"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- ORDER BY "posthog_team"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.330
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.324
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -19236,7 +18995,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.331
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.325
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -19282,7 +19041,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.332
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.326
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19420,7 +19179,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.333
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.327
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -19475,7 +19234,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.334
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.328
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -19498,7 +19257,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.335
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.329
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -19551,7 +19310,54 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.336
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.33
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
+ "posthog_user"."toolbar_mode",
+ "posthog_user"."hedgehog_config",
+ "posthog_user"."allow_sidebar_suggestions",
+ "posthog_user"."shortcut_position",
+ "posthog_user"."passkeys_enabled_for_2fa",
+ "posthog_user"."hide_mcp_hints",
+ "posthog_user"."ui_configuration",
+ "posthog_user"."onboarding_skipped_at",
+ "posthog_user"."onboarding_skipped_reason",
+ "posthog_user"."onboarding_skipped_organization_id",
+ "posthog_user"."onboarding_delegated_to_invite_id",
+ "posthog_user"."onboarding_delegated_to_organization_id",
+ "posthog_user"."onboarding_delegation_accepted_at",
+ "posthog_user"."events_column_config",
+ "posthog_user"."email_opt_in"
+ FROM "posthog_user"
+ WHERE "posthog_user"."id" = 99999
+ ORDER BY "posthog_user"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.330
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -19571,7 +19377,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.337
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.331
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -19584,7 +19390,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.338
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.332
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -19597,7 +19403,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.339
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.333
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -19629,20 +19435,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.34
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id"
- FROM "posthog_organizationmembership"
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.340
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.334
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19740,7 +19533,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.341
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.335
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -19786,7 +19579,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.342
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.336
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19884,7 +19677,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.343
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.337
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -19909,7 +19702,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.344
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.338
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -19927,7 +19720,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.345
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.339
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -19973,26 +19766,81 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.346
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.34
'''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.340
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
"posthog_team"."person_processing_opt_out",
"posthog_team"."secret_api_token",
"posthog_team"."secret_api_token_backup",
@@ -20071,7 +19919,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.347
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.341
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -20100,7 +19948,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.348
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.342
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -20129,7 +19977,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.349
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.343
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -20149,21 +19997,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.35
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id"
- FROM "posthog_organizationmembership"
- WHERE "posthog_organizationmembership"."id" = '00000000000000000000000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.350
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.344
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -20176,7 +20010,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.351
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.345
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -20192,7 +20026,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.352
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.346
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -20210,7 +20044,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.353
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.347
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -20219,7 +20053,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.354
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.348
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -20265,7 +20099,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.355
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.349
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -20311,7 +20145,104 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.356
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.35
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model"
+ FROM "posthog_team"
+ WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.350
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -20449,7 +20380,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.357
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.351
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -20504,7 +20435,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.358
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.352
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -20527,7 +20458,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.359
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.353
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -20580,15 +20511,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.36
- '''
- SELECT "posthog_team"."id" AS "id"
- FROM "posthog_team"
- WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_team"."receive_org_level_activity_logs")
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.360
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.354
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -20602,7 +20525,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.361
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.355
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -20707,7 +20630,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.362
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.356
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -20730,7 +20653,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.363
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.357
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -20751,7 +20674,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.364
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.358
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -20797,7 +20720,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.365
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.359
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -20843,7 +20766,21 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.366
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.36
+ '''
+ SELECT 1 AS "a"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999
+ AND "posthog_filesystemshortcut"."ref" IS NULL
+ AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.360
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -20981,7 +20918,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.367
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.361
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -21036,7 +20973,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.368
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.362
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -21059,7 +20996,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.369
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.363
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -21112,106 +21049,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.37
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "posthog_team"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.370
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.364
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -21227,7 +21065,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.371
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.365
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -21325,7 +21163,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.372
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.366
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -21350,7 +21188,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.373
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.367
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -21362,7 +21200,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.374
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.368
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -21381,7 +21219,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.375
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.369
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -21389,7 +21227,10 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.376
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.37
+ "SELECT pg_advisory_xact_lock(hashtextextended('file-system-shortcuts:99999:99999', 99999))"
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.370
'''
SELECT "posthog_dashboardtile"."group_key" AS "group_key"
FROM "posthog_dashboardtile"
@@ -21403,7 +21244,7 @@
OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.377
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.371
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -21419,7 +21260,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.378
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.372
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -21435,7 +21276,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.379
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.373
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -21451,54 +21292,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.38
- '''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
- "posthog_user"."toolbar_mode",
- "posthog_user"."hedgehog_config",
- "posthog_user"."allow_sidebar_suggestions",
- "posthog_user"."shortcut_position",
- "posthog_user"."passkeys_enabled_for_2fa",
- "posthog_user"."hide_mcp_hints",
- "posthog_user"."ui_configuration",
- "posthog_user"."onboarding_skipped_at",
- "posthog_user"."onboarding_skipped_reason",
- "posthog_user"."onboarding_skipped_organization_id",
- "posthog_user"."onboarding_delegated_to_invite_id",
- "posthog_user"."onboarding_delegated_to_organization_id",
- "posthog_user"."onboarding_delegation_accepted_at",
- "posthog_user"."events_column_config",
- "posthog_user"."email_opt_in"
- FROM "posthog_user"
- WHERE "posthog_user"."id" = 99999
- ORDER BY "posthog_user"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.380
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.374
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -21517,7 +21311,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.381
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.375
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -21537,7 +21331,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.382
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.376
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -21894,7 +21688,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.383
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.377
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -21903,7 +21697,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.384
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.378
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -21949,7 +21743,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.385
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.379
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -21995,7 +21789,20 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.386
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.38
+ '''
+ SELECT "posthog_filesystemshortcut"."path" AS "path"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999
+ AND "posthog_filesystemshortcut"."ref" IS NULL
+ AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.380
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22133,7 +21940,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.387
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.381
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -22188,7 +21995,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.388
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.382
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -22211,7 +22018,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.389
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.383
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -22264,24 +22071,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.39
- '''
- SELECT "signals_signaluserautonomyconfig"."id",
- "signals_signaluserautonomyconfig"."user_id",
- "signals_signaluserautonomyconfig"."autostart_priority",
- "signals_signaluserautonomyconfig"."slack_notification_integration_id",
- "signals_signaluserautonomyconfig"."slack_notification_channel",
- "signals_signaluserautonomyconfig"."slack_notification_min_priority",
- "signals_signaluserautonomyconfig"."github_assign_on_pull_request",
- "signals_signaluserautonomyconfig"."github_open_pull_request_ready",
- "signals_signaluserautonomyconfig"."created_at",
- "signals_signaluserautonomyconfig"."updated_at"
- FROM "signals_signaluserautonomyconfig"
- WHERE "signals_signaluserautonomyconfig"."user_id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.390
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.384
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -22301,7 +22091,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.391
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.385
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -22314,7 +22104,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.392
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.386
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -22327,7 +22117,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.393
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.387
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -22359,7 +22149,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.394
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.388
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22457,7 +22247,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.395
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.389
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -22503,7 +22293,18 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.396
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.39
+ '''
+ SELECT "posthog_filesystemshortcut"."order" AS "order"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.390
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22601,7 +22402,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.397
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.391
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -22626,7 +22427,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.398
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.392
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -22644,7 +22445,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.399
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.393
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -22690,77 +22491,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.4
- '''
- SELECT "posthog_organizationmembernotificationlock"."id",
- "posthog_organizationmembernotificationlock"."organization_id",
- "posthog_organizationmembernotificationlock"."organization_membership_id",
- "posthog_organizationmembernotificationlock"."setting",
- "posthog_organizationmembernotificationlock"."scope_id",
- "posthog_organizationmembernotificationlock"."locked_value",
- "posthog_organizationmembernotificationlock"."created_by_id",
- "posthog_organizationmembernotificationlock"."created_at",
- "posthog_organizationmembernotificationlock"."updated_at"
- FROM "posthog_organizationmembernotificationlock"
- WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.40
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.400
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.394
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22858,7 +22589,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.401
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.395
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -22887,7 +22618,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.402
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.396
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -22916,7 +22647,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.403
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.397
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -22936,7 +22667,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.404
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.398
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -22949,7 +22680,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.405
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.399
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -22965,7 +22696,37 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.406
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.4
+ '''
+ SELECT "posthog_organizationmembernotificationlock"."id",
+ "posthog_organizationmembernotificationlock"."organization_id",
+ "posthog_organizationmembernotificationlock"."organization_membership_id",
+ "posthog_organizationmembernotificationlock"."setting",
+ "posthog_organizationmembernotificationlock"."scope_id",
+ "posthog_organizationmembernotificationlock"."locked_value",
+ "posthog_organizationmembernotificationlock"."created_by_id",
+ "posthog_organizationmembernotificationlock"."created_at",
+ "posthog_organizationmembernotificationlock"."updated_at"
+ FROM "posthog_organizationmembernotificationlock"
+ WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.40
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id"
+ FROM "posthog_organizationmembership"
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ ORDER BY "posthog_organizationmembership"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.400
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -22983,7 +22744,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.407
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.401
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -22992,7 +22753,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.408
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.402
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -23038,7 +22799,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.409
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.403
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -23084,104 +22845,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.41
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.410
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.404
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23319,7 +22983,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.411
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.405
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -23374,7 +23038,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.412
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.406
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -23397,7 +23061,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.413
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.407
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -23450,7 +23114,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.414
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.408
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -23470,7 +23134,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.415
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.409
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -23483,7 +23147,21 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.416
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.41
+ '''
+ SELECT 1 AS "a"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999
+ AND "posthog_filesystemshortcut"."ref" IS NULL
+ AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.410
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -23496,7 +23174,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.417
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.411
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -23528,7 +23206,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.418
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.412
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23626,7 +23304,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.419
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.413
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -23672,21 +23350,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.42
- '''
- SELECT 1 AS "a"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999
- AND "posthog_filesystemshortcut"."ref" IS NULL
- AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.420
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.414
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23784,7 +23448,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.421
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.415
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -23809,7 +23473,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.422
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.416
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -23827,7 +23491,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.423
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.417
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -23873,7 +23537,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.424
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.418
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23971,7 +23635,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.425
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.419
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -24000,7 +23664,16 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.426
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.42
+ '''
+ SELECT "posthog_team"."organization_id" AS "organization_id"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ ORDER BY "posthog_team"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.420
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -24029,7 +23702,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.427
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.421
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -24049,7 +23722,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.428
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.422
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -24062,7 +23735,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.429
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.423
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -24078,10 +23751,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.43
- "SELECT pg_advisory_xact_lock(hashtextextended('file-system-shortcuts:99999:99999', 99999))"
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.430
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.424
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -24099,7 +23769,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.431
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.425
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -24108,7 +23778,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.432
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.426
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -24154,7 +23824,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.433
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.427
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -24200,7 +23870,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.434
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.428
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24338,7 +24008,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.435
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.429
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -24393,7 +24063,15 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.436
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.43
+ '''
+ SELECT "posthog_team"."id" AS "id"
+ FROM "posthog_team"
+ WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_team"."receive_org_level_activity_logs")
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.430
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -24416,7 +24094,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.437
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.431
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -24469,7 +24147,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.438
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.432
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -24489,7 +24167,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.439
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.433
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -24502,20 +24180,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.44
- '''
- SELECT "posthog_filesystemshortcut"."path" AS "path"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999
- AND "posthog_filesystemshortcut"."ref" IS NULL
- AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.440
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.434
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -24528,7 +24193,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.441
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.435
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -24560,7 +24225,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.442
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.436
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24658,7 +24323,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.443
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.437
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -24704,7 +24369,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.444
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.438
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24802,7 +24467,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.445
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.439
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -24827,7 +24492,53 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.446
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.44
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
+ "posthog_user"."toolbar_mode",
+ "posthog_user"."hedgehog_config",
+ "posthog_user"."allow_sidebar_suggestions",
+ "posthog_user"."shortcut_position",
+ "posthog_user"."passkeys_enabled_for_2fa",
+ "posthog_user"."hide_mcp_hints",
+ "posthog_user"."ui_configuration",
+ "posthog_user"."onboarding_skipped_at",
+ "posthog_user"."onboarding_skipped_reason",
+ "posthog_user"."onboarding_skipped_organization_id",
+ "posthog_user"."onboarding_delegated_to_invite_id",
+ "posthog_user"."onboarding_delegated_to_organization_id",
+ "posthog_user"."onboarding_delegation_accepted_at",
+ "posthog_user"."events_column_config",
+ "posthog_user"."email_opt_in"
+ FROM "posthog_user"
+ WHERE ("posthog_user"."is_active"
+ AND "posthog_user"."id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.440
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -24845,7 +24556,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.447
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.441
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -24891,7 +24602,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.448
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.442
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24989,7 +24700,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.449
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.443
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -25018,18 +24729,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.45
- '''
- SELECT "posthog_filesystemshortcut"."order" AS "order"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.450
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.444
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -25058,7 +24758,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.451
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.445
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -25078,7 +24778,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.452
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.446
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -25091,7 +24791,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.453
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.447
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -25107,7 +24807,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.454
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.448
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -25125,7 +24825,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.455
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.449
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -25134,7 +24834,53 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.456
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.45
+ '''
+ SELECT "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.450
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -25180,7 +24926,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.457
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.451
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -25226,7 +24972,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.458
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.452
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -25364,7 +25110,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.459
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.453
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25419,22 +25165,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.46
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id"
- FROM "posthog_organizationmembership"
- WHERE "posthog_organizationmembership"."user_id" = 99999
- ORDER BY "posthog_organizationmembership"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.460
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.454
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -25457,7 +25188,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.461
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.455
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25510,7 +25241,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.462
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.456
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -25524,7 +25255,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.463
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.457
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -25629,7 +25360,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.464
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.458
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -25652,7 +25383,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.465
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.459
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -25673,32 +25404,170 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.466
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.46
'''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_team"
+ INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_team"."id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.460
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
"posthog_user"."toolbar_mode",
"posthog_user"."hedgehog_config",
"posthog_user"."allow_sidebar_suggestions",
@@ -25719,7 +25588,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.467
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.461
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -25765,7 +25634,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.468
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.462
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -25903,7 +25772,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.469
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.463
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25958,21 +25827,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.47
- '''
- SELECT 1 AS "a"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999
- AND "posthog_filesystemshortcut"."ref" IS NULL
- AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.470
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.464
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -25995,7 +25850,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.471
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.465
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -26048,7 +25903,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.472
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.466
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -26064,7 +25919,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.473
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.467
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -26162,7 +26017,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.474
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.468
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -26187,7 +26042,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.475
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.469
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -26199,7 +26054,62 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.476
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.47
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.470
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -26218,7 +26128,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.477
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.471
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -26226,7 +26136,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.478
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.472
'''
SELECT "posthog_dashboardtile"."group_key" AS "group_key"
FROM "posthog_dashboardtile"
@@ -26240,7 +26150,7 @@
OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.479
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.473
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -26256,16 +26166,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.48
- '''
- SELECT "posthog_team"."organization_id" AS "organization_id"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- ORDER BY "posthog_team"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.480
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.474
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -26281,7 +26182,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.481
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.475
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -26297,7 +26198,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.482
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.476
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -26316,7 +26217,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.483
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.477
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -26336,7 +26237,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.484
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.478
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -26693,7 +26594,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.485
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.479
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -26702,7 +26603,30 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.486
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.48
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.480
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -26748,7 +26672,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.487
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.481
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -26794,7 +26718,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.488
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.482
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -26932,7 +26856,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.489
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.483
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -26987,15 +26911,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.49
- '''
- SELECT "posthog_team"."id" AS "id"
- FROM "posthog_team"
- WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_team"."receive_org_level_activity_logs")
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.490
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.484
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -27018,7 +26934,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.491
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.485
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -27071,7 +26987,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.492
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.486
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -27091,7 +27007,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.493
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.487
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -27104,7 +27020,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.494
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.488
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -27117,7 +27033,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.495
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.489
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -27149,7 +27065,60 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.496
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.49
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.490
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27247,7 +27216,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.497
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.491
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -27293,7 +27262,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.498
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.492
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27391,7 +27360,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.499
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.493
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -27416,68 +27385,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.5
- '''
- SELECT "posthog_organizationmembernotificationlock"."id",
- "posthog_organizationmembernotificationlock"."organization_id",
- "posthog_organizationmembernotificationlock"."organization_membership_id",
- "posthog_organizationmembernotificationlock"."setting",
- "posthog_organizationmembernotificationlock"."scope_id",
- "posthog_organizationmembernotificationlock"."locked_value",
- "posthog_organizationmembernotificationlock"."created_by_id",
- "posthog_organizationmembernotificationlock"."created_at",
- "posthog_organizationmembernotificationlock"."updated_at"
- FROM "posthog_organizationmembernotificationlock"
- WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.50
- '''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
- "posthog_user"."toolbar_mode",
- "posthog_user"."hedgehog_config",
- "posthog_user"."allow_sidebar_suggestions",
- "posthog_user"."shortcut_position",
- "posthog_user"."passkeys_enabled_for_2fa",
- "posthog_user"."hide_mcp_hints",
- "posthog_user"."ui_configuration",
- "posthog_user"."onboarding_skipped_at",
- "posthog_user"."onboarding_skipped_reason",
- "posthog_user"."onboarding_skipped_organization_id",
- "posthog_user"."onboarding_delegated_to_invite_id",
- "posthog_user"."onboarding_delegated_to_organization_id",
- "posthog_user"."onboarding_delegation_accepted_at",
- "posthog_user"."events_column_config",
- "posthog_user"."email_opt_in"
- FROM "posthog_user"
- WHERE ("posthog_user"."is_active"
- AND "posthog_user"."id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.500
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.494
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -27495,7 +27403,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.501
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.495
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -27541,7 +27449,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.502
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.496
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27639,7 +27547,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.503
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.497
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -27668,7 +27576,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.504
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.498
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -27697,7 +27605,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.505
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.499
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -27717,7 +27625,36 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.506
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.5
+ '''
+ SELECT "posthog_organizationmembernotificationlock"."id",
+ "posthog_organizationmembernotificationlock"."organization_id",
+ "posthog_organizationmembernotificationlock"."organization_membership_id",
+ "posthog_organizationmembernotificationlock"."setting",
+ "posthog_organizationmembernotificationlock"."scope_id",
+ "posthog_organizationmembernotificationlock"."locked_value",
+ "posthog_organizationmembernotificationlock"."created_by_id",
+ "posthog_organizationmembernotificationlock"."created_at",
+ "posthog_organizationmembernotificationlock"."updated_at"
+ FROM "posthog_organizationmembernotificationlock"
+ WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.50
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_dashboard"
+ INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_filesystemviewlog" "recent_dashboard_views" ON ("posthog_team"."id" = "recent_dashboard_views"."team_id"
+ AND (("recent_dashboard_views"."user_id" = 99999
+ AND "recent_dashboard_views"."type" = 'dashboard'
+ AND "recent_dashboard_views"."ref" = ("posthog_dashboard"."id")::varchar)))
+ WHERE ("posthog_team"."project_id" = 99999
+ AND NOT ("posthog_dashboard"."deleted")
+ AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.500
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -27730,7 +27667,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.507
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.501
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -27746,7 +27683,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.508
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.502
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -27764,7 +27701,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.509
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.503
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -27773,53 +27710,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.51
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.510
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.504
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -27865,7 +27756,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.511
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.505
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -27911,7 +27802,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.512
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.506
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28049,7 +27940,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.513
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.507
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -28104,7 +27995,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.514
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.508
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -28127,7 +28018,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.515
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.509
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -28180,7 +28071,53 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.516
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.51
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
+ "posthog_user"."toolbar_mode",
+ "posthog_user"."hedgehog_config",
+ "posthog_user"."allow_sidebar_suggestions",
+ "posthog_user"."shortcut_position",
+ "posthog_user"."passkeys_enabled_for_2fa",
+ "posthog_user"."hide_mcp_hints",
+ "posthog_user"."ui_configuration",
+ "posthog_user"."onboarding_skipped_at",
+ "posthog_user"."onboarding_skipped_reason",
+ "posthog_user"."onboarding_skipped_organization_id",
+ "posthog_user"."onboarding_delegated_to_invite_id",
+ "posthog_user"."onboarding_delegated_to_organization_id",
+ "posthog_user"."onboarding_delegation_accepted_at",
+ "posthog_user"."events_column_config",
+ "posthog_user"."email_opt_in"
+ FROM "posthog_user"
+ WHERE ("posthog_user"."is_active"
+ AND "posthog_user"."id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.510
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -28200,7 +28137,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.517
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.511
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -28213,7 +28150,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.518
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.512
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -28226,7 +28163,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.519
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.513
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -28258,7 +28195,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.52
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.514
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28350,8 +28287,15 @@
"posthog_team"."api_query_rate_limit",
"posthog_team"."drop_events_older_than",
"posthog_team"."base_currency",
- "posthog_team"."business_model",
- "posthog_organization"."id",
+ "posthog_team"."business_model"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.515
+ '''
+ SELECT "posthog_organization"."id",
"posthog_organization"."name",
"posthog_organization"."slug",
"posthog_organization"."logo_media_id",
@@ -28390,13 +28334,12 @@
"posthog_organization"."personalization",
"posthog_organization"."domain_whitelist",
"posthog_organization"."is_platform"
- FROM "posthog_team"
- INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_team"."id" = 99999
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.520
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.516
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28494,7 +28437,50 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.521
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.517
+ '''
+ SELECT "posthog_filesystem"."team_id",
+ "posthog_filesystem"."id",
+ "posthog_filesystem"."path",
+ "posthog_filesystem"."depth",
+ "posthog_filesystem"."type",
+ "posthog_filesystem"."ref",
+ "posthog_filesystem"."href",
+ "posthog_filesystem"."shortcut",
+ "posthog_filesystem"."meta",
+ "posthog_filesystem"."created_at",
+ "posthog_filesystem"."created_by_id",
+ "posthog_filesystem"."surface",
+ "posthog_filesystem"."project_id"
+ FROM "posthog_filesystem"
+ WHERE (("posthog_filesystem"."surface" IS NULL
+ OR "posthog_filesystem"."surface" = 'web')
+ AND "posthog_filesystem"."ref" = '0001'
+ AND "posthog_filesystem"."team_id" = 99999
+ AND "posthog_filesystem"."type" = 'insight'
+ AND NOT ("posthog_filesystem"."shortcut"
+ AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.518
+ '''
+ SELECT "posthog_insightviewed"."id",
+ "posthog_insightviewed"."team_id",
+ "posthog_insightviewed"."user_id",
+ "posthog_insightviewed"."insight_id",
+ "posthog_insightviewed"."last_viewed_at",
+ "posthog_insightviewed"."source",
+ "posthog_insightviewed"."dashboard_id"
+ FROM "posthog_insightviewed"
+ WHERE ("posthog_insightviewed"."insight_id" = 99999
+ AND "posthog_insightviewed"."team_id" = 99999
+ AND "posthog_insightviewed"."user_id" = 99999)
+ LIMIT 21
+ FOR
+ UPDATE
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.519
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -28540,7 +28526,53 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.522
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.52
+ '''
+ SELECT "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.520
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28638,194 +28670,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.523
- '''
- SELECT "posthog_filesystem"."team_id",
- "posthog_filesystem"."id",
- "posthog_filesystem"."path",
- "posthog_filesystem"."depth",
- "posthog_filesystem"."type",
- "posthog_filesystem"."ref",
- "posthog_filesystem"."href",
- "posthog_filesystem"."shortcut",
- "posthog_filesystem"."meta",
- "posthog_filesystem"."created_at",
- "posthog_filesystem"."created_by_id",
- "posthog_filesystem"."surface",
- "posthog_filesystem"."project_id"
- FROM "posthog_filesystem"
- WHERE (("posthog_filesystem"."surface" IS NULL
- OR "posthog_filesystem"."surface" = 'web')
- AND "posthog_filesystem"."ref" = '0001'
- AND "posthog_filesystem"."team_id" = 99999
- AND "posthog_filesystem"."type" = 'insight'
- AND NOT ("posthog_filesystem"."shortcut"
- AND "posthog_filesystem"."shortcut" IS NOT NULL))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.524
- '''
- SELECT "posthog_insightviewed"."id",
- "posthog_insightviewed"."team_id",
- "posthog_insightviewed"."user_id",
- "posthog_insightviewed"."insight_id",
- "posthog_insightviewed"."last_viewed_at",
- "posthog_insightviewed"."source",
- "posthog_insightviewed"."dashboard_id"
- FROM "posthog_insightviewed"
- WHERE ("posthog_insightviewed"."insight_id" = 99999
- AND "posthog_insightviewed"."team_id" = 99999
- AND "posthog_insightviewed"."user_id" = 99999)
- LIMIT 21
- FOR
- UPDATE
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.525
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.526
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.527
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.521
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -28854,7 +28699,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.528
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.522
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -28883,7 +28728,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.529
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.523
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -28903,62 +28748,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.53
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.530
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.524
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -28971,7 +28761,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.531
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.525
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -28987,7 +28777,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.532
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.526
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -29005,7 +28795,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.533
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.527
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -29014,7 +28804,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.534
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.528
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -29060,7 +28850,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.535
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.529
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -29106,7 +28896,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.536
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.53
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29244,43 +29034,181 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.537
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.530
'''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_team"
+ INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_team"."id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.531
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
"posthog_organization"."is_pending_deletion",
"posthog_organization"."customer_id",
"posthog_organization"."available_product_features",
@@ -29299,7 +29227,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.538
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.532
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -29322,7 +29250,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.539
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.533
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -29375,30 +29303,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.54
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.540
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.534
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -29418,7 +29323,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.541
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.535
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -29431,7 +29336,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.542
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.536
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -29444,7 +29349,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.543
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.537
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -29476,7 +29381,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.544
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.538
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29574,7 +29479,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.545
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.539
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -29620,50 +29525,105 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.546
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.54
'''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.540
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
"posthog_team"."capture_performance_opt_in",
"posthog_team"."capture_dead_clicks",
"posthog_team"."autocapture_opt_out",
@@ -29718,7 +29678,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.547
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.541
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -29743,7 +29703,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.548
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.542
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -29761,7 +29721,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.549
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.543
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -29807,60 +29767,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.55
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.550
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.544
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29958,7 +29865,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.551
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.545
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -29987,7 +29894,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.552
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.546
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -30016,7 +29923,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.553
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.547
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -30036,7 +29943,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.554
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.548
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -30049,7 +29956,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.555
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.549
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -30065,7 +29972,30 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.556
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.55
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.550
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -30083,7 +30013,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.557
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.551
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -30092,7 +30022,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.558
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.552
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -30138,7 +30068,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.559
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.553
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -30184,21 +30114,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.56
- '''
- SELECT COUNT(*) AS "__count"
- FROM "posthog_dashboard"
- INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
- LEFT OUTER JOIN "posthog_filesystemviewlog" "recent_dashboard_views" ON ("posthog_team"."id" = "recent_dashboard_views"."team_id"
- AND (("recent_dashboard_views"."user_id" = 99999
- AND "recent_dashboard_views"."type" = 'dashboard'
- AND "recent_dashboard_views"."ref" = ("posthog_dashboard"."id")::varchar)))
- WHERE ("posthog_team"."project_id" = 99999
- AND NOT ("posthog_dashboard"."deleted")
- AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.560
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.554
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -30336,7 +30252,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.561
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.555
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -30391,7 +30307,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.562
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.556
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -30414,7 +30330,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.563
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.557
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -30467,7 +30383,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.564
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.558
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -30481,7 +30397,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.565
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.559
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -30586,317 +30502,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.566
- '''
- SELECT "posthog_sharingconfiguration"."id",
- "posthog_sharingconfiguration"."team_id",
- "posthog_sharingconfiguration"."dashboard_id",
- "posthog_sharingconfiguration"."insight_id",
- "posthog_sharingconfiguration"."recording_id",
- "posthog_sharingconfiguration"."notebook_id",
- "posthog_sharingconfiguration"."interviewee_context_id",
- "posthog_sharingconfiguration"."created_at",
- "posthog_sharingconfiguration"."enabled",
- "posthog_sharingconfiguration"."access_token",
- "posthog_sharingconfiguration"."expires_at",
- "posthog_sharingconfiguration"."settings",
- "posthog_sharingconfiguration"."password_required"
- FROM "posthog_sharingconfiguration"
- WHERE "posthog_sharingconfiguration"."dashboard_id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.567
- '''
- SELECT "posthog_taggeditem"."id",
- "posthog_taggeditem"."tag_id",
- "posthog_taggeditem"."content_type_id",
- "posthog_taggeditem"."object_id",
- "posthog_taggeditem"."object_uuid",
- "posthog_taggeditem"."team_id",
- "posthog_tag"."id",
- "posthog_tag"."name",
- "posthog_tag"."team_id"
- FROM "posthog_taggeditem"
- INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id")
- WHERE ("posthog_taggeditem"."content_type_id" = 99999
- AND "posthog_taggeditem"."object_id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.57
- '''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
- "posthog_user"."toolbar_mode",
- "posthog_user"."hedgehog_config",
- "posthog_user"."allow_sidebar_suggestions",
- "posthog_user"."shortcut_position",
- "posthog_user"."passkeys_enabled_for_2fa",
- "posthog_user"."hide_mcp_hints",
- "posthog_user"."ui_configuration",
- "posthog_user"."onboarding_skipped_at",
- "posthog_user"."onboarding_skipped_reason",
- "posthog_user"."onboarding_skipped_organization_id",
- "posthog_user"."onboarding_delegated_to_invite_id",
- "posthog_user"."onboarding_delegated_to_organization_id",
- "posthog_user"."onboarding_delegation_accepted_at",
- "posthog_user"."events_column_config",
- "posthog_user"."email_opt_in"
- FROM "posthog_user"
- WHERE ("posthog_user"."is_active"
- AND "posthog_user"."id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.58
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.59
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_team"
- INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_team"."id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.6
- '''
- SELECT "posthog_oauthapplication"."redirect_uris",
- "posthog_oauthapplication"."post_logout_redirect_uris",
- "posthog_oauthapplication"."client_type",
- "posthog_oauthapplication"."authorization_grant_type",
- "posthog_oauthapplication"."client_secret",
- "posthog_oauthapplication"."hash_client_secret",
- "posthog_oauthapplication"."name",
- "posthog_oauthapplication"."skip_authorization",
- "posthog_oauthapplication"."created",
- "posthog_oauthapplication"."updated",
- "posthog_oauthapplication"."algorithm",
- "posthog_oauthapplication"."allowed_origins",
- "posthog_oauthapplication"."id",
- "posthog_oauthapplication"."client_id",
- "posthog_oauthapplication"."organization_id",
- "posthog_oauthapplication"."user_id",
- "posthog_oauthapplication"."logo_uri",
- "posthog_oauthapplication"."is_dcr_client",
- "posthog_oauthapplication"."dcr_client_id_issued_at",
- "posthog_oauthapplication"."is_verified",
- "posthog_oauthapplication"."is_first_party",
- "posthog_oauthapplication"."auth_brand",
- "posthog_oauthapplication"."scopes",
- "posthog_oauthapplication"."optional_scopes",
- "posthog_oauthapplication"."sessions_revoked_at",
- "posthog_oauthapplication"."is_cimd_client",
- "posthog_oauthapplication"."cimd_metadata_last_fetched",
- "posthog_oauthapplication"."jwks_uri",
- "posthog_oauthapplication"."is_provisioning_partner",
- "posthog_oauthapplication"."provisioning_config"
- FROM "posthog_oauthapplication"
- WHERE "posthog_oauthapplication"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.60
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.56
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -30946,12 +30552,54 @@
"posthog_organization"."is_platform"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
+ WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.61
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.560
+ '''
+ SELECT "posthog_sharingconfiguration"."id",
+ "posthog_sharingconfiguration"."team_id",
+ "posthog_sharingconfiguration"."dashboard_id",
+ "posthog_sharingconfiguration"."insight_id",
+ "posthog_sharingconfiguration"."recording_id",
+ "posthog_sharingconfiguration"."notebook_id",
+ "posthog_sharingconfiguration"."interviewee_context_id",
+ "posthog_sharingconfiguration"."created_at",
+ "posthog_sharingconfiguration"."enabled",
+ "posthog_sharingconfiguration"."access_token",
+ "posthog_sharingconfiguration"."expires_at",
+ "posthog_sharingconfiguration"."settings",
+ "posthog_sharingconfiguration"."password_required"
+ FROM "posthog_sharingconfiguration"
+ WHERE "posthog_sharingconfiguration"."dashboard_id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.561
+ '''
+ SELECT "posthog_taggeditem"."id",
+ "posthog_taggeditem"."tag_id",
+ "posthog_taggeditem"."content_type_id",
+ "posthog_taggeditem"."object_id",
+ "posthog_taggeditem"."object_uuid",
+ "posthog_taggeditem"."team_id",
+ "posthog_tag"."id",
+ "posthog_tag"."name",
+ "posthog_tag"."team_id"
+ FROM "posthog_taggeditem"
+ INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id")
+ WHERE ("posthog_taggeditem"."content_type_id" = 99999
+ AND "posthog_taggeditem"."object_id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.562
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -30974,7 +30622,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.62
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.563
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -31027,7 +30675,170 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.63
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.564
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_dashboard"
+ INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_filesystemviewlog" "recent_dashboard_views" ON ("posthog_team"."id" = "recent_dashboard_views"."team_id"
+ AND (("recent_dashboard_views"."user_id" = 99999
+ AND "recent_dashboard_views"."type" = 'dashboard'
+ AND "recent_dashboard_views"."ref" = ("posthog_dashboard"."id")::varchar)))
+ WHERE ("posthog_team"."project_id" = 99999
+ AND NOT ("posthog_dashboard"."deleted")
+ AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.565
+ '''
+ SELECT "posthog_dashboard"."id",
+ "posthog_dashboard"."name",
+ "posthog_dashboard"."description",
+ "posthog_dashboard"."team_id",
+ "posthog_dashboard"."pinned",
+ "posthog_dashboard"."created_at",
+ "posthog_dashboard"."created_by_id",
+ "posthog_dashboard"."deleted",
+ "posthog_dashboard"."last_accessed_at",
+ "posthog_dashboard"."last_refresh",
+ "posthog_dashboard"."filters",
+ "posthog_dashboard"."variables",
+ "posthog_dashboard"."breakdown_colors",
+ "posthog_dashboard"."data_color_theme_id",
+ "posthog_dashboard"."creation_mode",
+ "posthog_dashboard"."quick_filter_ids",
+ "posthog_dashboard"."customization",
+ "posthog_dashboard"."deprecated_tags",
+ "posthog_dashboard"."tags",
+ "posthog_dashboard"."share_token",
+ "posthog_dashboard"."is_shared",
+ "recent_dashboard_views"."viewed_at" AS "last_viewed_at",
+ ("posthog_dashboard"."id")::varchar AS "_ref_id",
+
+ (SELECT "U0"."path" AS "path"
+ FROM "posthog_filesystem" "U0"
+ WHERE (("U0"."surface" IS NULL
+ OR "U0"."surface" = 'web')
+ AND "U0"."ref" = ("posthog_dashboard"."id")::varchar
+ AND "U0"."team_id" = ("posthog_dashboard"."team_id")
+ AND "U0"."type" = 'dashboard'
+ AND NOT ("U0"."shortcut"
+ AND "U0"."shortcut" IS NOT NULL))
+ ORDER BY "U0"."id" ASC
+ LIMIT 1) AS "_folder_path",
+
+ (SELECT "U0"."id" AS "id"
+ FROM "posthog_filesystem" "U0"
+ WHERE (("U0"."surface" IS NULL
+ OR "U0"."surface" = 'web')
+ AND "U0"."ref" = ("posthog_dashboard"."id")::varchar
+ AND "U0"."team_id" = ("posthog_dashboard"."team_id")
+ AND "U0"."type" = 'dashboard'
+ AND NOT ("U0"."shortcut"
+ AND "U0"."shortcut" IS NOT NULL))
+ ORDER BY 1 ASC
+ LIMIT 1) AS "_folder_id",
+ "T6"."id",
+ "T6"."password",
+ "T6"."last_login",
+ "T6"."first_name",
+ "T6"."last_name",
+ "T6"."is_staff",
+ "T6"."date_joined",
+ "T6"."uuid",
+ "T6"."current_organization_id",
+ "T6"."current_team_id",
+ "T6"."email",
+ "T6"."pending_email",
+ "T6"."distinct_id",
+ "T6"."is_email_verified",
+ "T6"."credentials_reviewed_at",
+ "T6"."requested_password_reset_at",
+ "T6"."requested_2fa_reset_at",
+ "T6"."has_seen_product_intro_for",
+ "T6"."strapi_id",
+ "T6"."is_active",
+ "T6"."role_at_organization",
+ "T6"."theme_mode",
+ "T6"."partial_notification_settings",
+ "T6"."anonymize_data",
+ "T6"."allow_impersonation",
+ "T6"."toolbar_mode",
+ "T6"."hedgehog_config",
+ "T6"."allow_sidebar_suggestions",
+ "T6"."shortcut_position",
+ "T6"."passkeys_enabled_for_2fa",
+ "T6"."hide_mcp_hints",
+ "T6"."ui_configuration",
+ "T6"."onboarding_skipped_at",
+ "T6"."onboarding_skipped_reason",
+ "T6"."onboarding_skipped_organization_id",
+ "T6"."onboarding_delegated_to_invite_id",
+ "T6"."onboarding_delegated_to_organization_id",
+ "T6"."onboarding_delegation_accepted_at",
+ "T6"."events_column_config",
+ "T6"."email_opt_in"
+ FROM "posthog_dashboard"
+ INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_filesystemviewlog" "recent_dashboard_views" ON ("posthog_team"."id" = "recent_dashboard_views"."team_id"
+ AND (("recent_dashboard_views"."user_id" = 99999
+ AND "recent_dashboard_views"."type" = 'dashboard'
+ AND "recent_dashboard_views"."ref" = ("posthog_dashboard"."id")::varchar)))
+ LEFT OUTER JOIN "posthog_user" "T6" ON ("posthog_dashboard"."created_by_id" = "T6"."id")
+ WHERE ("posthog_team"."project_id" = 99999
+ AND NOT ("posthog_dashboard"."deleted")
+ AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
+ ORDER BY "posthog_dashboard"."pinned" DESC,
+ "posthog_dashboard"."name" ASC,
+ "posthog_dashboard"."id" ASC
+ LIMIT 300
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.566
+ '''
+ SELECT "posthog_sharingconfiguration"."id",
+ "posthog_sharingconfiguration"."team_id",
+ "posthog_sharingconfiguration"."dashboard_id",
+ "posthog_sharingconfiguration"."insight_id",
+ "posthog_sharingconfiguration"."recording_id",
+ "posthog_sharingconfiguration"."notebook_id",
+ "posthog_sharingconfiguration"."interviewee_context_id",
+ "posthog_sharingconfiguration"."created_at",
+ "posthog_sharingconfiguration"."enabled",
+ "posthog_sharingconfiguration"."access_token",
+ "posthog_sharingconfiguration"."expires_at",
+ "posthog_sharingconfiguration"."settings",
+ "posthog_sharingconfiguration"."password_required"
+ FROM "posthog_sharingconfiguration"
+ WHERE "posthog_sharingconfiguration"."dashboard_id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.567
+ '''
+ SELECT "posthog_taggeditem"."id",
+ "posthog_taggeditem"."tag_id",
+ "posthog_taggeditem"."content_type_id",
+ "posthog_taggeditem"."object_id",
+ "posthog_taggeditem"."object_uuid",
+ "posthog_taggeditem"."team_id",
+ "posthog_tag"."id",
+ "posthog_tag"."name",
+ "posthog_tag"."team_id"
+ FROM "posthog_taggeditem"
+ INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id")
+ WHERE ("posthog_taggeditem"."content_type_id" = 99999
+ AND "posthog_taggeditem"."object_id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.57
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -31043,7 +30854,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.64
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.58
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -31141,7 +30952,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.65
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.59
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -31166,7 +30977,43 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.66
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.6
+ '''
+ SELECT "posthog_oauthapplication"."redirect_uris",
+ "posthog_oauthapplication"."post_logout_redirect_uris",
+ "posthog_oauthapplication"."client_type",
+ "posthog_oauthapplication"."authorization_grant_type",
+ "posthog_oauthapplication"."client_secret",
+ "posthog_oauthapplication"."hash_client_secret",
+ "posthog_oauthapplication"."name",
+ "posthog_oauthapplication"."skip_authorization",
+ "posthog_oauthapplication"."created",
+ "posthog_oauthapplication"."updated",
+ "posthog_oauthapplication"."algorithm",
+ "posthog_oauthapplication"."allowed_origins",
+ "posthog_oauthapplication"."id",
+ "posthog_oauthapplication"."client_id",
+ "posthog_oauthapplication"."organization_id",
+ "posthog_oauthapplication"."user_id",
+ "posthog_oauthapplication"."logo_uri",
+ "posthog_oauthapplication"."is_dcr_client",
+ "posthog_oauthapplication"."dcr_client_id_issued_at",
+ "posthog_oauthapplication"."is_verified",
+ "posthog_oauthapplication"."is_first_party",
+ "posthog_oauthapplication"."auth_brand",
+ "posthog_oauthapplication"."scopes",
+ "posthog_oauthapplication"."optional_scopes",
+ "posthog_oauthapplication"."sessions_revoked_at",
+ "posthog_oauthapplication"."is_cimd_client",
+ "posthog_oauthapplication"."cimd_metadata_last_fetched",
+ "posthog_oauthapplication"."jwks_uri",
+ "posthog_oauthapplication"."is_provisioning_partner",
+ "posthog_oauthapplication"."provisioning_config"
+ FROM "posthog_oauthapplication"
+ WHERE "posthog_oauthapplication"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.60
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -31178,7 +31025,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.67
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.61
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -31197,7 +31044,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.68
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.62
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -31205,7 +31052,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.69
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.63
'''
SELECT "posthog_dashboardtile"."group_key" AS "group_key"
FROM "posthog_dashboardtile"
@@ -31219,43 +31066,7 @@
OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.7
- '''
- SELECT "posthog_oauthapplication"."redirect_uris",
- "posthog_oauthapplication"."post_logout_redirect_uris",
- "posthog_oauthapplication"."client_type",
- "posthog_oauthapplication"."authorization_grant_type",
- "posthog_oauthapplication"."client_secret",
- "posthog_oauthapplication"."hash_client_secret",
- "posthog_oauthapplication"."name",
- "posthog_oauthapplication"."skip_authorization",
- "posthog_oauthapplication"."created",
- "posthog_oauthapplication"."updated",
- "posthog_oauthapplication"."algorithm",
- "posthog_oauthapplication"."allowed_origins",
- "posthog_oauthapplication"."id",
- "posthog_oauthapplication"."client_id",
- "posthog_oauthapplication"."organization_id",
- "posthog_oauthapplication"."user_id",
- "posthog_oauthapplication"."logo_uri",
- "posthog_oauthapplication"."is_dcr_client",
- "posthog_oauthapplication"."dcr_client_id_issued_at",
- "posthog_oauthapplication"."is_verified",
- "posthog_oauthapplication"."is_first_party",
- "posthog_oauthapplication"."auth_brand",
- "posthog_oauthapplication"."scopes",
- "posthog_oauthapplication"."optional_scopes",
- "posthog_oauthapplication"."sessions_revoked_at",
- "posthog_oauthapplication"."is_cimd_client",
- "posthog_oauthapplication"."cimd_metadata_last_fetched",
- "posthog_oauthapplication"."jwks_uri",
- "posthog_oauthapplication"."is_provisioning_partner",
- "posthog_oauthapplication"."provisioning_config"
- FROM "posthog_oauthapplication"
- WHERE "posthog_oauthapplication"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.70
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.64
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -31271,7 +31082,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.71
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.65
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -31287,7 +31098,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.72
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.66
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -31303,7 +31114,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.73
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.67
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -31322,7 +31133,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.74
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.68
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -31342,7 +31153,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.75
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.69
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -31699,7 +31510,43 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.76
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.7
+ '''
+ SELECT "posthog_oauthapplication"."redirect_uris",
+ "posthog_oauthapplication"."post_logout_redirect_uris",
+ "posthog_oauthapplication"."client_type",
+ "posthog_oauthapplication"."authorization_grant_type",
+ "posthog_oauthapplication"."client_secret",
+ "posthog_oauthapplication"."hash_client_secret",
+ "posthog_oauthapplication"."name",
+ "posthog_oauthapplication"."skip_authorization",
+ "posthog_oauthapplication"."created",
+ "posthog_oauthapplication"."updated",
+ "posthog_oauthapplication"."algorithm",
+ "posthog_oauthapplication"."allowed_origins",
+ "posthog_oauthapplication"."id",
+ "posthog_oauthapplication"."client_id",
+ "posthog_oauthapplication"."organization_id",
+ "posthog_oauthapplication"."user_id",
+ "posthog_oauthapplication"."logo_uri",
+ "posthog_oauthapplication"."is_dcr_client",
+ "posthog_oauthapplication"."dcr_client_id_issued_at",
+ "posthog_oauthapplication"."is_verified",
+ "posthog_oauthapplication"."is_first_party",
+ "posthog_oauthapplication"."auth_brand",
+ "posthog_oauthapplication"."scopes",
+ "posthog_oauthapplication"."optional_scopes",
+ "posthog_oauthapplication"."sessions_revoked_at",
+ "posthog_oauthapplication"."is_cimd_client",
+ "posthog_oauthapplication"."cimd_metadata_last_fetched",
+ "posthog_oauthapplication"."jwks_uri",
+ "posthog_oauthapplication"."is_provisioning_partner",
+ "posthog_oauthapplication"."provisioning_config"
+ FROM "posthog_oauthapplication"
+ WHERE "posthog_oauthapplication"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.70
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -31708,7 +31555,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.77
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.71
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -31754,7 +31601,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.78
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.72
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -31800,7 +31647,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.79
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.73
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -31938,22 +31785,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.8
- '''
- SELECT "posthog_cimdverificationtoken"."id",
- "posthog_cimdverificationtoken"."organization_id",
- "posthog_cimdverificationtoken"."label",
- "posthog_cimdverificationtoken"."cimd_url",
- "posthog_cimdverificationtoken"."mask_value",
- "posthog_cimdverificationtoken"."secure_value",
- "posthog_cimdverificationtoken"."created_by_id",
- "posthog_cimdverificationtoken"."created_at",
- "posthog_cimdverificationtoken"."last_used_at"
- FROM "posthog_cimdverificationtoken"
- WHERE "posthog_cimdverificationtoken"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.80
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.74
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -32008,7 +31840,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.81
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.75
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -32031,7 +31863,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.82
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.76
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -32084,7 +31916,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.83
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.77
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -32104,7 +31936,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.84
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.78
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -32117,7 +31949,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.85
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.79
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -32130,7 +31962,22 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.86
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.8
+ '''
+ SELECT "posthog_cimdverificationtoken"."id",
+ "posthog_cimdverificationtoken"."organization_id",
+ "posthog_cimdverificationtoken"."label",
+ "posthog_cimdverificationtoken"."cimd_url",
+ "posthog_cimdverificationtoken"."mask_value",
+ "posthog_cimdverificationtoken"."secure_value",
+ "posthog_cimdverificationtoken"."created_by_id",
+ "posthog_cimdverificationtoken"."created_at",
+ "posthog_cimdverificationtoken"."last_used_at"
+ FROM "posthog_cimdverificationtoken"
+ WHERE "posthog_cimdverificationtoken"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.80
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -32162,7 +32009,151 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.87
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.81
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.82
+ '''
+ SELECT "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.83
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -32260,7 +32251,50 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.88
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.84
+ '''
+ SELECT "posthog_filesystem"."team_id",
+ "posthog_filesystem"."id",
+ "posthog_filesystem"."path",
+ "posthog_filesystem"."depth",
+ "posthog_filesystem"."type",
+ "posthog_filesystem"."ref",
+ "posthog_filesystem"."href",
+ "posthog_filesystem"."shortcut",
+ "posthog_filesystem"."meta",
+ "posthog_filesystem"."created_at",
+ "posthog_filesystem"."created_by_id",
+ "posthog_filesystem"."surface",
+ "posthog_filesystem"."project_id"
+ FROM "posthog_filesystem"
+ WHERE (("posthog_filesystem"."surface" IS NULL
+ OR "posthog_filesystem"."surface" = 'web')
+ AND "posthog_filesystem"."ref" = '0001'
+ AND "posthog_filesystem"."team_id" = 99999
+ AND "posthog_filesystem"."type" = 'insight'
+ AND NOT ("posthog_filesystem"."shortcut"
+ AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.85
+ '''
+ SELECT "posthog_insightviewed"."id",
+ "posthog_insightviewed"."team_id",
+ "posthog_insightviewed"."user_id",
+ "posthog_insightviewed"."insight_id",
+ "posthog_insightviewed"."last_viewed_at",
+ "posthog_insightviewed"."source",
+ "posthog_insightviewed"."dashboard_id"
+ FROM "posthog_insightviewed"
+ WHERE ("posthog_insightviewed"."insight_id" = 99999
+ AND "posthog_insightviewed"."team_id" = 99999
+ AND "posthog_insightviewed"."user_id" = 99999)
+ LIMIT 21
+ FOR
+ UPDATE
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.86
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -32306,7 +32340,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.89
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.87
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -32404,6 +32438,64 @@
LIMIT 21
'''
# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.88
+ '''
+ SELECT "posthog_dashboardtile"."id",
+ "posthog_dashboardtile"."dashboard_id",
+ "posthog_dashboardtile"."insight_id",
+ "posthog_dashboardtile"."text_id",
+ "posthog_dashboardtile"."button_tile_id",
+ "posthog_dashboardtile"."widget_id",
+ "posthog_dashboardtile"."team_id",
+ "posthog_dashboardtile"."layouts",
+ "posthog_dashboardtile"."color",
+ "posthog_dashboardtile"."filters_hash",
+ "posthog_dashboardtile"."last_refresh",
+ "posthog_dashboardtile"."refreshing",
+ "posthog_dashboardtile"."refresh_attempt",
+ "posthog_dashboardtile"."filters_overrides",
+ "posthog_dashboardtile"."show_description",
+ "posthog_dashboardtile"."transparent_background",
+ "posthog_dashboardtile"."group_key",
+ "posthog_dashboardtile"."badge",
+ "posthog_dashboardtile"."deleted"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ WHERE (NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL)
+ AND NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboardtile"."insight_id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.89
+ '''
+ SELECT "posthog_dashboardtile"."id",
+ "posthog_dashboardtile"."dashboard_id",
+ "posthog_dashboardtile"."insight_id",
+ "posthog_dashboardtile"."text_id",
+ "posthog_dashboardtile"."button_tile_id",
+ "posthog_dashboardtile"."widget_id",
+ "posthog_dashboardtile"."team_id",
+ "posthog_dashboardtile"."layouts",
+ "posthog_dashboardtile"."color",
+ "posthog_dashboardtile"."filters_hash",
+ "posthog_dashboardtile"."last_refresh",
+ "posthog_dashboardtile"."refreshing",
+ "posthog_dashboardtile"."refresh_attempt",
+ "posthog_dashboardtile"."filters_overrides",
+ "posthog_dashboardtile"."show_description",
+ "posthog_dashboardtile"."transparent_background",
+ "posthog_dashboardtile"."group_key",
+ "posthog_dashboardtile"."badge",
+ "posthog_dashboardtile"."deleted"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ WHERE (NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL)
+ AND NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboardtile"."insight_id" = 99999)
+ '''
+# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.9
'''
SELECT "posthog_cimdverificationtoken"."id",
@@ -32421,48 +32513,136 @@
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.90
'''
- SELECT "posthog_filesystem"."team_id",
- "posthog_filesystem"."id",
- "posthog_filesystem"."path",
- "posthog_filesystem"."depth",
- "posthog_filesystem"."type",
- "posthog_filesystem"."ref",
- "posthog_filesystem"."href",
- "posthog_filesystem"."shortcut",
- "posthog_filesystem"."meta",
- "posthog_filesystem"."created_at",
- "posthog_filesystem"."created_by_id",
- "posthog_filesystem"."surface",
- "posthog_filesystem"."project_id"
- FROM "posthog_filesystem"
- WHERE (("posthog_filesystem"."surface" IS NULL
- OR "posthog_filesystem"."surface" = 'web')
- AND "posthog_filesystem"."ref" = '0001'
- AND "posthog_filesystem"."team_id" = 99999
- AND "posthog_filesystem"."type" = 'insight'
- AND NOT ("posthog_filesystem"."shortcut"
- AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ SELECT "posthog_insightvariable"."id",
+ "posthog_insightvariable"."name",
+ "posthog_insightvariable"."code_name",
+ "posthog_insightvariable"."type",
+ "posthog_insightvariable"."default_value",
+ "posthog_insightvariable"."is_multi"
+ FROM "posthog_insightvariable"
+ INNER JOIN "posthog_team" ON ("posthog_insightvariable"."team_id" = "posthog_team"."id")
+ WHERE ("posthog_insightvariable"."team_id" =
+ (SELECT "U0"."parent_team_id" AS "parent_team_id"
+ FROM "posthog_team" "U0"
+ WHERE "U0"."id" = 99999
+ LIMIT 1)
+ OR ("posthog_team"."parent_team_id" IS NULL
+ AND "posthog_insightvariable"."team_id" = 99999))
+ ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.91
'''
- SELECT "posthog_insightviewed"."id",
- "posthog_insightviewed"."team_id",
- "posthog_insightviewed"."user_id",
- "posthog_insightviewed"."insight_id",
- "posthog_insightviewed"."last_viewed_at",
- "posthog_insightviewed"."source",
- "posthog_insightviewed"."dashboard_id"
- FROM "posthog_insightviewed"
- WHERE ("posthog_insightviewed"."insight_id" = 99999
- AND "posthog_insightviewed"."team_id" = 99999
- AND "posthog_insightviewed"."user_id" = 99999)
+ SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
+ "posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
+ "posthog_teamrevenueanalyticsconfig"."notified_first_sync",
+ "posthog_teamrevenueanalyticsconfig"."events",
+ "posthog_teamrevenueanalyticsconfig"."goals",
+ "posthog_teamrevenueanalyticsconfig"."base_currency"
+ FROM "posthog_teamrevenueanalyticsconfig"
+ WHERE "posthog_teamrevenueanalyticsconfig"."team_id" = 99999
LIMIT 21
- FOR
- UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.92
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.92
+ '''
+ SELECT "posthog_teammarketinganalyticsconfig"."team_id",
+ "posthog_teammarketinganalyticsconfig"."attribution_window_days",
+ "posthog_teammarketinganalyticsconfig"."attribution_mode",
+ "posthog_teammarketinganalyticsconfig"."filter_test_accounts",
+ "posthog_teammarketinganalyticsconfig"."sources_map",
+ "posthog_teammarketinganalyticsconfig"."conversion_goals",
+ "posthog_teammarketinganalyticsconfig"."campaign_name_mappings",
+ "posthog_teammarketinganalyticsconfig"."custom_source_mappings",
+ "posthog_teammarketinganalyticsconfig"."campaign_field_preferences"
+ FROM "posthog_teammarketinganalyticsconfig"
+ WHERE "posthog_teammarketinganalyticsconfig"."team_id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.93
+ '''
+ SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
+ "customer_analytics_teamcustomeranalyticsconfig"."activity_event",
+ "customer_analytics_teamcustomeranalyticsconfig"."signup_pageview_event",
+ "customer_analytics_teamcustomeranalyticsconfig"."signup_event",
+ "customer_analytics_teamcustomeranalyticsconfig"."subscription_event",
+ "customer_analytics_teamcustomeranalyticsconfig"."payment_event",
+ "customer_analytics_teamcustomeranalyticsconfig"."account_group_type_index",
+ "customer_analytics_teamcustomeranalyticsconfig"."default_pinned_properties",
+ "customer_analytics_teamcustomeranalyticsconfig"."account_track_rules",
+ "customer_analytics_teamcustomeranalyticsconfig"."account_track_rules_enabled_at",
+ "customer_analytics_teamcustomeranalyticsconfig"."properties"
+ FROM "customer_analytics_teamcustomeranalyticsconfig"
+ WHERE "customer_analytics_teamcustomeranalyticsconfig"."team_id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.94
+ '''
+ SELECT "customer_analytics_teamcustomeranalyticsconfig"."account_group_type_index" AS "account_group_type_index"
+ FROM "customer_analytics_teamcustomeranalyticsconfig"
+ WHERE "customer_analytics_teamcustomeranalyticsconfig"."team_id" = 99999
+ ORDER BY "customer_analytics_teamcustomeranalyticsconfig"."team_id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.95
+ '''
+ SELECT "posthog_tag"."name" AS "tag__name"
+ FROM "posthog_taggeditem"
+ INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id")
+ WHERE ("posthog_taggeditem"."content_type_id" = 99999
+ AND "posthog_taggeditem"."object_id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.96
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
+ "posthog_user"."toolbar_mode",
+ "posthog_user"."hedgehog_config",
+ "posthog_user"."allow_sidebar_suggestions",
+ "posthog_user"."shortcut_position",
+ "posthog_user"."passkeys_enabled_for_2fa",
+ "posthog_user"."hide_mcp_hints",
+ "posthog_user"."ui_configuration",
+ "posthog_user"."onboarding_skipped_at",
+ "posthog_user"."onboarding_skipped_reason",
+ "posthog_user"."onboarding_skipped_organization_id",
+ "posthog_user"."onboarding_delegated_to_invite_id",
+ "posthog_user"."onboarding_delegated_to_organization_id",
+ "posthog_user"."onboarding_delegation_accepted_at",
+ "posthog_user"."events_column_config",
+ "posthog_user"."email_opt_in"
+ FROM "posthog_user"
+ WHERE ("posthog_user"."is_active"
+ AND "posthog_user"."id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.97
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -32508,7 +32688,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.93
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.98
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -32600,134 +32780,104 @@
"posthog_team"."api_query_rate_limit",
"posthog_team"."drop_events_older_than",
"posthog_team"."base_currency",
- "posthog_team"."business_model"
+ "posthog_team"."business_model",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
FROM "posthog_team"
+ INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
WHERE "posthog_team"."id" = 99999
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.94
- '''
- SELECT "posthog_dashboardtile"."id",
- "posthog_dashboardtile"."dashboard_id",
- "posthog_dashboardtile"."insight_id",
- "posthog_dashboardtile"."text_id",
- "posthog_dashboardtile"."button_tile_id",
- "posthog_dashboardtile"."widget_id",
- "posthog_dashboardtile"."team_id",
- "posthog_dashboardtile"."layouts",
- "posthog_dashboardtile"."color",
- "posthog_dashboardtile"."filters_hash",
- "posthog_dashboardtile"."last_refresh",
- "posthog_dashboardtile"."refreshing",
- "posthog_dashboardtile"."refresh_attempt",
- "posthog_dashboardtile"."filters_overrides",
- "posthog_dashboardtile"."show_description",
- "posthog_dashboardtile"."transparent_background",
- "posthog_dashboardtile"."group_key",
- "posthog_dashboardtile"."badge",
- "posthog_dashboardtile"."deleted"
- FROM "posthog_dashboardtile"
- INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
- WHERE (NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL)
- AND NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboardtile"."insight_id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.95
- '''
- SELECT "posthog_dashboardtile"."id",
- "posthog_dashboardtile"."dashboard_id",
- "posthog_dashboardtile"."insight_id",
- "posthog_dashboardtile"."text_id",
- "posthog_dashboardtile"."button_tile_id",
- "posthog_dashboardtile"."widget_id",
- "posthog_dashboardtile"."team_id",
- "posthog_dashboardtile"."layouts",
- "posthog_dashboardtile"."color",
- "posthog_dashboardtile"."filters_hash",
- "posthog_dashboardtile"."last_refresh",
- "posthog_dashboardtile"."refreshing",
- "posthog_dashboardtile"."refresh_attempt",
- "posthog_dashboardtile"."filters_overrides",
- "posthog_dashboardtile"."show_description",
- "posthog_dashboardtile"."transparent_background",
- "posthog_dashboardtile"."group_key",
- "posthog_dashboardtile"."badge",
- "posthog_dashboardtile"."deleted"
- FROM "posthog_dashboardtile"
- INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
- WHERE (NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL)
- AND NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboardtile"."insight_id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.96
- '''
- SELECT "posthog_insightvariable"."id",
- "posthog_insightvariable"."name",
- "posthog_insightvariable"."code_name",
- "posthog_insightvariable"."type",
- "posthog_insightvariable"."default_value",
- "posthog_insightvariable"."is_multi"
- FROM "posthog_insightvariable"
- INNER JOIN "posthog_team" ON ("posthog_insightvariable"."team_id" = "posthog_team"."id")
- WHERE ("posthog_insightvariable"."team_id" =
- (SELECT "U0"."parent_team_id" AS "parent_team_id"
- FROM "posthog_team" "U0"
- WHERE "U0"."id" = 99999
- LIMIT 1)
- OR ("posthog_team"."parent_team_id" IS NULL
- AND "posthog_insightvariable"."team_id" = 99999))
- ORDER BY "posthog_insightvariable"."name" ASC
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.97
- '''
- SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
- "posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
- "posthog_teamrevenueanalyticsconfig"."notified_first_sync",
- "posthog_teamrevenueanalyticsconfig"."events",
- "posthog_teamrevenueanalyticsconfig"."goals",
- "posthog_teamrevenueanalyticsconfig"."base_currency"
- FROM "posthog_teamrevenueanalyticsconfig"
- WHERE "posthog_teamrevenueanalyticsconfig"."team_id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.98
- '''
- SELECT "posthog_teammarketinganalyticsconfig"."team_id",
- "posthog_teammarketinganalyticsconfig"."attribution_window_days",
- "posthog_teammarketinganalyticsconfig"."attribution_mode",
- "posthog_teammarketinganalyticsconfig"."filter_test_accounts",
- "posthog_teammarketinganalyticsconfig"."sources_map",
- "posthog_teammarketinganalyticsconfig"."conversion_goals",
- "posthog_teammarketinganalyticsconfig"."campaign_name_mappings",
- "posthog_teammarketinganalyticsconfig"."custom_source_mappings",
- "posthog_teammarketinganalyticsconfig"."campaign_field_preferences"
- FROM "posthog_teammarketinganalyticsconfig"
- WHERE "posthog_teammarketinganalyticsconfig"."team_id" = 99999
- LIMIT 21
- '''
-# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.99
'''
- SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
- "customer_analytics_teamcustomeranalyticsconfig"."activity_event",
- "customer_analytics_teamcustomeranalyticsconfig"."signup_pageview_event",
- "customer_analytics_teamcustomeranalyticsconfig"."signup_event",
- "customer_analytics_teamcustomeranalyticsconfig"."subscription_event",
- "customer_analytics_teamcustomeranalyticsconfig"."payment_event",
- "customer_analytics_teamcustomeranalyticsconfig"."account_group_type_index",
- "customer_analytics_teamcustomeranalyticsconfig"."default_pinned_properties",
- "customer_analytics_teamcustomeranalyticsconfig"."account_track_rules",
- "customer_analytics_teamcustomeranalyticsconfig"."account_track_rules_enabled_at",
- "customer_analytics_teamcustomeranalyticsconfig"."properties"
- FROM "customer_analytics_teamcustomeranalyticsconfig"
- WHERE "customer_analytics_teamcustomeranalyticsconfig"."team_id" = 99999
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
LIMIT 21
'''
# ---
diff --git a/posthog/models/activity_logging/activity_log.py b/posthog/models/activity_logging/activity_log.py
index d40445420bc8..c85747281ffe 100644
--- a/posthog/models/activity_logging/activity_log.py
+++ b/posthog/models/activity_logging/activity_log.py
@@ -27,6 +27,7 @@ from posthog.models.activity_logging.utils import (
ACTIVITY_LOG_CREDENTIAL_ID_MAX_LENGTH,
ActivityCredential,
activity_storage,
+ is_uncached_reverse_one_to_one,
)
from posthog.models.utils import ActivityDetailEncoder, UUIDTModel
@@ -1234,6 +1235,23 @@ def safely_get_field_value(instance: models.Model | None, field: str):
return None
+def _is_unchanged_without_a_query(
+ field: Any, previous: models.Model, current: models.Model, current_deferred: set[str]
+) -> bool:
+ """Decide from loaded values alone whether a field can differ, so the diff skips its read."""
+ if is_uncached_reverse_one_to_one(field, previous, current):
+ return True
+ if not field.concrete:
+ return False
+ if field.attname in current_deferred:
+ # A save writes only the loaded fields of a deferred instance, so the row keeps the value `previous` holds.
+ return True
+ if isinstance(field, models.ForeignKey | models.OneToOneField):
+ # Both sides fetch the related row by this id, so the same id gives the same value.
+ return getattr(previous, field.attname) == getattr(current, field.attname)
+ return False
+
+
def changes_between(
model_type: AuditableScope,
previous: Optional[models.Model],
@@ -1259,8 +1277,12 @@ def changes_between(
masked_fields = field_with_masked_contents.get(model_type, [])
filtered_fields = [f for f in fields if f.name not in excluded_fields]
filtered_field_names = [f.name for f in filtered_fields]
+ current_deferred = current.get_deferred_fields() if current is not None else set()
for field in filtered_fields:
+ if current is not None and _is_unchanged_without_a_query(field, previous, current, current_deferred):
+ continue
+
field_name = field.name
left = safely_get_field_value(previous, field_name)
right = safely_get_field_value(current, field_name)
diff --git a/posthog/models/activity_logging/utils.py b/posthog/models/activity_logging/utils.py
index 5dbc6e88de93..1e2efbed18b6 100644
--- a/posthog/models/activity_logging/utils.py
+++ b/posthog/models/activity_logging/utils.py
@@ -389,6 +389,18 @@ class ActivityLogVisibilityManager:
activity_visibility_manager = ActivityLogVisibilityManager()
+def is_uncached_reverse_one_to_one(field: Any, *instances: models.Model | None) -> bool:
+ """True for a reverse one-to-one that no instance holds in its cache.
+
+ Each side then reads the same related row with its own query, so the two values cannot differ.
+ """
+ return (
+ field.one_to_one
+ and not field.concrete
+ and not any(instance is not None and field.is_cached(instance) for instance in instances)
+ )
+
+
def get_changed_fields_local(before_update: models.Model, after_update: models.Model) -> list[str]:
"""
Get the fields that have changed on a model.
@@ -420,6 +432,9 @@ def get_changed_fields_local(before_update: models.Model, after_update: models.M
if field.name in before_deferred or field.name in after_deferred:
continue
+ if is_uncached_reverse_one_to_one(field, before_update, after_update):
+ continue
+
if hasattr(before_update, field.name) and hasattr(after_update, field.name):
try:
old_val = getattr(before_update, field.name, None)
diff --git a/posthog/test/activity_logging/test_organization_activity_logging.py b/posthog/test/activity_logging/test_organization_activity_logging.py
index 87560bd79f31..146e511af55a 100644
--- a/posthog/test/activity_logging/test_organization_activity_logging.py
+++ b/posthog/test/activity_logging/test_organization_activity_logging.py
@@ -1,13 +1,57 @@
+from django.db import connection
+from django.test.utils import CaptureQueriesContext
+
+from parameterized import parameterized
+
from posthog.constants import AvailableFeature
from posthog.models import Organization, User
-from posthog.models.activity_logging.activity_log import ActivityLog
+from posthog.models.activity_logging.activity_log import ActivityLog, Change, changes_between
from posthog.models.organization import OrganizationMembership
from posthog.models.organization_invite import OrganizationInvite
from posthog.models.uploaded_media import UploadedMedia
from posthog.test.activity_log_utils import ActivityLogTestHelper
+from products.access_control.backend.models.role import Role
+
class TestOrganizationActivityLogging(ActivityLogTestHelper):
+ @parameterized.expand(
+ [
+ ("deferred_fields", ("id", "members_can_invite"), "posthog_organization"),
+ ("unchanged_foreign_key", None, "ee_role"),
+ ]
+ )
+ def test_diff_does_not_reload_rows_for_unchanged_fields(
+ self, _name: str, loaded_fields: tuple[str, ...] | None, table: str
+ ) -> None:
+ role = Role.objects.create(name="Default role", organization=self.organization)
+ Organization.objects.filter(id=self.organization.id).update(default_role=role, members_can_invite=True)
+ row_id = {"posthog_organization": self.organization.id, "ee_role": role.id}[table]
+
+ previous = Organization.objects.get(id=self.organization.id)
+ queryset = Organization.objects.all() if loaded_fields is None else Organization.objects.only(*loaded_fields)
+ current = queryset.get(id=self.organization.id)
+ current.members_can_invite = False
+
+ with CaptureQueriesContext(connection) as queries:
+ changes = changes_between("Organization", previous=previous, current=current)
+
+ row_reads = [
+ query["sql"]
+ for query in queries.captured_queries
+ if f'FROM "{table}"' in query["sql"] and str(row_id) in query["sql"]
+ ]
+ assert row_reads == []
+ assert changes == [
+ Change(
+ type="Organization",
+ field="member invitation permissions",
+ action="changed",
+ before=True,
+ after=False,
+ )
+ ]
+
def test_organization_creation_activity_logging(self):
organization = self.create_organization("Test Organization")
diff --git a/posthog/test/activity_logging/test_user_activity_logging.py b/posthog/test/activity_logging/test_user_activity_logging.py
index aadaa3888dca..543b29fb94e6 100644
--- a/posthog/test/activity_logging/test_user_activity_logging.py
+++ b/posthog/test/activity_logging/test_user_activity_logging.py
@@ -1,6 +1,8 @@
from posthog.test.base import BaseTest
+from django.db import connection
from django.test import SimpleTestCase
+from django.test.utils import CaptureQueriesContext
from django.utils import timezone
from parameterized import parameterized
@@ -169,6 +171,20 @@ class TestUserModelMixinIntegration(BaseTest):
finally:
model_activity_signal.disconnect(self._signal_handler, sender=User)
+ def test_logged_update_does_not_read_reverse_one_to_one_rows(self) -> None:
+ user = User.objects.get(id=self.user.id)
+ user.first_name = "Renamed"
+
+ with CaptureQueriesContext(connection) as queries:
+ user.save()
+
+ autonomy_reads = [
+ query["sql"]
+ for query in queries.captured_queries
+ if 'FROM "signals_signaluserautonomyconfig"' in query["sql"]
+ ]
+ assert autonomy_reads == []
+
def test_user_save_still_works_correctly(self) -> None:
"""Test that User save() method continues to work correctly with mixin."""
user = User.objects.create_user(