diff --git a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png index e3e93b3dd9678..b54d4facb0bfe 100644 Binary files a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png and b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png differ diff --git a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png index d4377362d9270..332ea24ce3084 100644 Binary files a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png and b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png differ diff --git a/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--dark.png b/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--dark.png index 2a139e2120b78..e97345976d3d7 100644 Binary files a/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--dark.png and b/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--dark.png differ diff --git a/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--light.png b/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--light.png index 8de50aeef6858..a61ad424b9c7f 100644 Binary files a/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--light.png and b/frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--light.png differ diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx index 5d224fce08e5d..36db4c50cdc65 100644 --- a/frontend/src/lib/constants.tsx +++ b/frontend/src/lib/constants.tsx @@ -219,6 +219,7 @@ export const FEATURE_FLAGS = { ENVIRONMENTS: 'environments', // owner: @Twixes #team-product-analytics BILLING_PAYMENT_ENTRY_IN_APP: 'billing-payment-entry-in-app', // owner: @zach LEGACY_ACTION_WEBHOOKS: 'legacy-action-webhooks', // owner: @mariusandra #team-cdp + SESSION_REPLAY_URL_TRIGGER: 'session-replay-url-trigger', // owner: @richard-better #team-replay } as const export type FeatureFlagKey = (typeof FEATURE_FLAGS)[keyof typeof FEATURE_FLAGS] diff --git a/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx b/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx index dce1fbe08efad..e666ec6d20bef 100644 --- a/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx +++ b/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx @@ -1,8 +1,9 @@ -import { IconPlus } from '@posthog/icons' +import { IconPencil, IconPlus, IconTrash } from '@posthog/icons' import { LemonBanner, LemonButton, LemonDialog, + LemonInput, LemonSegmentedButton, LemonSegmentedButtonOption, LemonSelect, @@ -11,23 +12,32 @@ import { Link, Spinner, } from '@posthog/lemon-ui' +import clsx from 'clsx' import { useActions, useValues } from 'kea' +import { Form } from 'kea-forms' import { AuthorizedUrlList } from 'lib/components/AuthorizedUrlList/AuthorizedUrlList' import { AuthorizedUrlListType } from 'lib/components/AuthorizedUrlList/authorizedUrlListLogic' import { EventSelect } from 'lib/components/EventSelect/EventSelect' +import { FlaggedFeature } from 'lib/components/FlaggedFeature' import { FlagSelector } from 'lib/components/FlagSelector' import { PayGateMini } from 'lib/components/PayGateMini/PayGateMini' import { PropertySelect } from 'lib/components/PropertySelect/PropertySelect' import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types' -import { SESSION_REPLAY_MINIMUM_DURATION_OPTIONS } from 'lib/constants' +import { FEATURE_FLAGS, SESSION_REPLAY_MINIMUM_DURATION_OPTIONS } from 'lib/constants' import { IconCancel, IconSelectEvents } from 'lib/lemon-ui/icons' +import { LemonField } from 'lib/lemon-ui/LemonField' import { LemonLabel } from 'lib/lemon-ui/LemonLabel/LemonLabel' import { objectsEqual } from 'lib/utils' -import { sessionReplayLinkedFlagLogic } from 'scenes/settings/environment/sessionReplayLinkedFlagLogic' +import { sessionReplayIngestionControlLogic } from 'scenes/settings/environment/sessionReplayIngestionControlLogic' import { teamLogic } from 'scenes/teamLogic' import { userLogic } from 'scenes/userLogic' -import { AvailableFeature, MultivariateFlagOptions, SessionRecordingAIConfig } from '~/types' +import { + AvailableFeature, + MultivariateFlagOptions, + SessionRecordingAIConfig, + SessionReplayUrlTriggerConfig, +} from '~/types' function LogCaptureSettings(): JSX.Element { const { updateCurrentTeam } = useActions(teamLogic) @@ -259,9 +269,8 @@ function LinkedFlagSelector(): JSX.Element | null { const featureFlagRecordingFeatureEnabled = hasAvailableFeature(AvailableFeature.REPLAY_FEATURE_FLAG_BASED_RECORDING) - const logic = sessionReplayLinkedFlagLogic({ id: currentTeam?.session_recording_linked_flag?.id || null }) - const { linkedFlag, featureFlagLoading, flagHasVariants } = useValues(logic) - const { selectFeatureFlag } = useActions(logic) + const { linkedFlag, featureFlagLoading, flagHasVariants } = useValues(sessionReplayIngestionControlLogic) + const { selectFeatureFlag } = useActions(sessionReplayIngestionControlLogic) if (!featureFlagRecordingFeatureEnabled) { return null @@ -330,6 +339,123 @@ function LinkedFlagSelector(): JSX.Element | null { ) } +function UrlTriggerForm(): JSX.Element { + const { cancelProposingUrlTrigger } = useActions(sessionReplayIngestionControlLogic) + const { isProposedUrlTriggerSubmitting } = useValues(sessionReplayIngestionControlLogic) + + return ( +
+
+ + + + + + +
+
+ + Cancel + + + Save + +
+
+ ) +} + +function UrlTriggerRow({ trigger, index }: { trigger: SessionReplayUrlTriggerConfig; index: number }): JSX.Element { + const { editUrlTriggerIndex } = useValues(sessionReplayIngestionControlLogic) + const { setEditUrlTriggerIndex, removeUrlTrigger } = useActions(sessionReplayIngestionControlLogic) + + if (editUrlTriggerIndex === index) { + return ( +
+ +
+ ) + } + + return ( +
+ + {trigger.matching === 'regex' ? 'Matches regex: ' : ''} {trigger.url} + +
+ } + onClick={() => setEditUrlTriggerIndex(index)} + tooltip="Edit" + center + /> + + } + tooltip="Remove URL trigger" + center + onClick={() => { + LemonDialog.open({ + title: <>Remove URL trigger, + description: `Are you sure you want to remove this URL trigger?`, + primaryButton: { + status: 'danger', + children: 'Remove', + onClick: () => removeUrlTrigger(index), + }, + secondaryButton: { + children: 'Cancel', + }, + }) + }} + /> +
+
+ ) +} + +function UrlTriggerOptions(): JSX.Element | null { + const { isAddUrlTriggerConfigFormVisible, urlTriggerConfig } = useValues(sessionReplayIngestionControlLogic) + const { newUrlTrigger } = useActions(sessionReplayIngestionControlLogic) + + return ( +
+
+ Enable recordings when URL matches + { + newUrlTrigger() + }} + type="secondary" + icon={} + data-attr="session-replay-add-url-trigger" + > + Add + +
+

+ Adding a URL trigger means recording will only be started when the user visits a page that matches the + URL. +

+ + {isAddUrlTriggerConfigFormVisible && } + {urlTriggerConfig?.map((trigger, index) => ( + + ))} +
+ ) +} + export function ReplayCostControl(): JSX.Element | null { const { updateCurrentTeam } = useActions(teamLogic) const { currentTeam } = useValues(teamLogic) @@ -484,6 +610,9 @@ export function ReplayCostControl(): JSX.Element | null { )} + + + ) diff --git a/frontend/src/scenes/settings/environment/sessionReplayIngestionControlLogic.ts b/frontend/src/scenes/settings/environment/sessionReplayIngestionControlLogic.ts new file mode 100644 index 0000000000000..b0d2057631f9d --- /dev/null +++ b/frontend/src/scenes/settings/environment/sessionReplayIngestionControlLogic.ts @@ -0,0 +1,158 @@ +import { actions, afterMount, connect, kea, listeners, path, props, reducers, selectors, sharedListeners } from 'kea' +import { forms } from 'kea-forms' +import { loaders } from 'kea-loaders' +import { subscriptions } from 'kea-subscriptions' +import api from 'lib/api' +import { isObject } from 'lib/utils' +import { variantKeyToIndexFeatureFlagPayloads } from 'scenes/feature-flags/featureFlagLogic' +import { teamLogic } from 'scenes/teamLogic' + +import { FeatureFlagBasicType, SessionReplayUrlTriggerConfig, TeamPublicType, TeamType } from '~/types' + +import type { sessionReplayIngestionControlLogicType } from './sessionReplayIngestionControlLogicType' + +const NEW_URL_TRIGGER = { url: '', matching: 'regex' } + +export const sessionReplayIngestionControlLogic = kea([ + path(['scenes', 'settings', 'project', 'sessionReplayIngestionControlLogic']), + actions({ + selectFeatureFlag: (flag: FeatureFlagBasicType) => ({ flag }), + setUrlTriggerConfig: (urlTriggerConfig: SessionReplayUrlTriggerConfig[]) => ({ urlTriggerConfig }), + + addUrlTrigger: (urlTriggerConfig: SessionReplayUrlTriggerConfig) => ({ urlTriggerConfig }), + removeUrlTrigger: (index: number) => ({ index }), + updateUrlTrigger: (index: number, urlTriggerConfig: SessionReplayUrlTriggerConfig) => ({ + index, + urlTriggerConfig, + }), + setEditUrlTriggerIndex: (originalIndex: number | null) => ({ originalIndex }), + newUrlTrigger: true, + cancelProposingUrlTrigger: true, + }), + connect({ values: [teamLogic, ['currentTeam']], actions: [teamLogic, ['updateCurrentTeam']] }), + reducers({ + selectedFlag: [ + null as FeatureFlagBasicType | null, + { + selectFeatureFlag: (_, { flag }) => flag, + }, + ], + urlTriggerConfig: [ + null as SessionReplayUrlTriggerConfig[] | null, + { + setUrlTriggerConfig: (_, { urlTriggerConfig }) => urlTriggerConfig, + addUrlTrigger: (state, { urlTriggerConfig }) => [...(state ?? []), urlTriggerConfig], + updateUrlTrigger: (state, { index, urlTriggerConfig: newUrlTriggerConfig }) => + (state ?? []).map((triggerConfig, i) => (i === index ? newUrlTriggerConfig : triggerConfig)), + removeUrlTrigger: (state, { index }) => { + return (state ?? []).filter((_, i) => i !== index) + }, + }, + ], + editUrlTriggerIndex: [ + null as number | null, + { + setEditUrlTriggerIndex: (_, { originalIndex }) => originalIndex, + removeUrlTrigger: (editUrlTriggerIndex, { index }) => + editUrlTriggerIndex && index < editUrlTriggerIndex + ? editUrlTriggerIndex - 1 + : index === editUrlTriggerIndex + ? null + : editUrlTriggerIndex, + newUrlTrigger: () => -1, + updateUrlTrigger: () => null, + addUrlTrigger: () => null, + cancelProposingUrlTrigger: () => null, + }, + ], + }), + props({}), + loaders(({ values }) => ({ + featureFlag: { + loadFeatureFlag: async () => { + if (values.linkedFeatureFlagId) { + const retrievedFlag = await api.featureFlags.get(values.linkedFeatureFlagId) + return variantKeyToIndexFeatureFlagPayloads(retrievedFlag) + } + return null + }, + }, + })), + selectors({ + linkedFeatureFlagId: [ + (s) => [s.currentTeam], + (currentTeam) => currentTeam?.session_recording_linked_flag?.id || null, + ], + linkedFlag: [ + (s) => [s.featureFlag, s.selectedFlag, s.currentTeam], + // an existing linked flag is loaded from the API, + // a newly chosen flag is selected can be passed in + // the current team is used to ensure that we don't show stale values + // as people change the selection + (featureFlag, selectedFlag, currentTeam) => + currentTeam?.session_recording_linked_flag?.id ? selectedFlag || featureFlag : null, + ], + flagHasVariants: [(s) => [s.linkedFlag], (linkedFlag) => isObject(linkedFlag?.filters.multivariate)], + remoteUrlTriggerConfig: [ + (s) => [s.currentTeam], + (currentTeam) => currentTeam?.session_recording_url_trigger_config, + ], + isAddUrlTriggerConfigFormVisible: [ + (s) => [s.editUrlTriggerIndex], + (editUrlTriggerIndex) => editUrlTriggerIndex === -1, + ], + urlTriggerToEdit: [ + (s) => [s.urlTriggerConfig, s.editUrlTriggerIndex], + (urlTriggerConfig, editUrlTriggerIndex) => { + if ( + editUrlTriggerIndex === null || + editUrlTriggerIndex === -1 || + !urlTriggerConfig?.[editUrlTriggerIndex] + ) { + return NEW_URL_TRIGGER + } + return urlTriggerConfig[editUrlTriggerIndex] + }, + ], + }), + afterMount(({ actions }) => { + actions.loadFeatureFlag() + }), + subscriptions(({ actions }) => ({ + currentTeam: (currentTeam: TeamPublicType | TeamType | null) => { + actions.setUrlTriggerConfig(currentTeam?.session_recording_url_trigger_config ?? []) + }, + })), + forms(({ values, actions }) => ({ + proposedUrlTrigger: { + defaults: { url: '', matching: 'regex' } as SessionReplayUrlTriggerConfig, + submit: async ({ url, matching }) => { + if (values.editUrlTriggerIndex !== null && values.editUrlTriggerIndex >= 0) { + actions.updateUrlTrigger(values.editUrlTriggerIndex, { url, matching }) + } else { + actions.addUrlTrigger({ url, matching }) + } + }, + }, + })), + sharedListeners(({ values }) => ({ + saveUrlTriggers: async () => { + await teamLogic.asyncActions.updateCurrentTeam({ + session_recording_url_trigger_config: values.urlTriggerConfig ?? [], + }) + }, + })), + listeners(({ sharedListeners, actions, values }) => ({ + setEditUrlTriggerIndex: () => { + actions.setProposedUrlTriggerValue('url', values.urlTriggerToEdit.url) + actions.setProposedUrlTriggerValue('matching', values.urlTriggerToEdit.matching) + }, + addUrlTrigger: sharedListeners.saveUrlTriggers, + removeUrlTrigger: sharedListeners.saveUrlTriggers, + updateUrlTrigger: sharedListeners.saveUrlTriggers, + submitProposedUrlTriggerSuccess: () => { + actions.setEditUrlTriggerIndex(null) + actions.resetProposedUrlTrigger() + }, + })), +]) diff --git a/frontend/src/scenes/settings/environment/sessionReplayLinkedFlagLogic.ts b/frontend/src/scenes/settings/environment/sessionReplayLinkedFlagLogic.ts deleted file mode 100644 index b7b36f30cf9f9..0000000000000 --- a/frontend/src/scenes/settings/environment/sessionReplayLinkedFlagLogic.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { actions, afterMount, connect, kea, path, props, reducers, selectors } from 'kea' -import { loaders } from 'kea-loaders' -import api from 'lib/api' -import { isObject } from 'lib/utils' -import { variantKeyToIndexFeatureFlagPayloads } from 'scenes/feature-flags/featureFlagLogic' -import { teamLogic } from 'scenes/teamLogic' - -import { FeatureFlagBasicType } from '~/types' - -import type { sessionReplayLinkedFlagLogicType } from './sessionReplayLinkedFlagLogicType' - -export interface ReplayLinkedFlagLogicProps { - id: number | null -} - -export const sessionReplayLinkedFlagLogic = kea([ - path(['scenes', 'settings', 'project', 'sessionReplayLinkedFlagLogic']), - actions({ - selectFeatureFlag: (flag: FeatureFlagBasicType) => ({ flag }), - }), - connect({ values: [teamLogic, ['currentTeam']] }), - reducers({ - selectedFlag: [ - null as FeatureFlagBasicType | null, - { - selectFeatureFlag: (_, { flag }) => flag, - }, - ], - }), - props({} as ReplayLinkedFlagLogicProps), - loaders(({ props }) => ({ - featureFlag: { - loadFeatureFlag: async () => { - if (props.id) { - const retrievedFlag = await api.featureFlags.get(props.id) - return variantKeyToIndexFeatureFlagPayloads(retrievedFlag) - } - return null - }, - }, - })), - selectors({ - linkedFlag: [ - (s) => [s.featureFlag, s.selectedFlag, s.currentTeam], - // an existing linked flag is loaded from the API, - // a newly chosen flag is selected can be passed in - // the current team is used to ensure that we don't show stale values - // as people change the selection - (featureFlag, selectedFlag, currentTeam) => - currentTeam?.session_recording_linked_flag?.id ? selectedFlag || featureFlag : null, - ], - flagHasVariants: [(s) => [s.linkedFlag], (linkedFlag) => isObject(linkedFlag?.filters.multivariate)], - }), - afterMount(({ actions }) => { - actions.loadFeatureFlag() - }), -]) diff --git a/frontend/src/scenes/teamActivityDescriber.tsx b/frontend/src/scenes/teamActivityDescriber.tsx index 024748a186128..7fd8e6cdfe289 100644 --- a/frontend/src/scenes/teamActivityDescriber.tsx +++ b/frontend/src/scenes/teamActivityDescriber.tsx @@ -37,6 +37,17 @@ const teamActionsMapping: Record< ], } }, + session_recording_url_trigger_config(change: ActivityChange | undefined): ChangeMapping | null { + const before = change?.before + const after = change?.after + if (before === null && after === null) { + return null + } + + return { + description: [<>Changed session replay URL triggers], + } + }, capture_console_log_opt_in(change: ActivityChange | undefined): ChangeMapping | null { return { description: [<>{change?.after ? 'enabled' : 'disabled'} console log capture in session replay] } }, diff --git a/frontend/src/types.ts b/frontend/src/types.ts index a5fc38e0328ea..14d0ee73a3e28 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -513,6 +513,7 @@ export interface TeamType extends TeamBasicType { autocapture_exceptions_opt_in: boolean autocapture_web_vitals_opt_in?: boolean autocapture_web_vitals_allowed_metrics?: SupportedWebVitalsMetrics[] + session_recording_url_trigger_config?: SessionReplayUrlTriggerConfig[] surveys_opt_in?: boolean heatmaps_opt_in?: boolean autocapture_exceptions_errors_to_ignore: string[] @@ -4608,3 +4609,8 @@ export type AppMetricsV2RequestParams = { interval?: 'hour' | 'day' | 'week' breakdown_by?: 'name' | 'kind' } + +export type SessionReplayUrlTriggerConfig = { + url: string + matching: 'regex' +} diff --git a/latest_migrations.manifest b/latest_migrations.manifest index 66fcab590d608..7e70361e8625e 100644 --- a/latest_migrations.manifest +++ b/latest_migrations.manifest @@ -5,7 +5,7 @@ contenttypes: 0002_remove_content_type_name ee: 0016_rolemembership_organization_member otp_static: 0002_throttling otp_totp: 0002_auto_20190420_0723 -posthog: 0491_alertconfiguration_snoozed_until_and_more +posthog: 0492_team_session_recording_url_trigger_config sessions: 0001_initial social_django: 0010_uid_db_index two_factor: 0007_auto_20201201_1019 diff --git a/posthog/api/decide.py b/posthog/api/decide.py index 0569e2d5772fe..ed5cdc31aae09 100644 --- a/posthog/api/decide.py +++ b/posthog/api/decide.py @@ -351,6 +351,7 @@ def _session_recording_config_response(request: HttpRequest, team: Team, token: "minimumDurationMilliseconds": minimum_duration, "linkedFlag": linked_flag, "networkPayloadCapture": team.session_recording_network_payload_capture_config or None, + "urlTriggers": team.session_recording_url_trigger_config, } if isinstance(team.session_replay_config, dict): diff --git a/posthog/api/team.py b/posthog/api/team.py index adbf2786f9a7b..566ec7fad57ed 100644 --- a/posthog/api/team.py +++ b/posthog/api/team.py @@ -103,6 +103,7 @@ class Meta: "session_recording_minimum_duration_milliseconds", "session_recording_linked_flag", "session_recording_network_payload_capture_config", + "session_recording_url_trigger_config", "session_replay_config", "survey_config", "recording_domains", @@ -156,6 +157,7 @@ class Meta: "session_recording_minimum_duration_milliseconds", "session_recording_linked_flag", "session_recording_network_payload_capture_config", + "session_recording_url_trigger_config", "session_replay_config", "survey_config", "effective_membership_level", diff --git a/posthog/api/test/__snapshots__/test_action.ambr b/posthog/api/test/__snapshots__/test_action.ambr index b2dc5ba508946..a55b9fe7296a2 100644 --- a/posthog/api/test/__snapshots__/test_action.ambr +++ b/posthog/api/test/__snapshots__/test_action.ambr @@ -57,6 +57,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -147,6 +148,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -469,6 +471,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index 4598de97187a5..6f4850c626049 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -57,6 +57,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -115,6 +116,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -370,6 +372,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index 21d18122377ee..7e266f47d2009 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -65,153 +65,73 @@ # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.10 ''' - SELECT "posthog_hogfunction"."id", - "posthog_hogfunction"."team_id", - "posthog_hogfunction"."name", - "posthog_hogfunction"."description", - "posthog_hogfunction"."created_at", - "posthog_hogfunction"."created_by_id", - "posthog_hogfunction"."deleted", - "posthog_hogfunction"."updated_at", - "posthog_hogfunction"."enabled", - "posthog_hogfunction"."icon_url", - "posthog_hogfunction"."hog", - "posthog_hogfunction"."bytecode", - "posthog_hogfunction"."inputs_schema", - "posthog_hogfunction"."inputs", - "posthog_hogfunction"."encrypted_inputs", - "posthog_hogfunction"."filters", - "posthog_hogfunction"."masking", - "posthog_hogfunction"."template_id", - "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_hogfunction" - INNER JOIN "posthog_team" ON ("posthog_hogfunction"."team_id" = "posthog_team"."id") - WHERE ("posthog_hogfunction"."team_id" = 2 - AND "posthog_hogfunction"."filters" @> '{"filter_test_accounts": true}'::jsonb) + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 2 + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.11 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE ("posthog_team"."project_id" = 2 - AND "posthog_team"."id" = 2) - LIMIT 21 + SELECT "posthog_featureflag"."id", + "posthog_featureflag"."key", + "posthog_featureflag"."name", + "posthog_featureflag"."filters", + "posthog_featureflag"."rollout_percentage", + "posthog_featureflag"."team_id", + "posthog_featureflag"."created_by_id", + "posthog_featureflag"."created_at", + "posthog_featureflag"."deleted", + "posthog_featureflag"."active", + "posthog_featureflag"."rollback_conditions", + "posthog_featureflag"."performed_rollback", + "posthog_featureflag"."ensure_experience_continuity", + "posthog_featureflag"."usage_dashboard_id", + "posthog_featureflag"."has_enriched_analytics" + FROM "posthog_featureflag" + WHERE ("posthog_featureflag"."active" + AND NOT "posthog_featureflag"."deleted" + AND "posthog_featureflag"."team_id" = 2) ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.12 ''' - SELECT 1 AS "a" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 2 - LIMIT 1 + SELECT "posthog_pluginconfig"."id", + "posthog_pluginconfig"."web_token", + "posthog_pluginsourcefile"."updated_at", + "posthog_plugin"."updated_at", + "posthog_pluginconfig"."updated_at" + FROM "posthog_pluginconfig" + INNER JOIN "posthog_plugin" ON ("posthog_pluginconfig"."plugin_id" = "posthog_plugin"."id") + INNER JOIN "posthog_pluginsourcefile" ON ("posthog_plugin"."id" = "posthog_pluginsourcefile"."plugin_id") + WHERE ("posthog_pluginconfig"."enabled" + AND "posthog_pluginsourcefile"."filename" = 'site.ts' + AND "posthog_pluginsourcefile"."status" = 'TRANSPILED' + AND "posthog_pluginconfig"."team_id" = 2) ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.13 @@ -388,6 +308,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -428,76 +349,6 @@ ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.4 - ''' - SELECT "posthog_project"."id", - "posthog_project"."organization_id", - "posthog_project"."name", - "posthog_project"."created_at" - FROM "posthog_project" - WHERE "posthog_project"."id" = 2 - LIMIT 21 - ''' -# --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE ("posthog_team"."project_id" = 2 - AND "posthog_team"."id" = 2) - LIMIT 21 - ''' -# --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -529,7 +380,7 @@ WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -561,7 +412,7 @@ WHERE "posthog_organizationmembership"."user_id" = 2 ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.8 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.6 ''' SELECT "posthog_team"."id", "posthog_team"."organization_id", @@ -570,9 +421,27 @@ WHERE "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid) ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.9 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 ''' - SELECT "posthog_team"."id", + SELECT "posthog_hogfunction"."id", + "posthog_hogfunction"."team_id", + "posthog_hogfunction"."name", + "posthog_hogfunction"."description", + "posthog_hogfunction"."created_at", + "posthog_hogfunction"."created_by_id", + "posthog_hogfunction"."deleted", + "posthog_hogfunction"."updated_at", + "posthog_hogfunction"."enabled", + "posthog_hogfunction"."icon_url", + "posthog_hogfunction"."hog", + "posthog_hogfunction"."bytecode", + "posthog_hogfunction"."inputs_schema", + "posthog_hogfunction"."inputs", + "posthog_hogfunction"."encrypted_inputs", + "posthog_hogfunction"."filters", + "posthog_hogfunction"."masking", + "posthog_hogfunction"."template_id", + "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id", "posthog_team"."project_id", @@ -596,6 +465,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -621,12 +491,36 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE ("posthog_team"."project_id" = 2 - AND "posthog_team"."id" = 2) - LIMIT 21 + FROM "posthog_hogfunction" + INNER JOIN "posthog_team" ON ("posthog_hogfunction"."team_id" = "posthog_team"."id") + WHERE ("posthog_hogfunction"."team_id" = 2 + AND "posthog_hogfunction"."filters" @> '{"filter_test_accounts": true}'::jsonb) + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.8 + ''' + SELECT 1 AS "a" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 2 + LIMIT 1 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.9 + ''' + SELECT "posthog_productintent"."product_type", + "posthog_productintent"."created_at", + "posthog_productintent"."onboarding_completed_at" + FROM "posthog_productintent" + WHERE "posthog_productintent"."team_id" = 2 ''' # --- # name: TestDecide.test_flag_with_behavioural_cohorts @@ -673,6 +567,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -771,6 +666,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -927,6 +823,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1025,6 +922,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1187,6 +1085,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1302,6 +1201,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_early_access_feature.ambr b/posthog/api/test/__snapshots__/test_early_access_feature.ambr index 32efc633244b0..ad603b62d145a 100644 --- a/posthog/api/test/__snapshots__/test_early_access_feature.ambr +++ b/posthog/api/test/__snapshots__/test_early_access_feature.ambr @@ -25,6 +25,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -168,6 +169,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr index ad4216e97a499..07e0cd83ae2ae 100644 --- a/posthog/api/test/__snapshots__/test_element.ambr +++ b/posthog/api/test/__snapshots__/test_element.ambr @@ -57,6 +57,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 874f074cf2d1d..0c17549699ba7 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -466,6 +466,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -675,6 +676,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1044,6 +1046,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1186,6 +1189,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1487,6 +1491,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1605,6 +1610,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1677,6 +1683,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1742,6 +1749,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index 41ca56ad62f97..f1d09748e9b6c 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -696,6 +696,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -754,6 +755,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -889,6 +891,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1136,6 +1139,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1289,6 +1293,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1429,6 +1434,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1548,6 +1554,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1702,6 +1709,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1795,6 +1803,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1888,6 +1897,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1953,6 +1963,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index 08303ddef662f..9dffb44915b9f 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -106,6 +106,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -219,6 +220,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -312,6 +314,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -377,6 +380,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -521,6 +525,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -586,6 +591,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -679,6 +685,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -744,6 +751,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -902,6 +910,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -990,6 +999,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1435,6 +1445,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2130,6 +2141,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr index 99d3eb4e8de69..970734d175ee4 100644 --- a/posthog/api/test/__snapshots__/test_preflight.ambr +++ b/posthog/api/test/__snapshots__/test_preflight.ambr @@ -57,6 +57,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/__snapshots__/test_survey.ambr b/posthog/api/test/__snapshots__/test_survey.ambr index 63d70d8867071..d19ead09d4cfd 100644 --- a/posthog/api/test/__snapshots__/test_survey.ambr +++ b/posthog/api/test/__snapshots__/test_survey.ambr @@ -172,6 +172,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 9500666ef0f50..2820e9ffea6b9 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -57,6 +57,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -194,6 +195,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -395,6 +397,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -718,6 +721,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1108,6 +1112,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1173,6 +1178,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1342,6 +1348,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1400,6 +1407,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1535,6 +1543,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1652,6 +1661,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1859,6 +1869,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2082,6 +2093,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2175,6 +2187,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2268,6 +2281,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2333,6 +2347,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2430,6 +2445,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2527,6 +2543,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2696,6 +2713,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2811,6 +2829,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2904,6 +2923,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2997,6 +3017,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3062,6 +3083,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3135,6 +3157,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3270,6 +3293,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3387,6 +3411,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3602,6 +3627,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3803,6 +3829,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3966,6 +3993,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -4152,6 +4180,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -4623,6 +4652,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -4741,6 +4771,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -4918,6 +4949,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5058,6 +5090,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5162,6 +5195,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5255,6 +5289,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5320,6 +5355,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5385,6 +5421,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5520,6 +5557,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5611,6 +5649,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5676,6 +5715,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5811,6 +5851,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5928,6 +5969,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6123,6 +6165,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6238,6 +6281,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6345,6 +6389,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6438,6 +6483,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6503,6 +6549,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6568,6 +6615,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6703,6 +6751,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6827,6 +6876,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7010,6 +7060,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7100,6 +7151,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7190,6 +7242,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7283,6 +7336,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7376,6 +7430,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7441,6 +7496,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7506,6 +7562,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7655,6 +7712,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7772,6 +7830,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7966,6 +8025,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -8167,6 +8227,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -8348,6 +8409,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -8557,6 +8619,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -8654,6 +8717,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -8831,6 +8895,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -9023,6 +9088,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -9141,6 +9207,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -9318,6 +9385,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -9608,6 +9676,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index d5384e55e25b0..6f71b5ec7d091 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -57,6 +57,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -147,6 +148,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -421,6 +423,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -523,6 +526,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index 2bd47011c93c8..3fa1fd394d102 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -108,7 +108,7 @@ def _update_team(self, data, expected_status_code: int = status.HTTP_200_OK): client = Client() client.force_login(self.user) - response = client.patch("/api/projects/@current/", data, content_type="application/json") + response = client.patch("/api/environments/@current/", data, content_type="application/json") self.assertEqual(response.status_code, expected_status_code) client.logout() @@ -166,6 +166,7 @@ def test_user_session_recording_opt_in(self, *args): "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } self.assertEqual(response["supportedCompression"], ["gzip", "gzip-js"]) @@ -185,6 +186,7 @@ def test_user_console_log_opt_in(self, *args): "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } def test_user_performance_opt_in(self, *args): @@ -302,6 +304,26 @@ def test_session_recording_linked_flag_variant(self, *args): response = self._post_decide().json() self.assertEqual(response["sessionRecording"]["linkedFlag"], {"flag": "my-flag", "variant": "test"}) + def test_session_recording_url_trigger_patterns(self, *args): + self._update_team( + { + "session_recording_url_trigger_config": [{"url": "/replay-examples/", "matching": "regex"}], + "session_recording_opt_in": True, + } + ) + + response = self._post_decide(origin="capacitor://localhost:8000/home").json() + assert response["sessionRecording"] == { + "endpoint": "/s/", + "recorderVersion": "v2", + "consoleLogRecordingEnabled": True, + "sampleRate": None, + "linkedFlag": None, + "minimumDurationMilliseconds": None, + "networkPayloadCapture": None, + "urlTriggers": [{"url": "/replay-examples/", "matching": "regex"}], + } + def test_session_recording_network_payload_capture_config(self, *args): # :TRICKY: Test for regression around caching @@ -430,6 +452,7 @@ def test_user_session_recording_opt_in_wildcard_domain(self, *args): "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } self.assertEqual(response["supportedCompression"], ["gzip", "gzip-js"]) @@ -457,6 +480,7 @@ def test_user_session_recording_evil_site(self, *args): "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } def test_user_autocapture_opt_out(self, *args): @@ -491,6 +515,7 @@ def test_user_session_recording_allowed_when_no_permitted_domains_are_set(self, "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } def test_user_session_recording_allowed_for_android(self, *args) -> None: @@ -505,6 +530,7 @@ def test_user_session_recording_allowed_for_android(self, *args) -> None: "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } def test_user_session_recording_allowed_for_ios(self, *args) -> None: @@ -519,6 +545,7 @@ def test_user_session_recording_allowed_for_ios(self, *args) -> None: "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } def test_user_session_recording_allowed_when_permitted_domains_are_not_http_based(self, *args): @@ -538,6 +565,7 @@ def test_user_session_recording_allowed_when_permitted_domains_are_not_http_base "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], } @snapshot_postgres_queries @@ -2901,6 +2929,7 @@ def test_decide_doesnt_error_out_when_database_is_down(self, *args): "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], }, ) self.assertEqual(response["supportedCompression"], ["gzip", "gzip-js"]) @@ -2929,6 +2958,7 @@ def test_decide_doesnt_error_out_when_database_is_down(self, *args): "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], }, ) self.assertEqual(response["supportedCompression"], ["gzip", "gzip-js"]) @@ -3614,7 +3644,7 @@ def _update_team(self, data): client = Client() client.force_login(self.user) - response = client.patch("/api/projects/@current/", data, content_type="application/json") + response = client.patch("/api/environments/@current/", data, content_type="application/json") self.assertEqual(response.status_code, status.HTTP_200_OK) client.logout() @@ -3724,6 +3754,7 @@ def test_decide_doesnt_error_out_when_database_is_down_and_database_check_isnt_c "linkedFlag": None, "minimumDurationMilliseconds": None, "networkPayloadCapture": None, + "urlTriggers": [], }, ) self.assertEqual(response["supportedCompression"], ["gzip", "gzip-js"]) diff --git a/posthog/migrations/0492_team_session_recording_url_trigger_config.py b/posthog/migrations/0492_team_session_recording_url_trigger_config.py new file mode 100644 index 0000000000000..05ec513b2edec --- /dev/null +++ b/posthog/migrations/0492_team_session_recording_url_trigger_config.py @@ -0,0 +1,20 @@ +# Generated by Django 4.2.15 on 2024-10-14 08:09 + +import django.contrib.postgres.fields +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("posthog", "0491_alertconfiguration_snoozed_until_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="team", + name="session_recording_url_trigger_config", + field=django.contrib.postgres.fields.ArrayField( + base_field=models.JSONField(blank=True, null=True), blank=True, default=list, null=True, size=None + ), + ), + ] diff --git a/posthog/models/filters/test/__snapshots__/test_filter.ambr b/posthog/models/filters/test/__snapshots__/test_filter.ambr index cd2bf85143d05..c9a734ef96c8c 100644 --- a/posthog/models/filters/test/__snapshots__/test_filter.ambr +++ b/posthog/models/filters/test/__snapshots__/test_filter.ambr @@ -25,6 +25,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -90,6 +91,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -155,6 +157,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -220,6 +223,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -285,6 +289,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/models/team/team.py b/posthog/models/team/team.py index 30d2cb546892c..f3e6b5d6e33e4 100644 --- a/posthog/models/team/team.py +++ b/posthog/models/team/team.py @@ -246,6 +246,9 @@ class Meta: ) session_recording_linked_flag = models.JSONField(null=True, blank=True) session_recording_network_payload_capture_config = models.JSONField(null=True, blank=True) + session_recording_url_trigger_config = ArrayField( + models.JSONField(null=True, blank=True), default=list, blank=True, null=True + ) session_replay_config = models.JSONField(null=True, blank=True) survey_config = models.JSONField(null=True, blank=True) capture_console_log_opt_in = models.BooleanField(null=True, blank=True, default=True) diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr index 4bd1b7a0c1415..550009ec55f1c 100644 --- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr +++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr @@ -25,6 +25,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -90,6 +91,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -155,6 +157,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -220,6 +223,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -285,6 +289,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -458,6 +463,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -548,6 +554,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -917,6 +924,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1014,6 +1022,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1079,6 +1088,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1144,6 +1154,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1209,6 +1220,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1274,6 +1286,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1339,6 +1352,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1436,6 +1450,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1633,6 +1648,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -1768,6 +1784,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2229,6 +2246,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2364,6 +2382,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2513,6 +2532,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -2865,6 +2885,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3019,6 +3040,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3476,6 +3498,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3643,6 +3666,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -3917,6 +3941,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -4141,6 +4166,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -4276,6 +4302,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5142,6 +5169,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5277,6 +5305,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5715,6 +5744,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -5871,6 +5901,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6372,6 +6403,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6526,6 +6558,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -6968,6 +7001,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -7103,6 +7137,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr index 14053826ae03c..cc4697339daa4 100644 --- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr +++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr @@ -96,6 +96,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -359,6 +360,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", diff --git a/posthog/test/__snapshots__/test_feature_flag.ambr b/posthog/test/__snapshots__/test_feature_flag.ambr index 339a4714be80f..2c30fecdac689 100644 --- a/posthog/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/test/__snapshots__/test_feature_flag.ambr @@ -149,6 +149,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -320,6 +321,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in", @@ -656,6 +658,7 @@ "posthog_team"."session_recording_minimum_duration_milliseconds", "posthog_team"."session_recording_linked_flag", "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", "posthog_team"."session_replay_config", "posthog_team"."survey_config", "posthog_team"."capture_console_log_opt_in",