: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
fix(data-warehouse): keep batch export failures off the ETL scene (#107877)
Tom Owers549b5fa89ee5
diff --git a/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/PipelineHealth.tsx b/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/PipelineHealth.tsxindex 9b5ce2f81639..ecc846d4ff73 100644--- a/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/PipelineHealth.tsx+++ b/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/PipelineHealth.tsx@@ -26,8 +26,6 @@ const STATUS_TAG_TYPES: Record<string, LemonTagType> = {const TYPE_LABELS: Record<string, string> = {external_data_sync: 'Sync',source: 'Source',- destination: 'Destination',- transformation: 'Transformation',}export function PipelineHealth(): JSX.Element {diff --git a/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.test.ts b/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.test.tsindex e35268d3450c..b3214b85c9c4 100644--- a/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.test.ts+++ b/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.test.ts@@ -104,21 +104,24 @@ describe('pipelineOverviewSceneLogic', () => {expect(logic.values.failingSyncCount).toEqual(1)})- it('leaves materialized views out of the health list', async () => {- // The endpoint answers for the whole warehouse. This scene is about imports, so a broken- // view belongs on Pipeline status, not here, where nothing can be done about it.+ it('keeps only import issues in the health list', async () => {+ // The endpoint answers for the whole warehouse. Its `destination` type is a batch export+ // or a CDP destination, not a warehouse destination, so showing it here would label+ // another product's failure as one of this scene's pipelines.api.dataWarehouseDataHealthIssuesRetrieve.mockResolvedValue({- count: 3,+ count: 5,results: [issue({ id: 'a', type: 'materialized_view' }),issue({ id: 'b', type: 'external_data_sync' }),issue({ id: 'c', type: 'destination' }),+ issue({ id: 'd', type: 'source' }),+ issue({ id: 'e', type: 'transformation' }),],})await expectLogic(logic, () => logic.actions.loadHealthIssues()).toFinishAllListeners()- expect(logic.values.issuesBySeverity.map((i: any) => i.id)).toEqual(['b', 'c'])+ expect(logic.values.issuesBySeverity.map((i: any) => i.id).sort()).toEqual(['b', 'd'])})it('leaves materialized view runs out of the failures list', async () => {diff --git a/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.ts b/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.tsindex 5fd1a06838d7..d4725b289af6 100644--- a/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.ts+++ b/products/warehouse_sources/frontend/scenes/PipelineOverviewScene/pipelineOverviewSceneLogic.ts@@ -39,12 +39,13 @@ import type { ExternalDataDestinationApi } from 'products/warehouse_sources/fronexport type PipelineStatsWindow = 1 | 7 | 30/**- * `data_health_issues` and `completed_activity` both answer for the whole warehouse, which- * includes materialized views and batch exports. This scene is about imports and the- * destinations they write to, so those are filtered out here rather than shown as pipelines- * the reader cannot act on from this page.+ * `data_health_issues` and `completed_activity` both answer for the whole warehouse. Only these+ * two types are imports. The endpoint's `destination` type is a batch export or a CDP+ * destination, not a warehouse destination, and `materialized_view` and `transformation` belong+ * to other products. A warehouse destination that fails does surface here, as an+ * `external_data_sync` issue whose error carries the destination's name.*/-const SYNC_ISSUE_TYPES = ['external_data_sync', 'source', 'destination']+const SYNC_ISSUE_TYPES = ['external_data_sync', 'source']/** `app_source` the import pipeline emits its metrics under. */const WAREHOUSE_APP_SOURCE = 'warehouse_source_sync'