: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(engineering-analytics): drop vestigial tabId from scene logics (#66014)
Paul D'Ambraef92ae1dcb17
diff --git a/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.test.ts b/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.test.tsindex 2127b693414c..e2bdaf493b53 100644--- a/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.test.ts+++ b/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.test.ts@@ -215,18 +215,6 @@ describe('engineeringAnalyticsLogic', () => {expect(logic.values.activeCard).toBeNull()})- it('keeps filter state isolated per internal tab', () => {- const tabA = engineeringAnalyticsLogic({ tabId: 'tab-a' })- const tabB = engineeringAnalyticsLogic({ tabId: 'tab-b' })- tabA.mount()- tabB.mount()-- tabA.actions.setStateFilter('merged')-- expect(tabA.values.stateFilter).toBe('merged')- expect(tabB.values.stateFilter).toBe(DEFAULT_FILTERS.state)- })-it('scene logic mounts without a tabId so /engineering-analytics resolves instead of 404ing', () => {// #62051 collapsed sceneLogic to single-scene state and stopped threading a tabId into// scene logics. A tab-aware scene logic then throws "must have a tabId prop" on mount,diff --git a/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts b/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.tsindex ebde642bd335..6e3d8842d6e4 100644--- a/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts+++ b/products/engineering_analytics/frontend/scenes/engineeringAnalyticsLogic.ts@@ -1,4 +1,4 @@-import { LogicWrapper, actions, afterMount, kea, key, listeners, path, props, reducers, selectors } from 'kea'+import { LogicWrapper, actions, afterMount, kea, listeners, path, reducers, selectors } from 'kea'import { loaders } from 'kea-loaders'import { actionToUrl, router, urlToAction } from 'kea-router'@@ -195,16 +195,9 @@ export function loaderStatusFromError(errorObject: unknown): LoaderStatus {return errorObject instanceof ApiError && errorObject.status === 400 ? 'notConnected' : 'error'}-export interface EngineeringAnalyticsLogicProps {- tabId?: string-}-export const engineeringAnalyticsLogic: LogicWrapper<engineeringAnalyticsLogicType> =kea<engineeringAnalyticsLogicType>([- props({} as EngineeringAnalyticsLogicProps),- // One instance per internal tab so filters and loading state don't bleed across tabs.- key((props) => props.tabId ?? 'default'),- path((key) => ['products', 'engineering_analytics', 'frontend', 'scenes', 'engineeringAnalyticsLogic', key]),+ path(['products', 'engineering_analytics', 'frontend', 'scenes', 'engineeringAnalyticsLogic']),actions({setStateFilter: (state: PRStateFilter) => ({ state }),diff --git a/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts b/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.tsindex f05957a87804..6fb689a8d7e9 100644--- a/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts+++ b/products/engineering_analytics/frontend/scenes/pullRequestDetailLogic.ts@@ -19,7 +19,6 @@ export interface PullRequestDetailLogicProps {number: number// Which GitHub source the list was scoped to, threaded from `?source=` via paramsToProps.sourceId: string | null- tabId?: string}/** Failures first, then still-running, then passes — the order a reviewer triages in. */@@ -33,10 +32,7 @@ export const pullRequestDetailLogic = kea<pullRequestDetailLogicType>([path(['products', 'engineering_analytics', 'frontend', 'scenes', 'pullRequestDetailLogic']),props({} as PullRequestDetailLogicProps),// sourceId is part of the identity: the same PR number can resolve to a different source.- key(- (props) =>- `${props.tabId ?? 'default'}/${props.repoOwner}/${props.repoName}#${props.number}@${props.sourceId ?? ''}`- ),+ key((props) => `${props.repoOwner}/${props.repoName}#${props.number}@${props.sourceId ?? ''}`),loaders(({ props }) => ({lifecycle: [