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 Jan 18, 2024
1 parent 021357b commit c8ef0f6
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 @@ -1113,17 +1113,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 @@ -1147,7 +1136,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 @@ -1157,7 +1146,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 @@ -1300,7 +1289,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 @@ -1399,7 +1388,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 @@ -1510,6 +1499,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 c8ef0f6

Please sign in to comment.