Skip to content

Commit

Permalink
Update query snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 22, 2023
1 parent 785e61a commit 50f2222
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions posthog/api/test/__snapshots__/test_insight.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 50f2222

Please sign in to comment.