Skip to content

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

feat(dashboards): track tile group creation, tab selection, and group info on views (#123577)

Paul D'Ambraeefea86fb1f7
diff --git a/frontend/src/lib/internalMetrics.ts b/frontend/src/lib/internalMetrics.ts
index 0dc0b49ddc8f..98c8cdb5fb4c 100644
--- a/frontend/src/lib/internalMetrics.ts
+++ b/frontend/src/lib/internalMetrics.ts
@@ -12,6 +12,9 @@ interface TimeToSeeDataFields {
action?: string
insights_fetched?: number
insights_fetched_cached?: number
+ group_display?: 'sections' | 'tabs'
+ group_count?: number
+ collapsed_group_count?: number
min_last_refresh?: string | null
max_last_refresh?: string | null
// Signifies whether the action was user-initiated or a secondary effect
diff --git a/frontend/src/lib/utils/eventUsageLogic.test.ts b/frontend/src/lib/utils/eventUsageLogic.test.ts
index 05dbf73f50ab..ce6a599603d0 100644
--- a/frontend/src/lib/utils/eventUsageLogic.test.ts
+++ b/frontend/src/lib/utils/eventUsageLogic.test.ts
@@ -426,6 +426,16 @@ describe('eventUsageLogic', () => {
[{ text: { body: 'hi' } }, { text: { body: 'there' } }, { widget: {} }] as Partial<DashboardTile>[],
{ item_count: 3, text_tiles_count: 2, widget_tiles_count: 1 },
],
+ [
+ 'groups once however many tiles share a key',
+ [
+ { group_key: 'a' },
+ { group_key: 'a' },
+ { group_key: 'b' },
+ { group_key: null },
+ ] as Partial<DashboardTile>[],
+ { item_count: 4, text_tiles_count: 4, group_count: 2 },
+ ],
]
it.each(cases)('counts %s', (_, tiles, expected) => {
@@ -437,6 +447,8 @@ describe('eventUsageLogic', () => {
viewer_is_creator: false,
created_by_system: false,
dashboard_id: 7,
+ group_display: 'sections',
+ group_count: 0,
lastRefreshed: undefined,
refreshAge: undefined,
sample_items_count: 0,
@@ -446,6 +458,11 @@ describe('eventUsageLogic', () => {
})
})
+ it('reports the dashboard group display', () => {
+ const withTabs = { ...dashboard([]), customization: { group_display: 'tabs' } } as unknown as DashboardType
+ expect(dashboardViewedProperties(withTabs, null, 'viewer')).toMatchObject({ group_display: 'tabs' })
+ })
+
const viewerCases: [string, { uuid: string } | null, string | undefined, boolean | undefined][] = [
['the creator views it', { uuid: 'creator' }, 'creator', true],
['another user views it', { uuid: 'creator' }, 'viewer', false],
diff --git a/frontend/src/lib/utils/eventUsageLogic.ts b/frontend/src/lib/utils/eventUsageLogic.ts
index 032b7d55a719..819c36c661de 100644
--- a/frontend/src/lib/utils/eventUsageLogic.ts
+++ b/frontend/src/lib/utils/eventUsageLogic.ts
@@ -68,6 +68,7 @@ import {
PropertyFilterType,
InsightModel,
type SDK,
+ TileGroupDisplay,
} from '~/types'
import { captureBIWorksheetAction } from 'products/business_intelligence/frontend/biEditorAnalytics'
@@ -737,6 +738,16 @@ function countDashboardTiles(tiles: DashboardTile[], properties: Record<string,
}
}
+export function tileGroupProperties(
+ groupDisplay: TileGroupDisplay | undefined,
+ tiles: DashboardTile[]
+): { group_display: TileGroupDisplay; group_count: number } {
+ return {
+ group_display: groupDisplay ?? 'sections',
+ group_count: new Set(tiles.map((tile) => tile.group_key).filter(Boolean)).size,
+ }
+}
+
export function dashboardViewedProperties(
dashboard: DashboardType,
lastRefreshed: Dayjs | null,
@@ -754,6 +765,7 @@ export function dashboardViewedProperties(
item_count: dashboard.tiles?.length || 0,
created_by_system: !dashboard.created_by,
dashboard_id: id,
+ ...tileGroupProperties(dashboard.customization?.group_display, dashboard.tiles || []),
lastRefreshed: lastRefreshed?.toISOString(),
refreshAge: lastRefreshed ? now().diff(lastRefreshed, 'seconds') : undefined,
uses_data_warehouse_source: false,
diff --git a/frontend/src/scenes/dashboard/dashboardLogic.test.ts b/frontend/src/scenes/dashboard/dashboardLogic.test.ts
index d305f1653295..90b8e7eb59c3 100644
--- a/frontend/src/scenes/dashboard/dashboardLogic.test.ts
+++ b/frontend/src/scenes/dashboard/dashboardLogic.test.ts
@@ -846,6 +846,55 @@ describe('dashboardLogic', () => {
fetchRunWidgetsMock.mockRestore()
})
+ it.each([
+ {
+ name: 'open groups',
+ groups: { target: { collapsed: false }, other: { collapsed: false } },
+ groupDisplay: undefined,
+ expected: { group_display: 'sections', group_count: 2, collapsed_group_count: 0 },
+ },
+ {
+ name: 'a closed group',
+ groups: { target: { collapsed: true }, other: { collapsed: false } },
+ groupDisplay: undefined,
+ expected: { group_display: 'sections', group_count: 2, collapsed_group_count: 1 },
+ },
+ {
+ name: 'tabs',
+ groups: { target: { collapsed: false }, other: { collapsed: false } },
+ groupDisplay: 'tabs',
+ expected: { group_display: 'tabs', group_count: 2, collapsed_group_count: 1 },
+ },
+ ])(
+ 'reports $name on dashboard refreshed and time to see data',
+ async ({ groups, groupDisplay, expected }) => {
+ groupTiles(groups)
+ if (groupDisplay) {
+ dashboards[5] = {
+ ...dashboards[5],
+ customization: { ...dashboards[5].customization, group_display: groupDisplay as 'tabs' },
+ }
+ }
+ const capture = jest.spyOn(posthog, 'capture').mockClear()
+
+ await mountDashboard()
+
+ await waitFor(
+ () =>
+ expect(capture).toHaveBeenCalledWith(
+ 'dashboard refreshed',
+ expect.objectContaining(expected)
+ ),
+ { timeout: 5000 }
+ )
+ // Only an initial load sends this event, and which mount counts as one depends on test order.
+ const timeToSeeData = capture.mock.calls.filter(([event]) => event === 'time to see data')
+ for (const [, properties] of timeToSeeData) {
+ expect(properties).toEqual(expect.objectContaining(expected))
+ }
+ }
+ )
+
it.each([
{
name: 'a manual refresh',
@@ -969,42 +1018,52 @@ describe('dashboardLogic', () => {
open: () => logic.actions.selectTileGroupTab('group-target'),
beforeMount: () => {},
ungroupedLoads: 1,
+ tabSelections: 1,
},
{
name: 'a link names it',
open: () => {},
beforeMount: () => router.actions.push('/dashboard/5', { tab: 'group-target' }),
ungroupedLoads: 0,
+ tabSelections: 0,
},
{
name: 'the viewer follows a link to it',
open: () => router.actions.push('/dashboard/5', { tab: 'group-target' }),
beforeMount: () => {},
ungroupedLoads: 1,
+ tabSelections: 0,
},
- ])('shows tabs one at a time and loads a tab when $name', async ({ open, beforeMount, ungroupedLoads }) => {
- groupTiles({ target: { collapsed: false } })
- dashboards[5] = {
- ...dashboards[5],
- customization: { group_display: 'tabs' },
- tiles: dashboards[5].tiles.map((tile, index) =>
- index === 1 ? { ...tile, group_key: null } : tile
- ),
- }
- const ungrouped = dashboards[5].tiles[1].insight!.short_id
- beforeMount()
- await mountDashboard()
- await expectLogic(logic, open).toFinishAllListeners()
+ ])(
+ 'shows tabs one at a time and loads a tab when $name',
+ async ({ open, beforeMount, ungroupedLoads, tabSelections }) => {
+ groupTiles({ target: { collapsed: false } })
+ dashboards[5] = {
+ ...dashboards[5],
+ customization: { group_display: 'tabs' },
+ tiles: dashboards[5].tiles.map((tile, index) =>
+ index === 1 ? { ...tile, group_key: null } : tile
+ ),
+ }
+ const ungrouped = dashboards[5].tiles[1].insight!.short_id
+ beforeMount()
+ await mountDashboard()
+ const capture = jest.spyOn(posthog, 'capture').mockClear()
+ await expectLogic(logic, open).toFinishAllListeners()
- expect(logic.values.tileGroupSections.map((section) => section.key)).toEqual([
- 'tiles-ungrouped',
- 'group-target',
- ])
- expect(logic.values.activeTileGroupTab).toEqual('target')
- expect(router.values.searchParams.tab).toEqual('group-target')
- expect(loads(target)).toHaveLength(1)
- expect(loads(ungrouped)).toHaveLength(ungroupedLoads)
- })
+ expect(logic.values.tileGroupSections.map((section) => section.key)).toEqual([
+ 'tiles-ungrouped',
+ 'group-target',
+ ])
+ expect(logic.values.activeTileGroupTab).toEqual('target')
+ expect(router.values.searchParams.tab).toEqual('group-target')
+ expect(loads(target)).toHaveLength(1)
+ expect(loads(ungrouped)).toHaveLength(ungroupedLoads)
+ expect(
+ capture.mock.calls.filter(([event]) => event === 'dashboard tile group tab selected')
+ ).toHaveLength(tabSelections)
+ }
+ )
it.each([
{ leftTabTiles: 5, cancelled: true, returnBeforeAbortsSettle: false, stop: false },
diff --git a/frontend/src/scenes/dashboard/dashboardLogic.tsx b/frontend/src/scenes/dashboard/dashboardLogic.tsx
index 9af9c43a250c..2c652990b09e 100644
--- a/frontend/src/scenes/dashboard/dashboardLogic.tsx
+++ b/frontend/src/scenes/dashboard/dashboardLogic.tsx
@@ -54,6 +54,7 @@ import {
sanitizeDashboard,
filtersForAnalytics,
sanitizeQuery,
+ tileGroupProperties,
} from 'lib/utils/eventUsageLogic'
import { objectsEqual } from 'lib/utils/objects'
import { shouldCancelQuery } from 'lib/utils/requests'
@@ -200,6 +201,14 @@ function dashboardSettingsMatch(first: DashboardSettings, second: DashboardSetti
return dashboardFiltersEqual(first.filters, second.filters) && equal(first.variables, second.variables)
}
+function tileGroupLoadProperties(
+ groupDisplay: TileGroupDisplay,
+ tiles: DashboardTile[],
+ collapsedTileGroupKeys: string[]
+): Record<string, any> {
+ return { ...tileGroupProperties(groupDisplay, tiles), collapsed_group_count: collapsedTileGroupKeys.length }
+}
+
function reportDashboardTileRefreshed(
dashboardId: number,
tile: DashboardTile,
@@ -4691,6 +4700,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
action,
primary_interaction_id: dashboardQueryId,
time_to_see_data_ms: Math.floor(performance.now() - startTime),
+ ...tileGroupLoadProperties(values.tileGroupDisplay, values.tiles, values.collapsedTileGroupKeys),
})
if (cache.onlineRecoveryPending || (cache.connectionRecoveryPending && !values.internetConnectionIssue)) {
cache.onlineRecoveryPending = false
@@ -5319,6 +5329,11 @@ export const dashboardLogic = kea<dashboardLogicType>([
const dashboardId: number = props.id
const { collapsedTileIds } = values
+ const tileGroupProps = tileGroupLoadProperties(
+ values.tileGroupDisplay,
+ values.tiles,
+ values.collapsedTileGroupKeys
+ )
const allInsightTiles = values.insightTiles || []
const totalTileCount = allInsightTiles.length
if (filterChange) {
@@ -5457,6 +5472,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
api_response_bytes: responseBytes,
insights_fetched: sortedTilesToRefresh.length,
insights_fetched_cached: tilesRefreshedCachedCount,
+ ...tileGroupProps,
...getJSHeapMemory(),
})
}
@@ -5484,6 +5500,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
tiles_refreshed_count: tilesRefreshedCount,
tiles_errored_count: tilesErroredCount,
tiles_aborted_count: tilesAbortedCount,
+ ...tileGroupProps,
...(filterChangeIsCurrent
? {
filter_change_id: filterChange.id,
@@ -5540,6 +5557,10 @@ export const dashboardLogic = kea<dashboardLogicType>([
if (!section) {
return
}
+ posthog.capture('dashboard tile group tab selected', {
+ dashboard_id: props.id,
+ tile_count: section.tiles.length,
+ })
// This listener runs before the URL changes, so the active tab is still the one the viewer leaves.
const leftTab = values.activeTileGroupTab
const leftTiles =
diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
index bbb2c8f91411..415eaaadd35a 100644
--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
@@ -117,6 +117,52 @@
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.100
+ '''
+ 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_adding_insights_is_not_nplus1_for_gets.101
'''
SELECT 1 AS "a"
FROM "posthog_sharingconfiguration"
@@ -128,7 +174,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.101
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.102
'''
SELECT 1 AS "a"
FROM "posthog_subscription"
@@ -145,7 +191,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.102
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.103
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -243,7 +289,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.103
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.104
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -268,7 +314,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.104
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.105
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -286,7 +332,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.105
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.106
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -315,7 +361,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.106
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.107
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -344,7 +390,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.107
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.108
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -364,7 +410,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.108
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.109
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -377,7 +423,19 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.109
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.110
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -393,19 +451,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.110
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.111
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -422,7 +468,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.111
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.112
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -431,7 +477,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.112
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.113
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -477,7 +523,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.113
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.114
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -523,7 +569,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.114
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.115
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -661,7 +707,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.115
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.116
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -716,7 +762,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.116
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.117
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -739,7 +785,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.117
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.118
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -792,7 +838,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.118
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.119
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -804,7 +850,26 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.119
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.120
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -826,26 +891,7 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.120
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.121
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -947,7 +993,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.121
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.122
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -970,7 +1016,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.122
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.123
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -991,7 +1037,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.123
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.124
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -1089,7 +1135,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.124
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.125
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -1114,7 +1160,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.125
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.126
'''
SELECT "posthog_filesystemshortcut"."id",
"posthog_filesystemshortcut"."team_id",
@@ -1137,7 +1183,7 @@
AND "posthog_filesystemshortcut"."href" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.126
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.127
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -1157,7 +1203,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.127
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.128
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -1514,7 +1560,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.128
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.129
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -1532,7 +1578,15 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.129
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_taggeditem"
+ WHERE ("posthog_taggeditem"."content_type_id" = 99999
+ AND "posthog_taggeditem"."object_id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.130
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -1553,15 +1607,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13
- '''
- SELECT COUNT(*) AS "__count"
- FROM "posthog_taggeditem"
- WHERE ("posthog_taggeditem"."content_type_id" = 99999
- AND "posthog_taggeditem"."object_id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.130
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.131
'''
SELECT "posthog_alertconfiguration"."created_by_id",
"posthog_alertconfiguration"."created_at",
@@ -1646,7 +1692,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.131
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.132
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -1659,7 +1705,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.132
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.133
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -1675,7 +1721,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.133
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.134
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -1692,7 +1738,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.134
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.135
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -1738,7 +1784,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.135
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.136
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -1784,7 +1830,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.136
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.137
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -1922,85 +1968,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.137
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.138
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.139
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -2050,26 +2018,102 @@
"posthog_organization"."is_platform"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.139
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.140
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.141
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -2081,7 +2125,7 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.141
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.142
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -2103,7 +2147,7 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.142
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.143
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -2123,7 +2167,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.143
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.144
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -2136,7 +2180,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.144
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.145
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -2149,7 +2193,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.145
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.146
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -2181,7 +2225,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.146
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.147
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -2279,7 +2323,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.147
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.148
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -2325,7 +2369,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.148
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.149
'''
SELECT 1 AS "a"
FROM "posthog_sharingconfiguration"
@@ -2337,23 +2381,6 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.149
- '''
- SELECT 1 AS "a"
- FROM "posthog_subscription"
- WHERE (NOT "posthog_subscription"."deleted"
- AND "posthog_subscription"."enabled"
- AND "posthog_subscription"."dashboard_id" = 99999
- AND NOT (EXISTS
- (SELECT 1 AS "a"
- FROM "posthog_subscription_dashboard_export_insights" U1
- INNER JOIN "posthog_dashboarditem" U2 ON (U1."insight_id" = U2."id")
- WHERE (NOT U2."deleted"
- AND U1."subscription_id" = ("posthog_subscription"."id"))
- LIMIT 1)))
- LIMIT 1
- '''
-# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15
'''
SELECT "posthog_filesystem"."id" AS "id",
@@ -2371,6 +2398,23 @@
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.150
+ '''
+ SELECT 1 AS "a"
+ FROM "posthog_subscription"
+ WHERE (NOT "posthog_subscription"."deleted"
+ AND "posthog_subscription"."enabled"
+ AND "posthog_subscription"."dashboard_id" = 99999
+ AND NOT (EXISTS
+ (SELECT 1 AS "a"
+ FROM "posthog_subscription_dashboard_export_insights" U1
+ INNER JOIN "posthog_dashboarditem" U2 ON (U1."insight_id" = U2."id")
+ WHERE (NOT U2."deleted"
+ AND U1."subscription_id" = ("posthog_subscription"."id"))
+ LIMIT 1)))
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.151
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -2468,7 +2512,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.151
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.152
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -2493,7 +2537,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.152
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.153
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -2511,7 +2555,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.153
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.154
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -2540,7 +2584,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.154
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.155
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -2569,7 +2613,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.155
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.156
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -2589,7 +2633,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.156
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.157
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -2602,7 +2646,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.157
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.158
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -2618,7 +2662,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.158
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.159
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -2635,15 +2679,6 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.159
- '''
- 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_adding_insights_is_not_nplus1_for_gets.16
'''
SELECT "posthog_filesystem"."id" AS "id",
@@ -2661,6 +2696,15 @@
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.160
+ '''
+ 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_adding_insights_is_not_nplus1_for_gets.161
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -2706,7 +2750,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.161
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.162
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -2752,7 +2796,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.162
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.163
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -2890,85 +2934,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.163
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.164
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.165
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -3018,10 +2984,88 @@
"posthog_organization"."is_platform"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.165
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.166
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.167
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -3033,7 +3077,7 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.167
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.168
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -3055,7 +3099,7 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.168
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.169
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -3157,7 +3201,23 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.169
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.170
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -3180,26 +3240,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17
- '''
- 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_adding_insights_is_not_nplus1_for_gets.170
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.171
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -3220,7 +3261,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.171
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.172
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -3318,7 +3359,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.172
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.173
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -3343,7 +3384,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.173
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.174
'''
SELECT "posthog_filesystemshortcut"."id",
"posthog_filesystemshortcut"."team_id",
@@ -3366,7 +3407,7 @@
AND "posthog_filesystemshortcut"."href" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.174
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.175
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -3386,7 +3427,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.175
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.176
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -3743,7 +3784,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.176
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.177
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -3761,7 +3802,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.177
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.178
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -3782,7 +3823,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.178
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.179
'''
SELECT "posthog_alertconfiguration"."created_by_id",
"posthog_alertconfiguration"."created_at",
@@ -3867,7 +3908,26 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.179
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.180
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -3880,27 +3940,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18
- '''
- 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_adding_insights_is_not_nplus1_for_gets.180
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.181
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -3916,7 +3956,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.181
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.182
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -3934,6 +3974,164 @@
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19
+ '''
+ 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_adding_insights_is_not_nplus1_for_gets.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"."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_adding_insights_is_not_nplus1_for_gets.20
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -4290,145 +4488,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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"."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_adding_insights_is_not_nplus1_for_gets.20
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -4437,7 +4497,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -4483,7 +4543,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -4529,7 +4589,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -4667,7 +4727,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -4722,7 +4782,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -4745,7 +4805,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -4798,7 +4858,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -4810,7 +4870,7 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -4832,7 +4892,62 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -4934,62 +5049,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -5012,7 +5072,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.32
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -5033,7 +5093,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.32
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.33
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -5131,7 +5191,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.33
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.34
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -5156,7 +5216,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.34
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.35
'''
SELECT "posthog_filesystemshortcut"."id",
"posthog_filesystemshortcut"."team_id",
@@ -5179,7 +5239,7 @@
AND "posthog_filesystemshortcut"."href" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.35
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.36
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -5199,7 +5259,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.36
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.37
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -5556,7 +5616,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.37
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.38
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -5602,7 +5662,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.38
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.39
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -5648,7 +5708,30 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.39
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.40
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -5786,30 +5869,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.40
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.41
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -5864,7 +5924,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.41
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.42
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -5887,7 +5947,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.42
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.43
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -5940,7 +6000,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.43
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.44
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -5952,7 +6012,7 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.44
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.45
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -5974,7 +6034,7 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.45
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.46
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -5994,7 +6054,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.46
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.47
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -6007,7 +6067,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.47
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.48
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -6020,7 +6080,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.48
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.49
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -6052,7 +6112,60 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.49
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.50
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -6150,60 +6263,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.50
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.51
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -6249,7 +6309,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.51
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.52
'''
SELECT 1 AS "a"
FROM "posthog_sharingconfiguration"
@@ -6261,7 +6321,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.52
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.53
'''
SELECT 1 AS "a"
FROM "posthog_subscription"
@@ -6278,7 +6338,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.53
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.54
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -6376,7 +6436,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.54
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.55
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -6401,7 +6461,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.55
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.56
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -6419,7 +6479,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.56
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.57
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -6448,7 +6508,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.57
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.58
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -6477,7 +6537,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.58
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.59
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -6497,19 +6557,6 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.59
- '''
- 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_adding_insights_is_not_nplus1_for_gets.6
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
@@ -6523,6 +6570,19 @@
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.60
+ '''
+ 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_adding_insights_is_not_nplus1_for_gets.61
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -6538,7 +6598,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.61
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.62
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -6555,7 +6615,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.62
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.63
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."account_group_type_index" AS "account_group_type_index"
FROM "customer_analytics_teamcustomeranalyticsconfig"
@@ -6564,7 +6624,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.63
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.64
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -6573,7 +6633,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.64
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.65
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -6619,7 +6679,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.65
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.66
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -6665,7 +6725,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.66
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.67
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -6803,7 +6863,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.67
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.68
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -6858,7 +6918,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.68
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.69
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -6881,7 +6941,29 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.69
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE ("ee_accesscontrol"."resource" = 'project'
+ AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid)
+ AND ("posthog_organizationmembership"."user_id" = 99999
+ OR ("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL)))
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.70
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -6934,29 +7016,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE ("ee_accesscontrol"."resource" = 'project'
- AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid)
- AND ("posthog_organizationmembership"."user_id" = 99999
- OR ("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL)))
- '''
-# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.70
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.71
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -6968,7 +7028,7 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.71
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.72
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -6990,7 +7050,7 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.72
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.73
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -7092,7 +7152,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.73
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.74
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -7115,7 +7175,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.74
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.75
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -7136,7 +7196,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.75
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.76
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -7234,7 +7294,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.76
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.77
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -7259,7 +7319,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.77
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.78
'''
SELECT "posthog_filesystemshortcut"."id",
"posthog_filesystemshortcut"."team_id",
@@ -7282,7 +7342,7 @@
AND "posthog_filesystemshortcut"."href" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.78
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.79
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -7302,7 +7362,23 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.79
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.80
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -7659,23 +7735,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_adding_insights_is_not_nplus1_for_gets.80
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.81
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -7693,7 +7753,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.81
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.82
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -7714,7 +7774,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.82
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.83
'''
SELECT "posthog_alertconfiguration"."created_by_id",
"posthog_alertconfiguration"."created_at",
@@ -7799,7 +7859,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.83
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.84
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -7812,7 +7872,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.84
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.85
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -7828,7 +7888,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.85
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.86
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -7845,7 +7905,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.86
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.87
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -7891,7 +7951,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.87
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.88
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -7937,7 +7997,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.88
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.89
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -8075,61 +8135,6 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.89
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9
'''
SELECT "posthog_team"."id",
@@ -8229,6 +8234,61 @@
'''
# ---
# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.90
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.91
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -8251,7 +8311,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.91
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.92
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -8304,7 +8364,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.92
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.93
'''
SELECT "ee_role"."organization_id" AS "role__organization_id",
"ee_rolemembership"."role_id" AS "role_id"
@@ -8316,7 +8376,7 @@
OR "posthog_organizationmembership"."organization_id" = ("ee_role"."organization_id")))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.93
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.94
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -8338,7 +8398,7 @@
AND "ee_accesscontrol"."role_id" IS NULL)))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.94
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.95
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -8358,7 +8418,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.95
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.96
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -8371,7 +8431,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.96
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.97
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -8384,7 +8444,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.97
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.98
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -8416,7 +8476,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.98
+# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.99
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -8514,52 +8574,6 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.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_listing_dashboards_is_not_nplus1
'''
SELECT "posthog_user"."id",
@@ -8641,6 +8655,15 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.100
+ '''
+ SELECT "customer_analytics_teamcustomeranalyticsconfig"."account_group_type_index" AS "account_group_type_index"
+ FROM "customer_analytics_teamcustomeranalyticsconfig"
+ WHERE "customer_analytics_teamcustomeranalyticsconfig"."team_id" = 99999
+ ORDER BY "customer_analytics_teamcustomeranalyticsconfig"."team_id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.101
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -8649,7 +8672,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.101
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.102
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -8695,7 +8718,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.102
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.103
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -8741,7 +8764,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.103
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.104
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -8879,7 +8902,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.104
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.105
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -8934,7 +8957,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.105
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.106
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -8957,7 +8980,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.106
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.107
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -9010,7 +9033,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.107
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.108
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -9030,7 +9053,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.108
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.109
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -9043,19 +9066,6 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.109
- '''
- SELECT COUNT(*) AS "__count"
- FROM "posthog_dashboardtile"
- INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
- WHERE (NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL)
- AND NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboardtile"."dashboard_id" = 99999
- AND NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL))
- '''
-# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.11
'''
SELECT "posthog_identityproviderconfig"."id",
@@ -9083,6 +9093,19 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.110
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ WHERE (NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL)
+ AND NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboardtile"."dashboard_id" = 99999
+ AND NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.111
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -9114,7 +9137,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.111
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.112
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9212,7 +9235,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.112
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.113
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -9258,7 +9281,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.113
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.114
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9356,7 +9379,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.114
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.115
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -9381,7 +9404,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.115
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.116
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -9399,7 +9422,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.116
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.117
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -9445,7 +9468,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.117
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.118
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9543,7 +9566,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.118
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.119
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -9572,7 +9595,30 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.119
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.12
+ '''
+ SELECT "posthog_organizationdomain"."id",
+ "posthog_organizationdomain"."organization_id",
+ "posthog_organizationdomain"."domain",
+ "posthog_organizationdomain"."verification_challenge",
+ "posthog_organizationdomain"."verified_at",
+ "posthog_organizationdomain"."last_verification_retry",
+ "posthog_organizationdomain"."jit_provisioning_enabled",
+ "posthog_organizationdomain"."sso_enforcement",
+ "posthog_organizationdomain"."saml_entity_id",
+ "posthog_organizationdomain"."saml_acs_url",
+ "posthog_organizationdomain"."saml_x509_cert",
+ "posthog_organizationdomain"."scim_enabled",
+ "posthog_organizationdomain"."scim_bearer_token",
+ "posthog_organizationdomain"."id_jag_issuer_url",
+ "posthog_organizationdomain"."id_jag_jwks_url",
+ "posthog_organizationdomain"."id_jag_allowed_clients",
+ "posthog_organizationdomain"."identity_provider_config_id"
+ FROM "posthog_organizationdomain"
+ WHERE "posthog_organizationdomain"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.120
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -9601,30 +9647,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.12
- '''
- SELECT "posthog_organizationdomain"."id",
- "posthog_organizationdomain"."organization_id",
- "posthog_organizationdomain"."domain",
- "posthog_organizationdomain"."verification_challenge",
- "posthog_organizationdomain"."verified_at",
- "posthog_organizationdomain"."last_verification_retry",
- "posthog_organizationdomain"."jit_provisioning_enabled",
- "posthog_organizationdomain"."sso_enforcement",
- "posthog_organizationdomain"."saml_entity_id",
- "posthog_organizationdomain"."saml_acs_url",
- "posthog_organizationdomain"."saml_x509_cert",
- "posthog_organizationdomain"."scim_enabled",
- "posthog_organizationdomain"."scim_bearer_token",
- "posthog_organizationdomain"."id_jag_issuer_url",
- "posthog_organizationdomain"."id_jag_jwks_url",
- "posthog_organizationdomain"."id_jag_allowed_clients",
- "posthog_organizationdomain"."identity_provider_config_id"
- FROM "posthog_organizationdomain"
- WHERE "posthog_organizationdomain"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.120
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.121
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -9644,7 +9667,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.121
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.122
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -9657,7 +9680,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.122
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.123
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -9673,7 +9696,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.123
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.124
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -9690,7 +9713,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.124
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.125
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -9699,7 +9722,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.125
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.126
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -9745,7 +9768,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.126
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.127
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -9791,7 +9814,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.127
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.128
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -9929,7 +9952,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.128
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.129
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -9984,29 +10007,6 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.129
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.13
'''
SELECT "posthog_organizationdomain"."id",
@@ -10031,6 +10031,29 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.130
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.131
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -10083,7 +10106,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.131
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.132
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -10103,7 +10126,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.132
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.133
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -10116,7 +10139,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.133
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.134
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -10129,7 +10152,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.134
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.135
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -10161,7 +10184,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.135
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.136
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10259,7 +10282,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.136
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.137
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -10305,7 +10328,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.137
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.138
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10403,7 +10426,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.138
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.139
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -10428,24 +10451,6 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.139
- '''
- SELECT "posthog_insightviewed"."id",
- "posthog_insightviewed"."team_id",
- "posthog_insightviewed"."user_id",
- "posthog_insightviewed"."insight_id",
- "posthog_insightviewed"."last_viewed_at",
- "posthog_insightviewed"."source",
- "posthog_insightviewed"."dashboard_id"
- FROM "posthog_insightviewed"
- WHERE ("posthog_insightviewed"."insight_id" = 99999
- AND "posthog_insightviewed"."team_id" = 99999
- AND "posthog_insightviewed"."user_id" = 99999)
- LIMIT 21
- FOR
- UPDATE
- '''
-# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.14
'''
SELECT "posthog_roleexternalreference"."id",
@@ -10464,6 +10469,24 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.140
+ '''
+ SELECT "posthog_insightviewed"."id",
+ "posthog_insightviewed"."team_id",
+ "posthog_insightviewed"."user_id",
+ "posthog_insightviewed"."insight_id",
+ "posthog_insightviewed"."last_viewed_at",
+ "posthog_insightviewed"."source",
+ "posthog_insightviewed"."dashboard_id"
+ FROM "posthog_insightviewed"
+ WHERE ("posthog_insightviewed"."insight_id" = 99999
+ AND "posthog_insightviewed"."team_id" = 99999
+ AND "posthog_insightviewed"."user_id" = 99999)
+ LIMIT 21
+ FOR
+ UPDATE
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.141
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -10509,7 +10532,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.141
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.142
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10607,35 +10630,6 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.142
- '''
- SELECT "posthog_dashboardtile"."id",
- "posthog_dashboardtile"."dashboard_id",
- "posthog_dashboardtile"."insight_id",
- "posthog_dashboardtile"."text_id",
- "posthog_dashboardtile"."button_tile_id",
- "posthog_dashboardtile"."widget_id",
- "posthog_dashboardtile"."team_id",
- "posthog_dashboardtile"."layouts",
- "posthog_dashboardtile"."color",
- "posthog_dashboardtile"."filters_hash",
- "posthog_dashboardtile"."last_refresh",
- "posthog_dashboardtile"."refreshing",
- "posthog_dashboardtile"."refresh_attempt",
- "posthog_dashboardtile"."filters_overrides",
- "posthog_dashboardtile"."show_description",
- "posthog_dashboardtile"."transparent_background",
- "posthog_dashboardtile"."group_key",
- "posthog_dashboardtile"."badge",
- "posthog_dashboardtile"."deleted"
- FROM "posthog_dashboardtile"
- INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
- WHERE (NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL)
- AND NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboardtile"."insight_id" = 99999)
- '''
-# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.143
'''
SELECT "posthog_dashboardtile"."id",
@@ -10666,6 +10660,35 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.144
+ '''
+ SELECT "posthog_dashboardtile"."id",
+ "posthog_dashboardtile"."dashboard_id",
+ "posthog_dashboardtile"."insight_id",
+ "posthog_dashboardtile"."text_id",
+ "posthog_dashboardtile"."button_tile_id",
+ "posthog_dashboardtile"."widget_id",
+ "posthog_dashboardtile"."team_id",
+ "posthog_dashboardtile"."layouts",
+ "posthog_dashboardtile"."color",
+ "posthog_dashboardtile"."filters_hash",
+ "posthog_dashboardtile"."last_refresh",
+ "posthog_dashboardtile"."refreshing",
+ "posthog_dashboardtile"."refresh_attempt",
+ "posthog_dashboardtile"."filters_overrides",
+ "posthog_dashboardtile"."show_description",
+ "posthog_dashboardtile"."transparent_background",
+ "posthog_dashboardtile"."group_key",
+ "posthog_dashboardtile"."badge",
+ "posthog_dashboardtile"."deleted"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ WHERE (NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL)
+ AND NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboardtile"."insight_id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.145
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -10685,7 +10708,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.145
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.146
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -10698,7 +10721,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.146
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.147
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -10714,7 +10737,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.147
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.148
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -10731,7 +10754,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.148
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.149
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -10740,7 +10763,24 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.149
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.15
+ '''
+ SELECT "posthog_roleexternalreference"."id",
+ "posthog_roleexternalreference"."organization_id",
+ "posthog_roleexternalreference"."role_id",
+ "posthog_roleexternalreference"."provider",
+ "posthog_roleexternalreference"."provider_organization_id",
+ "posthog_roleexternalreference"."provider_role_id",
+ "posthog_roleexternalreference"."provider_role_slug",
+ "posthog_roleexternalreference"."provider_role_name",
+ "posthog_roleexternalreference"."created_at",
+ "posthog_roleexternalreference"."updated_at",
+ "posthog_roleexternalreference"."created_by_id"
+ FROM "posthog_roleexternalreference"
+ WHERE "posthog_roleexternalreference"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.150
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -10786,24 +10826,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.15
- '''
- SELECT "posthog_roleexternalreference"."id",
- "posthog_roleexternalreference"."organization_id",
- "posthog_roleexternalreference"."role_id",
- "posthog_roleexternalreference"."provider",
- "posthog_roleexternalreference"."provider_organization_id",
- "posthog_roleexternalreference"."provider_role_id",
- "posthog_roleexternalreference"."provider_role_slug",
- "posthog_roleexternalreference"."provider_role_name",
- "posthog_roleexternalreference"."created_at",
- "posthog_roleexternalreference"."updated_at",
- "posthog_roleexternalreference"."created_by_id"
- FROM "posthog_roleexternalreference"
- WHERE "posthog_roleexternalreference"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.150
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.151
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -10849,7 +10872,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.151
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.152
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -10987,7 +11010,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.152
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.153
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11042,7 +11065,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.153
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.154
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -11065,7 +11088,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.154
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.155
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11118,7 +11141,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.155
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.156
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -11132,7 +11155,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.156
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.157
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -11237,7 +11260,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.157
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.158
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -11260,7 +11283,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.158
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.159
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -11281,7 +11304,18 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.159
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.16
+ '''
+ SELECT "posthog_organizationprovisioning"."organization_id",
+ "posthog_organizationprovisioning"."partner",
+ "posthog_organizationprovisioning"."application_id",
+ "posthog_organizationprovisioning"."created_at"
+ FROM "posthog_organizationprovisioning"
+ WHERE "posthog_organizationprovisioning"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.160
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -11327,18 +11361,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.16
- '''
- SELECT "posthog_organizationprovisioning"."organization_id",
- "posthog_organizationprovisioning"."partner",
- "posthog_organizationprovisioning"."application_id",
- "posthog_organizationprovisioning"."created_at"
- FROM "posthog_organizationprovisioning"
- WHERE "posthog_organizationprovisioning"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.160
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.161
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -11384,7 +11407,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.161
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.162
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -11522,7 +11545,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.162
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.163
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11577,7 +11600,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.163
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.164
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -11600,7 +11623,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.164
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.165
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -11653,7 +11676,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.165
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.166
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -11669,7 +11692,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.166
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.167
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -11767,7 +11790,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.167
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.168
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -11792,7 +11815,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.168
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.169
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -11804,7 +11827,23 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.169
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.17
+ '''
+ SELECT "posthog_proxyrecord"."id",
+ "posthog_proxyrecord"."organization_id",
+ "posthog_proxyrecord"."domain",
+ "posthog_proxyrecord"."target_cname",
+ "posthog_proxyrecord"."root_redirect_url",
+ "posthog_proxyrecord"."message",
+ "posthog_proxyrecord"."status",
+ "posthog_proxyrecord"."created_by_id",
+ "posthog_proxyrecord"."created_at",
+ "posthog_proxyrecord"."updated_at"
+ FROM "posthog_proxyrecord"
+ WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.170
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -11823,23 +11862,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.17
- '''
- SELECT "posthog_proxyrecord"."id",
- "posthog_proxyrecord"."organization_id",
- "posthog_proxyrecord"."domain",
- "posthog_proxyrecord"."target_cname",
- "posthog_proxyrecord"."root_redirect_url",
- "posthog_proxyrecord"."message",
- "posthog_proxyrecord"."status",
- "posthog_proxyrecord"."created_by_id",
- "posthog_proxyrecord"."created_at",
- "posthog_proxyrecord"."updated_at"
- FROM "posthog_proxyrecord"
- WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.170
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.171
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -11847,7 +11870,21 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.171
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.172
+ '''
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.173
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -11863,7 +11900,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.172
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.174
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -11879,7 +11916,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.173
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.175
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -11895,7 +11932,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.174
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.176
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -11914,7 +11951,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.175
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.177
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -11934,7 +11971,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.176
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.178
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -12291,7 +12328,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.177
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.179
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -12300,7 +12337,23 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.178
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.18
+ '''
+ SELECT "posthog_proxyrecord"."id",
+ "posthog_proxyrecord"."organization_id",
+ "posthog_proxyrecord"."domain",
+ "posthog_proxyrecord"."target_cname",
+ "posthog_proxyrecord"."root_redirect_url",
+ "posthog_proxyrecord"."message",
+ "posthog_proxyrecord"."status",
+ "posthog_proxyrecord"."created_by_id",
+ "posthog_proxyrecord"."created_at",
+ "posthog_proxyrecord"."updated_at"
+ FROM "posthog_proxyrecord"
+ WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.180
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -12346,7 +12399,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.179
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.181
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -12392,23 +12445,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.18
- '''
- SELECT "posthog_proxyrecord"."id",
- "posthog_proxyrecord"."organization_id",
- "posthog_proxyrecord"."domain",
- "posthog_proxyrecord"."target_cname",
- "posthog_proxyrecord"."root_redirect_url",
- "posthog_proxyrecord"."message",
- "posthog_proxyrecord"."status",
- "posthog_proxyrecord"."created_by_id",
- "posthog_proxyrecord"."created_at",
- "posthog_proxyrecord"."updated_at"
- FROM "posthog_proxyrecord"
- WHERE "posthog_proxyrecord"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.180
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.182
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -12546,7 +12583,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.181
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.183
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -12601,7 +12638,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.182
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.184
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -12624,7 +12661,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.183
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.185
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -12677,7 +12714,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.184
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.186
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -12697,7 +12734,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.185
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.187
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -12710,7 +12747,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.186
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.188
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -12723,7 +12760,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.187
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.189
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -12755,7 +12792,33 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.188
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.19
+ '''
+ SELECT "posthog_duckgresserver"."created_by_id",
+ "posthog_duckgresserver"."created_at",
+ "posthog_duckgresserver"."updated_at",
+ "posthog_duckgresserver"."id",
+ "posthog_duckgresserver"."organization_id",
+ "posthog_duckgresserver"."host",
+ "posthog_duckgresserver"."port",
+ "posthog_duckgresserver"."flight_port",
+ "posthog_duckgresserver"."database",
+ "posthog_duckgresserver"."username",
+ "posthog_duckgresserver"."password",
+ "posthog_duckgresserver"."trino_password",
+ "posthog_duckgresserver"."catalog_host",
+ "posthog_duckgresserver"."catalog_port",
+ "posthog_duckgresserver"."catalog_database",
+ "posthog_duckgresserver"."catalog_username",
+ "posthog_duckgresserver"."catalog_password",
+ "posthog_duckgresserver"."bucket",
+ "posthog_duckgresserver"."bucket_region"
+ FROM "posthog_duckgresserver"
+ WHERE "posthog_duckgresserver"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.190
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -12853,7 +12916,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.189
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.191
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -12899,33 +12962,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.19
- '''
- SELECT "posthog_duckgresserver"."created_by_id",
- "posthog_duckgresserver"."created_at",
- "posthog_duckgresserver"."updated_at",
- "posthog_duckgresserver"."id",
- "posthog_duckgresserver"."organization_id",
- "posthog_duckgresserver"."host",
- "posthog_duckgresserver"."port",
- "posthog_duckgresserver"."flight_port",
- "posthog_duckgresserver"."database",
- "posthog_duckgresserver"."username",
- "posthog_duckgresserver"."password",
- "posthog_duckgresserver"."trino_password",
- "posthog_duckgresserver"."catalog_host",
- "posthog_duckgresserver"."catalog_port",
- "posthog_duckgresserver"."catalog_database",
- "posthog_duckgresserver"."catalog_username",
- "posthog_duckgresserver"."catalog_password",
- "posthog_duckgresserver"."bucket",
- "posthog_duckgresserver"."bucket_region"
- FROM "posthog_duckgresserver"
- WHERE "posthog_duckgresserver"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.190
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.192
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13023,7 +13060,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.191
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.193
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -13048,7 +13085,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.192
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.194
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -13066,7 +13103,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.193
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.195
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -13112,7 +13149,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.194
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.196
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13210,7 +13247,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.195
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.197
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -13239,7 +13276,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.196
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.198
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -13268,7 +13305,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.197
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.199
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -13288,35 +13325,6 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.198
- '''
- SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
- "posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
- "posthog_teamrevenueanalyticsconfig"."notified_first_sync",
- "posthog_teamrevenueanalyticsconfig"."events",
- "posthog_teamrevenueanalyticsconfig"."goals",
- "posthog_teamrevenueanalyticsconfig"."base_currency"
- FROM "posthog_teamrevenueanalyticsconfig"
- WHERE "posthog_teamrevenueanalyticsconfig"."team_id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.199
- '''
- SELECT "posthog_teammarketinganalyticsconfig"."team_id",
- "posthog_teammarketinganalyticsconfig"."attribution_window_days",
- "posthog_teammarketinganalyticsconfig"."attribution_mode",
- "posthog_teammarketinganalyticsconfig"."filter_test_accounts",
- "posthog_teammarketinganalyticsconfig"."sources_map",
- "posthog_teammarketinganalyticsconfig"."conversion_goals",
- "posthog_teammarketinganalyticsconfig"."campaign_name_mappings",
- "posthog_teammarketinganalyticsconfig"."custom_source_mappings",
- "posthog_teammarketinganalyticsconfig"."campaign_field_preferences"
- FROM "posthog_teammarketinganalyticsconfig"
- WHERE "posthog_teammarketinganalyticsconfig"."team_id" = 99999
- LIMIT 21
- '''
-# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.2
'''
SELECT "posthog_organization"."id",
@@ -13378,6 +13386,35 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.200
+ '''
+ SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
+ "posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
+ "posthog_teamrevenueanalyticsconfig"."notified_first_sync",
+ "posthog_teamrevenueanalyticsconfig"."events",
+ "posthog_teamrevenueanalyticsconfig"."goals",
+ "posthog_teamrevenueanalyticsconfig"."base_currency"
+ FROM "posthog_teamrevenueanalyticsconfig"
+ WHERE "posthog_teamrevenueanalyticsconfig"."team_id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.201
+ '''
+ SELECT "posthog_teammarketinganalyticsconfig"."team_id",
+ "posthog_teammarketinganalyticsconfig"."attribution_window_days",
+ "posthog_teammarketinganalyticsconfig"."attribution_mode",
+ "posthog_teammarketinganalyticsconfig"."filter_test_accounts",
+ "posthog_teammarketinganalyticsconfig"."sources_map",
+ "posthog_teammarketinganalyticsconfig"."conversion_goals",
+ "posthog_teammarketinganalyticsconfig"."campaign_name_mappings",
+ "posthog_teammarketinganalyticsconfig"."custom_source_mappings",
+ "posthog_teammarketinganalyticsconfig"."campaign_field_preferences"
+ FROM "posthog_teammarketinganalyticsconfig"
+ WHERE "posthog_teammarketinganalyticsconfig"."team_id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.202
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -13394,7 +13431,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.201
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.203
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -13403,7 +13440,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.202
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.204
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -13449,7 +13486,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.203
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.205
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -13495,7 +13532,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.204
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.206
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13633,7 +13670,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.205
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.207
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -13688,7 +13725,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.206
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.208
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -13711,7 +13748,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.207
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.209
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -13764,7 +13801,26 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.208
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.21
+ '''
+ SELECT "legal_documents_legaldocument"."created_by_id",
+ "legal_documents_legaldocument"."created_at",
+ "legal_documents_legaldocument"."updated_at",
+ "legal_documents_legaldocument"."id",
+ "legal_documents_legaldocument"."organization_id",
+ "legal_documents_legaldocument"."document_type",
+ "legal_documents_legaldocument"."company_name",
+ "legal_documents_legaldocument"."company_address",
+ "legal_documents_legaldocument"."representative_email",
+ "legal_documents_legaldocument"."status",
+ "legal_documents_legaldocument"."pandadoc_document_id",
+ "legal_documents_legaldocument"."signed_pdf_stored"
+ FROM "legal_documents_legaldocument"
+ WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "legal_documents_legaldocument"."created_at" DESC
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.210
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -13784,7 +13840,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.209
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.211
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -13797,26 +13853,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.21
- '''
- SELECT "legal_documents_legaldocument"."created_by_id",
- "legal_documents_legaldocument"."created_at",
- "legal_documents_legaldocument"."updated_at",
- "legal_documents_legaldocument"."id",
- "legal_documents_legaldocument"."organization_id",
- "legal_documents_legaldocument"."document_type",
- "legal_documents_legaldocument"."company_name",
- "legal_documents_legaldocument"."company_address",
- "legal_documents_legaldocument"."representative_email",
- "legal_documents_legaldocument"."status",
- "legal_documents_legaldocument"."pandadoc_document_id",
- "legal_documents_legaldocument"."signed_pdf_stored"
- FROM "legal_documents_legaldocument"
- WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "legal_documents_legaldocument"."created_at" DESC
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.210
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.212
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -13829,7 +13866,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.211
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.213
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -13861,7 +13898,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.212
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.214
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -13959,7 +13996,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.213
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.215
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -14005,7 +14042,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.214
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.216
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14103,7 +14140,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.215
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.217
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -14128,7 +14165,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.216
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.218
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -14146,7 +14183,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.217
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.219
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -14192,7 +14229,26 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.218
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.22
+ '''
+ SELECT "legal_documents_legaldocument"."created_by_id",
+ "legal_documents_legaldocument"."created_at",
+ "legal_documents_legaldocument"."updated_at",
+ "legal_documents_legaldocument"."id",
+ "legal_documents_legaldocument"."organization_id",
+ "legal_documents_legaldocument"."document_type",
+ "legal_documents_legaldocument"."company_name",
+ "legal_documents_legaldocument"."company_address",
+ "legal_documents_legaldocument"."representative_email",
+ "legal_documents_legaldocument"."status",
+ "legal_documents_legaldocument"."pandadoc_document_id",
+ "legal_documents_legaldocument"."signed_pdf_stored"
+ FROM "legal_documents_legaldocument"
+ WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "legal_documents_legaldocument"."created_at" DESC
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.220
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14290,7 +14346,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.219
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.221
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -14319,26 +14375,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.22
- '''
- SELECT "legal_documents_legaldocument"."created_by_id",
- "legal_documents_legaldocument"."created_at",
- "legal_documents_legaldocument"."updated_at",
- "legal_documents_legaldocument"."id",
- "legal_documents_legaldocument"."organization_id",
- "legal_documents_legaldocument"."document_type",
- "legal_documents_legaldocument"."company_name",
- "legal_documents_legaldocument"."company_address",
- "legal_documents_legaldocument"."representative_email",
- "legal_documents_legaldocument"."status",
- "legal_documents_legaldocument"."pandadoc_document_id",
- "legal_documents_legaldocument"."signed_pdf_stored"
- FROM "legal_documents_legaldocument"
- WHERE "legal_documents_legaldocument"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "legal_documents_legaldocument"."created_at" DESC
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.220
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.222
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -14367,7 +14404,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.221
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.223
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -14387,7 +14424,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.222
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.224
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -14400,7 +14437,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.223
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.225
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -14416,7 +14453,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.224
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.226
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -14433,7 +14470,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.225
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.227
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -14442,7 +14479,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.226
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.228
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -14488,7 +14525,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.227
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.229
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -14534,7 +14571,28 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.228
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.23
+ '''
+ SELECT "growth_productpushcampaign"."updated_at",
+ "growth_productpushcampaign"."id",
+ "growth_productpushcampaign"."organization_id",
+ "growth_productpushcampaign"."created_by_id",
+ "growth_productpushcampaign"."product_key",
+ "growth_productpushcampaign"."status",
+ "growth_productpushcampaign"."position",
+ "growth_productpushcampaign"."scheduled_for",
+ "growth_productpushcampaign"."started_at",
+ "growth_productpushcampaign"."ends_at",
+ "growth_productpushcampaign"."ended_at",
+ "growth_productpushcampaign"."source",
+ "growth_productpushcampaign"."reason_text",
+ "growth_productpushcampaign"."metadata",
+ "growth_productpushcampaign"."created_at"
+ FROM "growth_productpushcampaign"
+ WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.230
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -14672,7 +14730,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.229
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.231
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -14727,28 +14785,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.23
- '''
- SELECT "growth_productpushcampaign"."updated_at",
- "growth_productpushcampaign"."id",
- "growth_productpushcampaign"."organization_id",
- "growth_productpushcampaign"."created_by_id",
- "growth_productpushcampaign"."product_key",
- "growth_productpushcampaign"."status",
- "growth_productpushcampaign"."position",
- "growth_productpushcampaign"."scheduled_for",
- "growth_productpushcampaign"."started_at",
- "growth_productpushcampaign"."ends_at",
- "growth_productpushcampaign"."ended_at",
- "growth_productpushcampaign"."source",
- "growth_productpushcampaign"."reason_text",
- "growth_productpushcampaign"."metadata",
- "growth_productpushcampaign"."created_at"
- FROM "growth_productpushcampaign"
- WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.230
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.232
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -14771,7 +14808,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.231
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.233
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -14824,7 +14861,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.232
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.234
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -14844,7 +14881,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.233
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.235
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -14857,7 +14894,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.234
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.236
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -14870,7 +14907,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.235
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.237
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -14902,7 +14939,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.236
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.238
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15000,7 +15037,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.237
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.239
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -15046,7 +15083,28 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.238
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.24
+ '''
+ SELECT "growth_productpushcampaign"."updated_at",
+ "growth_productpushcampaign"."id",
+ "growth_productpushcampaign"."organization_id",
+ "growth_productpushcampaign"."created_by_id",
+ "growth_productpushcampaign"."product_key",
+ "growth_productpushcampaign"."status",
+ "growth_productpushcampaign"."position",
+ "growth_productpushcampaign"."scheduled_for",
+ "growth_productpushcampaign"."started_at",
+ "growth_productpushcampaign"."ends_at",
+ "growth_productpushcampaign"."ended_at",
+ "growth_productpushcampaign"."source",
+ "growth_productpushcampaign"."reason_text",
+ "growth_productpushcampaign"."metadata",
+ "growth_productpushcampaign"."created_at"
+ FROM "growth_productpushcampaign"
+ WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.240
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15144,7 +15202,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.239
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.241
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -15169,28 +15227,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.24
- '''
- SELECT "growth_productpushcampaign"."updated_at",
- "growth_productpushcampaign"."id",
- "growth_productpushcampaign"."organization_id",
- "growth_productpushcampaign"."created_by_id",
- "growth_productpushcampaign"."product_key",
- "growth_productpushcampaign"."status",
- "growth_productpushcampaign"."position",
- "growth_productpushcampaign"."scheduled_for",
- "growth_productpushcampaign"."started_at",
- "growth_productpushcampaign"."ends_at",
- "growth_productpushcampaign"."ended_at",
- "growth_productpushcampaign"."source",
- "growth_productpushcampaign"."reason_text",
- "growth_productpushcampaign"."metadata",
- "growth_productpushcampaign"."created_at"
- FROM "growth_productpushcampaign"
- WHERE "growth_productpushcampaign"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.240
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.242
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -15208,7 +15245,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.241
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.243
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -15254,7 +15291,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.242
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.244
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15352,7 +15389,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.243
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.245
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -15381,7 +15418,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.244
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.246
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -15410,7 +15447,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.245
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.247
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -15430,7 +15467,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.246
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.248
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -15443,7 +15480,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.247
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.249
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -15459,7 +15496,19 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.248
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.25
+ '''
+ SELECT "growth_organizationenrichment"."id",
+ "growth_organizationenrichment"."organization_id",
+ "growth_organizationenrichment"."data",
+ "growth_organizationenrichment"."created_at",
+ "growth_organizationenrichment"."updated_at"
+ FROM "growth_organizationenrichment"
+ WHERE "growth_organizationenrichment"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.250
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -15476,7 +15525,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.249
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.251
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -15485,19 +15534,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.25
- '''
- SELECT "growth_organizationenrichment"."id",
- "growth_organizationenrichment"."organization_id",
- "growth_organizationenrichment"."data",
- "growth_organizationenrichment"."created_at",
- "growth_organizationenrichment"."updated_at"
- FROM "growth_organizationenrichment"
- WHERE "growth_organizationenrichment"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.250
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.252
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -15543,7 +15580,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.251
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.253
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -15589,7 +15626,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.252
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.254
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -15727,7 +15764,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.253
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.255
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -15782,7 +15819,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.254
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.256
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -15805,7 +15842,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.255
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.257
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -15858,7 +15895,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.256
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.258
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -15872,7 +15909,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.257
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.259
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -15977,7 +16014,19 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.258
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.26
+ '''
+ SELECT "growth_organizationenrichmentfetch"."id",
+ "growth_organizationenrichmentfetch"."organization_id",
+ "growth_organizationenrichmentfetch"."provider",
+ "growth_organizationenrichmentfetch"."fetched_at",
+ "growth_organizationenrichmentfetch"."is_recheck",
+ "growth_organizationenrichmentfetch"."payload"
+ FROM "growth_organizationenrichmentfetch"
+ WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.260
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -16000,7 +16049,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.259
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.261
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -16021,19 +16070,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.26
- '''
- SELECT "growth_organizationenrichmentfetch"."id",
- "growth_organizationenrichmentfetch"."organization_id",
- "growth_organizationenrichmentfetch"."provider",
- "growth_organizationenrichmentfetch"."fetched_at",
- "growth_organizationenrichmentfetch"."is_recheck",
- "growth_organizationenrichmentfetch"."payload"
- FROM "growth_organizationenrichmentfetch"
- WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.260
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.262
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -16079,7 +16116,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.261
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.263
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -16125,7 +16162,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.262
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.264
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -16263,7 +16300,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.263
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.265
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -16318,7 +16355,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.264
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.266
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -16341,7 +16378,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.265
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.267
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -16394,7 +16431,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.266
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.268
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -16410,7 +16447,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.267
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.269
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -16508,7 +16545,19 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.268
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.27
+ '''
+ SELECT "growth_organizationenrichmentfetch"."id",
+ "growth_organizationenrichmentfetch"."organization_id",
+ "growth_organizationenrichmentfetch"."provider",
+ "growth_organizationenrichmentfetch"."fetched_at",
+ "growth_organizationenrichmentfetch"."is_recheck",
+ "growth_organizationenrichmentfetch"."payload"
+ FROM "growth_organizationenrichmentfetch"
+ WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.270
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -16533,7 +16582,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.269
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.271
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -16545,19 +16594,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.27
- '''
- SELECT "growth_organizationenrichmentfetch"."id",
- "growth_organizationenrichmentfetch"."organization_id",
- "growth_organizationenrichmentfetch"."provider",
- "growth_organizationenrichmentfetch"."fetched_at",
- "growth_organizationenrichmentfetch"."is_recheck",
- "growth_organizationenrichmentfetch"."payload"
- FROM "growth_organizationenrichmentfetch"
- WHERE "growth_organizationenrichmentfetch"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.270
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.272
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -16576,7 +16613,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.271
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.273
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -16584,7 +16621,21 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.272
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.274
+ '''
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.275
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -16600,7 +16651,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.273
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.276
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -16616,7 +16667,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.274
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.277
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -16632,7 +16683,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.275
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.278
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -16651,7 +16702,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.276
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.279
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -16671,7 +16722,23 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.277
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.28
+ '''
+ SELECT "growth_enrichmentlabelresult"."id",
+ "growth_enrichmentlabelresult"."organization_id",
+ "growth_enrichmentlabelresult"."fetch_id",
+ "growth_enrichmentlabelresult"."label_name",
+ "growth_enrichmentlabelresult"."prompt_version",
+ "growth_enrichmentlabelresult"."prompt_hash",
+ "growth_enrichmentlabelresult"."model",
+ "growth_enrichmentlabelresult"."output",
+ "growth_enrichmentlabelresult"."inputs",
+ "growth_enrichmentlabelresult"."created_at"
+ FROM "growth_enrichmentlabelresult"
+ WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.280
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -17028,7 +17095,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.278
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.281
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -17037,7 +17104,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.279
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.282
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -17083,23 +17150,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.28
- '''
- SELECT "growth_enrichmentlabelresult"."id",
- "growth_enrichmentlabelresult"."organization_id",
- "growth_enrichmentlabelresult"."fetch_id",
- "growth_enrichmentlabelresult"."label_name",
- "growth_enrichmentlabelresult"."prompt_version",
- "growth_enrichmentlabelresult"."prompt_hash",
- "growth_enrichmentlabelresult"."model",
- "growth_enrichmentlabelresult"."output",
- "growth_enrichmentlabelresult"."inputs",
- "growth_enrichmentlabelresult"."created_at"
- FROM "growth_enrichmentlabelresult"
- WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.280
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.283
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -17145,7 +17196,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.281
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.284
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17283,7 +17334,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.282
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.285
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -17338,7 +17389,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.283
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.286
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -17361,7 +17412,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.284
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.287
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -17414,7 +17465,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.285
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.288
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -17434,7 +17485,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.286
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.289
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -17447,7 +17498,23 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.287
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.29
+ '''
+ SELECT "growth_enrichmentlabelresult"."id",
+ "growth_enrichmentlabelresult"."organization_id",
+ "growth_enrichmentlabelresult"."fetch_id",
+ "growth_enrichmentlabelresult"."label_name",
+ "growth_enrichmentlabelresult"."prompt_version",
+ "growth_enrichmentlabelresult"."prompt_hash",
+ "growth_enrichmentlabelresult"."model",
+ "growth_enrichmentlabelresult"."output",
+ "growth_enrichmentlabelresult"."inputs",
+ "growth_enrichmentlabelresult"."created_at"
+ FROM "growth_enrichmentlabelresult"
+ WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.290
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -17460,7 +17527,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.288
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.291
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -17492,7 +17559,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.289
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.292
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17590,23 +17657,194 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.29
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.293
'''
- SELECT "growth_enrichmentlabelresult"."id",
- "growth_enrichmentlabelresult"."organization_id",
- "growth_enrichmentlabelresult"."fetch_id",
- "growth_enrichmentlabelresult"."label_name",
- "growth_enrichmentlabelresult"."prompt_version",
- "growth_enrichmentlabelresult"."prompt_hash",
- "growth_enrichmentlabelresult"."model",
- "growth_enrichmentlabelresult"."output",
- "growth_enrichmentlabelresult"."inputs",
- "growth_enrichmentlabelresult"."created_at"
- FROM "growth_enrichmentlabelresult"
- WHERE "growth_enrichmentlabelresult"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ SELECT "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.290
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.294
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.295
+ '''
+ SELECT "posthog_filesystem"."team_id",
+ "posthog_filesystem"."id",
+ "posthog_filesystem"."path",
+ "posthog_filesystem"."depth",
+ "posthog_filesystem"."type",
+ "posthog_filesystem"."ref",
+ "posthog_filesystem"."href",
+ "posthog_filesystem"."shortcut",
+ "posthog_filesystem"."meta",
+ "posthog_filesystem"."created_at",
+ "posthog_filesystem"."created_by_id",
+ "posthog_filesystem"."surface",
+ "posthog_filesystem"."project_id"
+ FROM "posthog_filesystem"
+ WHERE (("posthog_filesystem"."surface" IS NULL
+ OR "posthog_filesystem"."surface" = 'web')
+ AND "posthog_filesystem"."ref" = '0001'
+ AND "posthog_filesystem"."team_id" = 99999
+ AND "posthog_filesystem"."type" = 'insight'
+ AND NOT ("posthog_filesystem"."shortcut"
+ AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.296
+ '''
+ SELECT "posthog_insightviewed"."id",
+ "posthog_insightviewed"."team_id",
+ "posthog_insightviewed"."user_id",
+ "posthog_insightviewed"."insight_id",
+ "posthog_insightviewed"."last_viewed_at",
+ "posthog_insightviewed"."source",
+ "posthog_insightviewed"."dashboard_id"
+ FROM "posthog_insightviewed"
+ WHERE ("posthog_insightviewed"."insight_id" = 99999
+ AND "posthog_insightviewed"."team_id" = 99999
+ AND "posthog_insightviewed"."user_id" = 99999)
+ LIMIT 21
+ FOR
+ UPDATE
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.297
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -17652,7 +17890,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.291
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.298
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -17750,194 +17988,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.292
- '''
- SELECT "posthog_filesystem"."team_id",
- "posthog_filesystem"."id",
- "posthog_filesystem"."path",
- "posthog_filesystem"."depth",
- "posthog_filesystem"."type",
- "posthog_filesystem"."ref",
- "posthog_filesystem"."href",
- "posthog_filesystem"."shortcut",
- "posthog_filesystem"."meta",
- "posthog_filesystem"."created_at",
- "posthog_filesystem"."created_by_id",
- "posthog_filesystem"."surface",
- "posthog_filesystem"."project_id"
- FROM "posthog_filesystem"
- WHERE (("posthog_filesystem"."surface" IS NULL
- OR "posthog_filesystem"."surface" = 'web')
- AND "posthog_filesystem"."ref" = '0001'
- AND "posthog_filesystem"."team_id" = 99999
- AND "posthog_filesystem"."type" = 'insight'
- AND NOT ("posthog_filesystem"."shortcut"
- AND "posthog_filesystem"."shortcut" IS NOT NULL))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.293
- '''
- SELECT "posthog_insightviewed"."id",
- "posthog_insightviewed"."team_id",
- "posthog_insightviewed"."user_id",
- "posthog_insightviewed"."insight_id",
- "posthog_insightviewed"."last_viewed_at",
- "posthog_insightviewed"."source",
- "posthog_insightviewed"."dashboard_id"
- FROM "posthog_insightviewed"
- WHERE ("posthog_insightviewed"."insight_id" = 99999
- AND "posthog_insightviewed"."team_id" = 99999
- AND "posthog_insightviewed"."user_id" = 99999)
- LIMIT 21
- FOR
- UPDATE
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.294
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.295
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.296
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.299
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -17966,7 +18017,27 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.297
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.3
+ '''
+ SELECT "posthog_organization"."is_active" AS "is_active",
+ "posthog_organization"."has_active_subscription" AS "has_active_subscription"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "posthog_organization"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.30
+ '''
+ SELECT "growth_enrichmentsignupsnapshot"."id",
+ "growth_enrichmentsignupsnapshot"."organization_id",
+ "growth_enrichmentsignupsnapshot"."created_at"
+ FROM "growth_enrichmentsignupsnapshot"
+ WHERE "growth_enrichmentsignupsnapshot"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.300
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -17995,7 +18066,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.298
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.301
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -18015,7 +18086,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.299
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.302
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -18028,27 +18099,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.3
- '''
- SELECT "posthog_organization"."is_active" AS "is_active",
- "posthog_organization"."has_active_subscription" AS "has_active_subscription"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "posthog_organization"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.30
- '''
- SELECT "growth_enrichmentsignupsnapshot"."id",
- "growth_enrichmentsignupsnapshot"."organization_id",
- "growth_enrichmentsignupsnapshot"."created_at"
- FROM "growth_enrichmentsignupsnapshot"
- WHERE "growth_enrichmentsignupsnapshot"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.300
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.303
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -18064,7 +18115,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.301
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.304
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -18081,7 +18132,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.302
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.305
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -18090,7 +18141,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.303
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.306
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -18136,7 +18187,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.304
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.307
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -18182,7 +18233,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.305
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.308
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18320,7 +18371,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.306
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.309
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -18375,7 +18426,20 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.307
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.31
+ '''
+ SELECT "ee_organizationresourceaccess"."id",
+ "ee_organizationresourceaccess"."resource",
+ "ee_organizationresourceaccess"."access_level",
+ "ee_organizationresourceaccess"."organization_id",
+ "ee_organizationresourceaccess"."created_by_id",
+ "ee_organizationresourceaccess"."created_at",
+ "ee_organizationresourceaccess"."updated_at"
+ FROM "ee_organizationresourceaccess"
+ WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.310
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -18398,7 +18462,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.308
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.311
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -18451,7 +18515,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.309
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.312
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -18471,20 +18535,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.31
- '''
- SELECT "ee_organizationresourceaccess"."id",
- "ee_organizationresourceaccess"."resource",
- "ee_organizationresourceaccess"."access_level",
- "ee_organizationresourceaccess"."organization_id",
- "ee_organizationresourceaccess"."created_by_id",
- "ee_organizationresourceaccess"."created_at",
- "ee_organizationresourceaccess"."updated_at"
- FROM "ee_organizationresourceaccess"
- WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.310
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.313
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -18497,7 +18548,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.311
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.314
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -18510,7 +18561,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.312
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.315
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -18542,7 +18593,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.313
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.316
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18640,7 +18691,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.314
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.317
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -18686,7 +18737,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.315
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.318
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18784,7 +18835,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.316
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.319
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -18809,7 +18860,20 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.317
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.32
+ '''
+ SELECT "ee_organizationresourceaccess"."id",
+ "ee_organizationresourceaccess"."resource",
+ "ee_organizationresourceaccess"."access_level",
+ "ee_organizationresourceaccess"."organization_id",
+ "ee_organizationresourceaccess"."created_by_id",
+ "ee_organizationresourceaccess"."created_at",
+ "ee_organizationresourceaccess"."updated_at"
+ FROM "ee_organizationresourceaccess"
+ WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.320
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -18827,7 +18891,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.318
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.321
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -18873,7 +18937,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.319
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.322
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -18971,20 +19035,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.32
- '''
- SELECT "ee_organizationresourceaccess"."id",
- "ee_organizationresourceaccess"."resource",
- "ee_organizationresourceaccess"."access_level",
- "ee_organizationresourceaccess"."organization_id",
- "ee_organizationresourceaccess"."created_by_id",
- "ee_organizationresourceaccess"."created_at",
- "ee_organizationresourceaccess"."updated_at"
- FROM "ee_organizationresourceaccess"
- WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.320
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.323
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -19013,7 +19064,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.321
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.324
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -19042,7 +19093,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.322
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.325
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -19062,7 +19113,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.323
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.326
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -19075,7 +19126,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.324
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.327
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -19091,7 +19142,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.325
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.328
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -19108,7 +19159,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.326
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.329
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -19117,7 +19168,16 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.327
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.33
+ '''
+ SELECT "posthog_team"."organization_id" AS "organization_id"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ ORDER BY "posthog_team"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.330
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -19163,7 +19223,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.328
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.331
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -19209,7 +19269,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.329
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.332
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19347,16 +19407,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.33
- '''
- SELECT "posthog_team"."organization_id" AS "organization_id"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- ORDER BY "posthog_team"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.330
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.333
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -19411,7 +19462,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.331
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.334
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -19434,7 +19485,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.332
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.335
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -19487,7 +19538,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.333
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.336
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -19507,7 +19558,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.334
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.337
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -19520,7 +19571,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.335
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.338
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -19533,7 +19584,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.336
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.339
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -19565,7 +19616,20 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.337
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.34
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id"
+ FROM "posthog_organizationmembership"
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.340
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19663,7 +19727,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.338
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.341
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -19709,7 +19773,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.339
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.342
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -19807,20 +19871,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.34
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id"
- FROM "posthog_organizationmembership"
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.340
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.343
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -19845,7 +19896,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.341
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.344
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -19863,7 +19914,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.342
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.345
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -19909,7 +19960,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.343
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.346
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -20007,7 +20058,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.344
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.347
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -20036,7 +20087,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.345
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.348
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -20065,7 +20116,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.346
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.349
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -20085,7 +20136,21 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.347
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.35
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id"
+ FROM "posthog_organizationmembership"
+ WHERE "posthog_organizationmembership"."id" = '00000000000000000000000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.350
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -20098,7 +20163,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.348
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.351
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -20114,7 +20179,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.349
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.352
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -20131,21 +20196,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.35
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id"
- FROM "posthog_organizationmembership"
- WHERE "posthog_organizationmembership"."id" = '00000000000000000000000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.350
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.353
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -20154,7 +20205,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.351
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.354
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -20200,7 +20251,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.352
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.355
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -20246,7 +20297,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.353
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.356
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -20384,7 +20435,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.354
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.357
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -20439,7 +20490,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.355
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.358
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -20462,7 +20513,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.356
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.359
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -20515,7 +20566,15 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.357
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.36
+ '''
+ SELECT "posthog_team"."id" AS "id"
+ FROM "posthog_team"
+ WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_team"."receive_org_level_activity_logs")
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.360
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -20529,7 +20588,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.358
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.361
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -20634,7 +20693,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.359
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.362
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -20657,15 +20716,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.36
- '''
- SELECT "posthog_team"."id" AS "id"
- FROM "posthog_team"
- WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_team"."receive_org_level_activity_logs")
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.360
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.363
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -20686,7 +20737,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.361
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.364
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -20732,7 +20783,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.362
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.365
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -20778,7 +20829,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.363
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.366
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -20916,7 +20967,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.364
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.367
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -20971,7 +21022,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.365
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.368
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -20994,7 +21045,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.366
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.369
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -21047,23 +21098,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.367
- '''
- 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_listing_dashboards_is_not_nplus1.368
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.37
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -21157,36 +21192,28 @@
"posthog_team"."base_currency",
"posthog_team"."business_model"
FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- LIMIT 21
+ WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ ORDER BY "posthog_team"."id" ASC
+ LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.369
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.370
'''
- 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" = 'dashboard'
- AND NOT ("posthog_filesystem"."shortcut"
- AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ 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_listing_dashboards_is_not_nplus1.37
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.371
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -21280,12 +21307,36 @@
"posthog_team"."base_currency",
"posthog_team"."business_model"
FROM "posthog_team"
- WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- ORDER BY "posthog_team"."id" ASC
- LIMIT 1
+ WHERE "posthog_team"."id" = 99999
+ LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.370
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.372
+ '''
+ 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" = 'dashboard'
+ AND NOT ("posthog_filesystem"."shortcut"
+ AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.373
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -21297,7 +21348,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.371
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.374
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -21316,7 +21367,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.372
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.375
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -21324,7 +21375,21 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.373
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.376
+ '''
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.377
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -21340,7 +21405,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.374
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.378
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -21356,7 +21421,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.375
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.379
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -21372,7 +21437,54 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.376
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.38
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
+ "posthog_user"."toolbar_mode",
+ "posthog_user"."hedgehog_config",
+ "posthog_user"."allow_sidebar_suggestions",
+ "posthog_user"."shortcut_position",
+ "posthog_user"."passkeys_enabled_for_2fa",
+ "posthog_user"."hide_mcp_hints",
+ "posthog_user"."ui_configuration",
+ "posthog_user"."onboarding_skipped_at",
+ "posthog_user"."onboarding_skipped_reason",
+ "posthog_user"."onboarding_skipped_organization_id",
+ "posthog_user"."onboarding_delegated_to_invite_id",
+ "posthog_user"."onboarding_delegated_to_organization_id",
+ "posthog_user"."onboarding_delegation_accepted_at",
+ "posthog_user"."events_column_config",
+ "posthog_user"."email_opt_in"
+ FROM "posthog_user"
+ WHERE "posthog_user"."id" = 99999
+ ORDER BY "posthog_user"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.380
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -21391,7 +21503,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.377
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.381
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -21411,7 +21523,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.378
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.382
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -21768,7 +21880,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.379
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.383
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -21777,54 +21889,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.38
- '''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
- "posthog_user"."toolbar_mode",
- "posthog_user"."hedgehog_config",
- "posthog_user"."allow_sidebar_suggestions",
- "posthog_user"."shortcut_position",
- "posthog_user"."passkeys_enabled_for_2fa",
- "posthog_user"."hide_mcp_hints",
- "posthog_user"."ui_configuration",
- "posthog_user"."onboarding_skipped_at",
- "posthog_user"."onboarding_skipped_reason",
- "posthog_user"."onboarding_skipped_organization_id",
- "posthog_user"."onboarding_delegated_to_invite_id",
- "posthog_user"."onboarding_delegated_to_organization_id",
- "posthog_user"."onboarding_delegation_accepted_at",
- "posthog_user"."events_column_config",
- "posthog_user"."email_opt_in"
- FROM "posthog_user"
- WHERE "posthog_user"."id" = 99999
- ORDER BY "posthog_user"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.380
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.384
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -21870,7 +21935,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.381
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.385
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -21916,7 +21981,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.382
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.386
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22054,7 +22119,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.383
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.387
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -22109,7 +22174,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.384
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.388
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -22132,7 +22197,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.385
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.389
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -22185,7 +22250,24 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.386
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.39
+ '''
+ SELECT "signals_signaluserautonomyconfig"."id",
+ "signals_signaluserautonomyconfig"."user_id",
+ "signals_signaluserautonomyconfig"."autostart_priority",
+ "signals_signaluserautonomyconfig"."slack_notification_integration_id",
+ "signals_signaluserautonomyconfig"."slack_notification_channel",
+ "signals_signaluserautonomyconfig"."slack_notification_min_priority",
+ "signals_signaluserautonomyconfig"."github_assign_on_pull_request",
+ "signals_signaluserautonomyconfig"."github_open_pull_request_ready",
+ "signals_signaluserautonomyconfig"."created_at",
+ "signals_signaluserautonomyconfig"."updated_at"
+ FROM "signals_signaluserautonomyconfig"
+ WHERE "signals_signaluserautonomyconfig"."user_id" = 99999
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.390
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -22205,7 +22287,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.387
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.391
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -22218,7 +22300,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.388
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.392
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -22231,7 +22313,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.389
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.393
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -22263,24 +22345,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.39
- '''
- SELECT "signals_signaluserautonomyconfig"."id",
- "signals_signaluserautonomyconfig"."user_id",
- "signals_signaluserautonomyconfig"."autostart_priority",
- "signals_signaluserautonomyconfig"."slack_notification_integration_id",
- "signals_signaluserautonomyconfig"."slack_notification_channel",
- "signals_signaluserautonomyconfig"."slack_notification_min_priority",
- "signals_signaluserautonomyconfig"."github_assign_on_pull_request",
- "signals_signaluserautonomyconfig"."github_open_pull_request_ready",
- "signals_signaluserautonomyconfig"."created_at",
- "signals_signaluserautonomyconfig"."updated_at"
- FROM "signals_signaluserautonomyconfig"
- WHERE "signals_signaluserautonomyconfig"."user_id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.390
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.394
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22378,7 +22443,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.391
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.395
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -22424,7 +22489,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.392
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.396
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22522,7 +22587,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.393
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.397
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -22547,7 +22612,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.394
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.398
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -22565,7 +22630,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.395
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.399
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -22611,7 +22676,77 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.396
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.4
+ '''
+ SELECT "posthog_organizationmembernotificationlock"."id",
+ "posthog_organizationmembernotificationlock"."organization_id",
+ "posthog_organizationmembernotificationlock"."organization_membership_id",
+ "posthog_organizationmembernotificationlock"."setting",
+ "posthog_organizationmembernotificationlock"."scope_id",
+ "posthog_organizationmembernotificationlock"."locked_value",
+ "posthog_organizationmembernotificationlock"."created_by_id",
+ "posthog_organizationmembernotificationlock"."created_at",
+ "posthog_organizationmembernotificationlock"."updated_at"
+ FROM "posthog_organizationmembernotificationlock"
+ WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.40
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.400
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -22709,7 +22844,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.397
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.401
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -22738,7 +22873,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.398
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.402
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -22767,7 +22902,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.399
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.403
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -22787,77 +22922,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.4
- '''
- SELECT "posthog_organizationmembernotificationlock"."id",
- "posthog_organizationmembernotificationlock"."organization_id",
- "posthog_organizationmembernotificationlock"."organization_membership_id",
- "posthog_organizationmembernotificationlock"."setting",
- "posthog_organizationmembernotificationlock"."scope_id",
- "posthog_organizationmembernotificationlock"."locked_value",
- "posthog_organizationmembernotificationlock"."created_by_id",
- "posthog_organizationmembernotificationlock"."created_at",
- "posthog_organizationmembernotificationlock"."updated_at"
- FROM "posthog_organizationmembernotificationlock"
- WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.40
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.400
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.404
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -22870,7 +22935,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.401
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.405
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -22886,7 +22951,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.402
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.406
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -22903,7 +22968,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.403
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.407
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -22912,7 +22977,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.404
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.408
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -22958,7 +23023,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.405
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.409
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -23004,7 +23069,104 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.406
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.41
+ '''
+ SELECT "posthog_team"."id",
+ "posthog_team"."uuid",
+ "posthog_team"."organization_id",
+ "posthog_team"."parent_team_id",
+ "posthog_team"."project_id",
+ "posthog_team"."api_token",
+ "posthog_team"."app_urls",
+ "posthog_team"."name",
+ "posthog_team"."slack_incoming_webhook",
+ "posthog_team"."created_at",
+ "posthog_team"."updated_at",
+ "posthog_team"."anonymize_ips",
+ "posthog_team"."completed_snippet_onboarding",
+ "posthog_team"."has_completed_onboarding_for",
+ "posthog_team"."onboarding_tasks",
+ "posthog_team"."ingested_event",
+ "posthog_team"."ingested_production_event",
+ "posthog_team"."ingested_production_event_last_checked_at",
+ "posthog_team"."person_processing_opt_out",
+ "posthog_team"."secret_api_token",
+ "posthog_team"."secret_api_token_backup",
+ "posthog_team"."session_recording_opt_in",
+ "posthog_team"."session_recording_sample_rate",
+ "posthog_team"."session_recording_minimum_duration_milliseconds",
+ "posthog_team"."session_recording_linked_flag",
+ "posthog_team"."session_recording_network_payload_capture_config",
+ "posthog_team"."session_recording_masking_config",
+ "posthog_team"."session_recording_url_trigger_config",
+ "posthog_team"."session_recording_url_blocklist_config",
+ "posthog_team"."session_recording_event_trigger_config",
+ "posthog_team"."session_recording_trigger_match_type_config",
+ "posthog_team"."session_recording_trigger_groups",
+ "posthog_team"."session_replay_config",
+ "posthog_team"."session_recording_retention_period",
+ "posthog_team"."event_retention_months",
+ "posthog_team"."conversations_enabled",
+ "posthog_team"."conversations_settings",
+ "posthog_team"."proactive_tasks_enabled",
+ "posthog_team"."survey_config",
+ "posthog_team"."surveys_opt_in",
+ "posthog_team"."product_tours_opt_in",
+ "posthog_team"."capture_console_log_opt_in",
+ "posthog_team"."capture_performance_opt_in",
+ "posthog_team"."capture_dead_clicks",
+ "posthog_team"."autocapture_opt_out",
+ "posthog_team"."autocapture_web_vitals_opt_in",
+ "posthog_team"."autocapture_web_vitals_allowed_metrics",
+ "posthog_team"."autocapture_exceptions_opt_in",
+ "posthog_team"."autocapture_exceptions_errors_to_ignore",
+ "posthog_team"."logs_settings",
+ "posthog_team"."llm_gateway_enabled_at",
+ "posthog_team"."llm_gateway_revoked_at",
+ "posthog_team"."llm_gateway_overspend_allowance_usd",
+ "posthog_team"."heatmaps_opt_in",
+ "posthog_team"."receive_org_level_activity_logs",
+ "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
+ "posthog_team"."web_analytics_pre_aggregated_tables_version",
+ "posthog_team"."flags_persistence_default",
+ "posthog_team"."feature_flag_confirmation_enabled",
+ "posthog_team"."feature_flag_confirmation_message",
+ "posthog_team"."default_evaluation_environments_enabled",
+ "posthog_team"."require_evaluation_environment_tags",
+ "posthog_team"."default_evaluation_contexts_enabled",
+ "posthog_team"."require_evaluation_contexts",
+ "posthog_team"."session_recording_version",
+ "posthog_team"."signup_token",
+ "posthog_team"."is_demo",
+ "posthog_team"."access_control",
+ "posthog_team"."week_start_day",
+ "posthog_team"."inject_web_apps",
+ "posthog_team"."test_account_filters",
+ "posthog_team"."test_account_filters_default_checked",
+ "posthog_team"."path_cleaning_filters",
+ "posthog_team"."timezone",
+ "posthog_team"."data_attributes",
+ "posthog_team"."person_display_name_properties",
+ "posthog_team"."live_events_columns",
+ "posthog_team"."recording_domains",
+ "posthog_team"."human_friendly_comparison_periods",
+ "posthog_team"."cookieless_server_hash_mode",
+ "posthog_team"."primary_dashboard_id",
+ "posthog_team"."default_data_theme",
+ "posthog_team"."extra_settings",
+ "posthog_team"."modifiers",
+ "posthog_team"."session_recording_retention_period_days",
+ "posthog_team"."external_data_workspace_id",
+ "posthog_team"."external_data_workspace_last_synced_at",
+ "posthog_team"."api_query_rate_limit",
+ "posthog_team"."drop_events_older_than",
+ "posthog_team"."base_currency",
+ "posthog_team"."business_model"
+ FROM "posthog_team"
+ WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.410
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23142,7 +23304,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.407
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.411
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -23197,7 +23359,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.408
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.412
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -23220,7 +23382,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.409
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.413
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -23273,182 +23435,85 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.41
- '''
- SELECT "posthog_team"."id",
- "posthog_team"."uuid",
- "posthog_team"."organization_id",
- "posthog_team"."parent_team_id",
- "posthog_team"."project_id",
- "posthog_team"."api_token",
- "posthog_team"."app_urls",
- "posthog_team"."name",
- "posthog_team"."slack_incoming_webhook",
- "posthog_team"."created_at",
- "posthog_team"."updated_at",
- "posthog_team"."anonymize_ips",
- "posthog_team"."completed_snippet_onboarding",
- "posthog_team"."has_completed_onboarding_for",
- "posthog_team"."onboarding_tasks",
- "posthog_team"."ingested_event",
- "posthog_team"."ingested_production_event",
- "posthog_team"."ingested_production_event_last_checked_at",
- "posthog_team"."person_processing_opt_out",
- "posthog_team"."secret_api_token",
- "posthog_team"."secret_api_token_backup",
- "posthog_team"."session_recording_opt_in",
- "posthog_team"."session_recording_sample_rate",
- "posthog_team"."session_recording_minimum_duration_milliseconds",
- "posthog_team"."session_recording_linked_flag",
- "posthog_team"."session_recording_network_payload_capture_config",
- "posthog_team"."session_recording_masking_config",
- "posthog_team"."session_recording_url_trigger_config",
- "posthog_team"."session_recording_url_blocklist_config",
- "posthog_team"."session_recording_event_trigger_config",
- "posthog_team"."session_recording_trigger_match_type_config",
- "posthog_team"."session_recording_trigger_groups",
- "posthog_team"."session_replay_config",
- "posthog_team"."session_recording_retention_period",
- "posthog_team"."event_retention_months",
- "posthog_team"."conversations_enabled",
- "posthog_team"."conversations_settings",
- "posthog_team"."proactive_tasks_enabled",
- "posthog_team"."survey_config",
- "posthog_team"."surveys_opt_in",
- "posthog_team"."product_tours_opt_in",
- "posthog_team"."capture_console_log_opt_in",
- "posthog_team"."capture_performance_opt_in",
- "posthog_team"."capture_dead_clicks",
- "posthog_team"."autocapture_opt_out",
- "posthog_team"."autocapture_web_vitals_opt_in",
- "posthog_team"."autocapture_web_vitals_allowed_metrics",
- "posthog_team"."autocapture_exceptions_opt_in",
- "posthog_team"."autocapture_exceptions_errors_to_ignore",
- "posthog_team"."logs_settings",
- "posthog_team"."llm_gateway_enabled_at",
- "posthog_team"."llm_gateway_revoked_at",
- "posthog_team"."llm_gateway_overspend_allowance_usd",
- "posthog_team"."heatmaps_opt_in",
- "posthog_team"."receive_org_level_activity_logs",
- "posthog_team"."web_analytics_pre_aggregated_tables_enabled",
- "posthog_team"."web_analytics_pre_aggregated_tables_version",
- "posthog_team"."flags_persistence_default",
- "posthog_team"."feature_flag_confirmation_enabled",
- "posthog_team"."feature_flag_confirmation_message",
- "posthog_team"."default_evaluation_environments_enabled",
- "posthog_team"."require_evaluation_environment_tags",
- "posthog_team"."default_evaluation_contexts_enabled",
- "posthog_team"."require_evaluation_contexts",
- "posthog_team"."session_recording_version",
- "posthog_team"."signup_token",
- "posthog_team"."is_demo",
- "posthog_team"."access_control",
- "posthog_team"."week_start_day",
- "posthog_team"."inject_web_apps",
- "posthog_team"."test_account_filters",
- "posthog_team"."test_account_filters_default_checked",
- "posthog_team"."path_cleaning_filters",
- "posthog_team"."timezone",
- "posthog_team"."data_attributes",
- "posthog_team"."person_display_name_properties",
- "posthog_team"."live_events_columns",
- "posthog_team"."recording_domains",
- "posthog_team"."human_friendly_comparison_periods",
- "posthog_team"."cookieless_server_hash_mode",
- "posthog_team"."primary_dashboard_id",
- "posthog_team"."default_data_theme",
- "posthog_team"."extra_settings",
- "posthog_team"."modifiers",
- "posthog_team"."session_recording_retention_period_days",
- "posthog_team"."external_data_workspace_id",
- "posthog_team"."external_data_workspace_last_synced_at",
- "posthog_team"."api_query_rate_limit",
- "posthog_team"."drop_events_older_than",
- "posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.410
- '''
- SELECT "posthog_dashboard"."id" AS "id"
- FROM "posthog_dashboard"
- INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
- WHERE (NOT ("posthog_dashboard"."deleted")
- AND ("posthog_dashboard"."team_id" =
- (SELECT U0."parent_team_id" AS "parent_team_id"
- FROM "posthog_team" U0
- WHERE U0."id" = 99999
- LIMIT 1)
- OR ("posthog_team"."parent_team_id" IS NULL
- AND "posthog_dashboard"."team_id" = 99999))
- AND "posthog_dashboard"."id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.411
- '''
- SELECT "posthog_dashboard"."id" AS "id",
- "posthog_dashboard"."name" AS "name"
- FROM "posthog_dashboard"
- WHERE (NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboard"."id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.412
- '''
- SELECT COUNT(*) AS "__count"
- FROM "posthog_dashboardtile"
- INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
- WHERE (NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL)
- AND NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboardtile"."dashboard_id" = 99999
- AND NOT ("posthog_dashboardtile"."deleted"
- AND "posthog_dashboardtile"."deleted" IS NOT NULL))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.413
- '''
- SELECT "posthog_dashboard"."id",
- "posthog_dashboard"."name",
- "posthog_dashboard"."description",
- "posthog_dashboard"."team_id",
- "posthog_dashboard"."pinned",
- "posthog_dashboard"."created_at",
- "posthog_dashboard"."created_by_id",
- "posthog_dashboard"."deleted",
- "posthog_dashboard"."last_accessed_at",
- "posthog_dashboard"."last_refresh",
- "posthog_dashboard"."filters",
- "posthog_dashboard"."variables",
- "posthog_dashboard"."breakdown_colors",
- "posthog_dashboard"."data_color_theme_id",
- "posthog_dashboard"."creation_mode",
- "posthog_dashboard"."quick_filter_ids",
- "posthog_dashboard"."customization",
- "posthog_dashboard"."deprecated_tags",
- "posthog_dashboard"."tags",
- "posthog_dashboard"."share_token",
- "posthog_dashboard"."is_shared"
- FROM "posthog_dashboard"
- WHERE (NOT ("posthog_dashboard"."deleted")
- AND "posthog_dashboard"."id" IN (1,
- 2,
- 3,
- 4,
- 5 /* ... */))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.414
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.414
+ '''
+ SELECT "posthog_dashboard"."id" AS "id"
+ FROM "posthog_dashboard"
+ INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
+ WHERE (NOT ("posthog_dashboard"."deleted")
+ AND ("posthog_dashboard"."team_id" =
+ (SELECT U0."parent_team_id" AS "parent_team_id"
+ FROM "posthog_team" U0
+ WHERE U0."id" = 99999
+ LIMIT 1)
+ OR ("posthog_team"."parent_team_id" IS NULL
+ AND "posthog_dashboard"."team_id" = 99999))
+ AND "posthog_dashboard"."id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.415
+ '''
+ SELECT "posthog_dashboard"."id" AS "id",
+ "posthog_dashboard"."name" AS "name"
+ FROM "posthog_dashboard"
+ WHERE (NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboard"."id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.416
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ WHERE (NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL)
+ AND NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboardtile"."dashboard_id" = 99999
+ AND NOT ("posthog_dashboardtile"."deleted"
+ AND "posthog_dashboardtile"."deleted" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.417
+ '''
+ SELECT "posthog_dashboard"."id",
+ "posthog_dashboard"."name",
+ "posthog_dashboard"."description",
+ "posthog_dashboard"."team_id",
+ "posthog_dashboard"."pinned",
+ "posthog_dashboard"."created_at",
+ "posthog_dashboard"."created_by_id",
+ "posthog_dashboard"."deleted",
+ "posthog_dashboard"."last_accessed_at",
+ "posthog_dashboard"."last_refresh",
+ "posthog_dashboard"."filters",
+ "posthog_dashboard"."variables",
+ "posthog_dashboard"."breakdown_colors",
+ "posthog_dashboard"."data_color_theme_id",
+ "posthog_dashboard"."creation_mode",
+ "posthog_dashboard"."quick_filter_ids",
+ "posthog_dashboard"."customization",
+ "posthog_dashboard"."deprecated_tags",
+ "posthog_dashboard"."tags",
+ "posthog_dashboard"."share_token",
+ "posthog_dashboard"."is_shared"
+ FROM "posthog_dashboard"
+ WHERE (NOT ("posthog_dashboard"."deleted")
+ AND "posthog_dashboard"."id" IN (1,
+ 2,
+ 3,
+ 4,
+ 5 /* ... */))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.418
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23546,7 +23611,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.415
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.419
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -23592,7 +23657,21 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.416
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.42
+ '''
+ SELECT 1 AS "a"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999
+ AND "posthog_filesystemshortcut"."ref" IS NULL
+ AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.420
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23690,7 +23769,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.417
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.421
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -23715,7 +23794,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.418
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.422
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -23733,7 +23812,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.419
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.423
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -23779,21 +23858,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.42
- '''
- SELECT 1 AS "a"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999
- AND "posthog_filesystemshortcut"."ref" IS NULL
- AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.420
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.424
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -23891,7 +23956,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.421
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.425
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -23920,7 +23985,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.422
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.426
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -23949,7 +24014,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.423
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.427
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -23969,7 +24034,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.424
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.428
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -23982,7 +24047,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.425
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.429
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -23998,7 +24063,10 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.426
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.43
+ "SELECT pg_advisory_xact_lock(hashtextextended('file-system-shortcuts:99999:99999', 99999))"
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.430
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -24015,7 +24083,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.427
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.431
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -24024,7 +24092,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.428
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.432
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -24070,7 +24138,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.429
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.433
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -24116,10 +24184,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.43
- "SELECT pg_advisory_xact_lock(hashtextextended('file-system-shortcuts:99999:99999', 99999))"
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.430
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.434
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24257,7 +24322,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.431
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.435
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -24312,7 +24377,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.432
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.436
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -24335,7 +24400,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.433
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.437
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -24388,7 +24453,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.434
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.438
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -24408,7 +24473,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.435
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.439
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -24421,7 +24486,20 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.436
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.44
+ '''
+ SELECT "posthog_filesystemshortcut"."path" AS "path"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999
+ AND "posthog_filesystemshortcut"."ref" IS NULL
+ AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.440
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -24434,7 +24512,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.437
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.441
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -24466,7 +24544,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.438
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.442
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24564,7 +24642,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.439
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.443
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -24610,20 +24688,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.44
- '''
- SELECT "posthog_filesystemshortcut"."path" AS "path"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999
- AND "posthog_filesystemshortcut"."ref" IS NULL
- AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.440
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.444
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24721,7 +24786,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.441
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.445
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -24746,7 +24811,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.442
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.446
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -24764,7 +24829,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.443
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.447
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -24810,7 +24875,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.444
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.448
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -24908,7 +24973,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.445
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.449
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -24937,7 +25002,18 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.446
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.45
+ '''
+ SELECT "posthog_filesystemshortcut"."order" AS "order"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.450
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -24966,7 +25042,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.447
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.451
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -24986,7 +25062,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.448
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.452
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -24999,7 +25075,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.449
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.453
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -25015,18 +25091,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.45
- '''
- SELECT "posthog_filesystemshortcut"."order" AS "order"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.450
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.454
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -25043,7 +25108,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.451
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.455
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -25052,7 +25117,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.452
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.456
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -25098,7 +25163,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.453
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.457
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -25144,7 +25209,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.454
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.458
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -25282,7 +25347,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.455
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.459
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25337,7 +25402,22 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.456
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.46
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id"
+ FROM "posthog_organizationmembership"
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ ORDER BY "posthog_organizationmembership"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.460
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -25360,7 +25440,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.457
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.461
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25413,7 +25493,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.458
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.462
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -25427,7 +25507,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.459
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.463
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -25532,22 +25612,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.46
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id"
- FROM "posthog_organizationmembership"
- WHERE "posthog_organizationmembership"."user_id" = 99999
- ORDER BY "posthog_organizationmembership"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.460
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.464
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -25570,7 +25635,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.461
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.465
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -25591,7 +25656,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.462
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.466
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -25637,7 +25702,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.463
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.467
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -25683,7 +25748,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.464
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.468
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -25821,7 +25886,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.465
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.469
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25876,7 +25941,21 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.466
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.47
+ '''
+ SELECT 1 AS "a"
+ FROM "posthog_filesystemshortcut"
+ INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
+ WHERE (("posthog_filesystemshortcut"."surface" IS NULL
+ OR "posthog_filesystemshortcut"."surface" = 'web')
+ AND "posthog_team"."project_id" = 99999
+ AND "posthog_filesystemshortcut"."user_id" = 99999
+ AND "posthog_filesystemshortcut"."ref" IS NULL
+ AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.470
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -25899,7 +25978,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.467
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.471
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -25952,7 +26031,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.468
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.472
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -25968,7 +26047,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.469
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.473
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -26066,21 +26145,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.47
- '''
- SELECT 1 AS "a"
- FROM "posthog_filesystemshortcut"
- INNER JOIN "posthog_team" ON ("posthog_filesystemshortcut"."team_id" = "posthog_team"."id")
- WHERE (("posthog_filesystemshortcut"."surface" IS NULL
- OR "posthog_filesystemshortcut"."surface" = 'web')
- AND "posthog_team"."project_id" = 99999
- AND "posthog_filesystemshortcut"."user_id" = 99999
- AND "posthog_filesystemshortcut"."ref" IS NULL
- AND NOT ("posthog_filesystemshortcut"."type" = 'folder'))
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.470
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.474
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -26105,7 +26170,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.471
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.475
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -26117,7 +26182,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.472
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.476
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -26136,7 +26201,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.473
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.477
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -26144,7 +26209,21 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.474
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.478
+ '''
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.479
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -26160,7 +26239,16 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.475
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.48
+ '''
+ SELECT "posthog_team"."organization_id" AS "organization_id"
+ FROM "posthog_team"
+ WHERE "posthog_team"."id" = 99999
+ ORDER BY "posthog_team"."id" ASC
+ LIMIT 1
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.480
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -26176,7 +26264,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.476
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.481
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -26192,7 +26280,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.477
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.482
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -26211,7 +26299,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.478
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.483
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -26231,7 +26319,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.479
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.484
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -26588,16 +26676,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.48
- '''
- SELECT "posthog_team"."organization_id" AS "organization_id"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- ORDER BY "posthog_team"."id" ASC
- LIMIT 1
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.480
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.485
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -26606,7 +26685,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.481
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.486
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -26652,7 +26731,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.482
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.487
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -26698,7 +26777,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.483
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.488
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -26836,7 +26915,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.484
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.489
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -26891,7 +26970,15 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.485
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.49
+ '''
+ SELECT "posthog_team"."id" AS "id"
+ FROM "posthog_team"
+ WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_team"."receive_org_level_activity_logs")
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.490
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -26914,7 +27001,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.486
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.491
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -26967,7 +27054,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.487
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.492
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -26987,7 +27074,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.488
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.493
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -27000,7 +27087,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.489
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.494
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -27013,15 +27100,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.49
- '''
- SELECT "posthog_team"."id" AS "id"
- FROM "posthog_team"
- WHERE ("posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_team"."receive_org_level_activity_logs")
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.490
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.495
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -27053,7 +27132,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.491
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.496
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27151,7 +27230,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.492
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.497
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -27197,7 +27276,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.493
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.498
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27295,7 +27374,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.494
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.499
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -27320,7 +27399,68 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.495
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.5
+ '''
+ SELECT "posthog_organizationmembernotificationlock"."id",
+ "posthog_organizationmembernotificationlock"."organization_id",
+ "posthog_organizationmembernotificationlock"."organization_membership_id",
+ "posthog_organizationmembernotificationlock"."setting",
+ "posthog_organizationmembernotificationlock"."scope_id",
+ "posthog_organizationmembernotificationlock"."locked_value",
+ "posthog_organizationmembernotificationlock"."created_by_id",
+ "posthog_organizationmembernotificationlock"."created_at",
+ "posthog_organizationmembernotificationlock"."updated_at"
+ FROM "posthog_organizationmembernotificationlock"
+ WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.50
+ '''
+ SELECT "posthog_user"."id",
+ "posthog_user"."password",
+ "posthog_user"."last_login",
+ "posthog_user"."first_name",
+ "posthog_user"."last_name",
+ "posthog_user"."is_staff",
+ "posthog_user"."date_joined",
+ "posthog_user"."uuid",
+ "posthog_user"."current_organization_id",
+ "posthog_user"."current_team_id",
+ "posthog_user"."email",
+ "posthog_user"."pending_email",
+ "posthog_user"."distinct_id",
+ "posthog_user"."is_email_verified",
+ "posthog_user"."credentials_reviewed_at",
+ "posthog_user"."requested_2fa_reset_at",
+ "posthog_user"."has_seen_product_intro_for",
+ "posthog_user"."strapi_id",
+ "posthog_user"."is_active",
+ "posthog_user"."role_at_organization",
+ "posthog_user"."theme_mode",
+ "posthog_user"."partial_notification_settings",
+ "posthog_user"."anonymize_data",
+ "posthog_user"."allow_impersonation",
+ "posthog_user"."toolbar_mode",
+ "posthog_user"."hedgehog_config",
+ "posthog_user"."allow_sidebar_suggestions",
+ "posthog_user"."shortcut_position",
+ "posthog_user"."passkeys_enabled_for_2fa",
+ "posthog_user"."hide_mcp_hints",
+ "posthog_user"."ui_configuration",
+ "posthog_user"."onboarding_skipped_at",
+ "posthog_user"."onboarding_skipped_reason",
+ "posthog_user"."onboarding_skipped_organization_id",
+ "posthog_user"."onboarding_delegated_to_invite_id",
+ "posthog_user"."onboarding_delegated_to_organization_id",
+ "posthog_user"."onboarding_delegation_accepted_at",
+ "posthog_user"."events_column_config",
+ "posthog_user"."email_opt_in"
+ FROM "posthog_user"
+ WHERE ("posthog_user"."is_active"
+ AND "posthog_user"."id" = 99999)
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.500
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -27338,7 +27478,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.496
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.501
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -27384,7 +27524,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.497
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.502
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27482,7 +27622,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.498
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.503
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -27511,7 +27651,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.499
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.504
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -27540,68 +27680,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.5
- '''
- SELECT "posthog_organizationmembernotificationlock"."id",
- "posthog_organizationmembernotificationlock"."organization_id",
- "posthog_organizationmembernotificationlock"."organization_membership_id",
- "posthog_organizationmembernotificationlock"."setting",
- "posthog_organizationmembernotificationlock"."scope_id",
- "posthog_organizationmembernotificationlock"."locked_value",
- "posthog_organizationmembernotificationlock"."created_by_id",
- "posthog_organizationmembernotificationlock"."created_at",
- "posthog_organizationmembernotificationlock"."updated_at"
- FROM "posthog_organizationmembernotificationlock"
- WHERE "posthog_organizationmembernotificationlock"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.50
- '''
- SELECT "posthog_user"."id",
- "posthog_user"."password",
- "posthog_user"."last_login",
- "posthog_user"."first_name",
- "posthog_user"."last_name",
- "posthog_user"."is_staff",
- "posthog_user"."date_joined",
- "posthog_user"."uuid",
- "posthog_user"."current_organization_id",
- "posthog_user"."current_team_id",
- "posthog_user"."email",
- "posthog_user"."pending_email",
- "posthog_user"."distinct_id",
- "posthog_user"."is_email_verified",
- "posthog_user"."credentials_reviewed_at",
- "posthog_user"."requested_2fa_reset_at",
- "posthog_user"."has_seen_product_intro_for",
- "posthog_user"."strapi_id",
- "posthog_user"."is_active",
- "posthog_user"."role_at_organization",
- "posthog_user"."theme_mode",
- "posthog_user"."partial_notification_settings",
- "posthog_user"."anonymize_data",
- "posthog_user"."allow_impersonation",
- "posthog_user"."toolbar_mode",
- "posthog_user"."hedgehog_config",
- "posthog_user"."allow_sidebar_suggestions",
- "posthog_user"."shortcut_position",
- "posthog_user"."passkeys_enabled_for_2fa",
- "posthog_user"."hide_mcp_hints",
- "posthog_user"."ui_configuration",
- "posthog_user"."onboarding_skipped_at",
- "posthog_user"."onboarding_skipped_reason",
- "posthog_user"."onboarding_skipped_organization_id",
- "posthog_user"."onboarding_delegated_to_invite_id",
- "posthog_user"."onboarding_delegated_to_organization_id",
- "posthog_user"."onboarding_delegation_accepted_at",
- "posthog_user"."events_column_config",
- "posthog_user"."email_opt_in"
- FROM "posthog_user"
- WHERE ("posthog_user"."is_active"
- AND "posthog_user"."id" = 99999)
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.500
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.505
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -27621,7 +27700,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.501
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.506
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -27634,7 +27713,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.502
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.507
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -27650,7 +27729,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.503
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.508
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -27667,7 +27746,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.504
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.509
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -27676,7 +27755,53 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.505
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.51
+ '''
+ SELECT "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organization"
+ WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.510
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -27722,7 +27847,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.506
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.511
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -27768,7 +27893,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.507
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.512
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -27906,7 +28031,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.508
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.513
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -27961,7 +28086,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.509
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.514
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -27984,53 +28109,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.51
- '''
- SELECT "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.510
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.515
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -28083,7 +28162,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.511
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.516
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -28103,7 +28182,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.512
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.517
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -28116,7 +28195,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.513
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.518
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -28129,7 +28208,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.514
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.519
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -28161,7 +28240,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.515
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.52
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28253,15 +28332,8 @@
"posthog_team"."api_query_rate_limit",
"posthog_team"."drop_events_older_than",
"posthog_team"."base_currency",
- "posthog_team"."business_model"
- FROM "posthog_team"
- WHERE "posthog_team"."id" = 99999
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.516
- '''
- SELECT "posthog_organization"."id",
+ "posthog_team"."business_model",
+ "posthog_organization"."id",
"posthog_organization"."name",
"posthog_organization"."slug",
"posthog_organization"."logo_media_id",
@@ -28300,12 +28372,13 @@
"posthog_organization"."personalization",
"posthog_organization"."domain_whitelist",
"posthog_organization"."is_platform"
- FROM "posthog_organization"
- WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
+ FROM "posthog_team"
+ INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_team"."id" = 99999
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.517
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.520
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28403,50 +28476,53 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.518
- '''
- SELECT "posthog_filesystem"."team_id",
- "posthog_filesystem"."id",
- "posthog_filesystem"."path",
- "posthog_filesystem"."depth",
- "posthog_filesystem"."type",
- "posthog_filesystem"."ref",
- "posthog_filesystem"."href",
- "posthog_filesystem"."shortcut",
- "posthog_filesystem"."meta",
- "posthog_filesystem"."created_at",
- "posthog_filesystem"."created_by_id",
- "posthog_filesystem"."surface",
- "posthog_filesystem"."project_id"
- FROM "posthog_filesystem"
- WHERE (("posthog_filesystem"."surface" IS NULL
- OR "posthog_filesystem"."surface" = 'web')
- AND "posthog_filesystem"."ref" = '0001'
- AND "posthog_filesystem"."team_id" = 99999
- AND "posthog_filesystem"."type" = 'insight'
- AND NOT ("posthog_filesystem"."shortcut"
- AND "posthog_filesystem"."shortcut" IS NOT NULL))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.519
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.521
'''
- SELECT "posthog_insightviewed"."id",
- "posthog_insightviewed"."team_id",
- "posthog_insightviewed"."user_id",
- "posthog_insightviewed"."insight_id",
- "posthog_insightviewed"."last_viewed_at",
- "posthog_insightviewed"."source",
- "posthog_insightviewed"."dashboard_id"
- FROM "posthog_insightviewed"
- WHERE ("posthog_insightviewed"."insight_id" = 99999
- AND "posthog_insightviewed"."team_id" = 99999
- AND "posthog_insightviewed"."user_id" = 99999)
+ SELECT "posthog_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
- FOR
- UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.52
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.522
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28538,53 +28614,56 @@
"posthog_team"."api_query_rate_limit",
"posthog_team"."drop_events_older_than",
"posthog_team"."base_currency",
- "posthog_team"."business_model",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
+ "posthog_team"."business_model"
FROM "posthog_team"
- INNER JOIN "posthog_organization" ON ("posthog_team"."organization_id" = "posthog_organization"."id")
WHERE "posthog_team"."id" = 99999
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.520
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.523
+ '''
+ SELECT "posthog_filesystem"."team_id",
+ "posthog_filesystem"."id",
+ "posthog_filesystem"."path",
+ "posthog_filesystem"."depth",
+ "posthog_filesystem"."type",
+ "posthog_filesystem"."ref",
+ "posthog_filesystem"."href",
+ "posthog_filesystem"."shortcut",
+ "posthog_filesystem"."meta",
+ "posthog_filesystem"."created_at",
+ "posthog_filesystem"."created_by_id",
+ "posthog_filesystem"."surface",
+ "posthog_filesystem"."project_id"
+ FROM "posthog_filesystem"
+ WHERE (("posthog_filesystem"."surface" IS NULL
+ OR "posthog_filesystem"."surface" = 'web')
+ AND "posthog_filesystem"."ref" = '0001'
+ AND "posthog_filesystem"."team_id" = 99999
+ AND "posthog_filesystem"."type" = 'insight'
+ AND NOT ("posthog_filesystem"."shortcut"
+ AND "posthog_filesystem"."shortcut" IS NOT NULL))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.524
+ '''
+ SELECT "posthog_insightviewed"."id",
+ "posthog_insightviewed"."team_id",
+ "posthog_insightviewed"."user_id",
+ "posthog_insightviewed"."insight_id",
+ "posthog_insightviewed"."last_viewed_at",
+ "posthog_insightviewed"."source",
+ "posthog_insightviewed"."dashboard_id"
+ FROM "posthog_insightviewed"
+ WHERE ("posthog_insightviewed"."insight_id" = 99999
+ AND "posthog_insightviewed"."team_id" = 99999
+ AND "posthog_insightviewed"."user_id" = 99999)
+ LIMIT 21
+ FOR
+ UPDATE
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.525
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -28630,7 +28709,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.521
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.526
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -28728,7 +28807,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.522
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.527
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -28757,7 +28836,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.523
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.528
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -28786,7 +28865,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.524
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.529
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -28806,7 +28885,62 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.525
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.53
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.530
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -28819,7 +28953,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.526
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.531
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -28835,7 +28969,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.527
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.532
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -28852,7 +28986,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.528
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.533
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -28861,7 +28995,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.529
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.534
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -28907,62 +29041,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.53
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.530
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.535
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -29008,7 +29087,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.531
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.536
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29146,7 +29225,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.532
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.537
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -29201,7 +29280,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.533
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.538
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -29224,7 +29303,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.534
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.539
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -29277,7 +29356,30 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.535
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.54
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.540
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -29297,7 +29399,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.536
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.541
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -29310,7 +29412,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.537
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.542
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -29323,7 +29425,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.538
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.543
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -29355,7 +29457,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.539
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.544
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29453,30 +29555,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.54
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.540
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.545
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -29522,7 +29601,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.541
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.546
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29620,7 +29699,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.542
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.547
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -29645,7 +29724,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.543
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.548
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -29663,7 +29742,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.544
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.549
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -29709,7 +29788,60 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.545
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.55
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.550
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -29807,7 +29939,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.546
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.551
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -29836,7 +29968,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.547
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.552
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -29865,7 +29997,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.548
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.553
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -29885,7 +30017,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.549
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.554
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -29898,60 +30030,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.55
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.550
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.555
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -29967,7 +30046,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.551
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.556
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -29984,7 +30063,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.552
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.557
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -29993,7 +30072,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.553
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.558
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -30039,7 +30118,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.554
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.559
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -30085,7 +30164,21 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.555
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.56
+ '''
+ SELECT COUNT(*) AS "__count"
+ FROM "posthog_dashboard"
+ INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_filesystemviewlog" recent_dashboard_views ON ("posthog_team"."id" = recent_dashboard_views."team_id"
+ AND ((recent_dashboard_views."user_id" = 99999
+ AND recent_dashboard_views."type" = 'dashboard'
+ AND recent_dashboard_views."ref" = ("posthog_dashboard"."id")::varchar)))
+ WHERE ("posthog_team"."project_id" = 99999
+ AND NOT ("posthog_dashboard"."deleted")
+ AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.560
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -30223,7 +30316,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.556
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.561
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -30278,7 +30371,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.557
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.562
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -30301,7 +30394,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.558
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.563
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -30354,7 +30447,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.559
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.564
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -30368,21 +30461,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.56
- '''
- SELECT COUNT(*) AS "__count"
- FROM "posthog_dashboard"
- INNER JOIN "posthog_team" ON ("posthog_dashboard"."team_id" = "posthog_team"."id")
- LEFT OUTER JOIN "posthog_filesystemviewlog" recent_dashboard_views ON ("posthog_team"."id" = recent_dashboard_views."team_id"
- AND ((recent_dashboard_views."user_id" = 99999
- AND recent_dashboard_views."type" = 'dashboard'
- AND recent_dashboard_views."ref" = ("posthog_dashboard"."id")::varchar)))
- WHERE ("posthog_team"."project_id" = 99999
- AND NOT ("posthog_dashboard"."deleted")
- AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.560
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.565
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -30487,7 +30566,7 @@
LIMIT 300
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.561
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.566
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -30510,7 +30589,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.562
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.567
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
@@ -31108,18 +31187,16 @@
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.69
'''
- 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
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.7
@@ -31191,6 +31268,22 @@
'''
# ---
# name: TestDashboard.test_listing_dashboards_is_not_nplus1.72
+ '''
+ 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_listing_dashboards_is_not_nplus1.73
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -31209,7 +31302,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.73
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.74
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -31229,7 +31322,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.74
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.75
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -31586,7 +31679,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.75
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.76
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -31595,7 +31688,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.76
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.77
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -31641,7 +31734,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.77
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.78
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -31687,7 +31780,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.78
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.79
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -31825,7 +31918,22 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.79
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.8
+ '''
+ SELECT "posthog_cimdverificationtoken"."id",
+ "posthog_cimdverificationtoken"."organization_id",
+ "posthog_cimdverificationtoken"."label",
+ "posthog_cimdverificationtoken"."cimd_url",
+ "posthog_cimdverificationtoken"."mask_value",
+ "posthog_cimdverificationtoken"."secure_value",
+ "posthog_cimdverificationtoken"."created_by_id",
+ "posthog_cimdverificationtoken"."created_at",
+ "posthog_cimdverificationtoken"."last_used_at"
+ FROM "posthog_cimdverificationtoken"
+ WHERE "posthog_cimdverificationtoken"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.80
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -31880,22 +31988,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.8
- '''
- SELECT "posthog_cimdverificationtoken"."id",
- "posthog_cimdverificationtoken"."organization_id",
- "posthog_cimdverificationtoken"."label",
- "posthog_cimdverificationtoken"."cimd_url",
- "posthog_cimdverificationtoken"."mask_value",
- "posthog_cimdverificationtoken"."secure_value",
- "posthog_cimdverificationtoken"."created_by_id",
- "posthog_cimdverificationtoken"."created_at",
- "posthog_cimdverificationtoken"."last_used_at"
- FROM "posthog_cimdverificationtoken"
- WHERE "posthog_cimdverificationtoken"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.80
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.81
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -31918,7 +32011,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.81
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.82
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -31971,7 +32064,7 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.82
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.83
'''
SELECT "posthog_dashboard"."id" AS "id"
FROM "posthog_dashboard"
@@ -31991,7 +32084,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.83
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.84
'''
SELECT "posthog_dashboard"."id" AS "id",
"posthog_dashboard"."name" AS "name"
@@ -32004,7 +32097,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.84
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.85
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -32017,7 +32110,7 @@
AND "posthog_dashboardtile"."deleted" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.85
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.86
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -32049,7 +32142,7 @@
5 /* ... */))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.86
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.87
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -32147,7 +32240,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.87
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.88
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -32193,7 +32286,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.88
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.89
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -32291,7 +32384,22 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.89
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.9
+ '''
+ SELECT "posthog_cimdverificationtoken"."id",
+ "posthog_cimdverificationtoken"."organization_id",
+ "posthog_cimdverificationtoken"."label",
+ "posthog_cimdverificationtoken"."cimd_url",
+ "posthog_cimdverificationtoken"."mask_value",
+ "posthog_cimdverificationtoken"."secure_value",
+ "posthog_cimdverificationtoken"."created_by_id",
+ "posthog_cimdverificationtoken"."created_at",
+ "posthog_cimdverificationtoken"."last_used_at"
+ FROM "posthog_cimdverificationtoken"
+ WHERE "posthog_cimdverificationtoken"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ '''
+# ---
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.90
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -32316,22 +32424,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.9
- '''
- SELECT "posthog_cimdverificationtoken"."id",
- "posthog_cimdverificationtoken"."organization_id",
- "posthog_cimdverificationtoken"."label",
- "posthog_cimdverificationtoken"."cimd_url",
- "posthog_cimdverificationtoken"."mask_value",
- "posthog_cimdverificationtoken"."secure_value",
- "posthog_cimdverificationtoken"."created_by_id",
- "posthog_cimdverificationtoken"."created_at",
- "posthog_cimdverificationtoken"."last_used_at"
- FROM "posthog_cimdverificationtoken"
- WHERE "posthog_cimdverificationtoken"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- '''
-# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.90
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.91
'''
SELECT "posthog_insightviewed"."id",
"posthog_insightviewed"."team_id",
@@ -32349,7 +32442,7 @@
UPDATE
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.91
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.92
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -32395,7 +32488,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.92
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.93
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -32493,7 +32586,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.93
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.94
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -32522,7 +32615,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.94
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.95
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -32551,7 +32644,7 @@
AND "posthog_dashboardtile"."insight_id" = 99999)
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.95
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.96
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -32571,7 +32664,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.96
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.97
'''
SELECT "posthog_teamrevenueanalyticsconfig"."team_id",
"posthog_teamrevenueanalyticsconfig"."filter_test_accounts",
@@ -32584,7 +32677,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.97
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.98
'''
SELECT "posthog_teammarketinganalyticsconfig"."team_id",
"posthog_teammarketinganalyticsconfig"."attribution_window_days",
@@ -32600,7 +32693,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.98
+# name: TestDashboard.test_listing_dashboards_is_not_nplus1.99
'''
SELECT "customer_analytics_teamcustomeranalyticsconfig"."team_id",
"customer_analytics_teamcustomeranalyticsconfig"."activity_event",
@@ -32617,15 +32710,6 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_listing_dashboards_is_not_nplus1.99
- '''
- 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_retrieve_dashboard
'''
SELECT "posthog_filesystem"."team_id",
@@ -33872,6 +33956,20 @@
'''
# ---
# name: TestDashboard.test_retrieve_dashboard_list.14
+ '''
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
+ '''
+# ---
+# name: TestDashboard.test_retrieve_dashboard_list.15
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -33887,7 +33985,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.15
+# name: TestDashboard.test_retrieve_dashboard_list.16
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -33903,7 +34001,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.16
+# name: TestDashboard.test_retrieve_dashboard_list.17
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -33919,7 +34017,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.17
+# name: TestDashboard.test_retrieve_dashboard_list.18
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -33938,7 +34036,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.18
+# name: TestDashboard.test_retrieve_dashboard_list.19
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -33958,7 +34056,145 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.19
+# name: TestDashboard.test_retrieve_dashboard_list.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"."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_retrieve_dashboard_list.20
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -34315,145 +34551,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.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"."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_retrieve_dashboard_list.20
+# name: TestDashboard.test_retrieve_dashboard_list.21
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -34462,7 +34560,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.21
+# name: TestDashboard.test_retrieve_dashboard_list.22
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -34508,7 +34606,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.22
+# name: TestDashboard.test_retrieve_dashboard_list.23
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -34554,7 +34652,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.23
+# name: TestDashboard.test_retrieve_dashboard_list.24
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -34692,7 +34790,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.24
+# name: TestDashboard.test_retrieve_dashboard_list.25
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -34747,7 +34845,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.25
+# name: TestDashboard.test_retrieve_dashboard_list.26
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -34770,7 +34868,94 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.26
+# name: TestDashboard.test_retrieve_dashboard_list.27
+ '''
+ SELECT "posthog_organizationmembership"."id",
+ "posthog_organizationmembership"."organization_id",
+ "posthog_organizationmembership"."user_id",
+ "posthog_organizationmembership"."level",
+ "posthog_organizationmembership"."joined_at",
+ "posthog_organizationmembership"."updated_at",
+ "posthog_organizationmembership"."invited_by_id",
+ "posthog_organization"."id",
+ "posthog_organization"."name",
+ "posthog_organization"."slug",
+ "posthog_organization"."logo_media_id",
+ "posthog_organization"."created_at",
+ "posthog_organization"."updated_at",
+ "posthog_organization"."is_active",
+ "posthog_organization"."is_not_active_reason",
+ "posthog_organization"."session_cookie_age",
+ "posthog_organization"."is_member_join_email_enabled",
+ "posthog_organization"."is_ai_data_processing_approved",
+ "posthog_organization"."is_ai_training_opted_in",
+ "posthog_organization"."is_ai_training_locked",
+ "posthog_organization"."is_ai_training_cta_shown",
+ "posthog_organization"."enforce_2fa",
+ "posthog_organization"."enforce_verified_domains",
+ "posthog_organization"."members_can_invite",
+ "posthog_organization"."members_can_create_projects",
+ "posthog_organization"."members_can_use_personal_api_keys",
+ "posthog_organization"."members_can_see_org_members",
+ "posthog_organization"."uses_most_specific_access_resolution",
+ "posthog_organization"."allow_publicly_shared_resources",
+ "posthog_organization"."member_notice",
+ "posthog_organization"."read_only_mcp_access",
+ "posthog_organization"."default_role_id",
+ "posthog_organization"."plugins_access_level",
+ "posthog_organization"."for_internal_metrics",
+ "posthog_organization"."default_anonymize_ips",
+ "posthog_organization"."is_pending_deletion",
+ "posthog_organization"."customer_id",
+ "posthog_organization"."available_product_features",
+ "posthog_organization"."usage",
+ "posthog_organization"."never_drop_data",
+ "posthog_organization"."customer_trust_scores",
+ "posthog_organization"."has_active_subscription",
+ "posthog_organization"."setup_section_2_completed",
+ "posthog_organization"."personalization",
+ "posthog_organization"."domain_whitelist",
+ "posthog_organization"."is_platform"
+ FROM "posthog_organizationmembership"
+ INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
+ WHERE "posthog_organizationmembership"."user_id" = 99999
+ '''
+# ---
+# name: TestDashboard.test_retrieve_dashboard_list.28
+ '''
+ 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_retrieve_dashboard_list.29
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE ("ee_accesscontrol"."resource" = 'project'
+ AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid)
+ AND ("posthog_organizationmembership"."user_id" = 99999
+ OR ("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL)))
+ '''
+# ---
+# name: TestDashboard.test_retrieve_dashboard_list.3
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -34820,44 +35005,12 @@
"posthog_organization"."is_platform"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE "posthog_organizationmembership"."user_id" = 99999
- '''
-# ---
-# name: TestDashboard.test_retrieve_dashboard_list.27
- '''
- 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_retrieve_dashboard_list.28
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE ("ee_accesscontrol"."resource" = 'project'
- AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid)
- AND ("posthog_organizationmembership"."user_id" = 99999
- OR ("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL)))
+ WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999)
+ LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.29
+# name: TestDashboard.test_retrieve_dashboard_list.30
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -34873,62 +35026,7 @@
AND NOT "posthog_dashboard"."deleted")
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.3
- '''
- SELECT "posthog_organizationmembership"."id",
- "posthog_organizationmembership"."organization_id",
- "posthog_organizationmembership"."user_id",
- "posthog_organizationmembership"."level",
- "posthog_organizationmembership"."joined_at",
- "posthog_organizationmembership"."updated_at",
- "posthog_organizationmembership"."invited_by_id",
- "posthog_organization"."id",
- "posthog_organization"."name",
- "posthog_organization"."slug",
- "posthog_organization"."logo_media_id",
- "posthog_organization"."created_at",
- "posthog_organization"."updated_at",
- "posthog_organization"."is_active",
- "posthog_organization"."is_not_active_reason",
- "posthog_organization"."session_cookie_age",
- "posthog_organization"."is_member_join_email_enabled",
- "posthog_organization"."is_ai_data_processing_approved",
- "posthog_organization"."is_ai_training_opted_in",
- "posthog_organization"."is_ai_training_locked",
- "posthog_organization"."is_ai_training_cta_shown",
- "posthog_organization"."enforce_2fa",
- "posthog_organization"."enforce_verified_domains",
- "posthog_organization"."members_can_invite",
- "posthog_organization"."members_can_create_projects",
- "posthog_organization"."members_can_use_personal_api_keys",
- "posthog_organization"."members_can_see_org_members",
- "posthog_organization"."uses_most_specific_access_resolution",
- "posthog_organization"."allow_publicly_shared_resources",
- "posthog_organization"."member_notice",
- "posthog_organization"."read_only_mcp_access",
- "posthog_organization"."default_role_id",
- "posthog_organization"."plugins_access_level",
- "posthog_organization"."for_internal_metrics",
- "posthog_organization"."default_anonymize_ips",
- "posthog_organization"."is_pending_deletion",
- "posthog_organization"."customer_id",
- "posthog_organization"."available_product_features",
- "posthog_organization"."usage",
- "posthog_organization"."never_drop_data",
- "posthog_organization"."customer_trust_scores",
- "posthog_organization"."has_active_subscription",
- "posthog_organization"."setup_section_2_completed",
- "posthog_organization"."personalization",
- "posthog_organization"."domain_whitelist",
- "posthog_organization"."is_platform"
- FROM "posthog_organizationmembership"
- INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
- WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999)
- LIMIT 21
- '''
-# ---
-# name: TestDashboard.test_retrieve_dashboard_list.30
+# name: TestDashboard.test_retrieve_dashboard_list.31
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -35026,7 +35124,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.31
+# name: TestDashboard.test_retrieve_dashboard_list.32
'''
SELECT "posthog_filesystem"."team_id",
"posthog_filesystem"."id",
@@ -35051,7 +35149,7 @@
AND "posthog_filesystem"."shortcut" IS NOT NULL))
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.32
+# name: TestDashboard.test_retrieve_dashboard_list.33
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboardtile"
@@ -35063,7 +35161,7 @@
AND NOT ("posthog_dashboardtile"."insight_id" IS NULL))
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.33
+# name: TestDashboard.test_retrieve_dashboard_list.34
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -35082,7 +35180,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.34
+# name: TestDashboard.test_retrieve_dashboard_list.35
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_taggeditem"
@@ -35090,7 +35188,21 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.35
+# name: TestDashboard.test_retrieve_dashboard_list.36
+ '''
+ SELECT "posthog_dashboardtile"."group_key" AS "group_key"
+ FROM "posthog_dashboardtile"
+ INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id")
+ LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_dashboardtile"."insight_id" = "posthog_dashboarditem"."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_dashboarditem"."deleted"
+ OR "posthog_dashboardtile"."insight_id" IS NULL))
+ '''
+# ---
+# name: TestDashboard.test_retrieve_dashboard_list.37
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -35106,7 +35218,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.36
+# name: TestDashboard.test_retrieve_dashboard_list.38
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -35122,7 +35234,7 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.37
+# name: TestDashboard.test_retrieve_dashboard_list.39
'''
SELECT "posthog_filesystem"."id" AS "id",
"posthog_filesystem"."path" AS "path"
@@ -35138,7 +35250,30 @@
LIMIT 1
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.38
+# name: TestDashboard.test_retrieve_dashboard_list.4
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999)
+ OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
+ AND "posthog_organizationmembership"."user_id" = 99999
+ AND "ee_accesscontrol"."role_id" IS NULL
+ AND "ee_accesscontrol"."team_id" = 99999))
+ '''
+# ---
+# name: TestDashboard.test_retrieve_dashboard_list.40
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -35157,7 +35292,7 @@
WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.39
+# name: TestDashboard.test_retrieve_dashboard_list.41
'''
SELECT "posthog_insightvariable"."id",
"posthog_insightvariable"."name",
@@ -35177,30 +35312,7 @@
ORDER BY "posthog_insightvariable"."name" ASC
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.4
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE (("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999)
- OR ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
- AND "posthog_organizationmembership"."user_id" = 99999
- AND "ee_accesscontrol"."role_id" IS NULL
- AND "ee_accesscontrol"."team_id" = 99999))
- '''
-# ---
-# name: TestDashboard.test_retrieve_dashboard_list.40
+# name: TestDashboard.test_retrieve_dashboard_list.42
'''
SELECT "posthog_dashboardtile"."id",
"posthog_dashboardtile"."dashboard_id",
@@ -35557,7 +35669,7 @@
ORDER BY "posthog_dashboarditem"."order" ASC
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.41
+# name: TestDashboard.test_retrieve_dashboard_list.43
'''
SELECT "posthog_tag"."name" AS "tag__name"
FROM "posthog_taggeditem"
@@ -35566,7 +35678,7 @@
AND "posthog_taggeditem"."object_id" = 99999)
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.42
+# name: TestDashboard.test_retrieve_dashboard_list.44
'''
SELECT "posthog_user"."id",
"posthog_user"."password",
@@ -35612,7 +35724,7 @@
AND "posthog_user"."id" = 99999)
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.43
+# name: TestDashboard.test_retrieve_dashboard_list.45
'''
SELECT "posthog_organization"."id",
"posthog_organization"."name",
@@ -35658,7 +35770,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.44
+# name: TestDashboard.test_retrieve_dashboard_list.46
'''
SELECT "posthog_team"."id",
"posthog_team"."uuid",
@@ -35796,7 +35908,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.45
+# name: TestDashboard.test_retrieve_dashboard_list.47
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -35851,7 +35963,7 @@
LIMIT 21
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.46
+# name: TestDashboard.test_retrieve_dashboard_list.48
'''
SELECT "ee_accesscontrol"."id",
"ee_accesscontrol"."team_id",
@@ -35874,7 +35986,7 @@
AND "ee_accesscontrol"."team_id" = 99999))
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.47
+# name: TestDashboard.test_retrieve_dashboard_list.49
'''
SELECT "posthog_organizationmembership"."id",
"posthog_organizationmembership"."organization_id",
@@ -35927,40 +36039,6 @@
WHERE "posthog_organizationmembership"."user_id" = 99999
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.48
- '''
- 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_retrieve_dashboard_list.49
- '''
- SELECT "ee_accesscontrol"."id",
- "ee_accesscontrol"."team_id",
- "ee_accesscontrol"."access_level",
- "ee_accesscontrol"."resource",
- "ee_accesscontrol"."resource_id",
- "ee_accesscontrol"."organization_member_id",
- "ee_accesscontrol"."role_id",
- "ee_accesscontrol"."created_by_id",
- "ee_accesscontrol"."created_at",
- "ee_accesscontrol"."updated_at"
- FROM "ee_accesscontrol"
- INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")
- LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
- WHERE ("ee_accesscontrol"."resource" = 'project'
- AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid)
- AND ("posthog_organizationmembership"."user_id" = 99999
- OR ("ee_accesscontrol"."organization_member_id" IS NULL
- AND "ee_accesscontrol"."role_id" IS NULL)))
- '''
-# ---
# name: TestDashboard.test_retrieve_dashboard_list.5
'''
SELECT "posthog_organizationmembership"."id",
@@ -36015,6 +36093,40 @@
'''
# ---
# name: TestDashboard.test_retrieve_dashboard_list.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_retrieve_dashboard_list.51
+ '''
+ SELECT "ee_accesscontrol"."id",
+ "ee_accesscontrol"."team_id",
+ "ee_accesscontrol"."access_level",
+ "ee_accesscontrol"."resource",
+ "ee_accesscontrol"."resource_id",
+ "ee_accesscontrol"."organization_member_id",
+ "ee_accesscontrol"."role_id",
+ "ee_accesscontrol"."created_by_id",
+ "ee_accesscontrol"."created_at",
+ "ee_accesscontrol"."updated_at"
+ FROM "ee_accesscontrol"
+ INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id")
+ LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id")
+ WHERE ("ee_accesscontrol"."resource" = 'project'
+ AND "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid)
+ AND ("posthog_organizationmembership"."user_id" = 99999
+ OR ("ee_accesscontrol"."organization_member_id" IS NULL
+ AND "ee_accesscontrol"."role_id" IS NULL)))
+ '''
+# ---
+# name: TestDashboard.test_retrieve_dashboard_list.52
'''
SELECT COUNT(*) AS "__count"
FROM "posthog_dashboard"
@@ -36028,7 +36140,7 @@
AND NOT ("posthog_dashboard"."creation_mode" = 'unlisted'))
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.51
+# name: TestDashboard.test_retrieve_dashboard_list.53
'''
SELECT "posthog_dashboard"."id",
"posthog_dashboard"."name",
@@ -36133,7 +36245,7 @@
LIMIT 100
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.52
+# name: TestDashboard.test_retrieve_dashboard_list.54
'''
SELECT "posthog_sharingconfiguration"."id",
"posthog_sharingconfiguration"."team_id",
@@ -36156,7 +36268,7 @@
5 /* ... */)
'''
# ---
-# name: TestDashboard.test_retrieve_dashboard_list.53
+# name: TestDashboard.test_retrieve_dashboard_list.55
'''
SELECT "posthog_taggeditem"."id",
"posthog_taggeditem"."tag_id",
diff --git a/posthog/api/test/dashboards/test_dashboard.py b/posthog/api/test/dashboards/test_dashboard.py
index b0cf6c86b0ad..2b3979607de1 100644
--- a/posthog/api/test/dashboards/test_dashboard.py
+++ b/posthog/api/test/dashboards/test_dashboard.py
@@ -2153,6 +2153,13 @@ class TestDashboard(APIBaseTest, QueryMatchingTest):
]
self.assertEqual(len(marking_calls), 1)
self.assertEqual(marking_calls[0].args[2]["badge"], "winner")
+ group_created_calls = [
+ call for call in mock_report_user_action.call_args_list if call.args[1] == "dashboard tile group created"
+ ]
+ self.assertEqual(
+ [call.args[2] for call in group_created_calls],
+ [{"dashboard_id": dashboard_id, "group_display": "sections", "group_count": 1}],
+ )
_, copied = self.dashboard_api.create_dashboard(
{"name": "copy", "use_dashboard": dashboard_id, "duplicate_tiles": duplicate_tiles}
@@ -2202,6 +2209,77 @@ class TestDashboard(APIBaseTest, QueryMatchingTest):
self.assertEqual([tile["badge"] for tile in dashboard["tiles"]], [None, None])
self.assertEqual(dashboard["customization"], {})
+ @patch("products.dashboards.backend.api.dashboard.report_user_action")
+ def test_dashboard_tile_group_created_is_reported_once_per_new_group_for_content_tiles(
+ self, mock_report_user_action: MagicMock
+ ) -> None:
+ dashboard_id, _ = self.dashboard_api.create_dashboard({"name": "test"})
+ mock_report_user_action.reset_mock()
+
+ self.dashboard_api.update_dashboard(
+ dashboard_id,
+ {
+ "tiles": [
+ {"text": {"body": "a"}, "layouts": {}, "group_key": "plans"},
+ {"text": {"body": "b"}, "layouts": {}, "group_key": "plans"},
+ ]
+ },
+ )
+
+ group_created_calls = [
+ call for call in mock_report_user_action.call_args_list if call.args[1] == "dashboard tile group created"
+ ]
+ self.assertEqual(
+ [call.args[2] for call in group_created_calls],
+ [{"dashboard_id": dashboard_id, "group_display": "sections", "group_count": 1}],
+ )
+
+ @patch("products.dashboards.backend.api.dashboard.report_user_action")
+ def test_dashboard_tile_group_created_ignores_tiles_hidden_by_a_deleted_insight(
+ self, mock_report_user_action: MagicMock
+ ) -> None:
+ dashboard_id, _ = self.dashboard_api.create_dashboard({"name": "test"})
+ self.dashboard_api.create_insight({"dashboards": [dashboard_id], "name": "insight"})
+ tile_id = self.dashboard_api.get_dashboard(dashboard_id)["tiles"][0]["id"]
+ self.dashboard_api.update_dashboard(dashboard_id, {"tiles": [{"id": tile_id, "group_key": "plans"}]})
+ Insight.objects.filter(team=self.team).update(deleted=True)
+ mock_report_user_action.reset_mock()
+
+ self.dashboard_api.update_dashboard(
+ dashboard_id, {"tiles": [{"text": {"body": "a"}, "layouts": {}, "group_key": "plans"}]}
+ )
+
+ group_created_calls = [
+ call for call in mock_report_user_action.call_args_list if call.args[1] == "dashboard tile group created"
+ ]
+ self.assertEqual(
+ [call.args[2] for call in group_created_calls],
+ [{"dashboard_id": dashboard_id, "group_display": "sections", "group_count": 1}],
+ )
+
+ @patch("products.dashboards.backend.api.dashboard.report_user_action")
+ def test_dashboard_tile_group_created_is_not_reported_when_the_update_rolls_back(
+ self, mock_report_user_action: MagicMock
+ ) -> None:
+ dashboard_id, _ = self.dashboard_api.create_dashboard({"name": "test"})
+ mock_report_user_action.reset_mock()
+
+ self.dashboard_api.update_dashboard(
+ dashboard_id,
+ {
+ "tiles": [
+ {"text": {"body": "a"}, "layouts": {}, "group_key": "plans"},
+ {"id": 999999, "group_key": "plans"},
+ ]
+ },
+ expected_status=status.HTTP_400_BAD_REQUEST,
+ )
+
+ self.assertEqual(
+ [call for call in mock_report_user_action.call_args_list if call.args[1] == "dashboard tile group created"],
+ [],
+ )
+
@parameterized.expand(
[
("unknown_badge", {"badge": "Winner"}, "badge"),
@@ -2248,6 +2326,8 @@ class TestDashboard(APIBaseTest, QueryMatchingTest):
"duplicated": False,
"duplicated_from_dashboard_id": None,
"from_template": True,
+ "group_count": 0,
+ "group_display": "sections",
"has_description": True,
"is_shared": False,
"item_count": 6,
@@ -2294,6 +2374,8 @@ class TestDashboard(APIBaseTest, QueryMatchingTest):
"created_at": mock.ANY,
"creation_mode": "default",
"dashboard_id": dashboard_id,
+ "group_count": 0,
+ "group_display": "sections",
"has_description": False,
"is_shared": False,
"item_count": 0,
@@ -3611,6 +3693,8 @@ class TestDashboard(APIBaseTest, QueryMatchingTest):
"dashboard_id": dashboard["id"],
"duplicated": False,
"from_template": True,
+ "group_count": 0,
+ "group_display": "sections",
"has_description": True,
"is_shared": False,
"item_count": 1,
diff --git a/posthog/models/resource_transfer/test/__snapshots__/test_visitor_field_snapshots.ambr b/posthog/models/resource_transfer/test/__snapshots__/test_visitor_field_snapshots.ambr
index 56fa7f52a784..f6cbaeea6437 100644
--- a/posthog/models/resource_transfer/test/__snapshots__/test_visitor_field_snapshots.ambr
+++ b/posthog/models/resource_transfer/test/__snapshots__/test_visitor_field_snapshots.ambr
@@ -591,6 +591,7 @@
'get_file_system_unfiled',
'get_next_by_created_at',
'get_previous_by_created_at',
+ 'group_display',
'id',
'is_shared',
'is_sharing_enabled',
@@ -604,6 +605,8 @@
'sharingconfiguration_set',
'tagged_items',
'team_id',
+ 'tile_group_count',
+ 'tile_group_keys',
'tiles',
'url',
])
diff --git a/products/dashboards/backend/api/dashboard.py b/products/dashboards/backend/api/dashboard.py
index a100bb45ebc5..c5be846196b7 100644
--- a/products/dashboards/backend/api/dashboard.py
+++ b/products/dashboards/backend/api/dashboard.py
@@ -166,7 +166,6 @@ from products.dashboards.backend.models.dashboard import (
DASHBOARD_GRID_SPACING_GAPS,
DASHBOARD_TILE_GROUP_DISPLAY_MODES,
Dashboard,
- TileGroupDisplay,
)
from products.dashboards.backend.models.dashboard_tile import ButtonTile, DashboardTile, DashboardTileBadge, Text
from products.dashboards.backend.models.dashboard_widget import DashboardWidget
@@ -261,10 +260,6 @@ def _effective_layout_compaction(customization: Any) -> str:
return layout_compaction if layout_compaction in DASHBOARD_GRID_COMPACTION_MODES else "vertical"
-def _effective_group_display(customization: Any) -> str:
- return stored_customization(customization).get("group_display", TileGroupDisplay.SECTIONS)
-
-
logger = structlog.get_logger(__name__)
DASHBOARD_TILE_ERROR_TYPE = "DashboardTileError"
@@ -2168,7 +2163,7 @@ class DashboardSerializer(DashboardMetadataSerializer):
@monitor(feature=Feature.DASHBOARD, endpoint="dashboard", method="PATCH")
def update(self, instance: Dashboard, validated_data: dict, *args: Any, **kwargs: Any) -> Dashboard:
previous_layout_compaction = _effective_layout_compaction(instance.customization)
- previous_group_display = _effective_group_display(instance.customization)
+ previous_group_display = instance.group_display
self._check_delivered_dashboard_filters_access(
cast(User, self.context["request"].user), instance, self.initial_data
)
@@ -2246,6 +2241,8 @@ class DashboardSerializer(DashboardMetadataSerializer):
# so a later tile failing validation must roll that back too, or a retry with the
# original text_id can no longer find the tile.
tile_results: list[tuple[DashboardTile | None, bool]] = []
+ tracks_groups = any("group_key" in tile_data for tile_data in tiles)
+ group_keys_before = instance.tile_group_keys if tracks_groups else set()
with transaction.atomic():
tile_ids = [tile["id"] for tile in tiles if tile.get("id") is not None]
list(
@@ -2273,6 +2270,21 @@ class DashboardSerializer(DashboardMetadataSerializer):
tile=tile,
)
+ if tracks_groups and "request" in self.context:
+ group_keys_after = instance.tile_group_keys
+ for _ in group_keys_after - group_keys_before:
+ report_user_action(
+ user,
+ "dashboard tile group created",
+ {
+ "dashboard_id": instance.id,
+ "group_display": instance.group_display,
+ "group_count": len(group_keys_after),
+ },
+ team=instance.team,
+ request=self.context["request"],
+ )
+
duplicate_tiles = initial_data.pop("duplicate_tiles", [])
if duplicate_tiles:
user_access_control = UserAccessControl(user=user, team=instance.team)
diff --git a/products/dashboards/backend/models/dashboard.py b/products/dashboards/backend/models/dashboard.py
index 9bc601d80c22..467ba50fd278 100644
--- a/products/dashboards/backend/models/dashboard.py
+++ b/products/dashboards/backend/models/dashboard.py
@@ -2,7 +2,7 @@ from typing import TYPE_CHECKING, Any
from django.contrib.postgres.fields import ArrayField
from django.db import models
-from django.db.models import QuerySet
+from django.db.models import Q, QuerySet
from posthog.models.activity_logging.model_activity import ModelActivityMixin
from posthog.models.file_system.constants import DEFAULT_SURFACE
@@ -178,4 +178,20 @@ class Dashboard(Taggable, FileSystemSyncMixin, ModelActivityMixin, RootTeamMixin
"has_description": self.description != "",
"tags_count": self.tagged_items.count(),
"creation_mode": self.creation_mode,
+ "group_display": self.group_display,
+ "group_count": self.tile_group_count,
}
+
+ @property
+ def group_display(self) -> str:
+ group_display = self.customization.get("group_display") if isinstance(self.customization, dict) else None
+ return group_display if group_display in DASHBOARD_TILE_GROUP_DISPLAY_MODES else TileGroupDisplay.SECTIONS
+
+ @property
+ def tile_group_keys(self) -> set[str]:
+ visible_tiles = self.tiles.filter(Q(insight__deleted=False) | Q(insight__isnull=True))
+ return {group_key for group_key in visible_tiles.values_list("group_key", flat=True) if group_key}
+
+ @property
+ def tile_group_count(self) -> int:
+ return len(self.tile_group_keys)