diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index bf99bbc96b3be..6c6c7ca4b888a 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -1110,17 +1110,6 @@ ' --- # name: TestInsight.test_listing_insights_does_not_nplus1.24 - ' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ - ' ---- -# name: TestInsight.test_listing_insights_does_not_nplus1.25 ' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -1144,7 +1133,7 @@ LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ ' --- -# name: TestInsight.test_listing_insights_does_not_nplus1.26 +# name: TestInsight.test_listing_insights_does_not_nplus1.25 ' SELECT COUNT(*) AS "__count" FROM "posthog_dashboarditem" @@ -1154,7 +1143,7 @@ AND "posthog_dashboarditem"."query" IS NOT NULL)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ ' --- -# name: TestInsight.test_listing_insights_does_not_nplus1.27 +# name: TestInsight.test_listing_insights_does_not_nplus1.26 ' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", @@ -1295,7 +1284,7 @@ LIMIT 100 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ ' --- -# name: TestInsight.test_listing_insights_does_not_nplus1.28 +# name: TestInsight.test_listing_insights_does_not_nplus1.27 ' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", @@ -1394,7 +1383,7 @@ 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ ' --- -# name: TestInsight.test_listing_insights_does_not_nplus1.29 +# name: TestInsight.test_listing_insights_does_not_nplus1.28 ' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -1505,6 +1494,24 @@ 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ ' --- +# name: TestInsight.test_listing_insights_does_not_nplus1.29 + ' + SELECT "posthog_taggeditem"."id", + "posthog_taggeditem"."tag_id", + "posthog_taggeditem"."dashboard_id", + "posthog_taggeditem"."insight_id", + "posthog_taggeditem"."event_definition_id", + "posthog_taggeditem"."property_definition_id", + "posthog_taggeditem"."action_id", + "posthog_taggeditem"."feature_flag_id" + FROM "posthog_taggeditem" + WHERE "posthog_taggeditem"."insight_id" IN (1, + 2, + 3, + 4, + 5 /* ... */) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + ' +--- # name: TestInsight.test_listing_insights_does_not_nplus1.3 ' SELECT "posthog_dashboard"."id",