: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
chore: migrate internal feature-flag payload reads to getFeatureFlagResult (#64397)
Anna Garcia9a12d428e003
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.tsx b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.tsxindex 20d12b598924..b795ecef0444 100644--- a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.tsx+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.tsx@@ -688,7 +688,10 @@ export const sidePanelNotificationsLogic = kea<sidePanelNotificationsLogicType>(try {let importantChangesHumanized = humanize(importantChanges?.results || [], describerFor, true)- const flagPayload = posthog.getFeatureFlagPayload('changelog-notification')+ // 'changelog-notification' is an externally managed flag, not a FEATURE_FLAGS key, so it's read directly.+ const flagPayload = posthog.getFeatureFlagResult('changelog-notification', {+ send_event: false,+ })?.payloadconst changelogNotifications = flagPayload? (flagPayload as JsonRecord[]).map((notification) =>diff --git a/frontend/src/lib/logic/featureFlagLogic.ts b/frontend/src/lib/logic/featureFlagLogic.tsindex ee89c77ff3c9..41917cb9a914 100644--- a/frontend/src/lib/logic/featureFlagLogic.ts+++ b/frontend/src/lib/logic/featureFlagLogic.ts@@ -87,7 +87,7 @@ function spyOnFeatureFlags(featureFlags: FeatureFlagsSet): FeatureFlagsSet {}export function getFeatureFlagPayload(flag: FeatureFlagKey): any {- return posthog.getFeatureFlagPayload(flag)+ return posthog.getFeatureFlagResult(flag, { send_event: false })?.payload}export const featureFlagLogic = kea<featureFlagLogicType>([