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(cdp): remove fully rolled out cdp-activity-log-notifications flag (#87698)

Meikel Ratz0ea972cc2f84
diff --git a/frontend/src/layout/navigation-3000/sidepanel/SidePanel.stories.tsx b/frontend/src/layout/navigation-3000/sidepanel/SidePanel.stories.tsx
index 003284882353..35b1beabfc0f 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/SidePanel.stories.tsx
+++ b/frontend/src/layout/navigation-3000/sidepanel/SidePanel.stories.tsx
@@ -101,11 +101,11 @@ export const SidePanelMax: Story = {
}
export const SidePanelActivity: Story = {
- // The tab needs the audit logs entitlement, which the feature flags below don't grant
+ // The tab needs the audit logs entitlement, which the feature flag below doesn't grant
args: { panel: SidePanelTab.Activity, availableFeatures: [AvailableFeature.AUDIT_LOGS] },
parameters: {
pageUrl: objectScenePageUrl,
- featureFlags: [FEATURE_FLAGS.CDP_ACTIVITY_LOG_NOTIFICATIONS, FEATURE_FLAGS.AUDIT_LOGS_ACCESS],
+ featureFlags: [FEATURE_FLAGS.AUDIT_LOGS_ACCESS],
},
}
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivity.tsx b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivity.tsx
index 376a2abda938..a5f3c6c28d6f 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivity.tsx
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/SidePanelActivity.tsx
@@ -137,30 +137,28 @@ export const SidePanelActivity = (): JSX.Element => {
: `all ${humanizeScope(contextFromPage!.scope!).toLowerCase()}`}
</strong>
</span>
- {featureFlags[FEATURE_FLAGS.CDP_ACTIVITY_LOG_NOTIFICATIONS] && (
- <ActivityLogSubscribeMenu
- properties={[
- {
- key: 'scope',
- type: PropertyFilterType.Event,
- value: contextFromPage!.scope!,
- operator: PropertyOperator.Exact,
- },
- ...(hasItemContext
- ? [
- {
- key: 'item_id',
- type: PropertyFilterType.Event as const,
- value: contextFromPage!.item_id,
- operator: PropertyOperator.Exact,
- },
- ]
- : []),
- ]}
- onNavigate={closeSidePanel}
- iconOnly
- />
- )}
+ <ActivityLogSubscribeMenu
+ properties={[
+ {
+ key: 'scope',
+ type: PropertyFilterType.Event,
+ value: contextFromPage!.scope!,
+ operator: PropertyOperator.Exact,
+ },
+ ...(hasItemContext
+ ? [
+ {
+ key: 'item_id',
+ type: PropertyFilterType.Event as const,
+ value: contextFromPage!.item_id,
+ operator: PropertyOperator.Exact,
+ },
+ ]
+ : []),
+ ]}
+ onNavigate={closeSidePanel}
+ iconOnly
+ />
</div>
<MemberSelect
value={activeFilters?.user ?? null}
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 8211c7f456b8..30ea70f55689 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -267,7 +267,6 @@ export const FEATURE_FLAGS = {
AVERAGE_PAGE_VIEW_COLUMN: 'average-page-view-column', // owner: @jordanm-posthog #team-web-analytics
BACKFILL_WORKFLOWS_DESTINATION: 'backfill-workflows-destination', // owner: #team-batch-exports
BILLING_ALERTS: 'billing-alerts', // owner: #team-billing, gates the Billing > Alerts tab
- CDP_ACTIVITY_LOG_NOTIFICATIONS: 'cdp-activity-log-notifications', // owner: #team-workflows-cdp
CDP_DWH_TABLE_SOURCE: 'cdp-dwh-table-source', // owner: #team-workflows-cdp
CDP_DWH_VIEW_SOURCE: 'cdp-dwh-view-source', // owner: #team-workflows-cdp
CDP_HOG_SOURCES: 'cdp-hog-sources', // owner #team-workflows-cdp
diff --git a/frontend/src/scenes/audit-logs/AdvancedActivityLogFiltersPanel.tsx b/frontend/src/scenes/audit-logs/AdvancedActivityLogFiltersPanel.tsx
index 5de65f03932d..2b90ecae84f2 100644
--- a/frontend/src/scenes/audit-logs/AdvancedActivityLogFiltersPanel.tsx
+++ b/frontend/src/scenes/audit-logs/AdvancedActivityLogFiltersPanel.tsx
@@ -4,8 +4,6 @@ import { IconDownload } from '@posthog/icons'
import { LemonButton, LemonDropdown } from '@posthog/lemon-ui'
import { ActivityLogSubscribeMenu } from 'lib/components/ActivityLog/ActivityLogSubscribeMenu'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { advancedActivityFiltersToHogProperties } from './advancedActivityFilterTranslation'
import { advancedActivityLogsLogic } from './advancedActivityLogsLogic'
@@ -14,7 +12,6 @@ import { BasicFiltersTab } from './BasicFiltersTab'
export function AdvancedActivityLogFiltersPanel(): JSX.Element {
const { hasActiveFilters, exportsLoading, filters, isOrganizationView } = useValues(advancedActivityLogsLogic)
const { clearAllFilters, exportLogs } = useActions(advancedActivityLogsLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const { properties: subscribeProperties } = advancedActivityFiltersToHogProperties(filters)
@@ -59,7 +56,7 @@ export function AdvancedActivityLogFiltersPanel(): JSX.Element {
</LemonButton>
</LemonDropdown>
)}
- {!isOrganizationView && featureFlags[FEATURE_FLAGS.CDP_ACTIVITY_LOG_NOTIFICATIONS] && (
+ {!isOrganizationView && (
<ActivityLogSubscribeMenu
properties={subscribeProperties}
data-attr="audit-logs-subscribe-button"
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsx
index 8627c85a5ac9..ba412aa9bb65 100644
--- a/frontend/src/scenes/settings/SettingsMap.tsx
+++ b/frontend/src/scenes/settings/SettingsMap.tsx
@@ -1448,7 +1448,6 @@ export const SETTINGS_MAP: SettingSection[] = [
title: 'Notifications',
description: 'Get notified about activity log events via configured destinations.',
component: <ActivityLogNotifications />,
- flag: 'CDP_ACTIVITY_LOG_NOTIFICATIONS',
allowForTeam: (t) => (t?.effective_membership_level ?? 0) >= OrganizationMembershipLevel.Admin,
keywords: ['notification', 'alert', 'activity', 'webhook'],
},