: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(logs): remove fully rolled-out logs-tabbed-view flag (#82657)
Frank Hamand18ab9b4f4db2
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 1a6e9cfdaf77..0020c686dcc8 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -376,7 +376,6 @@ export const FEATURE_FLAGS = {LOGS_SETTINGS_RETENTION: 'logs-settings-retention', // owner: #team-logsLOGS_SETTINGS_RETENTION_RULES: 'logs-settings-retention-rules', // owner: #team-logsLOGS_SPARKLINE_SERVICE_BREAKDOWN: 'logs-sparkline-service-breakdown', // owner: #team-logs- LOGS_TABBED_VIEW: 'logs-tabbed-view', // owner: #team-logsLOGS_TRANSFORMATIONS: 'logs-transformations', // owner: #team-logsMANAGED_MIGRATIONS_IAM_ROLE_AUTH: 'managed-migrations-iam-role-auth', // owner: #team-ingestion, gates IAM role auth for S3 batch importsMANAGED_MIGRATIONS_TRIAL_RUNS: 'managed-migrations-trial-runs', // owner: #team-ingestion, gates trial runs for managed migrationsdiff --git a/products/logs/frontend/LogsScene.stories.tsx b/products/logs/frontend/LogsScene.stories.tsxindex bd4c1ef91daf..f76f98ad7269 100644--- a/products/logs/frontend/LogsScene.stories.tsx+++ b/products/logs/frontend/LogsScene.stories.tsx@@ -466,7 +466,7 @@ export function LogsSceneServicesTab(): JSX.Element {}// Story parameters replace the meta's rather than merging, so each list is complete.LogsSceneServicesTab.parameters = {- featureFlags: [FEATURE_FLAGS.LOGS_TABBED_VIEW, FEATURE_FLAGS.LOGS_SERVICES_VIEW],+ featureFlags: [FEATURE_FLAGS.LOGS_SERVICES_VIEW],testOptions: {waitForSelector: '.LemonTable',},@@ -479,11 +479,7 @@ export function LogsSceneServicesTabV2(): JSX.Element {return <App />}LogsSceneServicesTabV2.parameters = {- featureFlags: [- FEATURE_FLAGS.LOGS_TABBED_VIEW,- FEATURE_FLAGS.LOGS_SERVICES_VIEW,- FEATURE_FLAGS.LOGS_SERVICES_VIEW_V2,- ],+ featureFlags: [FEATURE_FLAGS.LOGS_SERVICES_VIEW, FEATURE_FLAGS.LOGS_SERVICES_VIEW_V2],testOptions: {// v2-specific, so this fails rather than passes if the gate falls through to the v1 table.waitForSelector: '[data-attr="logs-services-view-mode-list"]',diff --git a/products/logs/frontend/LogsScene.tsx b/products/logs/frontend/LogsScene.tsxindex 8088a1d9e721..157fd7fb822a 100644--- a/products/logs/frontend/LogsScene.tsx+++ b/products/logs/frontend/LogsScene.tsx@@ -1,7 +1,6 @@import { useActions, useValues } from 'kea'import posthog from 'posthog-js'-import { IconGear } from '@posthog/icons'import { LemonBanner, LemonButton, LemonTabs } from '@posthog/lemon-ui'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'@@ -25,7 +24,6 @@ import { LogsViewerModal } from 'products/logs/frontend/components/LogsViewer/Loimport { logsIngestionLogic } from 'products/logs/frontend/components/SetupPrompt/logsIngestionLogic'import { LogsSetupPrompt } from 'products/logs/frontend/components/SetupPrompt/SetupPrompt'-import { useOpenLogsSettingsPanel } from './hooks/useOpenLogsSettingsPanel'import { LogsAnomalies } from './LogsAnomalies'import { LOGS_SCENE_VIEWER_ID, LogsSceneActiveTab, logsSceneLogic } from './logsSceneLogic'@@ -38,58 +36,13 @@ export const scene: SceneExport = {}export function LogsScene(): JSX.Element {- const useTabbedView = useFeatureFlag('LOGS_TABBED_VIEW')-return (<SceneContent className="h-[calc(var(--scene-layout-rect-height,_100vh)_-_1rem)]">- {useTabbedView ? <LogsSceneTabbedContent /> : <LogsSceneContent />}+ <LogsSceneTabbedContent /></SceneContent>)}-const LogsSceneContent = (): JSX.Element => {- const { hasLogs, teamHasLogsCheckFailed } = useValues(logsIngestionLogic)- const openLogsSettings = useOpenLogsSettingsPanel()-- return (- <>- <SceneTitleSection- name={sceneConfigurations[Scene.Logs].name}- description={sceneConfigurations[Scene.Logs].description}- resourceType={{- type: sceneConfigurations[Scene.Logs].iconType || 'default_icon_type',- }}- actions={- <>- {hasLogs && <LogsSceneFeedbackButton />}- <LemonButton size="small" type="secondary" icon={<IconGear />} onClick={openLogsSettings}>- Settings- </LemonButton>- </>- }- />- {teamHasLogsCheckFailed && (- <LemonBanner- type="info"- dismissKey="logs-setup-hint-banner"- action={{- to: 'https://posthog.com/docs/logs/',- targetBlank: true,- children: 'Setup guide',- }}- >- Unable to verify logs setup. If you haven't configured logging yet, check out our setup guide.- </LemonBanner>- )}- <LogsSetupPrompt>- <div className="flex flex-col gap-2 py-2 flex-1 min-h-0">- <LogsViewer id={LOGS_SCENE_VIEWER_ID} showSavedViewsButton />- </div>- </LogsSetupPrompt>- </>- )-}-const LogsSceneTabbedContent = (): JSX.Element => {const { activeTab } = useValues(logsSceneLogic)const { setActiveTab } = useActions(logsSceneLogic)