Repository navigation
Fixes 28492: Add a dashboard pipeline option to skip direct chart lineage - #38448
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
UI browser testsRan: all test files (no impact map from main yet) Result: ✅ 1099 passed · 154 skipped |
IceS2
left a comment
There was a problem hiding this comment.
Could we move this to DashboardServiceMetadataPipeline as includeDirectChartLineage, defaulting to true?
Looker emits Explore → Chart and Metabase emits Table → Chart, so both can use the same per-pipeline option.
With it off, skip the direct chart lookups and edge writes while preserving upstream lineage to the dashboard and the shared Dashboard → Chart edges.
Could we cover both connectors and assert that the disabled path makes zero catalog chart lookups for direct lineage?
Review asked for a single per-pipeline option instead of a Looker connection setting, so every connector that draws lineage straight to a chart reads the same flag. - Add includeDirectChartLineage (default true) to DashboardServiceMetadataPipeline. Drop includeChartLineage from the Looker connection along with its generated types, help text, IT, Playwright case and form tests. - Read it through DashboardServiceSource.include_direct_chart_lineage. Only an explicit false turns it off. - Looker skips the Explore -> Chart lookups and edges. Metabase skips the Table -> Chart lookups and edges for query-builder and native SQL cards. Lineage to the dashboard and the Dashboard -> Chart stage are unchanged. - Replace the unmerged Looker record with ADR:2026-11-25-direct-chart-lineage-is-a-dashboard-pipeline-option.
|
@IceS2 thanks, that's a better home for it. It now lives on Both connectors read it through a small
For tests, Looker and Metabase each run omitted / I replaced the Looker decision record with one for the pipeline option and took the old connection-form recording out of the description, since it no longer applies. One related detail is now in the pipeline help text: direct edges from earlier runs stay unless |
The UI form fills in schema defaults, so every dashboard pipeline it saves carries includeDirectChartLineage, not only pipelines that turn it off. State that, and that workers already match the server's major and minor version, in the decision record.
|
Thanks. The risk note is right, and it reaches further than the PR said. The ingestion form fills in schema defaults, so every dashboard pipeline saved from the UI carries Workers already have to match the server's major and minor version ( 0f5c36d corrects the decision record: upgrade the workers before saving dashboard pipelines, and remove the property from pipelines saved since the upgrade before downgrading. The PR description now says the same. |
Code Review ✅ Approved 🟡 Medium riskThe pipeline option skips direct Looker and Metabase chart edges, which could alter lineage views that rely on direct source-to-chart relationships. Adds an optional Include Direct Chart Lineage setting to dashboard metadata pipelines, defaulting to VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes
Fixes #28492
Dashboard metadata pipelines can now turn off direct chart lineage with Include Direct Chart Lineage. It defaults to
true, so existing pipelines keep their lineage. With it off, Looker skips the Explore → Chart edges and Metabase skips the Table → Chart edges, and neither connector looks the charts up for that lineage. Lineage from those sources to the dashboard and the shared Dashboard → Chart edges are still written, so each chart stays connected to its sources through its dashboard.Type of change
High-level design
DashboardServiceMetadataPipelineowns the optionalincludeDirectChartLineageproperty. Connectors read it throughDashboardServiceSource.include_direct_chart_lineage, which treats only an explicitfalseas off, so an omitted value or a null keeps the default. Looker returns before its chart loop. Metabase skips_get_chart_entityon both the query-builder and native SQL paths.yield_dashboard_chart_lineagedoes not read the option.An earlier revision put this on the Looker connection. Review moved it to the pipeline so every connector that draws direct chart lineage shares one setting and each pipeline can choose. Looker and Metabase are the only dashboard connectors that draw it today. The optional property needs no migration. An older ingestion worker rejects any workflow that carries it, and the UI form writes the default
trueinto every dashboard pipeline it saves, so upgrade workers before saving dashboard pipelines. Workers already have to match the server's major and minor version, so this matters for a worker on an earlier patch of the same minor, or after a downgrade. Decision recordTests
Use cases covered
true,falseand null. Metabase covers query-builder and native SQL cards.Chartlookups for direct lineage, counted atOpenMetadata.get_by_name, and still write the source → dashboard edge.Unit tests
make unit_ingestion ARGS='-n 0 tests/unit/topology/dashboard/test_looker_chart_lineage.py tests/unit/topology/dashboard/test_dashboard_chart_lineage.py tests/unit/topology/dashboard/test_metabase.py': 65 passed.main, exactly the four disabled cases failed: Looker's option test and missing-dashboard case, and Metabase's query-builder and native SQL cases. The other 13 selected cases passed.yarn test src/utils/IngestionWorkflowUtils.test.ts: 14 passed against the regenerated ingestion schemas.json2ts-generate-all.shandyarn parse-schemachanged only the dashboard pipeline schema and the five generated types that embed it. Ruff format and lint passed on the changed Python files.Backend tests
No Java source changes. The focused
make java_affectedplan selected no runnable tests. Its full plan,CreateIngestionPipelineImplTestand the ingestion-pipeline ITs, has not been run locally and is deferred to the merge queue.Ingestion integration tests
There is no Looker or Metabase integration fixture in the repository and no live tenant in this run. The unit suites drive the real connector code with synthetic dashboards and a faked catalog boundary.
Playwright (UI) tests
No UI code changes. The toggle renders from the generated
dashboardServiceMetadataPipelineschema alongside the other dashboard pipeline toggles. The connection-form Playwright case from the earlier revision was removed with the connection setting.Manual test steps
Add or edit a dashboard metadata ingestion for Looker or Metabase, switch Include Direct Chart Lineage off and deploy. After the run, charts have no direct edge from their Explore or table, and the dashboard still has its upstream lineage and its Dashboard → Chart edges.
UI screen recording
The earlier recording showed the Looker connection setting that this revision removes, so I took it out. The new toggle is generated from the pipeline schema and needs no UI code.
Checklist
Fixes <issue-number>: <short explanation>.REVIEW.md.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Adds optional
includeChartLineageto Looker connections, with a default oftrue.No actionable issues found. No tests were run during this review.
Acknowledged by
Vamsi-klu: historical edges follow the existing override policy; older clients require the documented deployment and downgrade order; live Looker validation remains pending.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR E[Looker Explore] --> D[Dashboard] D --> C[Chart] E --> G{includeChartLineage is false?} G -->|No| C G -->|Yes| S[Skip direct edge and chart lookup]Reviews (1) · Last reviewed commit: "Stabilize Looker connection persistence ..." · Reviewed by Greptile