: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(data-warehouse): add wrike project_dependencies table (#113863)
Tom Owers5a72b1b0a6ff
diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambrindex 5ec3624952cc..e00c9f1efb95 100644--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr@@ -4300,171 +4300,6 @@'''# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101- '''- SELECT "posthog_dashboardtile"."dashboard_id" AS "dashboard_id"- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102- '''- 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"."restriction_level",- "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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -4603,7 +4438,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -4658,7 +4493,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102'''SELECT "ee_accesscontrol"."id","ee_accesscontrol"."team_id",@@ -4681,7 +4516,7 @@AND "ee_accesscontrol"."team_id" = 99999))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -4734,19 +4569,7 @@WHERE "posthog_organizationmembership"."user_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11- '''- 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"."insight_id" IS NULL))- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104'''SELECT "ee_accesscontrol"."team_id" AS "team_id","ee_accesscontrol"."resource_id" AS "resource_id",@@ -4759,7 +4582,7 @@AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105'''SELECT "ee_role"."organization_id" AS "role__organization_id","ee_rolemembership"."role_id" AS "role_id"@@ -4771,7 +4594,7 @@OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106'''SELECT "posthog_dashboard"."id" AS "id"FROM "posthog_dashboard"@@ -4791,7 +4614,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107'''SELECT "posthog_dashboard"."id" AS "id","posthog_dashboard"."name" AS "name"@@ -4804,7 +4627,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108'''SELECT COUNT(*) AS "__count"FROM "posthog_dashboardtile"@@ -4817,7 +4640,7 @@AND "posthog_dashboardtile"."deleted" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -4850,7 +4673,19 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11+ '''+ 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"."insight_id" IS NULL))+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -4949,7 +4784,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -4995,7 +4830,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112'''SELECT 1 AS "a"FROM "posthog_sharingconfiguration"@@ -5007,7 +4842,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -5106,26 +4941,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12- '''- 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" = 99999- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114'''SELECT "posthog_filesystem"."team_id","posthog_filesystem"."id",@@ -5150,7 +4966,7 @@AND "posthog_filesystem"."shortcut" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115'''SELECT "posthog_insightviewed"."id","posthog_insightviewed"."team_id",@@ -5168,7 +4984,7 @@UPDATE'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -5214,7 +5030,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -5313,7 +5129,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -5340,7 +5156,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -5367,16 +5183,35 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12'''- 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")+ 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" = 99999+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120+ '''+ 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@@ -5387,7 +5222,7 @@ORDER BY "posthog_insightvariable"."name" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121'''SELECT "posthog_dashboardtile"."dashboard_id" AS "dashboard_id"FROM "posthog_dashboardtile"@@ -5398,7 +5233,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -5431,7 +5266,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123'''SELECT "posthog_tag"."name" AS "tag__name"FROM "posthog_taggeditem"@@ -5440,18 +5275,7 @@AND "posthog_taggeditem"."object_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13- '''- SELECT "django_content_type"."id",- "django_content_type"."app_label",- "django_content_type"."model"- FROM "django_content_type"- WHERE ("django_content_type"."app_label" = 'dashboards'- AND "django_content_type"."model" = 'dashboard')- LIMIT 21- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124'''SELECT "posthog_user"."id","posthog_user"."password",@@ -5497,7 +5321,7 @@AND "posthog_user"."id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -5543,7 +5367,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -5682,7 +5506,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -5737,7 +5561,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128'''SELECT "ee_accesscontrol"."id","ee_accesscontrol"."team_id",@@ -5760,7 +5584,7 @@AND "ee_accesscontrol"."team_id" = 99999))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -5813,7 +5637,15 @@WHERE "posthog_organizationmembership"."user_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13+ '''+ SELECT COUNT(*) AS "__count"+ FROM "posthog_taggeditem"+ WHERE ("posthog_taggeditem"."content_type_id" = 99999+ AND "posthog_taggeditem"."object_id" = 99999)+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130'''SELECT "ee_accesscontrol"."team_id" AS "team_id","ee_accesscontrol"."resource_id" AS "resource_id",@@ -5826,7 +5658,7 @@AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131'''SELECT "ee_role"."organization_id" AS "role__organization_id","ee_rolemembership"."role_id" AS "role_id"@@ -5838,7 +5670,7 @@OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132'''SELECT "posthog_dashboard"."id" AS "id"FROM "posthog_dashboard"@@ -5858,7 +5690,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133'''SELECT "posthog_dashboard"."id" AS "id","posthog_dashboard"."name" AS "name"@@ -5871,15 +5703,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14- '''- SELECT COUNT(*) AS "__count"- FROM "posthog_taggeditem"- WHERE ("posthog_taggeditem"."content_type_id" = 99999- AND "posthog_taggeditem"."object_id" = 99999)- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134'''SELECT COUNT(*) AS "__count"FROM "posthog_dashboardtile"@@ -5892,7 +5716,7 @@AND "posthog_dashboardtile"."deleted" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -5925,7 +5749,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -6024,7 +5848,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -6070,7 +5894,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138'''SELECT 1 AS "a"FROM "posthog_sharingconfiguration"@@ -6082,7 +5906,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -6181,7 +6005,23 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14+ '''+ SELECT "posthog_filesystem"."id" AS "id",+ "posthog_filesystem"."path" AS "path"+ 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" = 'dashboard'+ AND NOT ("posthog_filesystem"."shortcut"+ AND "posthog_filesystem"."shortcut" IS NOT NULL))+ ORDER BY 1 ASC+ LIMIT 1+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140'''SELECT "posthog_filesystem"."team_id","posthog_filesystem"."id",@@ -6206,7 +6046,7 @@AND "posthog_filesystem"."shortcut" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141'''SELECT "posthog_insightviewed"."id","posthog_insightviewed"."team_id",@@ -6224,7 +6064,7 @@UPDATE'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -6270,7 +6110,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -6369,23 +6209,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15- '''- SELECT "posthog_filesystem"."id" AS "id",- "posthog_filesystem"."path" AS "path"- 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" = 'dashboard'- AND NOT ("posthog_filesystem"."shortcut"- AND "posthog_filesystem"."shortcut" IS NOT NULL))- ORDER BY 1 ASC- LIMIT 1- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -6412,7 +6236,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -6439,7 +6263,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146'''SELECT "posthog_insightvariable"."id","posthog_insightvariable"."name",@@ -6459,7 +6283,7 @@ORDER BY "posthog_insightvariable"."name" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147'''SELECT "posthog_dashboardtile"."dashboard_id" AS "dashboard_id"FROM "posthog_dashboardtile"@@ -6470,7 +6294,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -6503,7 +6327,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149'''SELECT "posthog_tag"."name" AS "tag__name"FROM "posthog_taggeditem"@@ -6512,7 +6336,23 @@AND "posthog_taggeditem"."object_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.156+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15+ '''+ SELECT "posthog_filesystem"."id" AS "id",+ "posthog_filesystem"."path" AS "path"+ 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" = 'dashboard'+ AND NOT ("posthog_filesystem"."shortcut"+ AND "posthog_filesystem"."shortcut" IS NOT NULL))+ ORDER BY 1 ASC+ LIMIT 1+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150'''SELECT "posthog_user"."id","posthog_user"."password",@@ -6558,7 +6398,7 @@AND "posthog_user"."id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.157+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -6604,7 +6444,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.158+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -6743,7 +6583,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.159+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -6798,23 +6638,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16- '''- SELECT "posthog_filesystem"."id" AS "id",- "posthog_filesystem"."path" AS "path"- 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" = 'dashboard'- AND NOT ("posthog_filesystem"."shortcut"- AND "posthog_filesystem"."shortcut" IS NOT NULL))- ORDER BY 1 ASC- LIMIT 1- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.160+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154'''SELECT "ee_accesscontrol"."id","ee_accesscontrol"."team_id",@@ -6837,7 +6661,7 @@AND "ee_accesscontrol"."team_id" = 99999))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.161+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -6890,7 +6714,7 @@WHERE "posthog_organizationmembership"."user_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.162+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.156'''SELECT "ee_accesscontrol"."team_id" AS "team_id","ee_accesscontrol"."resource_id" AS "resource_id",@@ -6903,7 +6727,7 @@AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.163+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.157'''SELECT "ee_role"."organization_id" AS "role__organization_id","ee_rolemembership"."role_id" AS "role_id"@@ -6915,7 +6739,7 @@OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.164+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.158'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -7018,7 +6842,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.165+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.159'''SELECT "posthog_sharingconfiguration"."id","posthog_sharingconfiguration"."team_id",@@ -7041,7 +6865,23 @@5 /* ... */)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.166+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16+ '''+ SELECT "posthog_filesystem"."id" AS "id",+ "posthog_filesystem"."path" AS "path"+ 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" = 'dashboard'+ AND NOT ("posthog_filesystem"."shortcut"+ AND "posthog_filesystem"."shortcut" IS NOT NULL))+ ORDER BY 1 ASC+ LIMIT 1+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.160'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -7402,7 +7242,7 @@ORDER BY "posthog_dashboarditem"."order" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.167+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.161'''SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id","posthog_dashboard"."id",@@ -7444,7 +7284,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.168+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.162'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -7475,7 +7315,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.169+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.163'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -7504,23 +7344,7 @@2)/* ... */)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17- '''- SELECT "posthog_filesystem"."id" AS "id",- "posthog_filesystem"."path" AS "path"- 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" = 'dashboard'- AND NOT ("posthog_filesystem"."shortcut"- AND "posthog_filesystem"."shortcut" IS NOT NULL))- ORDER BY 1 ASC- LIMIT 1- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.170+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.164'''SELECT "posthog_taggeditem"."id","posthog_taggeditem"."tag_id",@@ -7541,7 +7365,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.171+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.165'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -7640,7 +7464,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.172+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.166'''SELECT "posthog_filesystem"."team_id","posthog_filesystem"."id",@@ -7665,7 +7489,7 @@AND "posthog_filesystem"."shortcut" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.173+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.167'''SELECT "posthog_filesystemshortcut"."id","posthog_filesystemshortcut"."team_id",@@ -7688,7 +7512,7 @@AND "posthog_filesystemshortcut"."href" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.174+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.168'''SELECT "posthog_insightvariable"."id","posthog_insightvariable"."name",@@ -7708,7 +7532,7 @@ORDER BY "posthog_insightvariable"."name" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.175+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.169'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -8070,20 +7894,39 @@ORDER BY "posthog_dashboarditem"."order" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.176+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17'''- SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id",- "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",+ 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" = 99999+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.170+ '''+ SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id",+ "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",@@ -8112,7 +7955,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.177+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.171'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -8143,7 +7986,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.178+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.172'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -8172,7 +8015,7 @@2)/* ... */)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.179+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.173'''SELECT "posthog_taggeditem"."id","posthog_taggeditem"."tag_id",@@ -8193,26 +8036,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18- '''- 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" = 99999- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.180+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.174'''SELECT "posthog_alertconfiguration"."created_by_id","posthog_alertconfiguration"."created_at",@@ -8295,7 +8119,7 @@5 /* ... */)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.181+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.175'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -8328,7 +8152,130 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.176+ '''+ SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id",+ "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"."restriction_level",+ "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"+ INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id")+ WHERE (NOT ("posthog_dashboard"."deleted")+ AND "posthog_dashboard"."id" IN+ (SELECT U0."dashboard_id" AS "dashboard_id"+ FROM "posthog_dashboardtile" U0+ INNER JOIN "posthog_dashboard" U1 ON (U0."dashboard_id" = U1."id")+ WHERE (NOT (U0."deleted"+ AND U0."deleted" IS NOT NULL)+ AND NOT (U1."deleted")))+ AND "posthog_dashboardtile"."insight_id" IN (1,+ 2,+ 3,+ 4,+ 5 /* ... */))+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.177+ '''+ 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"."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" IN (1,+ 2,+ 3,+ 4,+ 5 /* ... */))+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.178+ '''+ 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"."restriction_level",+ "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 ("posthog_dashboard"."id") IN ((1,+ 2)/* ... */)+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.179+ '''+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18'''SELECT "posthog_insightvariable"."id","posthog_insightvariable"."name",@@ -8348,146 +8295,123 @@ORDER BY "posthog_insightvariable"."name" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.180'''- 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"."correlation_config",- "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+ SELECT "posthog_alertconfiguration"."created_by_id",+ "posthog_alertconfiguration"."created_at",+ "posthog_alertconfiguration"."id",+ "posthog_alertconfiguration"."team_id",+ "posthog_alertconfiguration"."insight_id",+ "posthog_alertconfiguration"."name",+ "posthog_alertconfiguration"."config",+ "posthog_alertconfiguration"."evaluation_delay_intervals",+ "posthog_alertconfiguration"."calculation_interval",+ "posthog_alertconfiguration"."threshold_id",+ "posthog_alertconfiguration"."condition",+ "posthog_alertconfiguration"."detector_config",+ "posthog_alertconfiguration"."state",+ "posthog_alertconfiguration"."enabled",+ "posthog_alertconfiguration"."last_notified_at",+ "posthog_alertconfiguration"."last_checked_at",+ "posthog_alertconfiguration"."next_check_at",+ "posthog_alertconfiguration"."snoozed_until",+ "posthog_alertconfiguration"."skip_weekend",+ "posthog_alertconfiguration"."schedule_restriction",+ "posthog_alertconfiguration"."schedule_start_time",+ "posthog_alertconfiguration"."investigation_agent_enabled",+ "posthog_alertconfiguration"."investigation_gates_notifications",+ "posthog_alertconfiguration"."investigation_inconclusive_action",+ "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_password_reset_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",+ "posthog_threshold"."created_by_id",+ "posthog_threshold"."created_at",+ "posthog_threshold"."id",+ "posthog_threshold"."team_id",+ "posthog_threshold"."insight_id",+ "posthog_threshold"."name",+ "posthog_threshold"."configuration"+ FROM "posthog_alertconfiguration"+ LEFT OUTER JOIN "posthog_user" ON ("posthog_alertconfiguration"."created_by_id" = "posthog_user"."id")+ LEFT OUTER JOIN "posthog_threshold" ON ("posthog_alertconfiguration"."threshold_id" = "posthog_threshold"."id")+ WHERE "posthog_alertconfiguration"."insight_id" IN (1,+ 2,+ 3,+ 4,+ 5 /* ... */)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.20+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.181+ '''+ 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"."restriction_level",+ "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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -8843,7 +8767,146 @@ORDER BY "posthog_dashboarditem"."order" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2+ '''+ 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"."correlation_config",+ "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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.20'''SELECT "posthog_tag"."name" AS "tag__name"FROM "posthog_taggeditem"@@ -8852,7 +8915,7 @@AND "posthog_taggeditem"."object_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21'''SELECT "posthog_user"."id","posthog_user"."password",@@ -8898,7 +8961,7 @@AND "posthog_user"."id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -8944,7 +9007,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -9083,7 +9146,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -9138,7 +9201,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25'''SELECT "ee_accesscontrol"."id","ee_accesscontrol"."team_id",@@ -9161,7 +9224,7 @@AND "ee_accesscontrol"."team_id" = 99999))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -9214,7 +9277,7 @@WHERE "posthog_organizationmembership"."user_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27'''SELECT "ee_accesscontrol"."team_id" AS "team_id","ee_accesscontrol"."resource_id" AS "resource_id",@@ -9227,7 +9290,7 @@AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28'''SELECT "ee_role"."organization_id" AS "role__organization_id","ee_rolemembership"."role_id" AS "role_id"@@ -9239,6 +9302,22 @@OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))'''# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29+ '''+ SELECT COUNT(*) AS "__count"+ 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 NOT "posthog_dashboard"."deleted")+ '''+# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.3'''SELECT "posthog_organizationmembership"."id",@@ -9295,22 +9374,6 @@'''# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.30- '''- SELECT COUNT(*) AS "__count"- 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 NOT "posthog_dashboard"."deleted")- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -9409,7 +9472,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.32+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31'''SELECT "posthog_filesystem"."team_id","posthog_filesystem"."id",@@ -9434,7 +9497,7 @@AND "posthog_filesystem"."shortcut" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.32'''SELECT COUNT(*) AS "__count"FROM "posthog_dashboardtile"@@ -9446,7 +9509,7 @@AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33'''SELECT "posthog_sharingconfiguration"."id","posthog_sharingconfiguration"."team_id",@@ -9465,7 +9528,7 @@WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.35+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34'''SELECT COUNT(*) AS "__count"FROM "posthog_taggeditem"@@ -9473,7 +9536,7 @@AND "posthog_taggeditem"."object_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.35'''SELECT "posthog_filesystem"."id" AS "id","posthog_filesystem"."path" AS "path"@@ -9489,7 +9552,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36'''SELECT "posthog_filesystem"."id" AS "id","posthog_filesystem"."path" AS "path"@@ -9505,7 +9568,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37'''SELECT "posthog_filesystem"."id" AS "id","posthog_filesystem"."path" AS "path"@@ -9521,7 +9584,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38'''SELECT "posthog_sharingconfiguration"."id","posthog_sharingconfiguration"."team_id",@@ -9540,6 +9603,26 @@WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999'''# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39+ '''+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.4'''SELECT "ee_accesscontrol"."id",@@ -9564,26 +9647,6 @@'''# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.40- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.41'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -9939,7 +10002,7 @@ORDER BY "posthog_dashboarditem"."order" ASC'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.42+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.41'''SELECT "posthog_tag"."name" AS "tag__name"FROM "posthog_taggeditem"@@ -9948,7 +10011,7 @@AND "posthog_taggeditem"."object_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.43+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.42'''SELECT "posthog_user"."id","posthog_user"."password",@@ -9994,7 +10057,7 @@AND "posthog_user"."id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.44+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.43'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -10040,7 +10103,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.45+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.44'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -10179,7 +10242,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.45'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -10234,7 +10297,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46'''SELECT "ee_accesscontrol"."id","ee_accesscontrol"."team_id",@@ -10257,7 +10320,7 @@AND "ee_accesscontrol"."team_id" = 99999))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -10310,7 +10373,7 @@WHERE "posthog_organizationmembership"."user_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48'''SELECT "ee_accesscontrol"."team_id" AS "team_id","ee_accesscontrol"."resource_id" AS "resource_id",@@ -10323,6 +10386,18 @@AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))'''# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49+ '''+ SELECT "ee_role"."organization_id" AS "role__organization_id",+ "ee_rolemembership"."role_id" AS "role_id"+ FROM "ee_rolemembership"+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_rolemembership"."organization_member_id" = "posthog_organizationmembership"."id")+ INNER JOIN "ee_role" ON ("ee_rolemembership"."role_id" = "ee_role"."id")+ WHERE ("ee_rolemembership"."user_id" = 99999+ AND ("ee_rolemembership"."organization_member_id" IS NULL+ OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))+ '''+# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5'''SELECT "posthog_organizationmembership"."id",@@ -10377,18 +10452,6 @@'''# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50- '''- SELECT "ee_role"."organization_id" AS "role__organization_id",- "ee_rolemembership"."role_id" AS "role_id"- FROM "ee_rolemembership"- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_rolemembership"."organization_member_id" = "posthog_organizationmembership"."id")- INNER JOIN "ee_role" ON ("ee_rolemembership"."role_id" = "ee_role"."id")- WHERE ("ee_rolemembership"."user_id" = 99999- AND ("ee_rolemembership"."organization_member_id" IS NULL- OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51'''SELECT "posthog_dashboard"."id" AS "id"FROM "posthog_dashboard"@@ -10408,7 +10471,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51'''SELECT "posthog_dashboard"."id" AS "id","posthog_dashboard"."name" AS "name"@@ -10421,7 +10484,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52'''SELECT COUNT(*) AS "__count"FROM "posthog_dashboardtile"@@ -10434,7 +10497,7 @@AND "posthog_dashboardtile"."deleted" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53'''SELECT COUNT(*) AS "__count"FROM "posthog_dashboardtile"@@ -10447,7 +10510,7 @@AND "posthog_dashboardtile"."deleted" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -10480,7 +10543,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -10579,7 +10642,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -10625,7 +10688,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57'''SELECT 1 AS "a"FROM "posthog_sharingconfiguration"@@ -10637,7 +10700,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -10729,27 +10792,14 @@"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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6- '''- SELECT "ee_accesscontrol"."team_id" AS "team_id",- "ee_accesscontrol"."resource_id" AS "resource_id",- "ee_accesscontrol"."organization_member_id" AS "organization_member_id",- "ee_accesscontrol"."role_id" AS "role_id",- "ee_accesscontrol"."access_level" AS "access_level"- FROM "ee_accesscontrol"- INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")- WHERE ("ee_accesscontrol"."resource" = 'project'- AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))+ "posthog_team"."base_currency",+ "posthog_team"."business_model"+ FROM "posthog_team"+ WHERE "posthog_team"."id" = 99999+ LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -10795,7 +10845,20 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6+ '''+ SELECT "ee_accesscontrol"."team_id" AS "team_id",+ "ee_accesscontrol"."resource_id" AS "resource_id",+ "ee_accesscontrol"."organization_member_id" AS "organization_member_id",+ "ee_accesscontrol"."role_id" AS "role_id",+ "ee_accesscontrol"."access_level" AS "access_level"+ FROM "ee_accesscontrol"+ INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")+ WHERE ("ee_accesscontrol"."resource" = 'project'+ AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60'''SELECT 1 AS "a"FROM "posthog_sharingconfiguration"@@ -10807,7 +10870,7 @@LIMIT 1'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -10906,7 +10969,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62'''SELECT "posthog_filesystem"."team_id","posthog_filesystem"."id",@@ -10931,7 +10994,7 @@AND "posthog_filesystem"."shortcut" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63'''SELECT "posthog_insightviewed"."id","posthog_insightviewed"."team_id",@@ -10949,7 +11012,7 @@UPDATE'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -10995,7 +11058,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -11094,7 +11157,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -11121,7 +11184,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.68+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -11148,7 +11211,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.68'''SELECT "posthog_insightvariable"."id","posthog_insightvariable"."name",@@ -11168,6 +11231,17 @@ORDER BY "posthog_insightvariable"."name" ASC'''# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69+ '''+ SELECT "posthog_dashboardtile"."dashboard_id" AS "dashboard_id"+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.7'''SELECT "ee_role"."organization_id" AS "role__organization_id",@@ -11181,72 +11255,6 @@'''# ---# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.70- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.71- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72- '''- 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"- FROM "customer_analytics_teamcustomeranalyticsconfig"- WHERE "customer_analytics_teamcustomeranalyticsconfig"."team_id" = 99999- LIMIT 21- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74- '''- SELECT "posthog_dashboardtile"."dashboard_id" AS "dashboard_id"- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -11279,18 +11287,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76- '''- SELECT "django_content_type"."id",- "django_content_type"."app_label",- "django_content_type"."model"- FROM "django_content_type"- WHERE ("django_content_type"."app_label" = 'product_analytics'- AND "django_content_type"."model" = 'insight')- LIMIT 21- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.71'''SELECT "posthog_tag"."name" AS "tag__name"FROM "posthog_taggeditem"@@ -11299,7 +11296,7 @@AND "posthog_taggeditem"."object_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72'''SELECT "posthog_user"."id","posthog_user"."password",@@ -11345,7 +11342,7 @@AND "posthog_user"."id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -11391,23 +11388,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.8- '''- SELECT COUNT(*) AS "__count"- 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 NOT "posthog_dashboard"."deleted")- '''-# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -11546,7 +11527,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -11601,7 +11582,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76'''SELECT "ee_accesscontrol"."id","ee_accesscontrol"."team_id",@@ -11624,7 +11605,7 @@AND "ee_accesscontrol"."team_id" = 99999))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77'''SELECT "posthog_organizationmembership"."id","posthog_organizationmembership"."organization_id",@@ -11677,7 +11658,7 @@WHERE "posthog_organizationmembership"."user_id" = 99999'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78'''SELECT "ee_accesscontrol"."team_id" AS "team_id","ee_accesscontrol"."resource_id" AS "resource_id",@@ -11690,7 +11671,7 @@AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79'''SELECT "ee_role"."organization_id" AS "role__organization_id","ee_rolemembership"."role_id" AS "role_id"@@ -11702,7 +11683,23 @@OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.8+ '''+ SELECT COUNT(*) AS "__count"+ 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 NOT "posthog_dashboard"."deleted")+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80'''SELECT "posthog_dashboard"."id" AS "id"FROM "posthog_dashboard"@@ -11722,7 +11719,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81'''SELECT "posthog_dashboard"."id" AS "id","posthog_dashboard"."name" AS "name"@@ -11735,7 +11732,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82'''SELECT COUNT(*) AS "__count"FROM "posthog_dashboardtile"@@ -11748,7 +11745,7 @@AND "posthog_dashboardtile"."deleted" IS NOT NULL))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83'''SELECT "posthog_dashboard"."id","posthog_dashboard"."name",@@ -11781,7 +11778,7 @@5 /* ... */))'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -11880,7 +11877,65 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85+ '''+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86+ '''+ SELECT 1 AS "a"+ FROM "posthog_sharingconfiguration"+ WHERE ("posthog_sharingconfiguration"."enabled"+ AND ("posthog_sharingconfiguration"."expires_at" IS NULL+ OR "posthog_sharingconfiguration"."expires_at" > 'SHARING-EXPIRY-TIMESTAMP'::timestamptz)+ AND "posthog_sharingconfiguration"."dashboard_id" = 99999+ AND "posthog_sharingconfiguration"."team_id" = 99999)+ LIMIT 1+ '''+# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -11979,65 +12034,50 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88'''- 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+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89'''- SELECT 1 AS "a"- FROM "posthog_sharingconfiguration"- WHERE ("posthog_sharingconfiguration"."enabled"- AND ("posthog_sharingconfiguration"."expires_at" IS NULL- OR "posthog_sharingconfiguration"."expires_at" > 'SHARING-EXPIRY-TIMESTAMP'::timestamptz)- AND "posthog_sharingconfiguration"."dashboard_id" = 99999- AND "posthog_sharingconfiguration"."team_id" = 99999)- LIMIT 1+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -12136,50 +12176,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95- '''- 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90'''SELECT "posthog_organization"."id","posthog_organization"."name",@@ -12225,7 +12222,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91'''SELECT "posthog_team"."id","posthog_team"."uuid",@@ -12324,7 +12321,7 @@LIMIT 21'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -12351,7 +12348,7 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ----# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93'''SELECT "posthog_dashboardtile"."id","posthog_dashboardtile"."dashboard_id",@@ -12378,6 +12375,171 @@AND "posthog_dashboardtile"."insight_id" = 99999)'''# ---+# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94+ '''+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95+ '''+ SELECT "posthog_dashboardtile"."dashboard_id" AS "dashboard_id"+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96+ '''+ 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"."restriction_level",+ "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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97+ '''+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98+ '''+ 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_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99+ '''+ 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_retrieve_dashboard'''SELECT "posthog_filesystem"."team_id",diff --git a/posthog/test/repo_invariants/dataclass_frozen_baseline.txt b/posthog/test/repo_invariants/dataclass_frozen_baseline.txtindex 6d7b0aa88bc8..66441ff799a0 100644--- a/posthog/test/repo_invariants/dataclass_frozen_baseline.txt+++ b/posthog/test/repo_invariants/dataclass_frozen_baseline.txt@@ -1273,7 +1273,6 @@1 products/warehouse_sources/backend/temporal/data_imports/sources/workos/settings.py1 products/warehouse_sources/backend/temporal/data_imports/sources/workos/workos.py1 products/warehouse_sources/backend/temporal/data_imports/sources/world_bank/world_bank.py-1 products/warehouse_sources/backend/temporal/data_imports/sources/wrike/settings.py1 products/warehouse_sources/backend/temporal/data_imports/sources/wrike/wrike.py1 products/warehouse_sources/backend/temporal/data_imports/sources/writesonic/settings.py1 products/warehouse_sources/backend/temporal/data_imports/sources/writesonic/writesonic.pydiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.mdindex 81a729f8e279..fff00cf5055d 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md@@ -9544,6 +9544,7 @@ Diffed against: <https://developers.wrike.com/sitemap.xml>- [ ] `comments (GET /comments, GET /tasks/{id}/comments)` — collaboration volume per task and folder (medium)- [ ] `approvals (GET /approvals, GET /tasks/{id}/approvals)` — approval state and turnaround per task/folder (medium)- [ ] `dependencies (GET /tasks/{id}/dependencies)` — the task graph edges needed for critical-path and blocker analysis (medium)+- [x] `project_dependencies (GET /folders/{folderId}/dependencies)` — project-to-project dependency edges for portfolio scheduling (medium)- [ ] `bookings (GET /bookings)` — resource allocations to compare planned vs logged effort (medium)- [ ] `timesheets (GET /timesheets)` — submitted timesheet periods and their approval state (medium)- [ ] `audit_log (GET /audit_log)` — account-level change events across all entities (medium)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/canonical_descriptions.pyindex bac38e92e959..4e479210f290 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/canonical_descriptions.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/canonical_descriptions.py@@ -93,4 +93,16 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"avatarUrl": "URL of the space's avatar image.",},},+ "project_dependencies": {+ "description": "A dependency between two Wrike projects, listed once per project it links.",+ "docs_url": "https://developers.wrike.com/reference/getfolderssingledependencies",+ "columns": {+ "id": "Unique identifier for the dependency.",+ "projectId": "ID of the project this row was listed under (the predecessor or the successor).",+ "predecessorId": "ID of the predecessor project.",+ "successorId": "ID of the successor project.",+ "relationType": "Dependency type: FinishToStart, StartToStart, FinishToFinish, or StartToFinish.",+ "lagTime": "Lag time in minutes, in whole work days of 480 minutes. A negative value is lead time.",+ },+ },}diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/settings.pyindex 0294d4d30029..0855551151e0 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/settings.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/settings.py@@ -1,12 +1,16 @@-from dataclasses import dataclass-from typing import Optional+from dataclasses import dataclass, field+from typing import Any, Optional+from products.warehouse_sources.backend.temporal.data_imports.sources.common.rest_source.fanout import (+ DependentEndpointConfig,+)-@dataclass++@dataclass(frozen=True)class WrikeEndpointConfig:name: strpath: str- primary_key: str = "id"+ primary_keys: list[str] = field(default_factory=lambda: ["id"])# Stable creation-time field used for datetime partitioning. Only set where the resource# exposes an immutable creation timestamp — never an `updatedDate`-style field, which would# rewrite partitions on every sync.@@ -16,6 +20,11 @@ class WrikeEndpointConfig:# workflows, custom fields, spaces) return the full result set in a single response with no# pagination token, so we fetch them in one request.paginated: bool = False+ # Set when the path takes a parameter resolved from another endpoint's rows.+ fanout: Optional[DependentEndpointConfig] = None+ page_size: int = 1000+ incremental_fields: list[Any] = field(default_factory=list)+ default_incremental_field: Optional[str] = None# Wrike's REST API (v4) does not expose a server-side cursor/timestamp filter we can reliably@@ -51,6 +60,24 @@ WRIKE_ENDPOINTS: dict[str, WrikeEndpointConfig] = {name="spaces",path="/spaces",),+ "project_dependencies": WrikeEndpointConfig(+ name="project_dependencies",+ path="/folders/{folderId}/dependencies",+ # A project-to-project dependency is listed under both its predecessor and successor+ # project, so the dependency id alone repeats across parents.+ primary_keys=["projectId", "id"],+ fanout=DependentEndpointConfig(+ parent_name="folders",+ resolve_param="folderId",+ resolve_field="id",+ include_from_parent=["id"],+ parent_field_renames={"id": "projectId"},+ # The endpoint rejects any folder id that is not a project.+ parent_params={"project": "true"},+ # A project deleted between the parent listing and this fetch 404s.+ child_response_actions=[{"status_code": 404, "action": "ignore"}],+ ),+ ),}ENDPOINTS = tuple(WRIKE_ENDPOINTS.keys())diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/tests/test_wrike.py b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/tests/test_wrike.pyindex 9d2aa039d51d..0fc3764cd9d1 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/tests/test_wrike.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/tests/test_wrike.py@@ -22,9 +22,9 @@ WRIKE_SESSION_PATCH = ()-def _response(body: dict[str, Any]) -> Response:+def _response(body: dict[str, Any], status_code: int = 200) -> Response:resp = Response()- resp.status_code = 200+ resp.status_code = status_coderesp._content = json.dumps(body).encode()return resp@@ -184,6 +184,32 @@ class TestPagination:assert rows == [{"id": 3}]assert params[0]["nextPageToken"] == "resume_tok"+ @mock.patch(CLIENT_SESSION_PATCH)+ def test_project_dependencies_fan_out_over_projects(self, MockSession) -> None:+ session = MockSession.return_value+ params = _wire(+ session,+ [+ _response({"kind": "folders", "data": [{"id": "P1"}, {"id": "P2"}]}),+ _response(+ {+ "kind": "dependencies",+ "data": [{"id": "D1", "predecessorId": "P1", "successorId": "P2"}],+ }+ ),+ _response({"errorDescription": "Folder not found"}, status_code=404),+ ],+ )++ source_response = _source("project_dependencies")+ rows = _rows(source_response)++ assert params[0] == {"project": "true"}+ sent_urls = [call.args[0].url for call in session.prepare_request.call_args_list]+ assert sent_urls[1].endswith("/api/v4/folders/P1/dependencies")+ assert sent_urls[2].endswith("/api/v4/folders/P2/dependencies")+ assert rows == [{"id": "D1", "predecessorId": "P1", "successorId": "P2", "projectId": "P1"}]+def test_rejects_non_wrike_host_before_any_request(self) -> None:with mock.patch(CLIENT_SESSION_PATCH) as MockSession:with pytest.raises(ValueError, match="non-Wrike host"):diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/wrike.py b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/wrike.pyindex f11834827082..cf177602633e 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/wrike.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/wrike/wrike.py@@ -7,14 +7,22 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.common.resRESTAPIConfig,rest_api_resource,)+from products.warehouse_sources.backend.temporal.data_imports.sources.common.rest_source.fanout import (+ DependentEndpointConfig,+ build_dependent_resource,+)from products.warehouse_sources.backend.temporal.data_imports.sources.common.rest_source.paginators import (JSONResponseCursorPaginator,SinglePagePaginator,)+from products.warehouse_sources.backend.temporal.data_imports.sources.common.rest_source.typing import ClientConfigfrom products.warehouse_sources.backend.temporal.data_imports.sources.common.resumable import ResumableSourceManagerfrom products.warehouse_sources.backend.temporal.data_imports.sources.common.source_helpers import validate_via_probefrom products.warehouse_sources.backend.temporal.data_imports.sources.common.typings import SourceResponse-from products.warehouse_sources.backend.temporal.data_imports.sources.wrike.settings import WRIKE_ENDPOINTS+from products.warehouse_sources.backend.temporal.data_imports.sources.wrike.settings import (+ WRIKE_ENDPOINTS,+ WrikeEndpointConfig,+)# Wrike serves each account from a region-specific host (www.wrike.com, app-us2.wrike.com,# app-eu.wrike.com, ...). The user supplies their host; we only ever send the token to a@@ -25,6 +33,8 @@ API_PATH = "/api/v4"PAGE_SIZE = 1000# Paginated endpoints carry a `nextPageToken` in the body; the same token is sent back as a query param.NEXT_PAGE_TOKEN = "nextPageToken"+# (connect, read) seconds, so a stalled Wrike response can't hold an import worker indefinitely.+REQUEST_TIMEOUT = (10, 60)@dataclasses.dataclass@@ -89,6 +99,58 @@ def validate_credentials(access_token: str, host: str) -> tuple[bool, str | Nonereturn False, f"Wrike API error: status={status}"+def _client_config(access_token: str, host: str) -> ClientConfig:+ return {+ "base_url": _base_url(host),+ "headers": {"Accept": "application/json"},+ "auth": {"type": "bearer", "token": access_token},+ # Pin every request (base and paginated) to the validated Wrike host so a tampered+ # response can't retarget the credential off-host.+ "allowed_hosts": [],+ "request_timeout": REQUEST_TIMEOUT,+ }+++def _fanout_source(+ access_token: str,+ host: str,+ config: WrikeEndpointConfig,+ fanout: DependentEndpointConfig,+ team_id: int,+ job_id: str,+) -> SourceResponse:+ # The parent listing and every child response are single, unpaginated `data` arrays.+ resource = build_dependent_resource(+ endpoint_configs=WRIKE_ENDPOINTS,+ child_endpoint=config.name,+ fanout=fanout,+ client_config=_client_config(access_token, host),+ path_format_values={},+ team_id=team_id,+ job_id=job_id,+ db_incremental_field_last_value=None,+ parent_endpoint_extra={"data_selector": "data", "paginator": SinglePagePaginator()},+ child_endpoint_extra={"data_selector": "data", "paginator": SinglePagePaginator()},+ page_size_param=None,+ )+ return _make_source_response(config, resource)+++def _make_source_response(config: WrikeEndpointConfig, resource: Any, column_hints: Any = None) -> SourceResponse:+ return SourceResponse(+ name=config.name,+ items=lambda: resource,+ primary_keys=config.primary_keys,+ sort_mode="asc",+ partition_count=1,+ partition_size=1,+ partition_mode="datetime" if config.partition_key else None,+ partition_format="week" if config.partition_key else None,+ partition_keys=[config.partition_key] if config.partition_key else None,+ column_hints=column_hints,+ )++def wrike_source(access_token: str,host: str,@@ -103,6 +165,9 @@ def wrike_source(if not is_host_valid(host):raise ValueError(f"Refusing to send Wrike credentials to non-Wrike host: {host}")+ if config.fanout is not None:+ return _fanout_source(access_token, host, config, config.fanout, team_id, job_id)+params: dict[str, Any] = {"pageSize": PAGE_SIZE} if config.paginated else {}paginator = (JSONResponseCursorPaginator(cursor_path=NEXT_PAGE_TOKEN, cursor_param=NEXT_PAGE_TOKEN)@@ -111,14 +176,7 @@ def wrike_source()rest_config: RESTAPIConfig = {- "client": {- "base_url": _base_url(host),- "headers": {"Accept": "application/json"},- "auth": {"type": "bearer", "token": access_token},- # Pin every request (base and paginated) to the validated Wrike host so a tampered- # response can't retarget the credential off-host.- "allowed_hosts": [],- },+ "client": _client_config(access_token, host),"resource_defaults": {},"resources": [{@@ -154,15 +212,4 @@ def wrike_source(initial_paginator_state=initial_paginator_state,)- return SourceResponse(- name=endpoint,- items=lambda: resource,- primary_keys=[config.primary_key],- sort_mode="asc",- partition_count=1,- partition_size=1,- partition_mode="datetime" if config.partition_key else None,- partition_format="week" if config.partition_key else None,- partition_keys=[config.partition_key] if config.partition_key else None,- column_hints=resource.column_hints,- )+ return _make_source_response(config, resource, resource.column_hints)