Skip to content

[2.1] Fixes #38698: Draw Dashboard to Chart lineage on the server instead of in ingestion (backport #38914) - #39846

Open
yan-3005 wants to merge 1 commit into
2.1from
backport-38914-2.1
Open

yan-3005 wants to merge 1 commit into
2.1from
backport-38914-2.1

Conversation

@yan-3005

@yan-3005 yan-3005 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

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 Chart relationship, so it now keeps these edges itself, as decided in ADR:2026-12-04-the-server-owns-dashboard-to-chart-lineage (included).

  • 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.
  • Ingestion drops the yield_dashboard_chart_lineage stage.

The bot backport failed on conflicts, so this is a hand port. Differences from main:

  • 2.1 has no domain lineage rebuild step in v212, so the backfill runs before the data product lineage rebuild.
  • 2.1 has no lineage lock-order record, so the two ADR citations that point at records missing on 2.1 are removed.
  • The PowerBI override of the stage and the data product browser-test toast fix from main do not apply: neither file exists on 2.1.

Upgrade note: run ./bootstrap/openmetadata-ops.sh reindex --entities=chart after upgrading so the lineage views show the backfilled edges.

Type of change

  • Bug fix

Tests (run on this branch)

Suite MySQL + ES Postgres + OS
DashboardChartLineageIT 8 / 0 8 / 0
DashboardChartLineageBackfillMigrationIT 2 / 0 2 / 0
DashboardResourceIT (regression) 233 / 0, 21 skipped 233 / 0, 21 skipped

Backend integration tests

🤖 Generated with Claude Code

…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)
@yan-3005
yan-3005 requested review from a team as code owners December 4, 2026 13:50
@yan-3005
yan-3005 requested review from Khairajani, anuj-kumary and sonika-shah and a balanced review from Copilot and removed request for a team December 4, 2026 13:50
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

The 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 DashboardRepository reconciles chart edges on create and chart change and the 2.1.2 migration backfills existing edges under a new DashboardChartLineage source. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants