: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): open sync method settings from the schemas table (#128431)
Tom Owersedcef8c3f95a
diff --git a/products/data_warehouse/frontend/scenes/SourceScene/tabs/SchemasTab.tsx b/products/data_warehouse/frontend/scenes/SourceScene/tabs/SchemasTab.tsxindex 667ae5b62266..de5b64e011bd 100644--- a/products/data_warehouse/frontend/scenes/SourceScene/tabs/SchemasTab.tsx+++ b/products/data_warehouse/frontend/scenes/SourceScene/tabs/SchemasTab.tsx@@ -625,16 +625,41 @@ function ManagedSchemaTable({key: 'sync_type',className: dimWhenNotSyncing,render: (_, schema) => {- if (!schema.sync_type) {- return <span className="text-muted">Not set up</span>- }const blockedReason = schema.incremental_sync_blocked- if (!blockedReason) {- return <LemonTag type="primary">{SyncTypeLabelMap[schema.sync_type]}</LemonTag>+ const syncMethod = schema.sync_type ? (+ <LemonTag type={blockedReason ? 'warning' : 'primary'}>+ {SyncTypeLabelMap[schema.sync_type]}+ </LemonTag>+ ) : (+ <span className="text-muted">Not set up</span>+ )+ // The schema scene hides the sync method section for a file upload, so no link here.+ if (isFileUpload) {+ return syncMethod}return (- <Tooltip title={IncrementalSyncBlockedMessageMap[blockedReason]} interactive>- <LemonTag type="warning">{SyncTypeLabelMap[schema.sync_type]}</LemonTag>+ <Tooltip+ title={+ blockedReason+ ? IncrementalSyncBlockedMessageMap[blockedReason]+ : schema.sync_type+ ? 'Change the sync method for this table'+ : 'Set up the sync method for this table'+ }+ interactive={!!blockedReason}+ >+ <Link+ to={urls.dataWarehouseSourceSchema(+ prefixedSourceId,+ schema.id,+ 'configuration',+ 'sync-method'+ )}+ subtle+ data-attr="schemas-tab-sync-method"+ >+ {syncMethod}+ </Link></Tooltip>)},