: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(alerts): remove real-time interval flag gate (#84888)
Matt Pua883363df7b0d
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex ff2726edba91..3d09e3d24187 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -262,7 +262,6 @@ export const FEATURE_FLAGS = {ALERTS_15_MINUTE_INTERVAL: 'alerts-15-minute-interval', // owner: #team-analytics-platform, gates 15-minute insight alert intervalALERTS_INLINE_NOTIFICATIONS: 'alerts-inline-notifications', // owner: @vdekrijgerALERTS_INVESTIGATION_AGENT: 'alerts-investigation-agent', // owner: @andrewm4894, anomaly alerts — investigation agent on firing- ALERTS_REAL_TIME_INTERVAL: 'alerts-real-time-interval', // owner: #team-analytics-platform, gates real-time (2-minute) insight alert intervalAMPLITUDE_BATCH_IMPORT_OPTIONS: 'amplitude-batch-import-options', // owner: #team-ingestionANOMALY_ALERT_GUIDANCE_EXPERIMENT: 'anomaly-alert-guidance',APPROVALS: 'approvals', // owner: @yasen-posthog #team-platform-featuresdiff --git a/products/alerts/frontend/components/AlertIntervalRow.tsx b/products/alerts/frontend/components/AlertIntervalRow.tsxindex 66a1bc1a1d1b..9216a0d28238 100644--- a/products/alerts/frontend/components/AlertIntervalRow.tsx+++ b/products/alerts/frontend/components/AlertIntervalRow.tsx@@ -4,7 +4,6 @@ import { LemonSelect, Tooltip } from '@posthog/lemon-ui'import { TZLabel } from 'lib/components/TZLabel'import { upgradeModalLogic } from 'lib/components/UpgradeModal/upgradeModalLogic'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonField } from 'lib/lemon-ui/LemonField'import { teamLogic } from 'scenes/teamLogic'import { userLogic } from 'scenes/userLogic'@@ -66,7 +65,6 @@ export function AlertIntervalRow({const { currentTeam } = useValues(teamLogic)const hasHighFrequencyAlertsEntitlement = hasAvailableFeature(AvailableFeature.HIGH_FREQUENCY_ALERTS)const hasRealTimeAlertsEntitlement = hasAvailableFeature(AvailableFeature.REAL_TIME_ALERTS)- const realTimeAlertsEnabled = useFeatureFlag('ALERTS_REAL_TIME_INTERVAL')let evaluatedWindow: JSX.Elementif (!supportsTimeWindow(alertForm.config)) {@@ -135,8 +133,7 @@ export function AlertIntervalRow({value={value}options={getAlertIntervalOptions(hasHighFrequencyAlertsEntitlement,- hasRealTimeAlertsEntitlement,- realTimeAlertsEnabled || value === AlertCalculationInterval.REAL_TIME+ hasRealTimeAlertsEntitlement)}onChange={(interval) => {selectAlertCalculationInterval(interval, {diff --git a/products/alerts/frontend/components/editAlertModalUtils.tsx b/products/alerts/frontend/components/editAlertModalUtils.tsxindex 0c529b3451c3..8c04f9266dbf 100644--- a/products/alerts/frontend/components/editAlertModalUtils.tsx+++ b/products/alerts/frontend/components/editAlertModalUtils.tsx@@ -74,11 +74,10 @@ export const ALERT_INTERVAL_OPTIONS: AlertCalculationInterval[] = [export function getAlertIntervalOptions(hasHighFrequencyAlertsEntitlement: boolean,- hasRealTimeAlertsEntitlement: boolean,- showRealTimeOption: boolean+ hasRealTimeAlertsEntitlement: boolean): Array<{ label: string | JSX.Element; value: AlertCalculationInterval }> {const intervals = [- ...(showRealTimeOption ? [AlertCalculationInterval.REAL_TIME] : []),+ AlertCalculationInterval.REAL_TIME,AlertCalculationInterval.EVERY_15_MINUTES,...ALERT_INTERVAL_OPTIONS,]