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.

fix(alerts): gate 15-minute interval behind feature flag (#59422)

Matt Pua3bc07785191c
diff --git a/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx b/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx
index 2a7fb9c6e6a9..5e0a7dae5996 100644
--- a/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx
+++ b/frontend/src/lib/components/Alerts/views/EditAlertModal.tsx
@@ -118,6 +118,7 @@ export function EditAlertModal({
insightLogicProps,
}: EditAlertModalProps): JSX.Element {
const alertsHistoryChartEnabled = useFeatureFlag('ALERTS_HISTORY_CHART')
+ const alerts15MinuteIntervalEnabled = useFeatureFlag('ALERTS_15_MINUTE_INTERVAL')
const _alertLogic = alertLogic({ alertId, historyChartEnabled: alertsHistoryChartEnabled })
const { alert, alertLoading } = useValues(_alertLogic)
@@ -624,6 +625,9 @@ export function EditAlertModal({
options={Object.values(AlertCalculationInterval).map((interval) => ({
label: alertCalculationIntervalToLabel(interval),
value: interval,
+ hidden:
+ interval === AlertCalculationInterval.EVERY_15_MINUTES &&
+ !alerts15MinuteIntervalEnabled,
}))}
/>
</LemonField>