Repository navigation
Conversation
…f in ingestion (#38914) The 2.1 ingestion stage read every dashboard back and wrote one lineage request per chart, which slowed dashboard ingestion. The server already holds the same set as the Dashboard HAS Chart relationship, so it now keeps the Dashboard to Chart lineage edges itself. - DashboardRepository reconciles a dashboard's chart edges after its create, bulk create or chart change commits, through LineageRepository. - The edges carry a new DashboardChartLineage source, so an overrideLineage run no longer deletes them. - The 2.1.2 migration adds the missing edges and moves the edges the 2.1 stage drew to the new source, before the data product lineage rebuild. - Ingestion drops the yield_dashboard_chart_lineage stage. ADR:2026-12-04-the-server-owns-dashboard-to-chart-lineage (cherry picked from commit 6866b01)
❌ 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 |
Code Review ✅ Approved 🔴 High riskThe 2.1.2 backfill and server sync alter stored dashboard-chart edges across dashboards; reconciliation errors could remove or mislabel valid lineage. Moves Dashboard to Chart lineage creation from ingestion to the server, so 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
Backport of #38914 to
2.1. Fixes #38698.The 2.1 ingestion stage drew one Dashboard → Chart lineage edge per chart with its own lineage request, which slowed dashboard ingestion. The server already stores the same set as the
Dashboard HAS Chartrelationship, so it now keeps these edges itself, as decided in ADR:2026-12-04-the-server-owns-dashboard-to-chart-lineage (included).DashboardRepositoryreconciles a dashboard's chart edges after its create, bulk create or chart change commits, throughLineageRepository.DashboardChartLineagesource, so anoverrideLineagerun no longer deletes them.yield_dashboard_chart_lineagestage.The bot backport failed on conflicts, so this is a hand port. Differences from main:
Upgrade note: run
./bootstrap/openmetadata-ops.sh reindex --entities=chartafter upgrading so the lineage views show the backfilled edges.Type of change
Tests (run on this branch)
DashboardChartLineageITDashboardChartLineageBackfillMigrationITDashboardResourceIT(regression)DashboardChartLineageBackfillTest9 / 0.Backend integration tests
🤖 Generated with Claude Code