Skip to content

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

chore(experiments): remove rolled-out experiment-funnel-dwh-support flag (#66386)

Andersc50020daead9
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 669e3f9f00bb..f4ffba26874f 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -302,7 +302,6 @@ export const FEATURE_FLAGS = {
ERROR_TRACKING_WEEKLY_DIGEST: 'error-tracking-weekly-digest', // owner: #team-error-tracking
EVENT_MEDIA_PREVIEWS: 'event-media-previews', // owner: @alexlider
EXPERIMENT_FUNNEL_ACTORS_QUERY: 'experiment-funnel-actors-query', // owner: @rodrigoi #team-experiments
- EXPERIMENT_FUNNEL_DWH_SUPPORT: 'experiment-funnel-dwh-support', // owner: @rodrigoi #team-experiments
EXPERIMENT_SESSION_REPLAYS_SKILL: 'experiment-session-replays-skill', // owner: @rodrigoi #team-experiments
EXPERIMENTS_DW_AA_TEST: 'experiments-dw-aa-test', // owner: @rodrigoi #team-experiments
EXPERIMENTS_END_MODAL_CONCLUSION_FIRST: 'experiments-end-modal-conclusion-first', // owner: @ruby.c #team-experiments
diff --git a/frontend/src/scenes/experiments/ExperimentMetricForm.tsx b/frontend/src/scenes/experiments/ExperimentMetricForm.tsx
index fc7e8e2a21b9..6b5fa99558cd 100644
--- a/frontend/src/scenes/experiments/ExperimentMetricForm.tsx
+++ b/frontend/src/scenes/experiments/ExperimentMetricForm.tsx
@@ -4,7 +4,6 @@ import { IconInfo, IconPencil } from '@posthog/icons'
import { LemonBanner, LemonInput } from '@posthog/lemon-ui'
import { DataWarehousePopoverField } from 'lib/components/TaxonomicFilter/types'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { IconOpenInNew } from 'lib/lemon-ui/icons'
import { LemonLabel } from 'lib/lemon-ui/LemonLabel'
import { LemonRadio } from 'lib/lemon-ui/LemonRadio'
@@ -139,8 +138,6 @@ export function ExperimentMetricForm({
const [eventCount, setEventCount] = useState<number | null>(null)
const [isLoading, setIsLoading] = useState(false)
- const isExperimentFunnelDWHSupport = useFeatureFlag('EXPERIMENT_FUNNEL_DWH_SUPPORT')
-
const getEventTypeLabel = (): string => {
if (isExperimentMeanMetric(metric)) {
return metric.source.kind === NodeKind.ActionsNode ? 'actions' : 'events'
@@ -196,23 +193,13 @@ export function ExperimentMetricForm({
if (newMetricType === ExperimentMetricType.MEAN && isExperimentMeanMetric(newMetric)) {
newMetric.source = sources[0]
} else if (newMetricType === ExperimentMetricType.FUNNEL && isExperimentFunnelMetric(newMetric)) {
- // Filter sources based on feature flag support
- if (isExperimentFunnelDWHSupport) {
- // Include all supported types including DataWarehouseNode
- newMetric.series = sources.filter(
- (s): s is ExperimentFunnelMetricStep =>
- s &&
- (s.kind === NodeKind.EventsNode ||
- s.kind === NodeKind.ActionsNode ||
- s.kind === NodeKind.ExperimentDataWarehouseNode)
- )
- } else {
- // Legacy: only support EventsNode and ActionsNode
- newMetric.series = sources.filter(
- (s): s is ExperimentFunnelMetricStep =>
- s && (s.kind === NodeKind.EventsNode || s.kind === NodeKind.ActionsNode)
- )
- }
+ newMetric.series = sources.filter(
+ (s): s is ExperimentFunnelMetricStep =>
+ s &&
+ (s.kind === NodeKind.EventsNode ||
+ s.kind === NodeKind.ActionsNode ||
+ s.kind === NodeKind.ExperimentDataWarehouseNode)
+ )
} else if (newMetricType === ExperimentMetricType.RATIO && isExperimentRatioMetric(newMetric)) {
newMetric.numerator = sources[0]
} else if (newMetricType === ExperimentMetricType.RETENTION && isExperimentRetentionMetric(newMetric)) {
@@ -410,17 +397,9 @@ export function ExperimentMetricForm({
// showNumericalPropsOnly={true}
mathAvailability={mathAvailability}
allowedMathTypes={allowedMathTypes}
- actionsTaxonomicGroupTypes={
- isExperimentFunnelDWHSupport
- ? commonActionFilterProps.actionsTaxonomicGroupTypes
- : commonActionFilterProps.actionsTaxonomicGroupTypes?.filter(
- (type) => type !== 'data_warehouse'
- )
- }
+ actionsTaxonomicGroupTypes={commonActionFilterProps.actionsTaxonomicGroupTypes}
propertiesTaxonomicGroupTypes={commonActionFilterProps.propertiesTaxonomicGroupTypes}
- dataWarehousePopoverFields={
- isExperimentFunnelDWHSupport ? dataWarehousePopoverFields : undefined
- }
+ dataWarehousePopoverFields={dataWarehousePopoverFields}
/>
)}