diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 139036664c6bf..20a3dbf314649 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Automerge if: env.IS_POSTHOG_BOT_AVAILABLE == 'true' - uses: pascalgn/automerge-action@v0.15.5 + uses: pascalgn/automerge-action@v0.16.3 env: GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - run: echo diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index b70fa6dfcc673..607a86166a10f 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.1 @@ -53,7 +53,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.10 @@ -79,7 +79,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.11 @@ -88,7 +88,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.12 @@ -102,14 +102,14 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.13 ''' SELECT COUNT(*) AS "__count" FROM "ee_organizationresourceaccess" - WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.14 @@ -123,7 +123,7 @@ "ee_organizationresourceaccess"."updated_at" FROM "ee_organizationresourceaccess" WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.2 @@ -149,7 +149,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.3 @@ -158,7 +158,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.4 @@ -172,7 +172,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.5 @@ -183,14 +183,14 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.6 ''' SELECT COUNT(*) AS "__count" FROM "ee_organizationresourceaccess" - WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.7 @@ -204,7 +204,7 @@ "ee_organizationresourceaccess"."updated_at" FROM "ee_organizationresourceaccess" WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.8 @@ -235,7 +235,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.9 @@ -261,6 +261,6 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/ee/clickhouse/queries/experiments/trend_experiment_result.py b/ee/clickhouse/queries/experiments/trend_experiment_result.py index da295cb7a150e..02974d8bd8252 100644 --- a/ee/clickhouse/queries/experiments/trend_experiment_result.py +++ b/ee/clickhouse/queries/experiments/trend_experiment_result.py @@ -1,3 +1,4 @@ +import json from dataclasses import asdict, dataclass from datetime import datetime from functools import lru_cache @@ -20,6 +21,7 @@ TRENDS_LINEAR, UNIQUE_USERS, ExperimentSignificanceCode, + ExperimentNoResultsErrorKeys, ) from posthog.models.feature_flag import FeatureFlag from posthog.models.filters.filter import Filter @@ -467,34 +469,36 @@ def calculate_p_value(control_variant: Variant, test_variants: List[Variant]) -> ) -def validate_event_variants(insight_results, variants): - if not insight_results or not insight_results[0]: - raise ValidationError("No experiment events have been ingested yet.", code="no-events") +def validate_event_variants(trend_results, variants): + errors = { + ExperimentNoResultsErrorKeys.NO_EVENTS: True, + ExperimentNoResultsErrorKeys.NO_FLAG_INFO: True, + ExperimentNoResultsErrorKeys.NO_CONTROL_VARIANT: True, + ExperimentNoResultsErrorKeys.NO_TEST_VARIANT: True, + } - missing_variants = [] + if not trend_results or not trend_results[0]: + raise ValidationError(code="no-results", detail=json.dumps(errors)) + + errors[ExperimentNoResultsErrorKeys.NO_EVENTS] = False # Check if "control" is present - control_found = False - for event in insight_results: + for event in trend_results: event_variant = event.get("breakdown_value") if event_variant == "control": - control_found = True + errors[ExperimentNoResultsErrorKeys.NO_CONTROL_VARIANT] = False + errors[ExperimentNoResultsErrorKeys.NO_FLAG_INFO] = False break - if not control_found: - missing_variants.append("control") # Check if at least one of the test variants is present test_variants = [variant for variant in variants if variant != "control"] - test_variant_found = False - for event in insight_results: + for event in trend_results: event_variant = event.get("breakdown_value") if event_variant in test_variants: - test_variant_found = True + errors[ExperimentNoResultsErrorKeys.NO_TEST_VARIANT] = False + errors[ExperimentNoResultsErrorKeys.NO_FLAG_INFO] = False break - if not test_variant_found: - missing_variants.extend(test_variants) - if not len(missing_variants) == 0: - missing_variants_str = ", ".join(missing_variants) - message = f"No experiment events have been ingested yet for the following variants: {missing_variants_str}" - raise ValidationError(message, code=f"missing-flag-variants::{missing_variants_str}") + has_errors = any(errors.values()) + if has_errors: + raise ValidationError(detail=json.dumps(errors)) diff --git a/ee/clickhouse/queries/test/test_experiments.py b/ee/clickhouse/queries/test/test_experiments.py index 092884cf5d0c5..95aacc8ca0d60 100644 --- a/ee/clickhouse/queries/test/test_experiments.py +++ b/ee/clickhouse/queries/test/test_experiments.py @@ -134,79 +134,102 @@ def test_validate_event_variants_no_flag_info(self): class TestTrendExperiments(unittest.TestCase): def test_validate_event_variants_no_events(self): - expected_code = "no-events" - with self.assertRaises(ValidationError) as context: - validate_trend_event_variants([], ["test", "control"]) - - self.assertEqual(expected_code, context.exception.detail[0].code) + trend_results = [] - def test_validate_event_variants_missing_variants(self): - insight_results = [ + expected_errors = json.dumps( { - "action": { - "id": "step-b-0", - "type": "events", - "order": 0, - "name": "step-b-0", - }, - "label": "test", - "breakdown_value": "test", + ExperimentNoResultsErrorKeys.NO_EVENTS: True, + ExperimentNoResultsErrorKeys.NO_FLAG_INFO: True, + ExperimentNoResultsErrorKeys.NO_CONTROL_VARIANT: True, + ExperimentNoResultsErrorKeys.NO_TEST_VARIANT: True, } - ] + ) - expected_code = "missing-flag-variants::control" with self.assertRaises(ValidationError) as context: - validate_trend_event_variants(insight_results, ["test", "control"]) + validate_trend_event_variants(trend_results, ["test", "control"]) - self.assertEqual(expected_code, context.exception.detail[0].code) + self.assertEqual(context.exception.detail[0], expected_errors) - def test_validate_event_variants_missing_control(self): - insight_results = [ + def test_validate_event_variants_no_control(self): + trend_results = [ { "action": { - "id": "step-b-0", + "id": "trend-event", "type": "events", "order": 0, - "name": "step-b-0", + "name": "trend-event", }, "label": "test_1", "breakdown_value": "test_1", } ] - # Only 1 test variant is required to return results - expected_code = "missing-flag-variants::control" + expected_errors = json.dumps( + { + ExperimentNoResultsErrorKeys.NO_EVENTS: False, + ExperimentNoResultsErrorKeys.NO_FLAG_INFO: False, + ExperimentNoResultsErrorKeys.NO_CONTROL_VARIANT: True, + ExperimentNoResultsErrorKeys.NO_TEST_VARIANT: False, + } + ) + with self.assertRaises(ValidationError) as context: - validate_trend_event_variants(insight_results, ["control", "test_1", "test_2"]) + validate_trend_event_variants(trend_results, ["control", "test_1", "test_2"]) - self.assertEqual(expected_code, context.exception.detail[0].code) + self.assertEqual(context.exception.detail[0], expected_errors) - def test_validate_event_variants_ignore_old_variant(self): - insight_results = [ + def test_validate_event_variants_no_test(self): + trend_results = [ { "action": { - "id": "step-b-0", + "id": "trend-event", "type": "events", "order": 0, - "name": "step-b-0", + "name": "trend-event", }, - "label": "test", - "breakdown_value": "test", - }, + "label": "control", + "breakdown_value": "control", + } + ] + + expected_errors = json.dumps( + { + ExperimentNoResultsErrorKeys.NO_EVENTS: False, + ExperimentNoResultsErrorKeys.NO_FLAG_INFO: False, + ExperimentNoResultsErrorKeys.NO_CONTROL_VARIANT: False, + ExperimentNoResultsErrorKeys.NO_TEST_VARIANT: True, + } + ) + + with self.assertRaises(ValidationError) as context: + validate_trend_event_variants(trend_results, ["control", "test_1", "test_2"]) + + self.assertEqual(context.exception.detail[0], expected_errors) + + def test_validate_event_variants_no_flag_info(self): + trend_results = [ { "action": { - "id": "step-b-0", + "id": "trend-event", "type": "events", "order": 0, - "name": "step-b-0", + "name": "trend-event", }, - "label": "test", - "breakdown_value": "old-variant", - }, + "label": "", + "breakdown_value": "", + } ] - expected_code = "missing-flag-variants::control" + expected_errors = json.dumps( + { + ExperimentNoResultsErrorKeys.NO_EVENTS: False, + ExperimentNoResultsErrorKeys.NO_FLAG_INFO: True, + ExperimentNoResultsErrorKeys.NO_CONTROL_VARIANT: True, + ExperimentNoResultsErrorKeys.NO_TEST_VARIANT: True, + } + ) + with self.assertRaises(ValidationError) as context: - validate_trend_event_variants(insight_results, ["test", "control"]) + validate_trend_event_variants(trend_results, ["control", "test_1", "test_2"]) - self.assertEqual(expected_code, context.exception.detail[0].code) + self.assertEqual(context.exception.detail[0], expected_errors) diff --git a/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx b/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx index 9ef2439343a0e..6bb8ef2e6fc71 100644 --- a/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx +++ b/frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx @@ -35,6 +35,7 @@ export type LemonInputSelectProps = Pick< onBlur?: () => void onInputChange?: (newValue: string) => void 'data-attr'?: string + popoverClassName?: string } export function LemonInputSelect({ @@ -50,6 +51,7 @@ export function LemonInputSelect({ disableFiltering = false, allowCustomValues = false, autoFocus = false, + popoverClassName, ...props }: LemonInputSelectProps): JSX.Element { const [showPopover, setShowPopover] = useState(false) @@ -269,6 +271,7 @@ export function LemonInputSelect({ popoverFocusRef.current = true e.stopPropagation() }} + className={popoverClassName} overlay={
{visibleOptions.length ? ( diff --git a/frontend/src/scenes/experiments/ExperimentView/Info.tsx b/frontend/src/scenes/experiments/ExperimentView/Info.tsx index dcd6234bcc497..fa0a2e5cf9503 100644 --- a/frontend/src/scenes/experiments/ExperimentView/Info.tsx +++ b/frontend/src/scenes/experiments/ExperimentView/Info.tsx @@ -14,7 +14,7 @@ import { ProgressStatus } from '~/types' import { StatusTag } from '../Experiment' import { experimentLogic } from '../experimentLogic' import { getExperimentStatus } from '../experimentsLogic' -import { ResultsTag } from './components' +import { ActionBanner, ResultsTag } from './components' export function Info(): JSX.Element { const { experiment } = useValues(experimentLogic) @@ -102,6 +102,7 @@ export function Info(): JSX.Element { compactButtons />
+ ) } diff --git a/frontend/src/scenes/experiments/ExperimentView/ProgressBar.tsx b/frontend/src/scenes/experiments/ExperimentView/ProgressBar.tsx index 229003ead99ac..568c37b254758 100644 --- a/frontend/src/scenes/experiments/ExperimentView/ProgressBar.tsx +++ b/frontend/src/scenes/experiments/ExperimentView/ProgressBar.tsx @@ -1,32 +1,28 @@ import '../Experiment.scss' import { useValues } from 'kea' -import { dayjs } from 'lib/dayjs' import { LemonProgress } from 'lib/lemon-ui/LemonProgress' import { humanFriendlyNumber } from 'lib/utils' -import { FunnelStep, InsightType } from '~/types' +import { InsightType } from '~/types' import { experimentLogic } from '../experimentLogic' +import { formatUnitByQuantity } from '../utils' export function ProgressBar(): JSX.Element { - const { experiment, experimentResults, experimentInsightType } = useValues(experimentLogic) - - // Parameters for experiment results - // don't use creation variables in results - const funnelResultsPersonsTotal = - experimentInsightType === InsightType.FUNNELS && experimentResults?.insight - ? (experimentResults.insight as FunnelStep[][]).reduce( - (sum: number, variantResult: FunnelStep[]) => variantResult[0]?.count + sum, - 0 - ) - : 0 + const { + experiment, + experimentInsightType, + funnelResultsPersonsTotal, + recommendedSampleSize, + actualRunningTime, + recommendedRunningTime, + } = useValues(experimentLogic) const experimentProgressPercent = experimentInsightType === InsightType.FUNNELS - ? ((funnelResultsPersonsTotal || 0) / (experiment?.parameters?.recommended_sample_size || 1)) * 100 - : (dayjs().diff(experiment?.start_date, 'day') / (experiment?.parameters?.recommended_running_time || 1)) * - 100 + ? (funnelResultsPersonsTotal / recommendedSampleSize) * 100 + : (actualRunningTime / recommendedRunningTime) * 100 return (
@@ -48,15 +44,15 @@ export function ProgressBar(): JSX.Element {
{experiment.end_date ? (
- Ran for {dayjs(experiment.end_date).diff(experiment.start_date, 'day')} days + Ran for {actualRunningTime} {formatUnitByQuantity(actualRunningTime, 'day')}
) : (
- {dayjs().diff(experiment.start_date, 'day')} days running + {actualRunningTime} {formatUnitByQuantity(actualRunningTime, 'day')} running
)}
- Goal: {experiment?.parameters?.recommended_running_time ?? 'Unknown'} days + Goal: {recommendedRunningTime} {formatUnitByQuantity(recommendedRunningTime, 'day')}
)} @@ -64,16 +60,18 @@ export function ProgressBar(): JSX.Element {
{experiment.end_date ? (
- Saw {humanFriendlyNumber(funnelResultsPersonsTotal)} participants + Saw {humanFriendlyNumber(funnelResultsPersonsTotal)}{' '} + {formatUnitByQuantity(funnelResultsPersonsTotal, 'participant')}
) : (
- {humanFriendlyNumber(funnelResultsPersonsTotal)} participants seen + {humanFriendlyNumber(funnelResultsPersonsTotal)}{' '} + {formatUnitByQuantity(funnelResultsPersonsTotal, 'participant')} seen
)}
- Goal: {humanFriendlyNumber(experiment?.parameters?.recommended_sample_size || 0)}{' '} - participants + Goal: {humanFriendlyNumber(recommendedSampleSize)}{' '} + {formatUnitByQuantity(recommendedSampleSize, 'participant')}
)} diff --git a/frontend/src/scenes/experiments/ExperimentView/components.tsx b/frontend/src/scenes/experiments/ExperimentView/components.tsx index 6f2d5dcecb004..e0c7475a35986 100644 --- a/frontend/src/scenes/experiments/ExperimentView/components.tsx +++ b/frontend/src/scenes/experiments/ExperimentView/components.tsx @@ -1,14 +1,14 @@ import '../Experiment.scss' -import { IconCheckbox } from '@posthog/icons' -import { LemonButton, LemonDivider, LemonTag, LemonTagType } from '@posthog/lemon-ui' +import { IconCheck, IconX } from '@posthog/icons' +import { LemonBanner, LemonButton, LemonDivider, LemonTag, LemonTagType, Link } from '@posthog/lemon-ui' import { Empty } from 'antd' import { useActions, useValues } from 'kea' import { AnimationType } from 'lib/animations/animations' import { Animation } from 'lib/components/Animation/Animation' import { PageHeader } from 'lib/components/PageHeader' import { dayjs } from 'lib/dayjs' -import { IconAreaChart, IconSquare } from 'lib/lemon-ui/icons' +import { IconAreaChart } from 'lib/lemon-ui/icons' import { More } from 'lib/lemon-ui/LemonButton/More' import { capitalizeFirstLetter } from 'lib/utils' import { useEffect, useState } from 'react' @@ -152,8 +152,7 @@ export function ResultsHeader(): JSX.Element { } export function NoResultsEmptyState(): JSX.Element { - const { experimentResultsLoading, experimentResultCalculationError, experimentInsightType } = - useValues(experimentLogic) + const { experimentResultsLoading, experimentResultCalculationError } = useValues(experimentLogic) function ChecklistItem({ failureReason, checked }: { failureReason: string; checked: boolean }): JSX.Element { const failureReasonToText = { @@ -164,13 +163,13 @@ export function NoResultsEmptyState(): JSX.Element { } return ( -
+
{checked ? ( - + ) : ( - + )} - {failureReasonToText[failureReason]} + {failureReasonToText[failureReason]}
) } @@ -179,9 +178,8 @@ export function NoResultsEmptyState(): JSX.Element { return <> } - // TODO: use for Trends too once the Trends API is adjusted // Validation errors return 400 and are rendered as a checklist - if (experimentInsightType === InsightType.FUNNELS && experimentResultCalculationError?.statusCode === 400) { + if (experimentResultCalculationError?.statusCode === 400) { const checklistItems = [] for (const [failureReason, value] of Object.entries(JSON.parse(experimentResultCalculationError.detail))) { checklistItems.push() @@ -335,3 +333,159 @@ export function PageHeaderCustom(): JSX.Element { /> ) } + +export function ActionBanner(): JSX.Element { + const { + experiment, + experimentInsightType, + experimentResults, + experimentLoading, + experimentResultsLoading, + isExperimentRunning, + areResultsSignificant, + isExperimentStopped, + funnelResultsPersonsTotal, + recommendedSampleSize, + actualRunningTime, + recommendedRunningTime, + getHighestProbabilityVariant, + } = useValues(experimentLogic) + + const { archiveExperiment } = useActions(experimentLogic) + + if (!experiment || experimentLoading || experimentResultsLoading) { + return <> + } + + // Draft + if (!isExperimentRunning) { + return ( + + Your experiment is in draft mode. You can edit your variants, adjust release conditions, and{' '} + + test your feature flag + + . Once everything works as expected, you can launch your experiment. From that point, any new experiment + events will be counted towards the results. + + ) + } + + // Running, results present, not significant + if (isExperimentRunning && experimentResults && !isExperimentStopped && !areResultsSignificant) { + // Results insignificant, but a large enough sample/running time has been achieved + // Further collection unlikely to change the result -> recommmend cutting the losses + if ( + experimentInsightType === InsightType.FUNNELS && + funnelResultsPersonsTotal > Math.max(recommendedSampleSize, 500) && + dayjs().diff(experiment.start_date, 'day') > 2 // at least 2 days running + ) { + return ( + + You've reached a robust sample size for your experiment, but the results are still inconclusive. + Continuing the experiment is unlikely to yield significant findings. It may be time to stop this + experiment. + + ) + } + if (experimentInsightType === InsightType.TRENDS && actualRunningTime > Math.max(recommendedRunningTime, 7)) { + return ( + + Your experiment has been running long enough, but the results are still inconclusive. Continuing the + experiment is unlikely to yield significant findings. It may be time to stop this experiment. + + ) + } + + return ( + + Your experiment is live and is collecting data, but hasn't yet reached the statistical significance + needed to make reliable decisions. It's important to wait for more data to avoid premature conclusions. + + ) + } + + // Running, results significant + if (isExperimentRunning && !isExperimentStopped && areResultsSignificant && experimentResults) { + const { probability } = experimentResults + const winningVariant = getHighestProbabilityVariant(experimentResults) + if (!winningVariant) { + return <> + } + + const winProbability = probability[winningVariant] + + // Win probability only slightly over 0.9 and the recommended sample/time just met -> proceed with caution + if ( + experimentInsightType === InsightType.FUNNELS && + funnelResultsPersonsTotal > recommendedSampleSize + 50 && + winProbability < 0.93 + ) { + return ( + + You've achieved significant results, however, the sample size just meets the minimum requirements, + and the win probability is only marginally above 90%. To ensure more reliable outcomes, consider + running the experiment a bit longer. + + ) + } + + if ( + experimentInsightType === InsightType.TRENDS && + actualRunningTime > recommendedRunningTime + 2 && + winProbability < 0.93 + ) { + return ( + + You've achieved significant results, however, the running time just meets the minimum requirements, + and the win probability is only marginally above 90%. To ensure more reliable outcomes, consider + running the experiment a bit longer. + + ) + } + + return ( + + Good news! Your experiment has gathered enough data to reach statistical significance, providing + reliable results for decision making. Before taking any action, review relevant secondary metrics for + any unintended side effects. Once you're done, you can stop the experiment. + + ) + } + + // Stopped, results significant + if (isExperimentStopped && areResultsSignificant) { + return ( + + You have stopped this experiment, and it is no longer collecting data. With significant results in hand, + you can now roll out the winning variant to all your users by adjusting the{' '} + + {experiment.feature_flag?.key} + {' '} + feature flag. + + ) + } + + // Stopped, results not significant + if (isExperimentStopped && experimentResults && !areResultsSignificant) { + return ( + + You have stopped this experiment, and it is no longer collecting data. Because your results are not + significant, we don't recommend drawing any conclusions from them. You can reset the experiment + (deleting the data collected so far) and restart the experiment at any point again. If this experiment + is no longer relevant, you can{' '} + archiveExperiment()}> + archive it + + . + + ) + } + + return <> +} diff --git a/frontend/src/scenes/experiments/experimentLogic.tsx b/frontend/src/scenes/experiments/experimentLogic.tsx index 7b2b10ed36540..31de23b9d696f 100644 --- a/frontend/src/scenes/experiments/experimentLogic.tsx +++ b/frontend/src/scenes/experiments/experimentLogic.tsx @@ -1107,6 +1107,44 @@ export const experimentLogic = kea([ }) }, ], + recommendedSampleSize: [ + (s) => [s.experiment], + (experiment: Experiment): number => experiment?.parameters?.recommended_sample_size || 100, + ], + funnelResultsPersonsTotal: [ + (s) => [s.experimentResults, s.experimentInsightType], + (experimentResults: ExperimentResults['result'], experimentInsightType: InsightType): number => { + if (experimentInsightType !== InsightType.FUNNELS || !experimentResults?.insight) { + return 0 + } + + let sum = 0 + experimentResults.insight.forEach((variantResult) => { + if (variantResult[0]?.count) { + sum += variantResult[0].count + } + }) + return sum + }, + ], + actualRunningTime: [ + (s) => [s.experiment], + (experiment: Experiment): number => { + if (!experiment.start_date) { + return 0 + } + + if (experiment.end_date) { + return dayjs(experiment.end_date).diff(experiment.start_date, 'day') + } + + return dayjs().diff(experiment.start_date, 'day') + }, + ], + recommendedRunningTime: [ + (s) => [s.experiment], + (experiment: Experiment): number => experiment?.parameters?.recommended_running_time || 1, + ], }), forms(({ actions, values }) => ({ experiment: { diff --git a/frontend/src/scenes/experiments/utils.ts b/frontend/src/scenes/experiments/utils.ts index 90d7b2c64f44b..6f71d6c1829b2 100644 --- a/frontend/src/scenes/experiments/utils.ts +++ b/frontend/src/scenes/experiments/utils.ts @@ -17,3 +17,7 @@ export const transformResultFilters = (filters: Partial): Partial { - return deduplicateSnapshots(convertSnapshotsByWindowId(snapshotsByWindowId), existingSnapshots) + return deduplicateSnapshots([...convertSnapshotsByWindowId(snapshotsByWindowId), ...(existingSnapshots ?? [])]) } export const sortedRecordingSnapshots = (): { snapshot_data_by_window_id: Record } => { diff --git a/frontend/src/scenes/session-recordings/file-playback/sessionRecordingFilePlaybackSceneLogic.ts b/frontend/src/scenes/session-recordings/file-playback/sessionRecordingFilePlaybackSceneLogic.ts index 9c1606bdfe96b..30109a3936a2a 100644 --- a/frontend/src/scenes/session-recordings/file-playback/sessionRecordingFilePlaybackSceneLogic.ts +++ b/frontend/src/scenes/session-recordings/file-playback/sessionRecordingFilePlaybackSceneLogic.ts @@ -20,25 +20,6 @@ import type { sessionRecordingDataLogicType } from '../player/sessionRecordingDa import type { sessionRecordingFilePlaybackSceneLogicType } from './sessionRecordingFilePlaybackSceneLogicType' import { ExportedSessionRecordingFileV1, ExportedSessionRecordingFileV2 } from './types' -export const createExportedSessionRecording = ( - logic: BuiltLogic, - // DEBUG signal only, to be removed before release - exportUntransformedMobileSnapshotData: boolean -): ExportedSessionRecordingFileV2 => { - const { sessionPlayerMetaData, sessionPlayerSnapshotData } = logic.values - - return { - version: '2023-04-28', - data: { - id: sessionPlayerMetaData?.id ?? '', - person: sessionPlayerMetaData?.person, - snapshots: exportUntransformedMobileSnapshotData - ? sessionPlayerSnapshotData?.untransformed_snapshots || [] - : sessionPlayerSnapshotData?.snapshots || [], - }, - } -} - export const parseExportedSessionRecording = (fileData: string): ExportedSessionRecordingFileV2 => { const data = JSON.parse(fileData) as ExportedSessionRecordingFileV1 | ExportedSessionRecordingFileV2 @@ -163,9 +144,13 @@ export const sessionRecordingFilePlaybackSceneLogic = kea([ [ 'sessionPlayerData', 'sessionPlayerMetaDataLoading', - 'sessionPlayerSnapshotDataLoading', + 'snapshotsLoading', 'sessionEventsData', 'sessionEventsDataLoading', 'windowIds', @@ -856,7 +856,7 @@ export const playerInspectorLogic = kea([ (s) => [ s.sessionEventsDataLoading, s.sessionPlayerMetaDataLoading, - s.sessionPlayerSnapshotDataLoading, + s.snapshotsLoading, s.sessionEventsData, s.consoleLogs, s.allPerformanceEvents, @@ -865,7 +865,7 @@ export const playerInspectorLogic = kea([ ( sessionEventsDataLoading, sessionPlayerMetaDataLoading, - sessionPlayerSnapshotDataLoading, + snapshotsLoading, events, logs, performanceEvents, @@ -873,19 +873,19 @@ export const playerInspectorLogic = kea([ ): Record => { const tabEventsState = sessionEventsDataLoading ? 'loading' : events?.length ? 'ready' : 'empty' const tabConsoleState = - sessionPlayerMetaDataLoading || sessionPlayerSnapshotDataLoading || !logs + sessionPlayerMetaDataLoading || snapshotsLoading || !logs ? 'loading' : logs.length ? 'ready' : 'empty' const tabNetworkState = - sessionPlayerMetaDataLoading || sessionPlayerSnapshotDataLoading || !performanceEvents + sessionPlayerMetaDataLoading || snapshotsLoading || !performanceEvents ? 'loading' : performanceEvents.length ? 'ready' : 'empty' const tabDoctorState = - sessionPlayerMetaDataLoading || sessionPlayerSnapshotDataLoading || !performanceEvents + sessionPlayerMetaDataLoading || snapshotsLoading || !performanceEvents ? 'loading' : doctorEvents.length ? 'ready' diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.test.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.test.ts index 9262eb2f4d956..f0b310bf748f2 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.test.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.test.ts @@ -30,14 +30,12 @@ const BLOB_SOURCE: SessionRecordingSnapshotSource = { start_timestamp: '2023-08-11T12:03:36.097000Z', end_timestamp: '2023-08-11T12:04:52.268000Z', blob_key: '1691755416097-1691755492268', - loaded: false, } const REALTIME_SOURCE: SessionRecordingSnapshotSource = { source: 'realtime', start_timestamp: '2024-01-28T21:19:49.217000Z', end_timestamp: undefined, blob_key: undefined, - loaded: false, } describe('sessionRecordingDataLogic', () => { @@ -115,11 +113,14 @@ describe('sessionRecordingDataLogic', () => { it('loads all data', async () => { await expectLogic(logic, () => { logic.actions.loadRecordingMeta() - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() }) .toDispatchActions([ + 'loadSnapshots', + 'loadSnapshotSources', 'loadRecordingMetaSuccess', - 'loadRecordingSnapshotsSuccess', + 'loadSnapshotSourcesSuccess', + 'loadSnapshotsForSourceSuccess', 'reportUsageIfFullyLoaded', ]) .toFinishAllListeners() @@ -174,9 +175,9 @@ describe('sessionRecordingDataLogic', () => { }) logic.mount() logic.actions.loadRecordingMeta() - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() - await expectLogic(logic).toDispatchActions(['loadRecordingMetaSuccess', 'loadRecordingSnapshotsFailure']) + await expectLogic(logic).toDispatchActions(['loadRecordingMetaSuccess', 'loadSnapshotSourcesFailure']) expect(logic.values.sessionPlayerData).toMatchObject({ person: recordingMetaJson.person, durationMs: 11868, @@ -219,7 +220,7 @@ describe('sessionRecordingDataLogic', () => { }) await expectLogic(logic, () => { - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() }).toDispatchActions(['loadEvents', 'loadEventsSuccess']) expect(api.create).toHaveBeenCalledWith( @@ -255,11 +256,11 @@ describe('sessionRecordingDataLogic', () => { describe('report usage', () => { it('sends `recording loaded` event only when entire recording has loaded', async () => { await expectLogic(logic, () => { - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() }) .toDispatchActionsInAnyOrder([ - 'loadRecordingSnapshots', - 'loadRecordingSnapshotsSuccess', + 'loadSnapshots', + 'loadSnapshotsForSourceSuccess', 'loadEvents', 'loadEventsSuccess', ]) @@ -267,9 +268,9 @@ describe('sessionRecordingDataLogic', () => { }) it('sends `recording viewed` and `recording analyzed` event on first contentful paint', async () => { await expectLogic(logic, () => { - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() }) - .toDispatchActions(['loadRecordingSnapshotsSuccess']) + .toDispatchActions(['loadSnapshotsForSourceSuccess']) .toDispatchActionsInAnyOrder([ eventUsageLogic.actionTypes.reportRecording, // loaded eventUsageLogic.actionTypes.reportRecording, // viewed @@ -278,7 +279,7 @@ describe('sessionRecordingDataLogic', () => { }) it('clears the cache after unmounting', async () => { await expectLogic(logic, () => { - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() }) expect(Object.keys(logic.cache)).toEqual( expect.arrayContaining(['metaStartTime', 'snapshotsStartTime', 'eventsStartTime']) @@ -326,7 +327,9 @@ describe('sessionRecordingDataLogic', () => { }, ] // we call this multiple times and pass existing data in, so we need to make sure it doesn't change - expect(deduplicateSnapshots(verySimilarSnapshots, verySimilarSnapshots)).toEqual(verySimilarSnapshots) + expect(deduplicateSnapshots([...verySimilarSnapshots, ...verySimilarSnapshots])).toEqual( + verySimilarSnapshots + ) }) it('should match snapshot', () => { @@ -351,66 +354,68 @@ describe('sessionRecordingDataLogic', () => { it('loads each source, and on success reports recording viewed', async () => { await expectLogic(logic, () => { - logic.actions.loadRecordingSnapshots() - // loading the snapshots will trigger a loadRecordingSnapshotsSuccess + logic.actions.loadSnapshots() + // loading the snapshots will trigger a loadSnapshotsForSourceSuccess // that will have the blob source - // that triggers loadRecordingSnapshots + // that triggers loadNextSnapshotSource }).toDispatchActions([ // the action we triggered - logic.actionCreators.loadRecordingSnapshots(), - 'loadRecordingSnapshotsSuccess', + 'loadSnapshots', // the response to that triggers loading of the first item which is the blob source (action) => - action.type === logic.actionTypes.loadRecordingSnapshots && + action.type === logic.actionTypes.loadSnapshotsForSource && action.payload.source?.source === 'blob', - 'loadRecordingSnapshotsSuccess', + 'loadSnapshotsForSourceSuccess', // and then we report having viewed the recording 'reportViewed', // the response to the success action triggers loading of the second item which is the realtime source (action) => - action.type === logic.actionTypes.loadRecordingSnapshots && + action.type === logic.actionTypes.loadSnapshotsForSource && action.payload.source?.source === 'realtime', - 'loadRecordingSnapshotsSuccess', + 'loadSnapshotsForSourceSuccess', // having loaded any real time data we start polling to check for more - 'startRealTimePolling', + 'pollRealtimeSnapshots', + // which in turn triggers another load + (action) => + action.type === logic.actionTypes.loadSnapshotsForSource && + action.payload.source?.source === 'realtime', + 'loadSnapshotsForSourceSuccess', ]) }) - it('can start polling for snapshots', async () => { + it('polls up to a max threshold', async () => { await expectLogic(logic, () => { - logic.actions.startRealTimePolling() + logic.actions.loadSnapshots() }) .toDispatchActions([ - // the action we triggered - 'startRealTimePolling', - 'pollRecordingSnapshots', // 0 - 'pollRecordingSnapshotsSuccess', + 'loadSnapshotsForSource', // blob + 'loadSnapshotsForSourceSuccess', // the returned data isn't changing from our mock, // so we'll not keep polling indefinitely - 'pollRecordingSnapshots', // 1 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 2 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 3 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 4 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 5 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 6 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 7 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 8 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 9 - 'pollRecordingSnapshotsSuccess', - 'pollRecordingSnapshots', // 10 - 'pollRecordingSnapshotsSuccess', + 'loadSnapshotsForSource', // 1 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 2 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 3 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 4 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 5 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 6 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 7 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 8 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 9 + 'loadSnapshotsForSourceSuccess', + 'loadSnapshotsForSource', // 10 + 'loadSnapshotsForSourceSuccess', ]) .toNotHaveDispatchedActions([ // this isn't called again - 'pollRecordingSnapshots', + 'loadSnapshotsForSource', ]) await waitForExpect(() => { @@ -433,12 +438,14 @@ describe('sessionRecordingDataLogic', () => { it('should start polling even though realtime is empty', async () => { await expectLogic(logic, () => { - logic.actions.loadRecordingSnapshots() + logic.actions.loadSnapshots() }).toDispatchActions([ - 'loadRecordingSnapshotsSuccess', - 'startRealTimePolling', - 'pollRecordingSnapshots', - 'pollRecordingSnapshotsSuccess', + 'loadSnapshots', + 'loadSnapshotSourcesSuccess', + 'loadNextSnapshotSource', + 'pollRealtimeSnapshots', + 'loadSnapshotsForSource', + 'loadSnapshotsForSourceSuccess', ]) }) }) diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts index d71d860d5a568..f986818ecf485 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts @@ -5,7 +5,6 @@ import { actions, afterMount, beforeUnmount, - BreakPointFunction, connect, defaults, kea, @@ -38,15 +37,16 @@ import { RecordingSegment, RecordingSnapshot, SessionPlayerData, - SessionPlayerSnapshotData, SessionRecordingId, SessionRecordingSnapshotSource, + SessionRecordingSnapshotSourceResponse, SessionRecordingType, SessionRecordingUsageType, SnapshotSourceType, } from '~/types' import { PostHogEE } from '../../../../@posthog/ee/types' +import { ExportedSessionRecordingFileV2 } from '../file-playback/types' import type { sessionRecordingDataLogicType } from './sessionRecordingDataLogicType' import { createSegments, mapSnapshotsToWindowId } from './utils/segmenter' @@ -143,14 +143,10 @@ const cyrb53 = function (str: string, seed = 0): number { return 4294967296 * (2097151 & h2) + (h1 >>> 0) } -export const deduplicateSnapshots = ( - newSnapshots?: RecordingSnapshot[], - existingSnapshots?: RecordingSnapshot[] -): RecordingSnapshot[] => { +export const deduplicateSnapshots = (snapshots: RecordingSnapshot[] | null): RecordingSnapshot[] => { const seenHashes: Set = new Set() - return (newSnapshots || []) - .concat(existingSnapshots ? existingSnapshots ?? [] : []) + return (snapshots ?? []) .filter((snapshot) => { // For a multitude of reasons, there can be duplicate snapshots in the same recording. // we have to stringify the snapshot to compare it to other snapshots. @@ -230,30 +226,27 @@ function makeEventsQuery( async function processEncodedResponse( encodedResponse: (EncodedRecordingSnapshot | string)[], props: SessionRecordingDataLogicProps, - existingData: SessionPlayerSnapshotData | null, featureFlags: FeatureFlagsSet ): Promise<{ transformed: RecordingSnapshot[]; untransformed: RecordingSnapshot[] | null }> { let untransformed: RecordingSnapshot[] | null = null - const transformed = deduplicateSnapshots( - await parseEncodedSnapshots(encodedResponse, props.sessionRecordingId), - existingData?.snapshots ?? [] - ) + const transformed = await parseEncodedSnapshots(encodedResponse, props.sessionRecordingId) if (featureFlags[FEATURE_FLAGS.SESSION_REPLAY_EXPORT_MOBILE_DATA]) { - untransformed = deduplicateSnapshots( - await parseEncodedSnapshots( - encodedResponse, - props.sessionRecordingId, - false // don't transform mobile data - ), - existingData?.untransformed_snapshots ?? [] + untransformed = await parseEncodedSnapshots( + encodedResponse, + props.sessionRecordingId, + false // don't transform mobile data ) } return { transformed, untransformed } } +const getSourceKey = (source: SessionRecordingSnapshotSource): string => { + return `${source.source}-${source.blob_key}` +} + export const sessionRecordingDataLogic = kea([ path((key) => ['scenes', 'session-recordings', 'sessionRecordingDataLogic', key]), props({} as SessionRecordingDataLogicProps), @@ -269,24 +262,19 @@ export const sessionRecordingDataLogic = kea([ setFilters: (filters: Partial) => ({ filters }), loadRecordingMeta: true, maybeLoadRecordingMeta: true, - loadRecordingSnapshots: (source?: SessionRecordingSnapshotSource) => ({ source }), + loadSnapshots: true, + loadSnapshotSources: true, + loadNextSnapshotSource: true, + loadSnapshotsForSource: (source: Pick) => ({ source }), loadEvents: true, loadFullEventData: (event: RecordingEventType) => ({ event }), reportViewed: true, reportUsageIfFullyLoaded: true, persistRecording: true, maybePersistRecording: true, - startRealTimePolling: true, - pollRecordingSnapshots: true, - pollingLoadedNoNewData: true, + pollRealtimeSnapshots: true, }), reducers(() => ({ - unnecessaryPollingCount: [ - 0, - { - pollingLoadedNoNewData: (state) => state + 1, - }, - ], filters: [ {} as Partial, { @@ -301,143 +289,21 @@ export const sessionRecordingDataLogic = kea([ loadRecordingMetaFailure: () => true, }, ], - snapshotsLoaded: [ - false as boolean, + snapshotsBySource: [ + null as Record | null, { - loadRecordingSnapshotsSuccess: () => true, - loadRecordingSnapshotsFailure: () => true, - }, - ], - })), - listeners(({ values, actions, cache, props }) => ({ - pollRecordingSnapshotsSuccess: () => { - // always make sure we've cleared up the last timeout - clearTimeout(cache.realTimePollingTimeoutID) - cache.realTimePollingTimeoutID = null - - // ten is an arbitrary limit to try to avoid sending requests to our backend unnecessarily - // we could change this or add to it e.g. only poll if browser is visible to user - if (values.unnecessaryPollingCount <= 10) { - cache.realTimePollingTimeoutID = setTimeout(() => { - actions.pollRecordingSnapshots() - }, props.realTimePollingIntervalMilliseconds || DEFAULT_REALTIME_POLLING_MILLIS) - } - }, - startRealTimePolling: () => { - if (cache.realTimePollingTimeoutID) { - clearTimeout(cache.realTimePollingTimeoutID) - } - - cache.realTimePollingTimeoutID = setTimeout(() => { - actions.pollRecordingSnapshots() - }, props.realTimePollingIntervalMilliseconds || DEFAULT_REALTIME_POLLING_MILLIS) - }, - maybeLoadRecordingMeta: () => { - if (!values.sessionPlayerMetaDataLoading) { - actions.loadRecordingMeta() - } - }, - loadRecordingSnapshots: () => { - actions.loadEvents() - }, - loadRecordingMetaSuccess: () => { - cache.metadataLoadDuration = Math.round(performance.now() - cache.metaStartTime) - actions.reportUsageIfFullyLoaded() - }, - loadRecordingMetaFailure: () => { - cache.metadataLoadDuration = Math.round(performance.now() - cache.metaStartTime) - }, - loadRecordingSnapshotsSuccess: () => { - const { snapshots, sources } = values.sessionPlayerSnapshotData ?? {} - if (snapshots) { - if (!snapshots.length && sources?.length === 1) { - // We got only a single source to load, loaded it successfully, but it had no snapshots. - posthog.capture('recording_snapshots_v2_empty_response', { - source: sources[0], - }) + loadSnapshotsForSourceSuccess: (state, { snapshotsForSource }) => { + const sourceKey = getSourceKey(snapshotsForSource.source) - // If we only have a realtime source and its empty, start polling it anyway - if (sources[0].source === SnapshotSourceType.realtime) { - actions.startRealTimePolling() + return { + ...state, + [sourceKey]: snapshotsForSource, } - - return - } - - if (!cache.firstPaintDuration) { - cache.firstPaintDuration = Math.round(performance.now() - cache.snapshotsStartTime) - actions.reportViewed() - } - } - - const nextSourceToLoad = sources?.find((s) => !s.loaded) - - if (nextSourceToLoad) { - actions.loadRecordingSnapshots(nextSourceToLoad) - } else { - cache.snapshotsLoadDuration = Math.round(performance.now() - cache.snapshotsStartTime) - actions.reportUsageIfFullyLoaded() - - // If we have a realtime source, start polling it - const realTimeSource = sources?.find((s) => s.source === SnapshotSourceType.realtime) - if (realTimeSource) { - actions.startRealTimePolling() - } - } - }, - loadRecordingSnapshotsFailure: () => { - cache.snapshotsLoadDuration = Math.round(performance.now() - cache.snapshotsStartTime) - }, - loadEventsSuccess: () => { - cache.eventsLoadDuration = Math.round(performance.now() - cache.eventsStartTime) - actions.reportUsageIfFullyLoaded() - }, - loadEventsFailure: () => { - cache.eventsLoadDuration = Math.round(performance.now() - cache.eventsStartTime) - }, - reportUsageIfFullyLoaded: (_, breakpoint) => { - breakpoint() - if (values.fullyLoaded) { - eventUsageLogic.actions.reportRecording( - values.sessionPlayerData, - generateRecordingReportDurations(cache), - SessionRecordingUsageType.LOADED, - 0 - ) - // Reset cache now that final usage report has been sent - resetTimingsCache(cache) - } - }, - reportViewed: async (_, breakpoint) => { - const durations = generateRecordingReportDurations(cache) - breakpoint() - // Triggered on first paint - eventUsageLogic.actions.reportRecording( - values.sessionPlayerData, - durations, - SessionRecordingUsageType.VIEWED, - 0 - ) - await breakpoint(IS_TEST_MODE ? 1 : 10000) - eventUsageLogic.actions.reportRecording( - values.sessionPlayerData, - durations, - SessionRecordingUsageType.ANALYZED, - 10 - ) - }, - - maybePersistRecording: () => { - if (values.sessionPlayerMetaDataLoading) { - return - } - - if (values.sessionPlayerMetaData?.storage === 'object_storage') { - actions.persistRecording() - } - }, + }, + }, + ], })), - loaders(({ values, props, cache, actions }) => ({ + loaders(({ values, props, cache }) => ({ sessionPlayerMetaData: { loadRecordingMeta: async (_, breakpoint) => { if (!props.sessionRecordingId) { @@ -467,42 +333,27 @@ export const sessionRecordingDataLogic = kea([ } }, }, - sessionPlayerSnapshotData: [ - null as SessionPlayerSnapshotData | null, + snapshotSources: [ + null as SessionRecordingSnapshotSource[] | null, { - pollRecordingSnapshots: async (_, breakpoint: BreakPointFunction) => { + loadSnapshotSources: async () => { const params = { version: values.featureFlags[FEATURE_FLAGS.SESSION_REPLAY_V3_INGESTION_PLAYBACK] ? '3' : '2', - source: SnapshotSourceType.realtime, } - await breakpoint(1) // debounce const response = await api.recordings.listSnapshots(props.sessionRecordingId, params) - breakpoint() // handle out of order - - if (response.snapshots) { - const { transformed, untransformed } = await processEncodedResponse( - response.snapshots, - props, - values.sessionPlayerSnapshotData, - values.featureFlags - ) - - if (transformed.length === (values.sessionPlayerSnapshotData?.snapshots || []).length) { - actions.pollingLoadedNoNewData() - } - - return { - ...(values.sessionPlayerSnapshotData || {}), - snapshots: transformed, - untransformed_snapshots: untransformed ?? undefined, - } - } - return values.sessionPlayerSnapshotData + return response.sources ?? [] }, - loadRecordingSnapshots: async ({ source }, breakpoint): Promise => { - if (!props.sessionRecordingId) { - return values.sessionPlayerSnapshotData + }, + ], + snapshotsForSource: [ + null as SessionRecordingSnapshotSourceResponse | null, + { + loadSnapshotsForSource: async ({ source }, breakpoint) => { + const params = { + source: source.source, + blob_key: source.blob_key, + version: values.featureFlags[FEATURE_FLAGS.SESSION_REPLAY_V3_INGESTION_PLAYBACK] ? '3' : '2', } const snapshotLoadingStartTime = performance.now() @@ -511,73 +362,31 @@ export const sessionRecordingDataLogic = kea([ cache.snapshotsStartTime = snapshotLoadingStartTime } - const data: SessionPlayerSnapshotData = { - ...(values.sessionPlayerSnapshotData || {}), - } - await breakpoint(1) - if (source?.source === SnapshotSourceType.blob) { - const params = { - source: source.source, - blob_key: source.blob_key, - version: '2', - } - - if (values.featureFlags[FEATURE_FLAGS.SESSION_REPLAY_V3_INGESTION_PLAYBACK]) { - params.version = '3' - } - - if (!source.blob_key) { - throw new Error('Missing key') - } - const encodedResponse = await api.recordings.getBlobSnapshots(props.sessionRecordingId, params) - - const { transformed, untransformed } = await processEncodedResponse( - encodedResponse, - props, - values.sessionPlayerSnapshotData, - values.featureFlags - ) - data.snapshots = transformed - data.untransformed_snapshots = untransformed ?? undefined - } else { - const params = { - source: source?.source, - version: '2', - } - - if (values.featureFlags[FEATURE_FLAGS.SESSION_REPLAY_V3_INGESTION_PLAYBACK]) { - params.version = '3' - } - - const response = await api.recordings.listSnapshots(props.sessionRecordingId, params) - if (response.snapshots) { - const { transformed, untransformed } = await processEncodedResponse( - response.snapshots, - props, - values.sessionPlayerSnapshotData, - values.featureFlags - ) - data.snapshots = transformed - data.untransformed_snapshots = untransformed ?? undefined - } - - if (response.sources) { - data.sources = response.sources - } + if (source.source === SnapshotSourceType.blob && !source.blob_key) { + throw new Error('Missing key') } - if (source) { - source.loaded = true - - posthog.capture('recording_snapshot_loaded', { - source: source.source, - duration: Math.round(performance.now() - snapshotLoadingStartTime), - }) - } + const blobResponseType = source.source === SnapshotSourceType.blob || params.version === '3' + + const response = blobResponseType + ? await api.recordings.getBlobSnapshots(props.sessionRecordingId, params).catch((e) => { + if (source.source === 'realtime' && e.status === 404) { + // Realtime source is not always available so a 404 is expected + return [] + } + throw e + }) + : (await api.recordings.listSnapshots(props.sessionRecordingId, params)).snapshots ?? [] + + const { transformed, untransformed } = await processEncodedResponse( + response, + props, + values.featureFlags + ) - return data + return { snapshots: transformed, untransformed_snapshots: untransformed ?? undefined, source } }, }, ], @@ -703,6 +512,147 @@ export const sessionRecordingDataLogic = kea([ }, ], })), + listeners(({ values, actions, cache, props }) => ({ + loadSnapshots: () => { + // This kicks off the loading chain + if (!values.snapshotSourcesLoading) { + actions.loadSnapshotSources() + } + }, + maybeLoadRecordingMeta: () => { + if (!values.sessionPlayerMetaDataLoading) { + actions.loadRecordingMeta() + } + }, + loadSnapshotSources: () => { + // We only load events once we actually start loading the recording + actions.loadEvents() + }, + loadRecordingMetaSuccess: () => { + cache.metadataLoadDuration = Math.round(performance.now() - cache.metaStartTime) + actions.reportUsageIfFullyLoaded() + }, + loadRecordingMetaFailure: () => { + cache.metadataLoadDuration = Math.round(performance.now() - cache.metaStartTime) + }, + + loadSnapshotSourcesSuccess: () => { + // When we receive the list of sources we can kick off the loading chain + actions.loadNextSnapshotSource() + }, + + loadSnapshotsForSourceSuccess: ({ snapshotsForSource }) => { + const sources = values.snapshotSources + const snapshots = snapshotsForSource.snapshots + + // Cache the last response count to detect if we're getting the same data over and over + const newSnapshotsCount = snapshots.length + + if ((cache.lastSnapshotsCount ?? newSnapshotsCount) === newSnapshotsCount) { + cache.lastSnapshotsUnchangedCount = (cache.lastSnapshotsUnchangedCount ?? 0) + 1 + } else { + cache.lastSnapshotsUnchangedCount = 0 + } + cache.lastSnapshotsCount = newSnapshotsCount + + if (!snapshots.length && sources?.length === 1) { + // We got only a single source to load, loaded it successfully, but it had no snapshots. + posthog.capture('recording_snapshots_v2_empty_response', { + source: sources[0], + }) + } else if (!cache.firstPaintDuration) { + cache.firstPaintDuration = Math.round(performance.now() - cache.snapshotsStartTime) + actions.reportViewed() + } + + actions.loadNextSnapshotSource() + }, + + loadNextSnapshotSource: () => { + const nextSourceToLoad = values.snapshotSources?.find((s) => { + const sourceKey = getSourceKey(s) + return !values.snapshotsBySource?.[sourceKey] + }) + + if (nextSourceToLoad) { + return actions.loadSnapshotsForSource(nextSourceToLoad) + } + + // TODO: Move this to a one time check - only report once per recording + cache.snapshotsLoadDuration = Math.round(performance.now() - cache.snapshotsStartTime) + actions.reportUsageIfFullyLoaded() + + // If we have a realtime source, start polling it + const realTimeSource = values.snapshotSources?.find((s) => s.source === SnapshotSourceType.realtime) + if (realTimeSource) { + actions.pollRealtimeSnapshots() + } + }, + loadSnapshotsForSourceFailure: () => { + cache.snapshotsLoadDuration = Math.round(performance.now() - cache.snapshotsStartTime) + }, + pollRealtimeSnapshots: () => { + // always make sure we've cleared up the last timeout + clearTimeout(cache.realTimePollingTimeoutID) + cache.realTimePollingTimeoutID = null + + // ten is an arbitrary limit to try to avoid sending requests to our backend unnecessarily + // we could change this or add to it e.g. only poll if browser is visible to user + if ((cache.lastSnapshotsUnchangedCount ?? 0) <= 10) { + cache.realTimePollingTimeoutID = setTimeout(() => { + actions.loadSnapshotsForSource({ source: SnapshotSourceType.realtime }) + }, props.realTimePollingIntervalMilliseconds || DEFAULT_REALTIME_POLLING_MILLIS) + } + }, + loadEventsSuccess: () => { + cache.eventsLoadDuration = Math.round(performance.now() - cache.eventsStartTime) + actions.reportUsageIfFullyLoaded() + }, + loadEventsFailure: () => { + cache.eventsLoadDuration = Math.round(performance.now() - cache.eventsStartTime) + }, + reportUsageIfFullyLoaded: (_, breakpoint) => { + breakpoint() + if (values.fullyLoaded) { + eventUsageLogic.actions.reportRecording( + values.sessionPlayerData, + generateRecordingReportDurations(cache), + SessionRecordingUsageType.LOADED, + 0 + ) + // Reset cache now that final usage report has been sent + resetTimingsCache(cache) + } + }, + reportViewed: async (_, breakpoint) => { + const durations = generateRecordingReportDurations(cache) + breakpoint() + // Triggered on first paint + eventUsageLogic.actions.reportRecording( + values.sessionPlayerData, + durations, + SessionRecordingUsageType.VIEWED, + 0 + ) + await breakpoint(IS_TEST_MODE ? 1 : 10000) + eventUsageLogic.actions.reportRecording( + values.sessionPlayerData, + durations, + SessionRecordingUsageType.ANALYZED, + 10 + ) + }, + + maybePersistRecording: () => { + if (values.sessionPlayerMetaDataLoading) { + return + } + + if (values.sessionPlayerMetaData?.storage === 'object_storage') { + actions.persistRecording() + } + }, + })), selectors({ sessionPlayerData: [ (s, p) => [ @@ -739,23 +689,22 @@ export const sessionRecordingDataLogic = kea([ }), ], + snapshotsLoading: [ + (s) => [s.snapshotSourcesLoading, s.snapshotsForSourceLoading], + (snapshotSourcesLoading, snapshotsForSourceLoading): boolean => { + return snapshotSourcesLoading || snapshotsForSourceLoading + }, + ], + snapshotsLoaded: [(s) => [s.snapshotSources], (snapshotSources): boolean => !!snapshotSources], + fullyLoaded: [ - (s) => [ - s.sessionPlayerSnapshotData, - s.sessionPlayerMetaDataLoading, - s.sessionPlayerSnapshotDataLoading, - s.sessionEventsDataLoading, - ], - ( - sessionPlayerSnapshotData, - sessionPlayerMetaDataLoading, - sessionPlayerSnapshotDataLoading, - sessionEventsDataLoading - ): boolean => { + (s) => [s.snapshots, s.sessionPlayerMetaDataLoading, s.snapshotsLoading, s.sessionEventsDataLoading], + (snapshots, sessionPlayerMetaDataLoading, snapshotsLoading, sessionEventsDataLoading): boolean => { + // TODO: Do a proper check for all sources having been loaded return ( - !!sessionPlayerSnapshotData?.snapshots?.length && + !!snapshots.length && !sessionPlayerMetaDataLoading && - !sessionPlayerSnapshotDataLoading && + !snapshotsLoading && !sessionEventsDataLoading ) }, @@ -769,12 +718,12 @@ export const sessionRecordingDataLogic = kea([ ], end: [ - (s) => [s.sessionPlayerMetaData, s.sessionPlayerSnapshotData], - (meta, sessionPlayerSnapshotData): Dayjs | undefined => { + (s) => [s.sessionPlayerMetaData, s.snapshots], + (meta, snapshots): Dayjs | undefined => { // NOTE: We might end up with more snapshots than we knew about when we started the recording so we // either use the metadata end point or the last snapshot, whichever is later. const end = meta?.end_time ? dayjs(meta.end_time) : undefined - const lastEvent = sessionPlayerSnapshotData?.snapshots?.slice(-1)[0] + const lastEvent = snapshots?.slice(-1)[0] return lastEvent?.timestamp && lastEvent.timestamp > +(end ?? 0) ? dayjs(lastEvent.timestamp) : end }, @@ -788,18 +737,18 @@ export const sessionRecordingDataLogic = kea([ ], segments: [ - (s) => [s.sessionPlayerSnapshotData, s.start, s.end], - (sessionPlayerSnapshotData, start, end): RecordingSegment[] => { - return createSegments(sessionPlayerSnapshotData?.snapshots || [], start, end) + (s) => [s.snapshots, s.start, s.end], + (snapshots, start, end): RecordingSegment[] => { + return createSegments(snapshots || [], start, end) }, ], urls: [ - (s) => [s.sessionPlayerSnapshotData], - (sessionPlayerSnapshotData): { url: string; timestamp: number }[] => { + (s) => [s.snapshots], + (snapshots): { url: string; timestamp: number }[] => { return ( - sessionPlayerSnapshotData?.snapshots - ?.filter((snapshot) => getHrefFromSnapshot(snapshot)) + snapshots + .filter((snapshot) => getHrefFromSnapshot(snapshot)) .map((snapshot) => { return { url: getHrefFromSnapshot(snapshot) as string, @@ -810,10 +759,35 @@ export const sessionRecordingDataLogic = kea([ }, ], + snapshots: [ + (s) => [s.snapshotSources, s.snapshotsBySource], + (sources, snapshotsBySource): RecordingSnapshot[] => { + const allSnapshots = + sources?.flatMap((source) => { + const sourceKey = getSourceKey(source) + return snapshotsBySource?.[sourceKey]?.snapshots || [] + }) ?? [] + + return deduplicateSnapshots(allSnapshots) + }, + ], + untransformedSnapshots: [ + (s) => [s.snapshotSources, s.snapshotsBySource], + (sources, snapshotsBySource): RecordingSnapshot[] => { + const allSnapshots = + sources?.flatMap((source) => { + const sourceKey = getSourceKey(source) + return snapshotsBySource?.[sourceKey]?.untransformed_snapshots || [] + }) ?? [] + + return deduplicateSnapshots(allSnapshots) + }, + ], + snapshotsByWindowId: [ - (s) => [s.sessionPlayerSnapshotData], - (sessionPlayerSnapshotData): Record => { - return mapSnapshotsToWindowId(sessionPlayerSnapshotData?.snapshots || []) + (s) => [s.snapshots], + (snapshots): Record => { + return mapSnapshotsToWindowId(snapshots || []) }, ], @@ -877,6 +851,24 @@ export const sessionRecordingDataLogic = kea([ return Object.keys(snapshotsByWindowId) }, ], + + createExportJSON: [ + (s) => [s.sessionPlayerMetaData, s.snapshots, s.untransformedSnapshots], + ( + sessionPlayerMetaData, + snapshots, + untransformedSnapshots + ): ((exportUntransformedMobileSnapshotData: boolean) => ExportedSessionRecordingFileV2) => { + return (exportUntransformedMobileSnapshotData: boolean) => ({ + version: '2023-04-28', + data: { + id: sessionPlayerMetaData?.id ?? '', + person: sessionPlayerMetaData?.person, + snapshots: exportUntransformedMobileSnapshotData ? untransformedSnapshots : snapshots, + }, + }) + }, + ], }), afterMount(({ cache }) => { resetTimingsCache(cache) diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.test.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.test.ts index bd985c6da05d5..b10664a21bd46 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.test.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.test.ts @@ -83,8 +83,8 @@ describe('sessionRecordingPlayerLogic', () => { expect(logic.values.sessionPlayerData).toMatchSnapshot() await expectLogic(logic).toNotHaveDispatchedActions([ - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingSnapshots, - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingSnapshotsSuccess, + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadSnapshotSources, + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadSnapshotSourcesSuccess, ]) }) @@ -104,10 +104,10 @@ describe('sessionRecordingPlayerLogic', () => { await expectLogic(logic).toDispatchActions([ // once to gather sources - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingSnapshots, + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadSnapshotSources, // once to load source from that - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingSnapshots, - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingSnapshotsSuccess, + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadSnapshotsForSource, + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadSnapshotsForSourceSuccess, ]) expect(logic.values.sessionPlayerData).toMatchSnapshot() @@ -136,15 +136,11 @@ describe('sessionRecordingPlayerLogic', () => { logic.actions.seekToTime(50) // greater than null buffered time }) .toDispatchActions([ - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingMeta, - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingMetaSuccess, 'seekToTimestamp', + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadSnapshotSourcesFailure, ]) .toFinishAllListeners() - .toDispatchActions([ - sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingSnapshots, - 'setErrorPlayerState', - ]) + .toDispatchActions(['setErrorPlayerState']) expect(logic.values).toMatchObject({ sessionPlayerData: { @@ -161,7 +157,10 @@ describe('sessionRecordingPlayerLogic', () => { logic = sessionRecordingPlayerLogic({ sessionRecordingId: '2', playerKey: 'test' }) logic.mount() - await expectLogic(logic).toDispatchActions(['initializePlayerFromStart']) + await expectLogic(logic).toDispatchActions([ + sessionRecordingDataLogic({ sessionRecordingId: '2' }).actionTypes.loadRecordingMetaSuccess, + 'initializePlayerFromStart', + ]) expect(logic.cache.hasInitialized).toBeTruthy() logic.unmount() diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts index 95ed34a075539..d1bbf94be6fa6 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingPlayerLogic.ts @@ -15,6 +15,7 @@ import { selectors, } from 'kea' import { router } from 'kea-router' +import { subscriptions } from 'kea-subscriptions' import { delay } from 'kea-test-utils' import { now } from 'lib/dayjs' import { featureFlagLogic } from 'lib/logic/featureFlagLogic' @@ -37,7 +38,6 @@ import { userLogic } from 'scenes/userLogic' import { AvailableFeature, RecordingSegment, SessionPlayerData, SessionPlayerState } from '~/types' -import { createExportedSessionRecording } from '../file-playback/sessionRecordingFilePlaybackSceneLogic' import type { sessionRecordingsPlaylistLogicType } from '../playlist/sessionRecordingsPlaylistLogicType' import { playerSettingsLogic } from './playerSettingsLogic' import { COMMON_REPLAYER_CONFIG, CorsPlugin } from './rrweb' @@ -102,10 +102,11 @@ export const sessionRecordingPlayerLogic = kea( sessionRecordingDataLogic(props), [ 'snapshotsLoaded', + 'snapshotsLoading', 'sessionPlayerData', 'sessionPlayerMetaData', - 'sessionPlayerSnapshotDataLoading', 'sessionPlayerMetaDataLoading', + 'createExportJSON', ], playerSettingsLogic, ['speed', 'skipInactivitySetting'], @@ -120,9 +121,9 @@ export const sessionRecordingPlayerLogic = kea( sessionRecordingDataLogic(props), [ 'maybeLoadRecordingMeta', - 'loadRecordingSnapshots', - 'loadRecordingSnapshotsSuccess', - 'loadRecordingSnapshotsFailure', + 'loadSnapshots', + 'loadSnapshotsForSourceFailure', + 'loadSnapshotSourcesFailure', 'loadRecordingMetaSuccess', 'maybePersistRecording', ], @@ -168,7 +169,7 @@ export const sessionRecordingPlayerLogic = kea( initializePlayerFromStart: true, incrementErrorCount: true, incrementWarningCount: (count: number = 1) => ({ count }), - updateFromMetadata: true, + syncSnapshotsWithPlayer: true, exportRecordingToFile: (exportUntransformedMobileData?: boolean) => ({ exportUntransformedMobileData }), deleteRecording: true, openExplorer: true, @@ -359,7 +360,7 @@ export const sessionRecordingPlayerLogic = kea( s.isScrubbing, s.isSkippingInactivity, s.snapshotsLoaded, - s.sessionPlayerSnapshotDataLoading, + s.snapshotsLoading, ], ( playingState, @@ -620,13 +621,15 @@ export const sessionRecordingPlayerLogic = kea( actions.setCurrentSegment(initialSegment) } }, - updateFromMetadata: async (_, breakpoint) => { + syncSnapshotsWithPlayer: async (_, breakpoint) => { // On loading more of the recording, trigger some state changes const currentEvents = values.player?.replayer?.service.state.context.events ?? [] const eventsToAdd = [] if (values.currentSegment?.windowId !== undefined) { // TODO: Probably need to check for de-dupes here.... + // TODO: We do some sorting and rearranging in the data logic... We may need to handle that here, replacing the + // whole events stream.... eventsToAdd.push( ...(values.sessionPlayerData.snapshotsByWindowId[values.currentSegment?.windowId] ?? []).slice( currentEvents.length @@ -649,27 +652,28 @@ export const sessionRecordingPlayerLogic = kea( }, loadRecordingMetaSuccess: () => { // As the connected data logic may be preloaded we call a shared function here and on mount - actions.updateFromMetadata() + actions.syncSnapshotsWithPlayer() if (props.autoPlay) { // Autoplay assumes we are playing immediately so lets go ahead and load more data actions.setPlay() } }, - loadRecordingSnapshotsSuccess: () => { - // As the connected data logic may be preloaded we call a shared function here and on mount - actions.updateFromMetadata() + loadSnapshotsForSourceFailure: () => { + if (Object.keys(values.sessionPlayerData.snapshotsByWindowId).length === 0) { + console.error('PostHog Recording Playback Error: No snapshots loaded') + actions.setErrorPlayerState(true) + } }, - - loadRecordingSnapshotsFailure: () => { + loadSnapshotSourcesFailure: () => { if (Object.keys(values.sessionPlayerData.snapshotsByWindowId).length === 0) { console.error('PostHog Recording Playback Error: No snapshots loaded') actions.setErrorPlayerState(true) } }, setPlay: () => { - if (!values.snapshotsLoaded && !values.sessionPlayerSnapshotDataLoading) { - actions.loadRecordingSnapshots() + if (!values.snapshotsLoaded) { + actions.loadSnapshots() } actions.stopAnimation() actions.restartIframePlayback() @@ -736,7 +740,7 @@ export const sessionRecordingPlayerLogic = kea( if (!values.snapshotsLoaded) { // We haven't started properly loading yet so nothing to do - } else if (!values.sessionPlayerSnapshotDataLoading && segment?.kind === 'buffer') { + } else if (!values.snapshotsLoading && segment?.kind === 'buffer') { // If not currently loading anything and part of the recording hasn't loaded, set error state values.player?.replayer?.pause() actions.endBuffer() @@ -937,10 +941,7 @@ export const sessionRecordingPlayerLogic = kea( await delay(delayTime) } - const payload = createExportedSessionRecording( - sessionRecordingDataLogic(props), - !!exportUntransformedMobileData - ) + const payload = values.createExportJSON(!!exportUntransformedMobileData) const recordingFile = new File( [JSON.stringify(payload, null, 2)], @@ -1002,6 +1003,18 @@ export const sessionRecordingPlayerLogic = kea( }, })), + subscriptions(({ actions }) => ({ + sessionPlayerData: (next, prev) => { + const hasSnapshotChanges = next?.snapshotsByWindowId !== prev?.snapshotsByWindowId + + // TODO: Detect if the order of the current window has changed (this would require re-initializing the player) + + if (hasSnapshotChanges) { + actions.syncSnapshotsWithPlayer() + } + }, + })), + beforeUnmount(({ values, actions, cache, props }) => { if (props.mode === SessionRecordingPlayerMode.Preview) { values.player?.replayer?.destroy() diff --git a/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx b/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx index 0ce2a9213ebe8..10e31ca899d00 100644 --- a/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx +++ b/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx @@ -12,6 +12,7 @@ import { Spinner } from 'lib/lemon-ui/Spinner' import { Tooltip } from 'lib/lemon-ui/Tooltip' import { featureFlagLogic } from 'lib/logic/featureFlagLogic' import { colonDelimitedDuration } from 'lib/utils' +import posthog from 'posthog-js' import { Fragment, useState } from 'react' import { DraggableToNotebook } from 'scenes/notebooks/AddToNotebook/DraggableToNotebook' import { asDisplay } from 'scenes/persons/person-utils' @@ -153,6 +154,7 @@ export function PropertyIcons({ onClick={(e) => { if (e.altKey) { e.stopPropagation() + posthog.capture('alt click property filter added', { property }) onPropertyClick?.(property, value) } }} diff --git a/frontend/src/scenes/settings/project/TimezoneConfig.tsx b/frontend/src/scenes/settings/project/TimezoneConfig.tsx index c02caa0ee0a03..230372ff58eec 100644 --- a/frontend/src/scenes/settings/project/TimezoneConfig.tsx +++ b/frontend/src/scenes/settings/project/TimezoneConfig.tsx @@ -31,6 +31,7 @@ export function TimezoneConfig(): JSX.Element { loading={currentTeamLoading} disabled={currentTeamLoading} value={[currentTeam.timezone]} + popoverClassName="z-[1000]" onChange={([newTimezone]): void => { // This is a string for a single-mode select, but typing is poor if (!preflight?.available_timezones) { diff --git a/frontend/src/types.ts b/frontend/src/types.ts index 80c14249936a2..0e0cd64843f27 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -802,6 +802,7 @@ export type EncodedRecordingSnapshot = { export const SnapshotSourceType = { blob: 'blob', realtime: 'realtime', + file: 'file', } as const export type SnapshotSourceType = (typeof SnapshotSourceType)[keyof typeof SnapshotSourceType] @@ -811,7 +812,12 @@ export interface SessionRecordingSnapshotSource { start_timestamp?: string end_timestamp?: string blob_key?: string - loaded: boolean +} + +export interface SessionRecordingSnapshotSourceResponse { + source: Pick + snapshots?: RecordingSnapshot[] + untransformed_snapshots?: RecordingSnapshot[] } export interface SessionRecordingSnapshotResponse { diff --git a/package.json b/package.json index d0ae5db51d6bd..ea73ec78683ac 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ "pmtiles": "^2.11.0", "postcss": "^8.4.31", "postcss-preset-env": "^9.3.0", - "posthog-js": "1.122.0", + "posthog-js": "1.125.0", "posthog-js-lite": "2.5.0", "prettier": "^2.8.8", "prop-types": "^15.7.2", diff --git a/plugin-server/functional_tests/analytics-ingestion/happy-path.test.ts b/plugin-server/functional_tests/analytics-ingestion/happy-path.test.ts index c788526bbb562..efa5bd3d49eaf 100644 --- a/plugin-server/functional_tests/analytics-ingestion/happy-path.test.ts +++ b/plugin-server/functional_tests/analytics-ingestion/happy-path.test.ts @@ -203,7 +203,7 @@ test.concurrent(`event ingestion: can $set and update person properties`, async }) test.concurrent( - `event ingestion: $process_person=false drops expected fields, doesn't include person properties`, + `event ingestion: $process_person_profile=false drops expected fields, doesn't include person properties`, async () => { const teamId = await createTeam(organizationId) const distinctId = new UUIDT().toString() @@ -229,7 +229,7 @@ test.concurrent( uuid: properylessUuid, event: 'custom event', properties: { - $process_person: false, + $process_person_profile: false, $group_0: 'group_key', $set: { c: 3, @@ -251,7 +251,7 @@ test.concurrent( expect(event).toEqual( expect.objectContaining({ person_properties: {}, - properties: { uuid: properylessUuid, $sent_at: expect.any(String), $process_person: false }, + properties: { uuid: properylessUuid, $sent_at: expect.any(String), $process_person_profile: false }, person_mode: 'propertyless', }) ) diff --git a/plugin-server/src/utils/event.ts b/plugin-server/src/utils/event.ts index 87f8736cc00cd..748500afc13e1 100644 --- a/plugin-server/src/utils/event.ts +++ b/plugin-server/src/utils/event.ts @@ -111,9 +111,9 @@ export function convertToIngestionEvent(event: RawClickHouseEvent, skipElementsC } } -/// Does normalization steps involving the $process_person property. This is currently a separate +/// Does normalization steps involving the $process_person_profile property. This is currently a separate /// function because `normalizeEvent` is called from multiple places, some early in the pipeline, -/// and we want to have one trusted place where `$process_person` is handled and passed through +/// and we want to have one trusted place where `$process_person_profile` is handled and passed through /// all of the processing steps. /// /// If `formPipelineEvent` is removed this can easily be combined with `normalizeEvent`. @@ -132,11 +132,11 @@ export function normalizeProcessPerson(event: PluginEvent, processPerson: boolea delete properties.$unset // Recorded for clarity and so that the property exists if it is ever sent elsewhere, // e.g. for migrations. - properties.$process_person = false + properties.$process_person_profile = false } else { // Removed as it is the default, note that we have record the `person_mode` column // in ClickHouse for all events. - delete properties.$process_person + delete properties.$process_person_profile } event.properties = properties diff --git a/plugin-server/src/worker/ingestion/event-pipeline/runner.ts b/plugin-server/src/worker/ingestion/event-pipeline/runner.ts index 4761ea956f509..9ad11391f0c2f 100644 --- a/plugin-server/src/worker/ingestion/event-pipeline/runner.ts +++ b/plugin-server/src/worker/ingestion/event-pipeline/runner.ts @@ -123,8 +123,8 @@ export class EventPipelineRunner { const kafkaAcks: Promise[] = [] let processPerson = true // The default. - if (event.properties && '$process_person' in event.properties) { - const propValue = event.properties.$process_person + if (event.properties && '$process_person_profile' in event.properties) { + const propValue = event.properties.$process_person_profile if (propValue === true) { // This is the default, and `true` is one of the two valid values. } else if (propValue === false) { @@ -136,7 +136,7 @@ export class EventPipelineRunner { captureIngestionWarning( this.hub.db.kafkaProducer, event.team_id, - 'invalid_event_when_process_person_is_false', + 'invalid_event_when_process_person_profile_is_false', { eventUuid: event.uuid, event: event.event, @@ -159,13 +159,13 @@ export class EventPipelineRunner { captureIngestionWarning( this.hub.db.kafkaProducer, event.team_id, - 'invalid_process_person', + 'invalid_process_person_profile', { eventUuid: event.uuid, event: event.event, distinctId: event.distinct_id, - $process_person: propValue, - message: 'Only a boolean value is valid for the $process_person property', + $process_person_profile: propValue, + message: 'Only a boolean value is valid for the $process_person_profile property', }, { alwaysSend: false } ) diff --git a/plugin-server/src/worker/ingestion/person-state.ts b/plugin-server/src/worker/ingestion/person-state.ts index a71f8ee31acaa..00468129cfefc 100644 --- a/plugin-server/src/worker/ingestion/person-state.ts +++ b/plugin-server/src/worker/ingestion/person-state.ts @@ -90,7 +90,7 @@ export class PersonState { private teamId: number, private distinctId: string, private timestamp: DateTime, - private processPerson: boolean, // $process_person flag from the event + private processPerson: boolean, // $process_person_profile flag from the event private db: DB, private personOverrideWriter?: DeferredPersonOverrideWriter, uuid: UUIDT | undefined = undefined diff --git a/plugin-server/tests/worker/ingestion/event-pipeline/normalizeEventStep.test.ts b/plugin-server/tests/worker/ingestion/event-pipeline/normalizeEventStep.test.ts index 52b659808597a..8fda4db2f2e93 100644 --- a/plugin-server/tests/worker/ingestion/event-pipeline/normalizeEventStep.test.ts +++ b/plugin-server/tests/worker/ingestion/event-pipeline/normalizeEventStep.test.ts @@ -25,7 +25,7 @@ describe('normalizeEventStep()', () => { a: 5, }, $browser: 'Chrome', - $process_person: true, // This is dropped, as it is implied + $process_person_profile: true, // This is dropped, as it is implied }, $set: { someProp: 'value', @@ -54,7 +54,7 @@ describe('normalizeEventStep()', () => { expect(timestamp).toEqual(DateTime.fromISO(event.timestamp!, { zone: 'utc' })) }) - it('normalizes $process_person=false events by dropping $set and related', async () => { + it('normalizes $process_person_profile=false events by dropping $set and related', async () => { await resetTestDatabase() const [hub, _] = await createHub() const organizationId = await createOrganization(hub.db.postgres) @@ -94,7 +94,7 @@ describe('normalizeEventStep()', () => { ...event, properties: { $browser: 'Chrome', - $process_person: false, + $process_person_profile: false, }, }) diff --git a/plugin-server/tests/worker/ingestion/event-pipeline/runner.test.ts b/plugin-server/tests/worker/ingestion/event-pipeline/runner.test.ts index c055b704eb37b..818d96f2656dc 100644 --- a/plugin-server/tests/worker/ingestion/event-pipeline/runner.test.ts +++ b/plugin-server/tests/worker/ingestion/event-pipeline/runner.test.ts @@ -286,12 +286,12 @@ describe('EventPipelineRunner', () => { }) }) -describe('EventPipelineRunner $process_person=false', () => { - it('drops events that are not allowed when $process_person=false', async () => { +describe('EventPipelineRunner $process_person_profile=false', () => { + it('drops events that are not allowed when $process_person_profile=false', async () => { for (const eventName of ['$identify', '$create_alias', '$merge_dangerously', '$groupidentify']) { const event = { ...pipelineEvent, - properties: { $process_person: false }, + properties: { $process_person_profile: false }, event: eventName, team_id: 9, } @@ -311,7 +311,7 @@ describe('EventPipelineRunner $process_person=false', () => { JSON.parse(hub.db.kafkaProducer.queueMessage.mock.calls[0][0].kafkaMessage.messages[0].value) ).toMatchObject({ team_id: 9, - type: 'invalid_event_when_process_person_is_false', + type: 'invalid_event_when_process_person_profile_is_false', details: JSON.stringify({ eventUuid: 'uuid1', event: eventName, distinctId: 'my_id' }), }) } diff --git a/plugin-server/tests/worker/ingestion/person-state.test.ts b/plugin-server/tests/worker/ingestion/person-state.test.ts index 3423ad01f6ab6..09d5e7e58784b 100644 --- a/plugin-server/tests/worker/ingestion/person-state.test.ts +++ b/plugin-server/tests/worker/ingestion/person-state.test.ts @@ -173,8 +173,8 @@ describe('PersonState.update()', () => { expect(distinctIds).toEqual(expect.arrayContaining(['new-user'])) }) - it('creates person if they are new and $process_person=false', async () => { - // Note that eventually $process_person=false will be optimized so that the person is + it('creates person if they are new and $process_person_profile=false', async () => { + // Note that eventually $process_person_profile=false will be optimized so that the person is // *not* created here. const event_uuid = new UUIDT().toString() const processPerson = false @@ -183,7 +183,7 @@ describe('PersonState.update()', () => { event: '$pageview', distinct_id: 'new-user', uuid: event_uuid, - properties: { $process_person: false, $set: { a: 1 }, $set_once: { b: 2 } }, + properties: { $process_person_profile: false, $set: { a: 1 }, $set_once: { b: 2 } }, }, hub, processPerson @@ -216,7 +216,7 @@ describe('PersonState.update()', () => { expect(distinctIds).toEqual(expect.arrayContaining(['new-user'])) }) - it('does not attach existing person properties to $process_person=false events', async () => { + it('does not attach existing person properties to $process_person_profile=false events', async () => { const originalEventUuid = new UUIDT().toString() const person = await personState({ event: '$pageview', @@ -256,7 +256,7 @@ describe('PersonState.update()', () => { }).update() expect(personVerifyProps.properties).toEqual({ $creator_event_uuid: originalEventUuid, c: 420 }) - // But they don't when $process_person=false + // But they don't when $process_person_profile=false const processPersonFalseResult = await personState( { event: '$pageview', diff --git a/plugin-server/tests/worker/ingestion/process-event.test.ts b/plugin-server/tests/worker/ingestion/process-event.test.ts index 9e6c346c40675..19f822fbb0b6e 100644 --- a/plugin-server/tests/worker/ingestion/process-event.test.ts +++ b/plugin-server/tests/worker/ingestion/process-event.test.ts @@ -142,7 +142,7 @@ describe('EventsProcessor#createEvent()', () => { ) }) - it('when $process_person=false, emits event with without person properties or groups', async () => { + it('when $process_person_profile=false, emits event with without person properties or groups', async () => { const processPerson = false await eventsProcessor.createEvent( { ...preIngestionEvent, properties: { $group_0: 'group_key' } }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ffa8d13e751b6..a93193deb0284 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -254,8 +254,8 @@ dependencies: specifier: ^9.3.0 version: 9.3.0(postcss@8.4.31) posthog-js: - specifier: 1.122.0 - version: 1.122.0 + specifier: 1.125.0 + version: 1.125.0 posthog-js-lite: specifier: 2.5.0 version: 2.5.0 @@ -6799,7 +6799,7 @@ packages: '@storybook/csf': 0.1.4 '@storybook/global': 5.0.0 '@storybook/types': 7.6.17 - '@types/qs': 6.9.14 + '@types/qs': 6.9.15 dequal: 2.0.3 lodash: 4.17.21 memoizerific: 1.11.3 @@ -8203,8 +8203,8 @@ packages: resolution: {integrity: sha512-bZcOkJ6uWrL0Qb2NAWKa7TBU+mJHPzhx9jjLL1KHF+XpzEcR7EXHvjbHlGtR/IsP1vyPrehuS6XqkmaePy//mg==} dev: false - /@types/qs@6.9.14: - resolution: {integrity: sha512-5khscbd3SwWMhFqylJBLQ0zIu7c1K6Vz0uBIt915BI3zV0q1nfjRQD3RqSBcPaO6PHEF4ov/t9y89fSiyThlPA==} + /@types/qs@6.9.15: + resolution: {integrity: sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==} dev: true /@types/query-selector-shadow-dom@1.0.0: @@ -17457,8 +17457,8 @@ packages: resolution: {integrity: sha512-Urvlp0Vu9h3td0BVFWt0QXFJDoOZcaAD83XM9d91NKMKTVPZtfU0ysoxstIf5mw/ce9ZfuMgpWPaagrZI4rmSg==} dev: false - /posthog-js@1.122.0: - resolution: {integrity: sha512-+8R2/nLaWyI5Jp2Ly7L52qcgDFU3xryyoNG52DPJ8dlGnagphxIc0mLNGurgyKeeTGycsOsuOIP4dtofv3ZoBA==} + /posthog-js@1.125.0: + resolution: {integrity: sha512-9DZIwIMvq6X6lL1GCzs+bibJ6L+hYhlv9T+OmA/PIGQmI1vSC8YJtUIFm94X1SeQ6oIYz/ZWebGD/owFuJFZOw==} dependencies: fflate: 0.4.8 preact: 10.20.2 diff --git a/posthog/api/instance_status.py b/posthog/api/instance_status.py index 7e800dacfee8c..c0dff3a3e4a1c 100644 --- a/posthog/api/instance_status.py +++ b/posthog/api/instance_status.py @@ -94,7 +94,7 @@ def list(self, request: Request) -> Response: } ) if postgres_alive: - postgres_version = connection.cursor().connection.server_version + postgres_version = connection.cursor().connection.info.server_version metrics.append( { "key": "pg_version", diff --git a/posthog/api/property_definition.py b/posthog/api/property_definition.py index 429d49b30d49b..56d440c6175f5 100644 --- a/posthog/api/property_definition.py +++ b/posthog/api/property_definition.py @@ -131,8 +131,8 @@ def with_properties_to_filter(self, properties_to_filter: Optional[str]) -> "Que if properties_to_filter: return dataclasses.replace( self, - name_filter="AND name IN %(names)s", - params={**self.params, "names": tuple(properties_to_filter.split(","))}, + name_filter="AND name = ANY(%(names)s)", + params={**self.params, "names": properties_to_filter.split(",")}, ) else: return self @@ -141,7 +141,7 @@ def with_is_numerical_flag(self, is_numerical: Optional[str]) -> "QueryContext": if is_numerical: return dataclasses.replace( self, - numerical_filter="AND is_numerical = true AND name NOT IN ('distinct_id', 'timestamp')", + numerical_filter="AND is_numerical = true AND NOT name = ANY(ARRAY['distinct_id', 'timestamp'])", ) else: return self @@ -207,7 +207,7 @@ def with_event_property_filter( if event_names and len(event_names) > 0: event_property_field = f"{self.posthog_eventproperty_table_join_alias}.property is not null" - event_name_join_filter = "AND event in %(event_names)s" + event_name_join_filter = "AND event = ANY(%(event_names)s)" return dataclasses.replace( self, @@ -216,7 +216,7 @@ def with_event_property_filter( event_name_join_filter=event_name_join_filter, event_name_filter=event_name_filter, event_property_join_type="INNER JOIN" if filter_by_event_names else "LEFT JOIN", - params={**self.params, "event_names": tuple(event_names or [])}, + params={**self.params, "event_names": event_names or []}, ) def with_search(self, search_query: str, search_kwargs: Dict) -> "QueryContext": @@ -230,7 +230,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str if excluded_properties: excluded_properties = json.loads(excluded_properties) - excluded_list = tuple( + excluded_list = list( set.union( set(excluded_properties or []), EVENTS_HIDDEN_PROPERTY_DEFINITIONS if type == "event" else [], @@ -239,7 +239,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str return dataclasses.replace( self, excluded_properties_filter=( - f"AND {self.property_definition_table}.name NOT IN %(excluded_properties)s" + f"AND NOT {self.property_definition_table}.name = ANY(%(excluded_properties)s)" if len(excluded_list) > 0 else "" ), @@ -350,7 +350,7 @@ def add_name_alias_to_search_query(search_term: str): if not entries: return "" - return f"""OR name IN ({", ".join(entries)})""" + return f"""OR name = ANY(ARRAY[{", ".join(entries)}])""" def add_latest_means_not_initial(search_term: str): diff --git a/posthog/api/test/__snapshots__/test_action.ambr b/posthog/api/test/__snapshots__/test_action.ambr index 3b71cb1191f91..a92d37c6b730b 100644 --- a/posthog/api/test/__snapshots__/test_action.ambr +++ b/posthog/api/test/__snapshots__/test_action.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.1 @@ -80,7 +80,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.10 @@ -134,7 +134,7 @@ GROUP BY "posthog_action"."id", "posthog_user"."id" ORDER BY "posthog_action"."last_calculated_at" DESC, - "posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + "posthog_action"."name" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.11 @@ -158,7 +158,7 @@ 3, 4, 5 /* ... */) - ORDER BY "posthog_actionstep"."id" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + ORDER BY "posthog_actionstep"."id" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.12 @@ -189,7 +189,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.13 @@ -242,7 +242,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.14 @@ -274,7 +274,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.15 @@ -300,7 +300,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.16 @@ -354,7 +354,7 @@ GROUP BY "posthog_action"."id", "posthog_user"."id" ORDER BY "posthog_action"."last_calculated_at" DESC, - "posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + "posthog_action"."name" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.17 @@ -378,7 +378,7 @@ 3, 4, 5 /* ... */) - ORDER BY "posthog_actionstep"."id" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + ORDER BY "posthog_actionstep"."id" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.2 @@ -410,7 +410,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.3 @@ -421,7 +421,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.4 @@ -447,7 +447,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.5 @@ -501,7 +501,7 @@ GROUP BY "posthog_action"."id", "posthog_user"."id" ORDER BY "posthog_action"."last_calculated_at" DESC, - "posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + "posthog_action"."name" ASC ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.6 @@ -532,7 +532,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.7 @@ -585,7 +585,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.8 @@ -617,7 +617,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.9 @@ -643,6 +643,6 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index b75f8a9661f7e..043697e9d0d46 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.1 @@ -80,7 +80,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.10 @@ -111,7 +111,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 @@ -164,7 +164,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 @@ -196,7 +196,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 @@ -206,7 +206,7 @@ WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + AND NOT "posthog_annotation"."deleted") ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 @@ -285,7 +285,7 @@ OR "posthog_annotation"."team_id" = 2) AND NOT "posthog_annotation"."deleted") ORDER BY "posthog_annotation"."date_marker" DESC - LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + LIMIT 1000 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 @@ -396,7 +396,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.3 @@ -407,7 +407,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.4 @@ -417,7 +417,7 @@ WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + AND NOT "posthog_annotation"."deleted") ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.5 @@ -448,7 +448,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.6 @@ -501,7 +501,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.7 @@ -533,7 +533,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 @@ -543,7 +543,7 @@ WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + AND NOT "posthog_annotation"."deleted") ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 @@ -622,6 +622,6 @@ OR "posthog_annotation"."team_id" = 2) AND NOT "posthog_annotation"."deleted") ORDER BY "posthog_annotation"."date_marker" DESC - LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + LIMIT 1000 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index 7636905bca90b..b60f0660121b9 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -30,7 +30,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.1 @@ -90,7 +90,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.10 @@ -138,7 +138,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.3 @@ -146,7 +146,7 @@ SELECT 1 AS "a" FROM "posthog_grouptypemapping" WHERE "posthog_grouptypemapping"."team_id" = 2 - LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.4 @@ -157,7 +157,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 @@ -168,7 +168,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 @@ -179,7 +179,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:GROUPS_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='team-detail',route='api/projects/%28%3FP%3Cid%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 @@ -554,9 +554,9 @@ # --- # name: TestDecide.test_flag_with_regular_cohorts.4 ''' - SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"' + SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"'::jsonb AND "posthog_person"."properties" ? '$some_prop_1' - AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id_1' @@ -590,9 +590,9 @@ # --- # name: TestDecide.test_flag_with_regular_cohorts.6 ''' - SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"' + SELECT (("posthog_person"."properties" -> '$some_prop_1') = '"something_1"'::jsonb AND "posthog_person"."properties" ? '$some_prop_1' - AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> '$some_prop_1') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'another_id' diff --git a/posthog/api/test/__snapshots__/test_early_access_feature.ambr b/posthog/api/test/__snapshots__/test_early_access_feature.ambr index 7a472bdce6edc..3838fa80136f0 100644 --- a/posthog/api/test/__snapshots__/test_early_access_feature.ambr +++ b/posthog/api/test/__snapshots__/test_early_access_feature.ambr @@ -186,7 +186,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."api_token" = 'token123' - LIMIT 21 /*controller='posthog.api.early_access_feature.early_access_features',route='%5Eapi/early_access_features/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPreviewList.test_early_access_features.5 @@ -217,6 +217,6 @@ FROM "posthog_earlyaccessfeature" LEFT OUTER JOIN "posthog_featureflag" ON ("posthog_earlyaccessfeature"."feature_flag_id" = "posthog_featureflag"."id") WHERE ("posthog_earlyaccessfeature"."stage" = 'beta' - AND "posthog_earlyaccessfeature"."team_id" = 2) /*controller='posthog.api.early_access_feature.early_access_features',route='%5Eapi/early_access_features/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ + AND "posthog_earlyaccessfeature"."team_id" = 2) ''' # --- diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr index 67722a01933c0..b849de02d476e 100644 --- a/posthog/api/test/__snapshots__/test_element.ambr +++ b/posthog/api/test/__snapshots__/test_element.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.1 @@ -87,7 +87,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='element-stats',route='api/element/stats/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.2 @@ -119,7 +119,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='element-stats',route='api/element/stats/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.3 @@ -130,7 +130,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='element-stats',route='api/element/stats/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.4 @@ -141,6 +141,6 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:HEATMAP_SAMPLE_N' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='element-stats',route='api/element/stats/%3F%24'*/ + LIMIT 1 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 0a554e99faae2..8abae0e521e2d 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -397,9 +397,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 2 ''' @@ -429,8 +429,8 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid, + '00000000000040008000000000000001'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -513,9 +513,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 2 OFFSET 2 @@ -555,9 +555,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 2 OFFSET 4 @@ -568,8 +568,7 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000002'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -631,8 +630,10 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid, + '00000000000040008000000000000001'::uuid, + '00000000000040008000000000000002'::uuid, + '00000000000040008000000000000003'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -739,14 +740,14 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ((("posthog_person"."properties" -> 'group') = '"none"' + AND ((("posthog_person"."properties" -> 'group') = '"none"'::jsonb AND "posthog_person"."properties" ? 'group' - AND NOT (("posthog_person"."properties" -> 'group') = 'null')) - OR (("posthog_person"."properties" -> 'group2') IN ('1', - '2', - '3') + AND NOT (("posthog_person"."properties" -> 'group') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'group2') IN ('1'::jsonb, + '2'::jsonb, + '3'::jsonb) AND "posthog_person"."properties" ? 'group2' - AND NOT (("posthog_person"."properties" -> 'group2') = 'null')) + AND NOT (("posthog_person"."properties" -> 'group2') = 'null'::jsonb)) OR EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U0 @@ -754,12 +755,12 @@ AND U0."cohort_id" = 2 AND U0."person_id" = ("posthog_person"."id")) LIMIT 1) - OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"' + OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"'::jsonb AND "posthog_person"."properties" ? 'does-not-exist' - AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null')) - OR (("posthog_person"."properties" -> 'key') = '"value"' + AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')))) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)))) ORDER BY "posthog_person"."id" ASC LIMIT 1000 ''' @@ -874,14 +875,14 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ((("posthog_person"."properties" -> 'group') = '"none"' + AND ((("posthog_person"."properties" -> 'group') = '"none"'::jsonb AND "posthog_person"."properties" ? 'group' - AND NOT (("posthog_person"."properties" -> 'group') = 'null')) - OR (("posthog_person"."properties" -> 'group2') IN ('1', - '2', - '3') + AND NOT (("posthog_person"."properties" -> 'group') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'group2') IN ('1'::jsonb, + '2'::jsonb, + '3'::jsonb) AND "posthog_person"."properties" ? 'group2' - AND NOT (("posthog_person"."properties" -> 'group2') = 'null')) + AND NOT (("posthog_person"."properties" -> 'group2') = 'null'::jsonb)) OR EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U0 @@ -889,12 +890,12 @@ AND U0."cohort_id" = 2 AND U0."person_id" = ("posthog_person"."id")) LIMIT 1) - OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"' + OR (("posthog_person"."properties" -> 'does-not-exist') = '"none"'::jsonb AND "posthog_person"."properties" ? 'does-not-exist' - AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null')) - OR (("posthog_person"."properties" -> 'key') = '"value"' + AND NOT (("posthog_person"."properties" -> 'does-not-exist') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')))) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)))) ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 @@ -993,8 +994,8 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid, + '00000000000040008000000000000001'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -1079,7 +1080,7 @@ WHERE ("posthog_person"."team_id" = 2 AND UPPER(("posthog_person"."properties" ->> 'key')::text) LIKE UPPER('%value%') AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 ''' @@ -1120,7 +1121,7 @@ WHERE ("posthog_person"."team_id" = 2 AND UPPER(("posthog_person"."properties" ->> 'key')::text) LIKE UPPER('%value%') AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 @@ -1131,8 +1132,7 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -1330,9 +1330,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 ''' @@ -1413,9 +1413,9 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 1000 OFFSET 1000 @@ -1426,8 +1426,7 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000002'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 @@ -1524,7 +1523,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.1 @@ -1577,7 +1576,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.10 @@ -1594,12 +1593,12 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC LIMIT 10000 - OFFSET 10000 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + OFFSET 10000 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.11 @@ -1607,14 +1606,13 @@ SELECT "posthog_person"."uuid" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND "posthog_person"."uuid" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000001'::uuid /* ... */) + AND "posthog_person"."uuid" IN ('00000000000040008000000000000000'::uuid) AND NOT (EXISTS (SELECT 1 AS "a" FROM "posthog_cohortpeople" U1 WHERE (U1."cohort_id" = 2 AND U1."person_id" = ("posthog_person"."id")) - LIMIT 1))) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 1))) ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.12 @@ -1674,7 +1672,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.13 @@ -1734,7 +1732,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.14 @@ -1795,7 +1793,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.3 @@ -1806,7 +1804,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.4 @@ -1832,7 +1830,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.5 @@ -1881,7 +1879,7 @@ LEFT OUTER JOIN "posthog_user" ON ("posthog_featureflag"."created_by_id" = "posthog_user"."id") WHERE ("posthog_featureflag"."team_id" = 2 AND "posthog_featureflag"."id" = 2) - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.6 @@ -1904,7 +1902,7 @@ FROM "posthog_featureflag" WHERE ("posthog_featureflag"."key" = 'some-feature' AND "posthog_featureflag"."team_id" = 2) - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.7 @@ -1929,7 +1927,7 @@ FROM "posthog_cohort" WHERE ("posthog_cohort"."id" = 2 AND "posthog_cohort"."team_id" = 2) - LIMIT 21 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.8 @@ -1946,11 +1944,11 @@ "posthog_person"."version" FROM "posthog_person" WHERE ("posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'key') = '"value"' + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null')) + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) ORDER BY "posthog_person"."id" ASC - LIMIT 10000 /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + LIMIT 10000 ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.9 @@ -1970,7 +1968,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_feature_flags-create-static-cohort-for-flag',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/create_static_cohort_for_flag/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db @@ -1980,8 +1978,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -2010,8 +2007,7 @@ person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -2072,9 +2068,9 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.4 ''' - SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") @@ -2085,15 +2081,12 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.5 ''' - SELECT pg_sleep(1); - WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('example_id', - 'random') ), + AND distinct_id = ANY('{example_id,random}') ), existing_overrides AS (SELECT team_id, person_id, @@ -2117,8 +2110,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.6 ''' - SELECT pg_sleep(1); - SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" @@ -2129,8 +2120,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db.7 ''' - SELECT pg_sleep(1); - SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" @@ -2140,8 +2129,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db ''' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -2154,8 +2141,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.1 ''' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -2168,8 +2153,6 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_group_properties_and_slow_db.2 ''' - SELECT pg_sleep(1); - SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", "posthog_grouptypemapping"."group_type", @@ -2182,14 +2165,12 @@ # --- # name: TestResiliency.test_feature_flags_v3_with_slow_db_doesnt_try_to_compute_conditions_again ''' - SELECT pg_sleep(1); - - SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"tim@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index 5bdf7b792790b..9e1f952147f44 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -666,7 +666,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.1 @@ -719,7 +719,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.10 @@ -772,7 +772,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.11 @@ -790,7 +790,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.12 @@ -825,7 +825,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.13 @@ -848,7 +848,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.14 @@ -908,7 +908,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.15 @@ -934,7 +934,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.16 @@ -958,7 +958,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.17 @@ -979,7 +979,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.18 @@ -990,7 +990,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.19 @@ -1017,7 +1017,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.2 @@ -1049,7 +1049,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.20 @@ -1087,7 +1087,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.22 @@ -1140,7 +1140,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.23 @@ -1172,7 +1172,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.24 @@ -1198,7 +1198,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.25 @@ -1207,8 +1207,8 @@ FROM "posthog_dashboarditem" WHERE (NOT ("posthog_dashboarditem"."deleted") AND "posthog_dashboarditem"."team_id" = 2 - AND NOT ("posthog_dashboarditem"."filters" = '{}' - AND "posthog_dashboarditem"."query" IS NOT NULL)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND NOT ("posthog_dashboarditem"."filters" = '{}'::jsonb + AND "posthog_dashboarditem"."query" IS NOT NULL)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.26 @@ -1350,10 +1350,10 @@ LEFT OUTER JOIN "posthog_user" T4 ON ("posthog_dashboarditem"."last_modified_by_id" = T4."id") WHERE (NOT ("posthog_dashboarditem"."deleted") AND "posthog_dashboarditem"."team_id" = 2 - AND NOT ("posthog_dashboarditem"."filters" = '{}' + AND NOT ("posthog_dashboarditem"."filters" = '{}'::jsonb AND "posthog_dashboarditem"."query" IS NOT NULL)) ORDER BY "posthog_dashboarditem"."order" ASC - LIMIT 100 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.27 @@ -1456,7 +1456,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.28 @@ -1571,7 +1571,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.29 @@ -1589,7 +1589,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.3 @@ -1613,7 +1613,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.4 @@ -1666,7 +1666,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.5 @@ -1701,7 +1701,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.6 @@ -1761,7 +1761,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.7 @@ -1788,7 +1788,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.8 @@ -1848,7 +1848,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.9 @@ -1908,6 +1908,6 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index 38996ee675b74..7eeea8ed7c405 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.1 @@ -53,7 +53,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.10 @@ -76,7 +76,7 @@ FROM "posthog_featureflag" WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" - AND "posthog_featureflag"."team_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.11 @@ -136,7 +136,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.12 @@ -147,7 +147,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.13 @@ -173,7 +173,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.14 @@ -184,7 +184,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.15 @@ -237,7 +237,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.16 @@ -272,7 +272,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.17 @@ -332,7 +332,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.18 @@ -343,7 +343,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.19 @@ -354,7 +354,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.2 @@ -363,7 +363,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.20 @@ -374,7 +374,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.21 @@ -385,7 +385,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.22 @@ -396,7 +396,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.23 @@ -407,7 +407,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.24 @@ -418,7 +418,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.25 @@ -429,7 +429,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.26 @@ -440,7 +440,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.27 @@ -451,7 +451,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.28 @@ -462,7 +462,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.29 @@ -473,7 +473,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.3 @@ -484,7 +484,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.30 @@ -537,7 +537,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.31 @@ -555,7 +555,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.32 @@ -590,7 +590,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.33 @@ -613,7 +613,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.34 @@ -673,7 +673,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.35 @@ -684,7 +684,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.36 @@ -695,7 +695,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.37 @@ -706,7 +706,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.38 @@ -717,7 +717,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.39 @@ -728,7 +728,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.4 @@ -751,7 +751,7 @@ FROM "posthog_featureflag" WHERE ("posthog_featureflag"."key" = 'copied-flag-key' AND "posthog_featureflag"."team_id" = 2) - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.40 @@ -762,7 +762,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.41 @@ -815,7 +815,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.42 @@ -850,7 +850,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.43 @@ -910,7 +910,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.44 @@ -921,7 +921,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.45 @@ -932,7 +932,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.46 @@ -943,7 +943,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.47 @@ -954,7 +954,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.48 @@ -965,7 +965,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.49 @@ -976,7 +976,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.5 @@ -1002,7 +1002,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.50 @@ -1013,7 +1013,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.51 @@ -1024,7 +1024,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.52 @@ -1035,7 +1035,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.53 @@ -1046,7 +1046,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.54 @@ -1057,7 +1057,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.55 @@ -1068,7 +1068,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.56 @@ -1121,7 +1121,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.57 @@ -1139,7 +1139,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.58 @@ -1174,7 +1174,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.59 @@ -1197,7 +1197,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.6 @@ -1250,7 +1250,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.60 @@ -1310,7 +1310,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.61 @@ -1321,7 +1321,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.62 @@ -1332,7 +1332,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.63 @@ -1343,7 +1343,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.64 @@ -1354,7 +1354,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.65 @@ -1365,7 +1365,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.66 @@ -1376,7 +1376,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.67 @@ -1399,7 +1399,7 @@ FROM "posthog_featureflag" WHERE ("posthog_featureflag"."active" AND NOT "posthog_featureflag"."deleted" - AND "posthog_featureflag"."team_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.68 @@ -1459,7 +1459,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.69 @@ -1479,7 +1479,7 @@ "posthog_experiment"."updated_at", "posthog_experiment"."archived" FROM "posthog_experiment" - WHERE "posthog_experiment"."feature_flag_id" = 2 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + WHERE "posthog_experiment"."feature_flag_id" = 2 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.7 @@ -1504,7 +1504,7 @@ AND "posthog_featureflag"."key" = 'copied-flag-key' AND "posthog_featureflag"."team_id" = 2) ORDER BY "posthog_featureflag"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.70 @@ -1526,7 +1526,7 @@ "posthog_survey"."updated_at", "posthog_survey"."archived" FROM "posthog_survey" - WHERE "posthog_survey"."linked_flag_id" = 2 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + WHERE "posthog_survey"."linked_flag_id" = 2 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.71 @@ -1540,7 +1540,7 @@ "posthog_earlyaccessfeature"."documentation_url", "posthog_earlyaccessfeature"."created_at" FROM "posthog_earlyaccessfeature" - WHERE "posthog_earlyaccessfeature"."feature_flag_id" = 2 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + WHERE "posthog_earlyaccessfeature"."feature_flag_id" = 2 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.72 @@ -1564,7 +1564,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_featureflagdashboards" ON ("posthog_dashboard"."id" = "posthog_featureflagdashboards"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_featureflagdashboards"."feature_flag_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + AND "posthog_featureflagdashboards"."feature_flag_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.8 @@ -1574,7 +1574,7 @@ WHERE (NOT "posthog_featureflag"."deleted" AND "posthog_featureflag"."key" = 'copied-flag-key' AND "posthog_featureflag"."team_id" = 2) - LIMIT 1 /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.9 @@ -1597,7 +1597,7 @@ FROM "posthog_featureflag" WHERE ("posthog_featureflag"."deleted" AND "posthog_featureflag"."key" = 'copied-flag-key' - AND "posthog_featureflag"."team_id" = 2) /*controller='organization_feature_flags-copy-flags',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/copy_flags/%3F%24'*/ + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success @@ -1628,7 +1628,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.1 @@ -1654,7 +1654,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.2 @@ -1663,7 +1663,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.3 @@ -1674,7 +1674,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.4 @@ -1726,7 +1726,7 @@ "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" - WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + WHERE "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.5 @@ -1753,7 +1753,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.6 @@ -1785,7 +1785,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagGet.test_get_feature_flag_success.7 @@ -1817,6 +1817,6 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /*controller='organization_feature_flags-detail',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/feature_flags/%28%3FP%3Cfeature_flag_key%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_plugin.ambr b/posthog/api/test/__snapshots__/test_plugin.ambr index d6ea19bbacc2f..e279c542c114c 100644 --- a/posthog/api/test/__snapshots__/test_plugin.ambr +++ b/posthog/api/test/__snapshots__/test_plugin.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.1 @@ -53,7 +53,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.10 @@ -67,7 +67,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.11 @@ -126,7 +126,7 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) - LIMIT 100 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.12 @@ -157,7 +157,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.13 @@ -183,7 +183,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.14 @@ -209,7 +209,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.15 @@ -218,7 +218,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.16 @@ -232,7 +232,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.17 @@ -291,7 +291,7 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) - LIMIT 100 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.18 @@ -322,7 +322,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.19 @@ -348,7 +348,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.2 @@ -374,7 +374,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.20 @@ -400,7 +400,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.21 @@ -409,7 +409,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.22 @@ -423,7 +423,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.23 @@ -482,7 +482,7 @@ INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) - LIMIT 100 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.3 @@ -491,7 +491,7 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.4 @@ -502,7 +502,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.5 @@ -516,7 +516,7 @@ FROM "posthog_pluginconfig" U0 INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.6 @@ -547,7 +547,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.7 @@ -573,7 +573,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.8 @@ -599,7 +599,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.9 @@ -608,6 +608,6 @@ FROM "posthog_organizationmembership" WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_organizationmembership"."user_id" = 2) - LIMIT 1 /*controller='organization_plugins-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/plugins/%3F%24'*/ + LIMIT 1 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr index b4c8a06aad816..09c2089e7e46b 100644 --- a/posthog/api/test/__snapshots__/test_preflight.ambr +++ b/posthog/api/test/__snapshots__/test_preflight.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.1 @@ -38,7 +38,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" IN ('constance:posthog:SLACK_APP_CLIENT_ID', 'constance:posthog:SLACK_APP_CLIENT_SECRET', - 'constance:posthog:SLACK_APP_SIGNING_SECRET') /*controller='posthog.views.preflight_check',route='%5E_preflight/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ + 'constance:posthog:SLACK_APP_SIGNING_SECRET') ''' # --- # name: TestPreflight.test_cloud_preflight_limited_db_queries.2 @@ -98,6 +98,6 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='posthog.views.preflight_check',route='%5E_preflight/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_survey.ambr b/posthog/api/test/__snapshots__/test_survey.ambr index 97493427f7527..6798d297f4652 100644 --- a/posthog/api/test/__snapshots__/test_survey.ambr +++ b/posthog/api/test/__snapshots__/test_survey.ambr @@ -159,7 +159,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."api_token" = 'token123' - LIMIT 21 /*controller='posthog.api.survey.surveys',route='%5Eapi/surveys/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSurveysAPIList.test_list_surveys.6 @@ -214,6 +214,6 @@ LEFT OUTER JOIN "posthog_featureflag" ON ("posthog_survey"."linked_flag_id" = "posthog_featureflag"."id") LEFT OUTER JOIN "posthog_featureflag" T4 ON ("posthog_survey"."targeting_flag_id" = T4."id") WHERE ("posthog_survey"."team_id" = 2 - AND NOT ("posthog_survey"."archived")) /*controller='posthog.api.survey.surveys',route='%5Eapi/surveys/%3F%28%3F%3A%5B%3F%23%5D.%2A%29%3F%24'*/ + AND NOT ("posthog_survey"."archived")) ''' # --- diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 9ae54e6e582eb..2cd5eea5a05f6 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.1 @@ -80,7 +80,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.10 @@ -91,7 +91,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.11 @@ -118,7 +118,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.12 @@ -126,7 +126,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13 @@ -157,7 +157,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.14 @@ -210,7 +210,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15 @@ -242,7 +242,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.16 @@ -268,7 +268,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17 @@ -393,7 +393,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2 AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18 @@ -415,7 +415,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19 @@ -433,7 +433,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.2 @@ -465,7 +465,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.20 @@ -639,7 +639,7 @@ 3, 4, 5 /* ... */)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21 @@ -660,7 +660,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22 @@ -770,7 +770,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23 @@ -795,7 +795,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24 @@ -821,7 +821,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25 @@ -996,7 +996,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26 @@ -1017,7 +1017,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27 @@ -1127,7 +1127,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28 @@ -1152,7 +1152,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29 @@ -1178,7 +1178,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3 @@ -1202,7 +1202,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30 @@ -1224,7 +1224,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31 @@ -1251,7 +1251,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.32 @@ -1305,7 +1305,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5 @@ -1365,7 +1365,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.6 @@ -1425,7 +1425,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7 @@ -1451,7 +1451,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.8 @@ -1475,7 +1475,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9 @@ -1496,7 +1496,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1 @@ -1527,7 +1527,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.1 @@ -1580,7 +1580,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.10 @@ -1591,7 +1591,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.11 @@ -1602,7 +1602,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.12 @@ -1613,7 +1613,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.13 @@ -1640,7 +1640,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.14 @@ -1700,7 +1700,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.15 @@ -1760,7 +1760,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.16 @@ -1771,7 +1771,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.17 @@ -1782,7 +1782,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.18 @@ -1793,7 +1793,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.19 @@ -1804,7 +1804,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.2 @@ -1836,7 +1836,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.20 @@ -1847,7 +1847,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.21 @@ -1858,7 +1858,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.22 @@ -1911,7 +1911,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.23 @@ -1929,7 +1929,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.24 @@ -1964,7 +1964,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.25 @@ -1987,7 +1987,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.26 @@ -2047,7 +2047,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.27 @@ -2058,7 +2058,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.28 @@ -2069,7 +2069,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.29 @@ -2080,7 +2080,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.3 @@ -2104,7 +2104,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.30 @@ -2115,7 +2115,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.31 @@ -2126,7 +2126,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.32 @@ -2137,7 +2137,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.33 @@ -2163,7 +2163,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.34 @@ -2187,7 +2187,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.35 @@ -2208,7 +2208,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.36 @@ -2219,7 +2219,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.37 @@ -2230,7 +2230,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.38 @@ -2241,7 +2241,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.39 @@ -2252,7 +2252,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.4 @@ -2305,7 +2305,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.40 @@ -2316,7 +2316,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.41 @@ -2327,7 +2327,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.42 @@ -2338,7 +2338,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.43 @@ -2349,7 +2349,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.44 @@ -2360,7 +2360,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.45 @@ -2371,7 +2371,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.46 @@ -2382,7 +2382,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.47 @@ -2393,7 +2393,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.48 @@ -2404,7 +2404,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.49 @@ -2431,7 +2431,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.5 @@ -2466,7 +2466,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.50 @@ -2497,7 +2497,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.51 @@ -2550,7 +2550,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.52 @@ -2582,7 +2582,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.53 @@ -2608,7 +2608,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.54 @@ -2616,7 +2616,7 @@ SELECT COUNT(*) AS "__count" FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."team_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND "posthog_dashboard"."team_id" = 2) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.55 @@ -2741,7 +2741,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2) ORDER BY "posthog_dashboard"."name" ASC - LIMIT 300 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 300 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.56 @@ -2759,7 +2759,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.57 @@ -2837,7 +2837,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.7 @@ -2848,7 +2848,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.8 @@ -2859,7 +2859,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.9 @@ -2870,7 +2870,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles @@ -2901,7 +2901,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.1 @@ -2954,7 +2954,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.10 @@ -2968,7 +2968,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100 @@ -3003,7 +3003,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101 @@ -3063,7 +3063,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102 @@ -3074,7 +3074,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103 @@ -3085,7 +3085,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104 @@ -3096,7 +3096,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105 @@ -3107,7 +3107,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106 @@ -3118,7 +3118,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107 @@ -3129,7 +3129,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108 @@ -3156,7 +3156,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109 @@ -3216,7 +3216,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11 @@ -3385,7 +3385,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110 @@ -3445,7 +3445,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111 @@ -3456,7 +3456,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112 @@ -3467,7 +3467,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113 @@ -3478,7 +3478,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114 @@ -3489,7 +3489,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115 @@ -3500,7 +3500,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116 @@ -3511,7 +3511,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117 @@ -3564,7 +3564,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118 @@ -3582,7 +3582,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119 @@ -3617,7 +3617,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12 @@ -3625,7 +3625,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120 @@ -3648,7 +3648,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121 @@ -3708,7 +3708,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122 @@ -3719,7 +3719,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123 @@ -3730,7 +3730,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124 @@ -3741,7 +3741,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125 @@ -3752,7 +3752,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126 @@ -3763,7 +3763,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127 @@ -3774,7 +3774,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128 @@ -3800,7 +3800,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129 @@ -3824,7 +3824,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13 @@ -3855,7 +3855,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130 @@ -3876,7 +3876,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131 @@ -3887,7 +3887,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132 @@ -3898,7 +3898,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133 @@ -3909,7 +3909,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134 @@ -3920,7 +3920,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135 @@ -3931,7 +3931,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136 @@ -3942,7 +3942,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137 @@ -3953,7 +3953,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138 @@ -3964,7 +3964,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139 @@ -3975,7 +3975,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14 @@ -4028,7 +4028,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140 @@ -4039,7 +4039,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141 @@ -4050,7 +4050,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142 @@ -4061,7 +4061,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143 @@ -4072,7 +4072,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144 @@ -4099,7 +4099,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145 @@ -4107,7 +4107,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146 @@ -4138,7 +4138,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147 @@ -4191,7 +4191,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148 @@ -4223,7 +4223,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149 @@ -4247,7 +4247,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15 @@ -4279,7 +4279,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150 @@ -4332,7 +4332,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151 @@ -4367,7 +4367,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152 @@ -4427,7 +4427,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153 @@ -4438,7 +4438,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154 @@ -4449,7 +4449,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155 @@ -4460,7 +4460,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.156 @@ -4471,7 +4471,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.157 @@ -4482,7 +4482,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.158 @@ -4493,7 +4493,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.159 @@ -4520,7 +4520,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16 @@ -4531,7 +4531,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.160 @@ -4591,7 +4591,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.161 @@ -4651,7 +4651,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.162 @@ -4662,7 +4662,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.163 @@ -4673,7 +4673,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.164 @@ -4684,7 +4684,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.165 @@ -4695,7 +4695,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.166 @@ -4706,7 +4706,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.167 @@ -4717,7 +4717,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.168 @@ -4770,7 +4770,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.169 @@ -4788,7 +4788,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17 @@ -4814,7 +4814,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.170 @@ -4849,7 +4849,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.171 @@ -4872,7 +4872,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.172 @@ -4932,7 +4932,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.173 @@ -4943,7 +4943,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.174 @@ -4954,7 +4954,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.175 @@ -4965,7 +4965,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.176 @@ -4976,7 +4976,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.177 @@ -4987,7 +4987,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.178 @@ -4998,7 +4998,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.179 @@ -5024,7 +5024,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18 @@ -5036,7 +5036,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.180 @@ -5060,7 +5060,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.181 @@ -5081,7 +5081,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.182 @@ -5092,7 +5092,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.183 @@ -5103,7 +5103,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.184 @@ -5114,7 +5114,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.185 @@ -5125,7 +5125,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.186 @@ -5136,7 +5136,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.187 @@ -5147,7 +5147,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.188 @@ -5158,7 +5158,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.189 @@ -5169,7 +5169,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19 @@ -5183,7 +5183,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.190 @@ -5194,7 +5194,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.191 @@ -5205,7 +5205,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.192 @@ -5216,7 +5216,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.193 @@ -5227,7 +5227,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.194 @@ -5238,7 +5238,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.195 @@ -5265,7 +5265,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.196 @@ -5273,7 +5273,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.197 @@ -5304,7 +5304,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.198 @@ -5357,7 +5357,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.199 @@ -5389,7 +5389,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2 @@ -5421,14 +5421,14 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.20 ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.200 @@ -5452,7 +5452,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.201 @@ -5505,7 +5505,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.202 @@ -5540,7 +5540,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.203 @@ -5600,7 +5600,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.204 @@ -5611,7 +5611,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.205 @@ -5622,7 +5622,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.206 @@ -5633,7 +5633,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.207 @@ -5644,7 +5644,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.208 @@ -5655,7 +5655,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.209 @@ -5666,7 +5666,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21 @@ -5726,7 +5726,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.210 @@ -5753,7 +5753,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.211 @@ -5813,7 +5813,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.212 @@ -5873,7 +5873,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.213 @@ -5884,7 +5884,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.214 @@ -5895,7 +5895,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.215 @@ -5906,7 +5906,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.216 @@ -5917,7 +5917,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.217 @@ -5928,7 +5928,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.218 @@ -5939,7 +5939,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.219 @@ -5992,7 +5992,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22 @@ -6006,7 +6006,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.220 @@ -6024,7 +6024,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.221 @@ -6059,7 +6059,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.222 @@ -6082,7 +6082,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.223 @@ -6142,7 +6142,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.224 @@ -6153,7 +6153,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.225 @@ -6164,7 +6164,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.226 @@ -6175,7 +6175,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.227 @@ -6186,7 +6186,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.228 @@ -6197,7 +6197,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.229 @@ -6208,7 +6208,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23 @@ -6377,7 +6377,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.230 @@ -6403,7 +6403,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.231 @@ -6427,7 +6427,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.232 @@ -6448,7 +6448,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.233 @@ -6459,7 +6459,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.234 @@ -6470,7 +6470,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.235 @@ -6481,7 +6481,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.236 @@ -6492,7 +6492,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.237 @@ -6503,7 +6503,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.238 @@ -6514,7 +6514,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.239 @@ -6525,7 +6525,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24 @@ -6533,7 +6533,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.240 @@ -6544,7 +6544,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.241 @@ -6555,7 +6555,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.242 @@ -6566,7 +6566,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.243 @@ -6577,7 +6577,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.244 @@ -6588,7 +6588,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.245 @@ -6599,7 +6599,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.246 @@ -6626,7 +6626,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.247 @@ -6634,7 +6634,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.248 @@ -6665,7 +6665,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.249 @@ -6718,7 +6718,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25 @@ -6749,7 +6749,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.250 @@ -6781,7 +6781,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.251 @@ -6807,7 +6807,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.252 @@ -6932,7 +6932,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2 AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.253 @@ -6954,7 +6954,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.254 @@ -6972,7 +6972,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.255 @@ -7146,7 +7146,7 @@ 3, 4, 5 /* ... */)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.256 @@ -7167,7 +7167,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.257 @@ -7277,7 +7277,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.258 @@ -7302,7 +7302,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.259 @@ -7328,7 +7328,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26 @@ -7381,7 +7381,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.260 @@ -7556,7 +7556,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.261 @@ -7577,7 +7577,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.262 @@ -7687,7 +7687,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.263 @@ -7712,7 +7712,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.264 @@ -7738,7 +7738,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.265 @@ -7760,7 +7760,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.266 @@ -7771,7 +7771,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.267 @@ -7782,7 +7782,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.268 @@ -7793,7 +7793,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.269 @@ -7804,7 +7804,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27 @@ -7836,7 +7836,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.270 @@ -7847,7 +7847,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.271 @@ -7858,7 +7858,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.272 @@ -7869,7 +7869,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.273 @@ -7880,7 +7880,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.274 @@ -7891,7 +7891,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.275 @@ -7902,7 +7902,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.276 @@ -7913,7 +7913,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.277 @@ -7924,7 +7924,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.278 @@ -7951,7 +7951,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.279 @@ -7962,7 +7962,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28 @@ -7986,7 +7986,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.280 @@ -7997,7 +7997,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.281 @@ -8008,7 +8008,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.282 @@ -8019,7 +8019,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.283 @@ -8030,7 +8030,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.284 @@ -8041,7 +8041,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.285 @@ -8052,7 +8052,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.286 @@ -8063,7 +8063,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.287 @@ -8074,7 +8074,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.288 @@ -8085,7 +8085,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.289 @@ -8096,7 +8096,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29 @@ -8120,7 +8120,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.290 @@ -8131,7 +8131,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.291 @@ -8142,7 +8142,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.292 @@ -8153,7 +8153,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.293 @@ -8164,7 +8164,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.294 @@ -8175,7 +8175,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.295 @@ -8186,7 +8186,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.296 @@ -8197,7 +8197,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.297 @@ -8208,7 +8208,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.298 @@ -8219,7 +8219,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.299 @@ -8230,7 +8230,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.3 @@ -8241,7 +8241,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.30 @@ -8294,7 +8294,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.300 @@ -8305,7 +8305,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.301 @@ -8316,7 +8316,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.302 @@ -8327,7 +8327,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.303 @@ -8338,7 +8338,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.304 @@ -8349,7 +8349,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.305 @@ -8360,7 +8360,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.306 @@ -8371,7 +8371,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.307 @@ -8382,7 +8382,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.308 @@ -8393,7 +8393,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.309 @@ -8404,7 +8404,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31 @@ -8439,7 +8439,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.310 @@ -8450,7 +8450,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.311 @@ -8461,7 +8461,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.312 @@ -8472,7 +8472,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.313 @@ -8483,7 +8483,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.314 @@ -8494,7 +8494,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.315 @@ -8565,7 +8565,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33 @@ -8576,7 +8576,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34 @@ -8587,7 +8587,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.35 @@ -8598,7 +8598,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36 @@ -8609,7 +8609,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37 @@ -8620,7 +8620,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38 @@ -8631,7 +8631,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39 @@ -8658,7 +8658,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.4 @@ -8669,7 +8669,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.40 @@ -8729,7 +8729,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.41 @@ -8789,7 +8789,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.42 @@ -8800,7 +8800,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.43 @@ -8811,7 +8811,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.44 @@ -8822,7 +8822,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.45 @@ -8833,7 +8833,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46 @@ -8844,7 +8844,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47 @@ -8855,7 +8855,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48 @@ -8908,7 +8908,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49 @@ -8926,7 +8926,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5 @@ -8952,7 +8952,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50 @@ -8987,7 +8987,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51 @@ -9010,7 +9010,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52 @@ -9070,7 +9070,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53 @@ -9081,7 +9081,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54 @@ -9092,7 +9092,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55 @@ -9103,7 +9103,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56 @@ -9114,7 +9114,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57 @@ -9125,7 +9125,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58 @@ -9136,7 +9136,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59 @@ -9196,7 +9196,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6 @@ -9208,7 +9208,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60 @@ -9219,7 +9219,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61 @@ -9230,7 +9230,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62 @@ -9241,7 +9241,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63 @@ -9252,7 +9252,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64 @@ -9263,7 +9263,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65 @@ -9274,7 +9274,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66 @@ -9327,7 +9327,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67 @@ -9345,7 +9345,7 @@ "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" WHERE "posthog_dashboardtile"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.68 @@ -9380,7 +9380,7 @@ "posthog_dashboarditem"."tags" FROM "posthog_dashboarditem" WHERE "posthog_dashboarditem"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69 @@ -9403,7 +9403,7 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE "posthog_dashboard"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.7 @@ -9417,7 +9417,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.70 @@ -9477,7 +9477,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.71 @@ -9488,7 +9488,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72 @@ -9499,7 +9499,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73 @@ -9510,7 +9510,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74 @@ -9521,7 +9521,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75 @@ -9532,7 +9532,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76 @@ -9543,7 +9543,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77 @@ -9569,7 +9569,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78 @@ -9593,7 +9593,7 @@ FROM "posthog_dashboard" INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79 @@ -9614,14 +9614,14 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.8 ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80 @@ -9632,7 +9632,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81 @@ -9643,7 +9643,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82 @@ -9654,7 +9654,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83 @@ -9665,7 +9665,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84 @@ -9676,7 +9676,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85 @@ -9687,7 +9687,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86 @@ -9698,7 +9698,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87 @@ -9709,7 +9709,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88 @@ -9720,7 +9720,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89 @@ -9731,7 +9731,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9 @@ -9791,7 +9791,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90 @@ -9802,7 +9802,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91 @@ -9813,7 +9813,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92 @@ -9824,7 +9824,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 2) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + AND "posthog_dashboardtile"."insight_id" = 2) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93 @@ -9851,7 +9851,7 @@ 2, 3, 4, - 5 /* ... */)) /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94 @@ -9859,7 +9859,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_taggeditem"."insight_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95 @@ -9890,7 +9890,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96 @@ -9943,7 +9943,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97 @@ -9975,7 +9975,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98 @@ -9999,7 +9999,7 @@ FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99 @@ -10052,7 +10052,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_insights-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/insights/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard @@ -10094,7 +10094,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.10 @@ -10269,7 +10269,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard.11 @@ -10443,7 +10443,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard.2 @@ -10496,7 +10496,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.3 @@ -10528,7 +10528,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard.4 @@ -10539,7 +10539,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_retrieve_dashboard.5 @@ -10565,7 +10565,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.6 @@ -10690,7 +10690,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2 AND "posthog_dashboard"."id" = 2) - LIMIT 21 /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.7 @@ -10712,7 +10712,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard.8 @@ -10730,7 +10730,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard.9 @@ -10904,7 +10904,7 @@ 3, 4, 5 /* ... */)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%28%3FP%3Cpk%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard_list @@ -10935,7 +10935,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.1 @@ -10988,7 +10988,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.10 @@ -11002,7 +11002,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.11 @@ -11171,7 +11171,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.12 @@ -11179,7 +11179,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.13 @@ -11210,7 +11210,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.14 @@ -11263,7 +11263,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.15 @@ -11295,7 +11295,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.16 @@ -11306,7 +11306,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.17 @@ -11332,7 +11332,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.18 @@ -11344,7 +11344,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.19 @@ -11358,7 +11358,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.2 @@ -11390,14 +11390,14 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.20 ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.21 @@ -11457,7 +11457,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.22 @@ -11471,7 +11471,7 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.23 @@ -11640,7 +11640,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND (NOT "posthog_dashboarditem"."deleted" OR "posthog_dashboardtile"."insight_id" IS NULL)) - ORDER BY "posthog_dashboarditem"."order" ASC /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.24 @@ -11648,7 +11648,7 @@ SELECT "posthog_tag"."name" FROM "posthog_taggeditem" INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.25 @@ -11679,7 +11679,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.26 @@ -11732,7 +11732,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.27 @@ -11764,7 +11764,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.28 @@ -11790,7 +11790,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.29 @@ -11798,7 +11798,7 @@ SELECT COUNT(*) AS "__count" FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."team_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND "posthog_dashboard"."team_id" = 2) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.3 @@ -11809,7 +11809,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.30 @@ -11934,7 +11934,7 @@ WHERE (NOT ("posthog_dashboard"."deleted") AND "posthog_dashboard"."team_id" = 2) ORDER BY "posthog_dashboard"."name" ASC - LIMIT 100 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 100 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.31 @@ -11956,7 +11956,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.32 @@ -11974,7 +11974,7 @@ 2, 3, 4, - 5 /* ... */) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + 5 /* ... */) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.33 @@ -12003,7 +12003,7 @@ WHERE (NOT ("posthog_dashboardtile"."deleted" AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 2) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND "posthog_dashboardtile"."dashboard_id" = 2) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.5 @@ -12029,7 +12029,7 @@ "posthog_organization"."available_features" FROM "posthog_organization" WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.6 @@ -12041,7 +12041,7 @@ AND "posthog_dashboardtile"."deleted" IS NOT NULL) AND NOT ("posthog_dashboard"."deleted") AND "posthog_dashboardtile"."dashboard_id" = 2 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.7 @@ -12055,14 +12055,14 @@ "posthog_sharingconfiguration"."enabled", "posthog_sharingconfiguration"."access_token" FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_sharingconfiguration"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.8 ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 2 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + WHERE "posthog_taggeditem"."dashboard_id" = 2 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.9 @@ -12122,6 +12122,6 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_dashboards-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/dashboards/%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index eaa59d4e760a8..e8aca8271e9d7 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -27,7 +27,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.1 @@ -80,7 +80,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.10 @@ -101,7 +101,7 @@ WHERE "posthog_notebook"."id" = '00000000-0000-0000-0000-000000000000'::uuid LIMIT 21 FOR - UPDATE /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + UPDATE ''' # --- # name: TestNotebooks.test_updates_notebook.11 @@ -133,7 +133,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.12 @@ -164,7 +164,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.13 @@ -217,7 +217,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.14 @@ -249,7 +249,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestNotebooks.test_updates_notebook.15 @@ -260,7 +260,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestNotebooks.test_updates_notebook.16 @@ -268,7 +268,7 @@ SELECT COUNT(*) AS "__count" FROM "posthog_activitylog" WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 2) /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ + AND "posthog_activitylog"."team_id" = 2) ''' # --- # name: TestNotebooks.test_updates_notebook.17 @@ -314,7 +314,7 @@ WHERE ("posthog_activitylog"."scope" = 'Notebook' AND "posthog_activitylog"."team_id" = 2) ORDER BY "posthog_activitylog"."created_at" DESC - LIMIT 2 /*controller='project_notebooks-all-activity',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/activity/%3F%24'*/ + LIMIT 2 ''' # --- # name: TestNotebooks.test_updates_notebook.2 @@ -346,7 +346,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestNotebooks.test_updates_notebook.3 @@ -357,7 +357,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_notebooks-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestNotebooks.test_updates_notebook.4 @@ -388,7 +388,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.5 @@ -441,7 +441,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.6 @@ -473,7 +473,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestNotebooks.test_updates_notebook.7 @@ -484,7 +484,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestNotebooks.test_updates_notebook.8 @@ -610,7 +610,7 @@ LEFT OUTER JOIN "posthog_user" T4 ON ("posthog_notebook"."last_modified_by_id" = T4."id") WHERE ("posthog_notebook"."team_id" = 2 AND "posthog_notebook"."short_id" = '00000000') - LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestNotebooks.test_updates_notebook.9 @@ -629,6 +629,6 @@ "posthog_notebook"."last_modified_by_id" FROM "posthog_notebook" WHERE "posthog_notebook"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 /*controller='project_notebooks-detail',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/notebooks/%28%3FP%3Cshort_id%3E%5B%5E/.%5D%2B%29/%3F%24'*/ + LIMIT 21 ''' # --- diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index 7cb58bbce2324..05b8f11d78dd6 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -3656,7 +3656,7 @@ def test_decide_uses_read_replica(self, mock_is_connected): # make sure we have the flags in cache response = self._post_decide(api_version=3) - with self.assertNumQueries(2, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3) # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3833,7 +3833,7 @@ def test_decide_uses_read_replica_for_cohorts_based_flags(self, mock_is_connecte # make sure we have the flags in cache response = self._post_decide(api_version=3) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3, distinct_id="cohort_founder") # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3851,7 +3851,7 @@ def test_decide_uses_read_replica_for_cohorts_based_flags(self, mock_is_connecte }, ) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3, distinct_id="example_id") # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3869,7 +3869,7 @@ def test_decide_uses_read_replica_for_cohorts_based_flags(self, mock_is_connecte }, ) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3, distinct_id="cohort_secondary") # Replica queries: # E 1. SET LOCAL statement_timeout = 600 @@ -3962,7 +3962,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): # make sure caches are populated response = self._post_decide() - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" # WHERE ("posthog_persondistinctid"."distinct_id" IN ('example_id') AND "posthog_persondistinctid"."team_id" = 1) @@ -3995,7 +3995,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): ) # new request with hash key overrides but not writes should not go to main database - with self.assertNumQueries(7, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(13, using="replica"), self.assertNumQueries(0, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 # E 2. WITH some CTEs, @@ -4024,7 +4024,7 @@ def test_feature_flags_v3_consistent_flags(self, mock_is_connected): # now main database is down, but does not affect replica with connections["default"].execute_wrapper(QueryTimeoutWrapper()), self.assertNumQueries( - 7, using="replica" + 13, using="replica" ), self.assertNumQueries(0, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 @@ -4134,7 +4134,7 @@ def test_feature_flags_v3_consistent_flags_with_write_on_hash_key_overrides(self # make sure caches are populated response = self._post_decide(api_version=3) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" FROM "posthog_persondistinctid" # WHERE ("posthog_persondistinctid"."distinct_id" IN ('example_id') AND "posthog_persondistinctid"."team_id" = 1) @@ -4153,7 +4153,7 @@ def test_feature_flags_v3_consistent_flags_with_write_on_hash_key_overrides(self PersonDistinctId.objects.using("default").create(person=person, distinct_id="other_id", team=self.team) # request with hash key overrides and _new_ writes should go to main database - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(8, using="replica"), self.assertNumQueries(9, using="default"): # Replica queries: # E 1. SET LOCAL statement_timeout = 300 # E 2. WITH some CTEs, @@ -4244,7 +4244,7 @@ def test_feature_flags_v2_with_groups(self, mock_is_connected): version=0, ) - with self.assertNumQueries(2, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_grouptypemapping"."id", -- a.k.a. get group type mappings response = self._post_decide(distinct_id="example_id") @@ -4254,7 +4254,7 @@ def test_feature_flags_v2_with_groups(self, mock_is_connected): ) self.assertFalse(response.json()["errorsWhileComputingFlags"]) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 1. SET LOCAL statement_timeout = 300 # E 2. SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", -- a.k.a get group type mappings @@ -4271,7 +4271,7 @@ def test_feature_flags_v2_with_groups(self, mock_is_connected): ) self.assertFalse(response.json()["errorsWhileComputingFlags"]) - with self.assertNumQueries(5, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(9, using="replica"), self.assertNumQueries(0, using="default"): # E 2. SET LOCAL statement_timeout = 300 # E 3. SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", -- a.k.a get group type mappings @@ -4317,7 +4317,7 @@ def test_site_apps_in_decide_use_replica(self, mock_is_connected): # update caches self._post_decide(api_version=3) - with self.assertNumQueries(2, using="replica"), self.assertNumQueries(0, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(0, using="default"): response = self._post_decide(api_version=3) self.assertEqual(response.status_code, status.HTTP_200_OK) injected = response.json()["siteApps"] @@ -4420,7 +4420,7 @@ def test_local_evaluation(self, mock_rate_limit, mock_capture): response = self.client.get(f"/api/feature_flag/local_evaluation") self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(3, using="default"): + with self.assertNumQueries(3, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4661,7 +4661,7 @@ def test_local_evaluation_for_cohorts(self, mock_rate_limit, mock_capture): PersonalAPIKey.objects.create(label="X", user=self.user, secure_value=hash_key_value(personal_api_key)) cache.clear() - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(3, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4931,7 +4931,7 @@ def test_local_evaluation_for_arbitrary_cohorts(self, mock_rate_limit, mock_capt client.logout() self.client.logout() - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(3, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" diff --git a/posthog/api/test/test_feature_flag.py b/posthog/api/test/test_feature_flag.py index 8a6010bbed37e..770883a191490 100644 --- a/posthog/api/test/test_feature_flag.py +++ b/posthog/api/test/test_feature_flag.py @@ -4962,7 +4962,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(4): + with self.assertNumQueries(8): # one query to get group type mappings, another to get group properties # 2 to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) @@ -4972,7 +4972,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): # now db is down with snapshot_postgres_queries_context(self), connection.execute_wrapper(QueryTimeoutWrapper()): - with self.assertNumQueries(1): + with self.assertNumQueries(3): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) self.assertTrue("group-flag" not in all_flags) @@ -4981,7 +4981,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): self.assertTrue(errors) # # now db is down, but decide was sent correct group property overrides - with self.assertNumQueries(1): + with self.assertNumQueries(3): all_flags, _, _, errors = get_all_feature_flags( team_id, "random", @@ -4994,7 +4994,7 @@ def test_feature_flags_v3_with_group_properties(self, *args): self.assertTrue(errors) # # now db is down, but decide was sent different group property overrides - with self.assertNumQueries(1): + with self.assertNumQueries(3): all_flags, _, _, errors = get_all_feature_flags( team_id, "exam", @@ -5060,7 +5060,7 @@ def test_feature_flags_v3_with_person_properties(self, mock_counter, *args): self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(2): + with self.assertNumQueries(4): # 1 query to get person properties # 1 to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -5158,7 +5158,7 @@ def test_feature_flags_v3_with_a_working_slow_db(self, mock_postgres_check): self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(2): + with self.assertNumQueries(4): # 1 query to set statement timeout # 1 query to get person properties all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -5366,7 +5366,7 @@ def test_feature_flags_v3_with_slow_db_doesnt_try_to_compute_conditions_again(se created_by=self.user, ) - with self.assertNumQueries(2): + with self.assertNumQueries(4): # 1 query to get person properties # 1 query to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -5379,7 +5379,7 @@ def test_feature_flags_v3_with_slow_db_doesnt_try_to_compute_conditions_again(se with snapshot_postgres_queries_context(self), connection.execute_wrapper(slow_query), patch( "posthog.models.feature_flag.flag_matching.FLAG_MATCHING_QUERY_TIMEOUT_MS", 500, - ), self.assertNumQueries(2): + ), self.assertNumQueries(4): # no extra queries to get person properties for the second flag after first one failed all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id") @@ -5458,7 +5458,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(4): + with self.assertNumQueries(8): # one query to get group type mappings, another to get group properties # 2 queries to set statement timeout all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) @@ -5471,7 +5471,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, "posthog.models.feature_flag.flag_matching.FLAG_MATCHING_QUERY_TIMEOUT_MS", 500, ): - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", groups={"organization": "org:1"}) self.assertTrue("group-flag" not in all_flags) @@ -5480,7 +5480,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, self.assertTrue(errors) # # now db is slow, but decide was sent correct group property overrides - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags( team_id, "random", @@ -5502,7 +5502,7 @@ def test_feature_flags_v3_with_group_properties_and_slow_db(self, mock_counter, ) # # now db is down, but decide was sent different group property overrides - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags( team_id, "exam", @@ -5569,7 +5569,7 @@ def test_feature_flags_v3_with_experience_continuity_working_slow_db(self, mock_ self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with snapshot_postgres_queries_context(self), self.assertNumQueries(9): + with snapshot_postgres_queries_context(self), self.assertNumQueries(17): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", hash_key_override="random") self.assertTrue(all_flags["property-flag"]) @@ -5589,7 +5589,7 @@ def test_feature_flags_v3_with_experience_continuity_working_slow_db(self, mock_ # # now db is slow, but decide was sent email parameter with correct email # still need to get hash key override from db, so should time out - with self.assertNumQueries(2): + with self.assertNumQueries(4): all_flags, _, _, errors = get_all_feature_flags( team_id, "random", @@ -5661,7 +5661,7 @@ def test_feature_flags_v3_with_experience_continuity_and_incident_mode(self, moc self.assertTrue(serialized_data.is_valid()) serialized_data.save() - with self.assertNumQueries(5), self.settings(DECIDE_SKIP_HASH_KEY_OVERRIDE_WRITES=True): + with self.assertNumQueries(9), self.settings(DECIDE_SKIP_HASH_KEY_OVERRIDE_WRITES=True): all_flags, _, _, errors = get_all_feature_flags(team_id, "example_id", hash_key_override="random") self.assertTrue(all_flags["property-flag"]) diff --git a/posthog/hogql/query.py b/posthog/hogql/query.py index f2e7a0bbcef37..65c0c9d71356f 100644 --- a/posthog/hogql/query.py +++ b/posthog/hogql/query.py @@ -1,3 +1,4 @@ +import dataclasses from typing import Dict, Optional, Union, cast from posthog.clickhouse.client.connection import Workload @@ -39,10 +40,14 @@ def execute_hogql_query( timings: Optional[HogQLTimings] = None, explain: Optional[bool] = False, pretty: Optional[bool] = True, + context: Optional[HogQLContext] = None, ) -> HogQLQueryResponse: if timings is None: timings = HogQLTimings() + if context is None: + context = HogQLContext(team_id=team.pk) + query_modifiers = create_default_modifiers_for_team(team, modifiers) with timings.measure("query"): @@ -82,13 +87,16 @@ def execute_hogql_query( # Get printed HogQL query, and returned columns. Using a cloned query. with timings.measure("hogql"): with timings.measure("prepare_ast"): - hogql_query_context = HogQLContext( + hogql_query_context = dataclasses.replace( + context, + # set the team.pk here so someone can't pass a context for a different team 🤷‍️ team_id=team.pk, team=team, enable_select_queries=True, timings=timings, modifiers=query_modifiers, ) + with timings.measure("clone"): cloned_query = clone_expr(select_query, True) select_query_hogql = cast( @@ -125,13 +133,16 @@ def execute_hogql_query( # Print the ClickHouse SQL query with timings.measure("print_ast"): - clickhouse_context = HogQLContext( + clickhouse_context = dataclasses.replace( + context, + # set the team.pk here so someone can't pass a context for a different team 🤷‍️ team_id=team.pk, team=team, enable_select_queries=True, timings=timings, modifiers=query_modifiers, ) + clickhouse_sql = print_ast( select_query, context=clickhouse_context, diff --git a/posthog/models/dashboard_tile.py b/posthog/models/dashboard_tile.py index 7cc6b2601cb62..50af2868abf5b 100644 --- a/posthog/models/dashboard_tile.py +++ b/posthog/models/dashboard_tile.py @@ -109,6 +109,9 @@ def save(self, *args, **kwargs) -> None: if has_no_filters_hash and self.insight.filters != {}: self.filters_hash = generate_insight_cache_key(self.insight, self.dashboard) + if "update_fields" in kwargs: + kwargs["update_fields"].append("filters_hash") + super(DashboardTile, self).save(*args, **kwargs) def copy_to_dashboard(self, dashboard: Dashboard) -> None: diff --git a/posthog/models/feature_flag/flag_matching.py b/posthog/models/feature_flag/flag_matching.py index 6efb943d3f6fb..50f0a5d848149 100644 --- a/posthog/models/feature_flag/flag_matching.py +++ b/posthog/models/feature_flag/flag_matching.py @@ -790,7 +790,8 @@ def get_all_feature_flags( distinct_ids = [distinct_id, str(hash_key_override)] query = """ WITH target_person_ids AS ( - SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND distinct_id IN %(distinct_ids)s + SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND + distinct_id = ANY(%(distinct_ids)s) ), existing_overrides AS ( SELECT team_id, person_id, feature_flag_key, hash_key FROM posthog_featureflaghashkeyoverride @@ -801,7 +802,7 @@ def get_all_feature_flags( """ cursor.execute( query, - {"team_id": team_id, "distinct_ids": tuple(distinct_ids)}, # type: ignore + {"team_id": team_id, "distinct_ids": distinct_ids}, # type: ignore ) flags_with_no_overrides = [row[0] for row in cursor.fetchall()] should_write_hash_key_override = len(flags_with_no_overrides) > 0 @@ -902,7 +903,8 @@ def set_feature_flag_hash_key_overrides(team_id: int, distinct_ids: List[str], h with execute_with_timeout(FLAG_MATCHING_QUERY_TIMEOUT_MS) as cursor: query = """ WITH target_person_ids AS ( - SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND distinct_id IN %(distinct_ids)s + SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = %(team_id)s AND + distinct_id = ANY(%(distinct_ids)s) ), existing_overrides AS ( SELECT team_id, person_id, feature_flag_key, hash_key FROM posthog_featureflaghashkeyoverride @@ -931,7 +933,7 @@ def set_feature_flag_hash_key_overrides(team_id: int, distinct_ids: List[str], h query, { "team_id": team_id, - "distinct_ids": tuple(distinct_ids), # type: ignore + "distinct_ids": distinct_ids, # type: ignore "hash_key_override": hash_key_override, }, ) diff --git a/posthog/models/filters/test/__snapshots__/test_filter.ambr b/posthog/models/filters/test/__snapshots__/test_filter.ambr index 1bd4315507dde..6fd1a58ba6a05 100644 --- a/posthog/models/filters/test/__snapshots__/test_filter.ambr +++ b/posthog/models/filters/test/__snapshots__/test_filter.ambr @@ -314,7 +314,7 @@ FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> 'urls')::text) LIKE UPPER('%["abcd"]%') AND "posthog_person"."properties" ? 'urls' - AND NOT (("posthog_person"."properties" -> 'urls') = 'null') + AND NOT (("posthog_person"."properties" -> 'urls') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -333,7 +333,7 @@ FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> '$key')::text) LIKE UPPER('%[''red'']%') AND "posthog_person"."properties" ? '$key' - AND NOT (("posthog_person"."properties" -> '$key') = 'null') + AND NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -343,7 +343,7 @@ FROM "posthog_person" WHERE (UPPER(("posthog_person"."properties" ->> '$key')::text) LIKE UPPER('%red%') AND "posthog_person"."properties" ? '$key' - AND NOT (("posthog_person"."properties" -> '$key') = 'null') + AND NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -351,9 +351,9 @@ ''' SELECT "posthog_person"."uuid" FROM "posthog_person" - WHERE (("posthog_person"."properties" -> '$key') > '["2"]' + WHERE (("posthog_person"."properties" -> '$key') > '["2"]'::jsonb AND "posthog_person"."properties" ? '$key' - AND NOT (("posthog_person"."properties" -> '$key') = 'null') + AND NOT (("posthog_person"."properties" -> '$key') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- @@ -364,7 +364,7 @@ INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'created_at') > '["2m", "3d"]') + AND ("posthog_person"."properties" -> 'created_at') > '["2m", "3d"]'::jsonb) LIMIT 1 ''' # --- @@ -375,7 +375,7 @@ INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'example_id' AND "posthog_person"."team_id" = 2 - AND ("posthog_person"."properties" -> 'created_at') > '"bazinga"') + AND ("posthog_person"."properties" -> 'created_at') > '"bazinga"'::jsonb) LIMIT 1 ''' # --- @@ -419,21 +419,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"' + WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"'::jsonb AND "posthog_person"."properties" ? 'url' - AND NOT (("posthog_person"."properties" -> 'url') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'url') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ((("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '2' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '2'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - OR (("posthog_person"."properties" -> 'bla') = '3' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)))) + OR (("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) AND "posthog_person"."team_id" = 2) ''' # --- @@ -495,21 +495,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"' + WHERE (((("posthog_person"."properties" -> 'url') = '"https://whatever.com"'::jsonb AND "posthog_person"."properties" ? 'url' - AND NOT (("posthog_person"."properties" -> 'url') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'url') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '1'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null') - AND ("posthog_person"."properties" -> 'bla') = '2' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb) + AND ("posthog_person"."properties" -> 'bla') = '2'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '3' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null'))) + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) AND "posthog_person"."team_id" = 2) ''' # --- @@ -643,21 +643,21 @@ "posthog_person"."uuid", "posthog_person"."version" FROM "posthog_person" - WHERE (NOT (((("posthog_person"."properties" -> 'bla') = '1' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '2' + WHERE (NOT ((("posthog_person"."properties" -> 'bla') = '1'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '2'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) + AND NOT ((("posthog_person"."properties" -> 'bla') = '3'::jsonb AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - AND NOT (((("posthog_person"."properties" -> 'bla') = '3' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')) - OR (("posthog_person"."properties" -> 'bla') = '4' - AND "posthog_person"."properties" ? 'bla' - AND NOT (("posthog_person"."properties" -> 'bla') = 'null')))) - AND ("posthog_person"."properties" -> 'other') = '1' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb)) + OR (("posthog_person"."properties" -> 'bla') = '4'::jsonb + AND "posthog_person"."properties" ? 'bla' + AND NOT (("posthog_person"."properties" -> 'bla') = 'null'::jsonb))) + AND ("posthog_person"."properties" -> 'other') = '1'::jsonb AND "posthog_person"."properties" ? 'other' - AND NOT (("posthog_person"."properties" -> 'other') = 'null') + AND NOT (("posthog_person"."properties" -> 'other') = 'null'::jsonb) AND "posthog_person"."team_id" = 2) ''' # --- diff --git a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr index bdc1861fb8605..10d960e13eb3a 100644 --- a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr +++ b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr @@ -68,10 +68,8 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_id']) = '"1234"' - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_id}') = '"1234"'::jsonb + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) @@ -126,8 +124,7 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) @@ -182,8 +179,7 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) @@ -238,8 +234,7 @@ WHERE ("posthog_activitylog"."activity" IN ('job_triggered', 'export_success', 'export_fail') - AND ("posthog_activitylog"."detail" #> ARRAY['trigger', - 'job_type']) = '"Export historical events V2"' + AND ("posthog_activitylog"."detail" #> '{trigger,job_type}') = '"Export historical events V2"'::jsonb AND "posthog_activitylog"."item_id" = '3' AND "posthog_activitylog"."scope" = 'PluginConfig' AND "posthog_activitylog"."team_id" = 2) diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr index 58e44aaccd47f..002cb37519f7f 100644 --- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr +++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr @@ -327,7 +327,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.14 @@ -380,7 +380,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.15 @@ -412,7 +412,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.16 @@ -423,7 +423,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.17 @@ -434,7 +434,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.18 @@ -445,7 +445,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.19 @@ -456,7 +456,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.2 @@ -527,7 +527,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.21 @@ -538,7 +538,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.22 @@ -549,7 +549,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.23 @@ -560,7 +560,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.24 @@ -571,7 +571,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.25 @@ -582,7 +582,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.26 @@ -593,7 +593,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.27 @@ -604,7 +604,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.28 @@ -615,7 +615,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.29 @@ -626,7 +626,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.3 @@ -697,7 +697,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.31 @@ -708,7 +708,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.32 @@ -719,7 +719,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.33 @@ -747,7 +747,7 @@ FROM "posthog_sessionrecording" WHERE ("posthog_sessionrecording"."session_id" IN ('test_get_session_recordings-1', 'test_get_session_recordings-2') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.34 @@ -755,7 +755,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.35 @@ -779,7 +779,7 @@ INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") WHERE ("posthog_persondistinctid"."distinct_id" IN ('user2', 'user_one_0') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.36 @@ -1194,7 +1194,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.1 @@ -1247,7 +1247,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.10 @@ -1258,7 +1258,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.100 @@ -1269,7 +1269,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.101 @@ -1280,7 +1280,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.102 @@ -1291,7 +1291,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.103 @@ -1302,7 +1302,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.104 @@ -1313,7 +1313,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.105 @@ -1324,7 +1324,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.106 @@ -1335,7 +1335,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.107 @@ -1346,7 +1346,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.108 @@ -1357,7 +1357,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.109 @@ -1368,7 +1368,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.11 @@ -1379,7 +1379,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.110 @@ -1409,7 +1409,7 @@ '2', '3', '4') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.111 @@ -1417,7 +1417,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.112 @@ -1443,7 +1443,7 @@ 'user2', 'user3', 'user4') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.113 @@ -1534,7 +1534,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.115 @@ -1587,7 +1587,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.116 @@ -1619,7 +1619,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.117 @@ -1630,7 +1630,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.118 @@ -1641,7 +1641,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.119 @@ -1652,7 +1652,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.12 @@ -1663,7 +1663,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.120 @@ -1674,7 +1674,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.121 @@ -1685,7 +1685,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.122 @@ -1696,7 +1696,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.123 @@ -1707,7 +1707,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.124 @@ -1718,7 +1718,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.125 @@ -1729,7 +1729,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.126 @@ -1740,7 +1740,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.127 @@ -1751,7 +1751,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.128 @@ -1762,7 +1762,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.129 @@ -1773,7 +1773,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.13 @@ -1784,7 +1784,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.130 @@ -1795,7 +1795,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.131 @@ -1806,7 +1806,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.132 @@ -1817,7 +1817,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.133 @@ -1848,7 +1848,7 @@ '3', '4', '5') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.134 @@ -1856,7 +1856,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.135 @@ -1883,7 +1883,7 @@ 'user3', 'user4', 'user5') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.136 @@ -1974,7 +1974,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.138 @@ -2027,7 +2027,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.139 @@ -2059,7 +2059,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.14 @@ -2070,7 +2070,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.140 @@ -2081,7 +2081,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.141 @@ -2092,7 +2092,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.142 @@ -2103,7 +2103,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.143 @@ -2114,7 +2114,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.144 @@ -2125,7 +2125,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.145 @@ -2136,7 +2136,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.146 @@ -2147,7 +2147,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.147 @@ -2158,7 +2158,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.148 @@ -2169,7 +2169,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.149 @@ -2180,7 +2180,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.15 @@ -2191,7 +2191,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.150 @@ -2202,7 +2202,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.151 @@ -2213,7 +2213,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.152 @@ -2224,7 +2224,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.153 @@ -2235,7 +2235,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.154 @@ -2246,7 +2246,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.155 @@ -2257,7 +2257,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.156 @@ -2289,7 +2289,7 @@ '4', '5', '6') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.157 @@ -2297,7 +2297,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.158 @@ -2325,7 +2325,7 @@ 'user4', 'user5', 'user6') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.159 @@ -2396,7 +2396,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.160 @@ -2427,7 +2427,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.161 @@ -2480,7 +2480,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.162 @@ -2512,7 +2512,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.163 @@ -2523,7 +2523,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.164 @@ -2534,7 +2534,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.165 @@ -2545,7 +2545,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.166 @@ -2556,7 +2556,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.167 @@ -2567,7 +2567,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.168 @@ -2578,7 +2578,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.169 @@ -2589,7 +2589,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.17 @@ -2600,7 +2600,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.170 @@ -2611,7 +2611,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.171 @@ -2622,7 +2622,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.172 @@ -2633,7 +2633,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.173 @@ -2644,7 +2644,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.174 @@ -2655,7 +2655,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.175 @@ -2666,7 +2666,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.176 @@ -2677,7 +2677,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.177 @@ -2688,7 +2688,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.178 @@ -2699,7 +2699,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.179 @@ -2732,7 +2732,7 @@ '5', '6', '7') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.18 @@ -2743,7 +2743,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.180 @@ -2751,7 +2751,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.181 @@ -2780,7 +2780,7 @@ 'user5', 'user6', 'user7') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.182 @@ -2871,7 +2871,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.184 @@ -2924,7 +2924,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.185 @@ -2956,7 +2956,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.186 @@ -2967,7 +2967,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.187 @@ -2978,7 +2978,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.188 @@ -2989,7 +2989,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.189 @@ -3000,7 +3000,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.19 @@ -3011,7 +3011,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.190 @@ -3022,7 +3022,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.191 @@ -3033,7 +3033,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.192 @@ -3044,7 +3044,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.193 @@ -3055,7 +3055,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.194 @@ -3066,7 +3066,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.195 @@ -3077,7 +3077,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.196 @@ -3088,7 +3088,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.197 @@ -3099,7 +3099,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.198 @@ -3110,7 +3110,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.199 @@ -3121,7 +3121,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.2 @@ -3153,7 +3153,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.20 @@ -3161,7 +3161,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.200 @@ -3172,7 +3172,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.201 @@ -3183,7 +3183,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.202 @@ -3217,7 +3217,7 @@ '6', '7', '8') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.203 @@ -3225,7 +3225,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.204 @@ -3255,7 +3255,7 @@ 'user6', 'user7', 'user8') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.205 @@ -3346,7 +3346,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.207 @@ -3399,7 +3399,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.208 @@ -3431,7 +3431,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.209 @@ -3442,7 +3442,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.21 @@ -3513,7 +3513,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.211 @@ -3524,7 +3524,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.212 @@ -3535,7 +3535,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.213 @@ -3546,7 +3546,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.214 @@ -3557,7 +3557,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.215 @@ -3568,7 +3568,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.216 @@ -3579,7 +3579,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.217 @@ -3590,7 +3590,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.218 @@ -3601,7 +3601,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.219 @@ -3612,7 +3612,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.22 @@ -3643,7 +3643,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.220 @@ -3654,7 +3654,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.221 @@ -3665,7 +3665,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.222 @@ -3676,7 +3676,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.223 @@ -3687,7 +3687,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.224 @@ -3698,7 +3698,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.225 @@ -3733,7 +3733,7 @@ '7', '8', '9') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.226 @@ -3741,7 +3741,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.227 @@ -3772,7 +3772,7 @@ 'user7', 'user8', 'user9') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.228 @@ -3863,7 +3863,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.23 @@ -3916,7 +3916,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.230 @@ -3969,7 +3969,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.231 @@ -4001,7 +4001,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.232 @@ -4012,7 +4012,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.233 @@ -4023,7 +4023,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.234 @@ -4034,7 +4034,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.235 @@ -4045,7 +4045,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.236 @@ -4056,7 +4056,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.237 @@ -4067,7 +4067,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.238 @@ -4078,7 +4078,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.239 @@ -4089,7 +4089,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.24 @@ -4121,7 +4121,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.240 @@ -4132,7 +4132,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.241 @@ -4143,7 +4143,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.242 @@ -4154,7 +4154,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.243 @@ -4165,7 +4165,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.244 @@ -4176,7 +4176,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.245 @@ -4187,7 +4187,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.246 @@ -4198,7 +4198,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.247 @@ -4209,7 +4209,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.248 @@ -4245,7 +4245,7 @@ '7', '8', '9') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.249 @@ -4253,7 +4253,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.25 @@ -4264,7 +4264,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.250 @@ -4296,7 +4296,7 @@ 'user7', 'user8', 'user9') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.251 @@ -4431,7 +4431,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.260 @@ -4482,7 +4482,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.28 @@ -4493,7 +4493,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.29 @@ -4504,7 +4504,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.3 @@ -4515,7 +4515,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.30 @@ -4526,7 +4526,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.31 @@ -4537,7 +4537,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.32 @@ -4548,7 +4548,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.33 @@ -4559,7 +4559,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.34 @@ -4570,7 +4570,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.35 @@ -4581,7 +4581,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.36 @@ -4592,7 +4592,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.37 @@ -4603,7 +4603,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.38 @@ -4614,7 +4614,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.39 @@ -4625,7 +4625,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.4 @@ -4636,7 +4636,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.40 @@ -4647,7 +4647,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.41 @@ -4674,7 +4674,7 @@ "posthog_sessionrecording"."storage_version" FROM "posthog_sessionrecording" WHERE ("posthog_sessionrecording"."session_id" IN ('1') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.42 @@ -4682,7 +4682,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.43 @@ -4705,7 +4705,7 @@ FROM "posthog_persondistinctid" INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.44 @@ -4796,7 +4796,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.46 @@ -4849,7 +4849,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.47 @@ -4881,7 +4881,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.48 @@ -4892,7 +4892,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.49 @@ -4903,7 +4903,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.5 @@ -4914,7 +4914,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.50 @@ -4925,7 +4925,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.51 @@ -4936,7 +4936,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.52 @@ -4947,7 +4947,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.53 @@ -4958,7 +4958,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.54 @@ -4969,7 +4969,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.55 @@ -4980,7 +4980,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.56 @@ -4991,7 +4991,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.57 @@ -5002,7 +5002,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.58 @@ -5013,7 +5013,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.59 @@ -5024,7 +5024,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.6 @@ -5035,7 +5035,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.60 @@ -5046,7 +5046,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.61 @@ -5057,7 +5057,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.62 @@ -5068,7 +5068,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.63 @@ -5079,7 +5079,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.64 @@ -5107,7 +5107,7 @@ FROM "posthog_sessionrecording" WHERE ("posthog_sessionrecording"."session_id" IN ('1', '2') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.65 @@ -5115,7 +5115,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.66 @@ -5139,7 +5139,7 @@ INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', 'user2') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.67 @@ -5230,7 +5230,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.69 @@ -5283,7 +5283,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.7 @@ -5294,7 +5294,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.70 @@ -5326,7 +5326,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.71 @@ -5337,7 +5337,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.72 @@ -5348,7 +5348,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.73 @@ -5359,7 +5359,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.74 @@ -5370,7 +5370,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.75 @@ -5381,7 +5381,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.76 @@ -5392,7 +5392,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.77 @@ -5403,7 +5403,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.78 @@ -5414,7 +5414,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.79 @@ -5425,7 +5425,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.8 @@ -5436,7 +5436,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.80 @@ -5447,7 +5447,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:RECORDINGS_TTL_WEEKS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.81 @@ -5458,7 +5458,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.82 @@ -5469,7 +5469,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.83 @@ -5480,7 +5480,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.84 @@ -5491,7 +5491,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.85 @@ -5502,7 +5502,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.86 @@ -5513,7 +5513,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:AGGREGATE_BY_DISTINCT_IDS_TEAMS' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.87 @@ -5542,7 +5542,7 @@ WHERE ("posthog_sessionrecording"."session_id" IN ('1', '2', '3') - AND "posthog_sessionrecording"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecording"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.88 @@ -5550,7 +5550,7 @@ SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" WHERE ("posthog_sessionrecordingviewed"."team_id" = 2 - AND "posthog_sessionrecordingviewed"."user_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_sessionrecordingviewed"."user_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.89 @@ -5575,7 +5575,7 @@ WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', 'user2', 'user3') - AND "posthog_persondistinctid"."team_id" = 2) /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + AND "posthog_persondistinctid"."team_id" = 2) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.9 @@ -5586,7 +5586,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.90 @@ -5677,7 +5677,7 @@ "posthog_user"."events_column_config" FROM "posthog_user" WHERE "posthog_user"."id" = 2 - LIMIT 21 /**/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.92 @@ -5730,7 +5730,7 @@ "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" WHERE "posthog_team"."id" = 2 - LIMIT 21 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.93 @@ -5762,7 +5762,7 @@ "posthog_organization"."available_features" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.94 @@ -5773,7 +5773,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.95 @@ -5784,7 +5784,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.96 @@ -5795,7 +5795,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.97 @@ -5806,7 +5806,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.98 @@ -5817,7 +5817,7 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.99 @@ -5828,6 +5828,6 @@ FROM "posthog_instancesetting" WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_session_recordings-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/session_recordings/%3F%24'*/ + LIMIT 1 ''' # --- diff --git a/posthog/settings/web.py b/posthog/settings/web.py index 9c4a277471ed0..f54c2e32fc28c 100644 --- a/posthog/settings/web.py +++ b/posthog/settings/web.py @@ -90,7 +90,6 @@ "posthog.health.healthcheck_middleware", "posthog.middleware.ShortCircuitMiddleware", "posthog.middleware.AllowIPMiddleware", - "google.cloud.sqlcommenter.django.middleware.SqlCommenter", "django.contrib.sessions.middleware.SessionMiddleware", "corsheaders.middleware.CorsMiddleware", "django.middleware.common.CommonMiddleware", diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr index d4ed303a0dda1..dcf75cb638fac 100644 --- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr +++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr @@ -37,7 +37,7 @@ "posthog_scheduledchange"."updated_at" FROM "posthog_scheduledchange" WHERE ("posthog_scheduledchange"."executed_at" IS NULL - AND "posthog_scheduledchange"."scheduled_at" <= '2023-12-21T09:00:00+00:00'::timestamptz) + AND "posthog_scheduledchange"."scheduled_at" <= '2023-12-21 09:00:00+00:00'::timestamptz) ORDER BY "posthog_scheduledchange"."scheduled_at" ASC LIMIT 10000 FOR diff --git a/posthog/tasks/usage_report.py b/posthog/tasks/usage_report.py index de961f967a29f..958601d1ec3ca 100644 --- a/posthog/tasks/usage_report.py +++ b/posthog/tasks/usage_report.py @@ -23,7 +23,7 @@ from django.db import connection from django.db.models import Count, Q from posthoganalytics.client import Client -from psycopg2 import sql +from psycopg import sql from retry import retry from sentry_sdk import capture_exception diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index 5a857e986a79d..84cd8f1298878 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -1,42 +1,42 @@ # serializer version: 1 # name: TestFeatureFlagMatcher.test_coercion_of_booleans_with_is_not_operator ''' - SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + SELECT NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_0", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_2", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_3", - NOT ((("posthog_person"."properties" -> 'disabled') = 'false' - OR ("posthog_person"."properties" -> 'disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_3", + NOT ((("posthog_person"."properties" -> 'disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'disabled' - AND NOT (("posthog_person"."properties" -> 'disabled') = 'null')) AS "flag_X_condition_4", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'disabled') = 'null'::jsonb)) AS "flag_X_condition_4", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_5", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_5", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_6", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_6", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_7", - NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false' - OR ("posthog_person"."properties" -> 'string_disabled') = '"false"') + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_7", + NOT ((("posthog_person"."properties" -> 'string_disabled') = 'false'::jsonb + OR ("posthog_person"."properties" -> 'string_disabled') = '"false"'::jsonb) AND "posthog_person"."properties" ? 'string_disabled' - AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null')) AS "flag_X_condition_8" + AND NOT (("posthog_person"."properties" -> 'string_disabled') = 'null'::jsonb)) AS "flag_X_condition_8" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -46,20 +46,20 @@ # --- # name: TestFeatureFlagMatcher.test_coercion_of_strings_and_numbers_with_is_not_operator ''' - SELECT (NOT ((("posthog_person"."properties" -> 'Organizer Id') IN ('"307"') - OR ("posthog_person"."properties" -> 'Organizer Id') IN ('307')) + SELECT (NOT ((("posthog_person"."properties" -> 'Organizer Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"' - OR ("posthog_person"."properties" -> 'Organizer Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT ((("posthog_person"."properties" -> 'Organizer Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null')) - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb)) + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Organizer Id' - AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'))) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Organizer Id') = 'null'::jsonb))) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -69,20 +69,20 @@ # --- # name: TestFeatureFlagMatcher.test_coercion_of_strings_and_numbers_with_is_not_operator.1 ''' - SELECT NOT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"') - OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307')) + SELECT NOT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0", - NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0", + NOT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_1", - NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"' - OR ("posthog_person"."properties" -> 'Distinct Id') = '307') + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_1", + NOT ((("posthog_person"."properties" -> 'Distinct Id') = '"307"'::jsonb + OR ("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_2", - NOT (("posthog_person"."properties" -> 'Distinct Id') = '307' + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_2", + NOT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -221,10 +221,10 @@ # --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.4 ''' - SELECT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"') - OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307')) + SELECT ((("posthog_person"."properties" -> 'Distinct Id') IN ('"307"'::jsonb) + OR ("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb)) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -234,9 +234,9 @@ # --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.5 ''' - SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307') + SELECT (("posthog_person"."properties" -> 'Distinct Id') IN ('307'::jsonb) AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -246,9 +246,9 @@ # --- # name: TestFeatureFlagMatcher.test_db_matches_independent_of_string_or_number_type.6 ''' - SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307' + SELECT (("posthog_person"."properties" -> 'Distinct Id') = '307'::jsonb AND "posthog_person"."properties" ? 'Distinct Id' - AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'Distinct Id') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -343,7 +343,7 @@ ''' SELECT (("posthog_person"."properties" ->> 'email')::text ~ '["neil@x.com"]' AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -355,7 +355,7 @@ ''' SELECT (("posthog_person"."properties" ->> 'email')::text ~ '["neil@x.com"]' AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'another_id' @@ -377,9 +377,9 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.1 ''' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -403,12 +403,12 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.3 ''' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -429,9 +429,9 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.5 ''' - SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' + SELECT (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", (true) AS "flag_X_condition_1", (true) AS "flag_X_condition_0", (true) AS "flag_X_condition_0", @@ -445,12 +445,12 @@ # --- # name: TestFeatureFlagMatcher.test_multiple_flags.6 ''' - SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"') + SELECT (("posthog_group"."group_properties" -> 'name') IN ('"foo.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0", - (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"') + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_group"."group_properties" -> 'name') IN ('"foo2.inc"'::jsonb) AND "posthog_group"."group_properties" ? 'name' - AND NOT (("posthog_group"."group_properties" -> 'name') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'name') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo2' @@ -483,30 +483,30 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_cohorts_and_nested_cohorts.1 ''' - SELECT (((("posthog_person"."properties" -> 'number') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') > '100.0' + OR (("posthog_person"."properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'version') > '"1.05"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'version') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('string')) - OR (("posthog_person"."properties" -> 'version') > '1.05' + OR (("posthog_person"."properties" -> 'version') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version')) = ('number'))) AND "posthog_person"."properties" ? 'version' - AND NOT (("posthog_person"."properties" -> 'version') = 'null')) AS "flag_X_condition_0", - (((("posthog_person"."properties" -> 'number') < '"31"' + AND NOT (("posthog_person"."properties" -> 'version') = 'null'::jsonb)) AS "flag_X_condition_0", + (((("posthog_person"."properties" -> 'number') < '"31"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') < '31.0' + OR (("posthog_person"."properties" -> 'number') < '31.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null') - AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"' + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb) + AND ((("posthog_person"."properties" -> 'nested_prop') > '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('string')) - OR (("posthog_person"."properties" -> 'nested_prop') > '20.0' + OR (("posthog_person"."properties" -> 'nested_prop') > '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'nested_prop')) = ('number'))) AND "posthog_person"."properties" ? 'nested_prop' - AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'nested_prop') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -561,12 +561,12 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.1 ''' - SELECT (((("posthog_person"."properties" -> 'number') >= '"20"' + SELECT (((("posthog_person"."properties" -> 'number') >= '"20"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('string')) - OR (("posthog_person"."properties" -> 'number') >= '20.0' + OR (("posthog_person"."properties" -> 'number') >= '20.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number')) = ('number'))) AND "posthog_person"."properties" ? 'number' - AND NOT (("posthog_person"."properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_person"."properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -576,12 +576,12 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.2 ''' - SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"' + SELECT (((("posthog_group"."group_properties" -> 'number') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('string')) - OR (("posthog_group"."group_properties" -> 'number') > '100.0' + OR (("posthog_group"."group_properties" -> 'number') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_group"."group_properties" -> 'number')) = ('number'))) AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo' @@ -590,9 +590,9 @@ # --- # name: TestFeatureFlagMatcher.test_numeric_operator_with_groups_and_person_flags.3 ''' - SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"' + SELECT (("posthog_group"."group_properties" -> 'number') > '"100b2c"'::jsonb AND "posthog_group"."group_properties" ? 'number' - AND NOT (("posthog_group"."group_properties" -> 'number') = 'null')) AS "flag_X_condition_0" + AND NOT (("posthog_group"."group_properties" -> 'number') = 'null'::jsonb)) AS "flag_X_condition_0" FROM "posthog_group" WHERE ("posthog_group"."team_id" = 2 AND "posthog_group"."group_key" = 'foo-project' @@ -601,17 +601,17 @@ # --- # name: TestFeatureFlagMatcher.test_super_condition_matches_string ''' - SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true' - OR ("posthog_person"."properties" -> 'is_enabled') = '"true"') + SELECT ((("posthog_person"."properties" -> 'is_enabled') = 'true'::jsonb + OR ("posthog_person"."properties" -> 'is_enabled') = '"true"'::jsonb) AND "posthog_person"."properties" ? 'is_enabled' - AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null')) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", - (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_0", - (("posthog_person"."properties" -> 'email') = '"test@posthog.com"' - AND "posthog_person"."properties" ? 'email' - AND NOT (("posthog_person"."properties" -> 'email') = 'null')) AS "flag_X_condition_1", - (true) AS "flag_X_condition_2" + AND NOT (("posthog_person"."properties" -> 'is_enabled') = 'null'::jsonb)) AS "flag_X_super_condition", ("posthog_person"."properties" -> 'is_enabled') IS NOT NULL AS "flag_X_super_condition_is_set", + (("posthog_person"."properties" -> 'email') = '"fake@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_0", + (("posthog_person"."properties" -> 'email') = '"test@posthog.com"'::jsonb + AND "posthog_person"."properties" ? 'email' + AND NOT (("posthog_person"."properties" -> 'email') = 'null'::jsonb)) AS "flag_X_condition_1", + (true) AS "flag_X_condition_2" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = 'test_id' @@ -748,34 +748,34 @@ # --- # name: TestFeatureFlagMatcher.test_with_sql_injection_properties_and_other_aliases.3 ''' - SELECT (((("posthog_person"."properties" -> 'number space') > '"100"' + SELECT (((("posthog_person"."properties" -> 'number space') > '"100"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('string')) - OR (("posthog_person"."properties" -> 'number space') > '100.0' + OR (("posthog_person"."properties" -> 'number space') > '100.0'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'number space')) = ('number'))) AND "posthog_person"."properties" ? 'number space' - AND NOT (("posthog_person"."properties" -> 'number space') = 'null') + AND NOT (("posthog_person"."properties" -> 'number space') = 'null'::jsonb) AND ((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_0", + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_0", (((JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('string') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"') + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '"100"'::jsonb) OR (JSONB_TYPEOF(("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;')) = ('number') - AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0')) + AND ("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') > '100.0'::jsonb)) AND "posthog_person"."properties" ? ';''" SELECT 1; DROP TABLE posthog_featureflag;' - AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null')) AS "flag_X_condition_1", - (((("posthog_person"."properties" -> 'version!!!') > '"1.05"' + AND NOT (("posthog_person"."properties" -> ';''" SELECT 1; DROP TABLE posthog_featureflag;') = 'null'::jsonb)) AS "flag_X_condition_1", + (((("posthog_person"."properties" -> 'version!!!') > '"1.05"'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('string')) - OR (("posthog_person"."properties" -> 'version!!!') > '1.05' + OR (("posthog_person"."properties" -> 'version!!!') > '1.05'::jsonb AND JSONB_TYPEOF(("posthog_person"."properties" -> 'version!!!')) = ('number'))) AND "posthog_person"."properties" ? 'version!!!' - AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null')) AS "flag_X_condition_2", - ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"' - OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21') + AND NOT (("posthog_person"."properties" -> 'version!!!') = 'null'::jsonb)) AS "flag_X_condition_2", + ((("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '"21"'::jsonb + OR ("posthog_person"."properties" -> 'nested_prop --random #comment //test') = '21'::jsonb) AND "posthog_person"."properties" ? 'nested_prop --random #comment //test' - AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null')) AS "flag_X_condition_3" + AND NOT (("posthog_person"."properties" -> 'nested_prop --random #comment //test') = 'null'::jsonb)) AS "flag_X_condition_3" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") WHERE ("posthog_persondistinctid"."distinct_id" = '307' @@ -821,20 +821,103 @@ ''' # --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.10 + ''' + WITH target_person_ids AS + (SELECT team_id, + person_id + FROM posthog_persondistinctid + WHERE team_id = 2 + AND distinct_id = ANY('{other_id,example_id}') ), + existing_overrides AS + (SELECT team_id, + person_id, + feature_flag_key, + hash_key + FROM posthog_featureflaghashkeyoverride + WHERE team_id = 2 + AND person_id IN + (SELECT person_id + FROM target_person_ids) ), + flags_to_override AS + (SELECT key + FROM posthog_featureflag + WHERE team_id = 2 + AND ensure_experience_continuity = TRUE + AND active = TRUE + AND deleted = FALSE + AND key NOT IN + (SELECT feature_flag_key + FROM existing_overrides) ) + INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) + SELECT team_id, + person_id, + key, + 'example_id' + FROM flags_to_override, + target_person_ids + WHERE EXISTS + (SELECT 1 + FROM posthog_person + WHERE id = person_id + AND team_id = 2) ON CONFLICT DO NOTHING + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.11 + 'ROLLBACK' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.12 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.13 + ''' + + SET LOCAL statement_timeout = 2 + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.14 + ''' + SELECT "posthog_persondistinctid"."person_id", + "posthog_persondistinctid"."distinct_id" + FROM "posthog_persondistinctid" + WHERE ("posthog_persondistinctid"."distinct_id" IN ('other_id', + 'example_id') + AND "posthog_persondistinctid"."team_id" = 2) + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.15 + ''' + SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", + "posthog_featureflaghashkeyoverride"."hash_key", + "posthog_featureflaghashkeyoverride"."person_id" + FROM "posthog_featureflaghashkeyoverride" + WHERE ("posthog_featureflaghashkeyoverride"."person_id" IN (1, + 2, + 3, + 4, + 5 /* ... */) + AND "posthog_featureflaghashkeyoverride"."team_id" = 2) + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.16 + 'COMMIT' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -856,21 +939,26 @@ FROM existing_overrides) ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.2 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 + 'COMMIT' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.3 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -905,21 +993,35 @@ AND team_id = 2) ON CONFLICT DO NOTHING ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.4 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 + 'ROLLBACK' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.9 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 + ''' + + SET LOCAL statement_timeout = 2 + ''' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.10 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -954,13 +1056,19 @@ AND team_id = 2) ON CONFLICT DO NOTHING ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.6 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.11 + 'COMMIT' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.12 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.13 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.7 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.14 ''' SELECT "posthog_persondistinctid"."person_id", "posthog_persondistinctid"."distinct_id" @@ -970,7 +1078,7 @@ AND "posthog_persondistinctid"."team_id" = 2) ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_error_race_conditions_on_person_merging.8 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.15 ''' SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", "posthog_featureflaghashkeyoverride"."hash_key", @@ -984,21 +1092,17 @@ AND "posthog_featureflaghashkeyoverride"."team_id" = 2) ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging - ''' - - SET LOCAL statement_timeout = 2 - ''' +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.16 + 'COMMIT' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.1 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.2 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -1020,70 +1124,26 @@ FROM existing_overrides) ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.2 - ''' - - SET LOCAL statement_timeout = 2 - ''' -# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.3 - ''' - WITH target_person_ids AS - (SELECT team_id, - person_id - FROM posthog_persondistinctid - WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), - existing_overrides AS - (SELECT team_id, - person_id, - feature_flag_key, - hash_key - FROM posthog_featureflaghashkeyoverride - WHERE team_id = 2 - AND person_id IN - (SELECT person_id - FROM target_person_ids) ), - flags_to_override AS - (SELECT key - FROM posthog_featureflag - WHERE team_id = 2 - AND ensure_experience_continuity = TRUE - AND active = TRUE - AND deleted = FALSE - AND key NOT IN - (SELECT feature_flag_key - FROM existing_overrides) ) - INSERT INTO posthog_featureflaghashkeyoverride (team_id, person_id, feature_flag_key, hash_key) - SELECT team_id, - person_id, - key, - 'example_id' - FROM flags_to_override, - target_person_ids - WHERE EXISTS - (SELECT 1 - FROM posthog_person - WHERE id = person_id - AND team_id = 2) ON CONFLICT DO NOTHING - ''' + 'COMMIT' # --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.4 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 ''' SET LOCAL statement_timeout = 2 ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.5 +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.6 ''' WITH target_person_ids AS (SELECT team_id, person_id FROM posthog_persondistinctid WHERE team_id = 2 - AND distinct_id IN ('other_id', - 'example_id') ), + AND distinct_id = ANY('{other_id,example_id}') ), existing_overrides AS (SELECT team_id, person_id, @@ -1118,33 +1178,15 @@ AND team_id = 2) ON CONFLICT DO NOTHING ''' # --- -# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.6 - ''' - - SET LOCAL statement_timeout = 2 - ''' -# --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.7 - ''' - SELECT "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id" - FROM "posthog_persondistinctid" - WHERE ("posthog_persondistinctid"."distinct_id" IN ('other_id', - 'example_id') - AND "posthog_persondistinctid"."team_id" = 2) - ''' + 'ROLLBACK' # --- # name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.8 + 'BEGIN' +# --- +# name: TestHashKeyOverridesRaceConditions.test_hash_key_overrides_with_simulated_race_conditions_on_person_merging.9 ''' - SELECT "posthog_featureflaghashkeyoverride"."feature_flag_key", - "posthog_featureflaghashkeyoverride"."hash_key", - "posthog_featureflaghashkeyoverride"."person_id" - FROM "posthog_featureflaghashkeyoverride" - WHERE ("posthog_featureflaghashkeyoverride"."person_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) - AND "posthog_featureflaghashkeyoverride"."team_id" = 2) + + SET LOCAL statement_timeout = 2 ''' # --- diff --git a/requirements-dev.in b/requirements-dev.in index 43a540277ab7d..e4b002de8dfda 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -32,6 +32,7 @@ types-pytz==2023.3 types-redis==4.3.20 types-retry==0.9.9.4 types-requests==2.26.1 +types-tzlocal~=5.1.0.1 parameterized==0.9.0 pytest==7.4.4 pytest-asyncio==0.21.1 diff --git a/requirements-dev.txt b/requirements-dev.txt index 01a3d14aa480a..ff1fb56f11aeb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -62,7 +62,7 @@ coverage[toml]==5.5 # via pytest-cov datamodel-code-generator==0.25.2 # via -r requirements-dev.in -django==4.1.13 +django==4.2.11 # via # -c requirements.txt # django-stubs @@ -260,7 +260,9 @@ types-markdown==3.3.9 types-python-dateutil==2.8.3 # via -r requirements-dev.in types-pytz==2023.3.0.0 - # via -r requirements-dev.in + # via + # -r requirements-dev.in + # types-tzlocal types-pyyaml==6.0.1 # via # -r requirements-dev.in @@ -271,6 +273,8 @@ types-requests==2.26.1 # via -r requirements-dev.in types-retry==0.9.9.4 # via -r requirements-dev.in +types-tzlocal==5.1.0.1 + # via -r requirements-dev.in typing-extensions==4.7.1 # via # -c requirements.txt diff --git a/requirements.in b/requirements.in index 06010151ef98c..68660085de0d1 100644 --- a/requirements.in +++ b/requirements.in @@ -19,7 +19,7 @@ clickhouse-pool==0.5.3 cryptography==37.0.2 defusedxml==0.6.0 dj-database-url==0.5.0 -Django==4.1.13 +Django~=4.2.11 django-axes==5.9.0 django-cors-headers==3.5.0 django-deprecate-fields==0.1.1 @@ -44,7 +44,6 @@ drf-spectacular==0.27.1 gevent==23.9.1 geoip2==4.6.0 google-cloud-bigquery==3.11.4 -google-cloud-sqlcommenter==2.0.0 gunicorn==20.1.0 idna==2.8 importlib-metadata==6.8.0 diff --git a/requirements.txt b/requirements.txt index 185e17ce08829..e1d4f8fe7d4d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -144,7 +144,7 @@ distro==1.9.0 # via openai dj-database-url==0.5.0 # via -r requirements.in -django==4.1.13 +django==4.2.11 # via # -r requirements.in # django-axes @@ -262,8 +262,6 @@ google-cloud-bigquery==3.11.4 # via -r requirements.in google-cloud-core==2.3.3 # via google-cloud-bigquery -google-cloud-sqlcommenter==2.0.0 - # via -r requirements.in google-crc32c==1.5.0 # via google-resumable-media google-resumable-media==2.5.0