Skip to content

Fixes 35881: tag Hex table-to-dashboard lineage as DashboardLineage - #35882

Merged
ulixius9 merged 2 commits into
mainfrom
ulixius9/hex-agent-manual-lineage
Oct 22, 2026
Merged

ulixius9 merged 2 commits into
mainfrom
ulixius9/hex-agent-manual-lineage

Conversation

@ulixius9

@ulixius9 ulixius9 commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35881

The Hex connector built its table → dashboard AddLineageRequest by hand with no lineageDetails. Because of that, the server stored every Hex edge with the default source=Manual. This PR routes Hex through the shared DashboardServiceSource._get_add_lineage_request helper, so Hex edges now carry source=DashboardLineage and both entity FQNs, like the other dashboard connectors. Re-ingesting relabels existing Hex edges, so no migration is needed.

Type of change:

  • Bug fix

High-level design:

N/A: small change.

Tests:

Use cases covered

  • Hex ingestion yields table → dashboard lineage tagged lineageDetails.source = DashboardLineage.

Unit tests

  • Updated ingestion/tests/unit/topology/dashboard/test_hex.py::test_yield_dashboard_lineage_details to assert the lineage source. The assertion fails on the old code, where lineageDetails is None.
  • Ran PYTHONPATH=src python -m pytest tests/unit/topology/dashboard/test_hex.py tests/unit/topology/dashboard/test_hex_ingestion_flow.py --cov=metadata.ingestion.source.dashboard.hex: 34 passed, 86% line coverage on hex/metadata.py.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable: there are no Hex integration tests under ingestion/tests/integration/, and no integration test imports the changed module.

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

None against a live Hex workspace. Covered by the unit tests above.

UI screen recording:

Not applicable: ingestion-only bug fix.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: N/A, no schema changes.

  • For a UI feature or feature task: N/A, no UI changes.

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.

    • Reviewed 3c4db6a: no 🔴 findings. One 🟡 found an existing bug outside this PR: QuickSight's S3 container → data model edge also omits lineageDetails. Left for a follow-up.
  • Decision check: N/A, a self-evident bug fix.

  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The latest change appears safe to merge; no new actionable issues were found.

Summary

Hex now uses _get_add_lineage_request to include DashboardLineage and both entity FQNs.

  • Hex table-to-dashboard edges carry the dashboard lineage source.

Reviews (2) · Last reviewed commit: "fix(hex): skip None from _get_add_lineag..." · Reviewed by Greptile

Hex built its own AddLineageRequest without lineageDetails, so its edges
carried no source and were indistinguishable from manual lineage. Route it
through DashboardServiceSource._get_add_lineage_request like the other
dashboard connectors.
@ulixius9
ulixius9 requested a review from a team as a code owner October 21, 2026 10:55
@ulixius9
ulixius9 requested review from Khairajani and a balanced review from Copilot October 21, 2026 10:55

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 reached their quota limit.

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@ulixius9 ulixius9 added the To release Will cherry-pick this PR into the release branch label Oct 21, 2026
@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Oct 21, 2026
@ulixius9
ulixius9 enabled auto-merge October 21, 2026 10:57
@harshsoni2024
harshsoni2024 added this pull request to the merge queue Oct 22, 2026
…ight

The helper returns Either | None; yielding it directly from an
Iterable[Either[AddLineageRequest]] generator fails static checks.
@ulixius9
ulixius9 removed this pull request from the merge queue due to a manual request Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-22T10:25:04Z)

The entry left the queue before it was built, so no checks ran against it.

Copilot AI balanced review requested due to automatic review settings October 22, 2026 10:25

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 reached their quota limit.

@ulixius9
ulixius9 enabled auto-merge October 22, 2026 10:26
@gitar-bot

gitar-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Routing Hex lineage through the shared helper changes stored edge metadata; incorrect source or FQN values could misclassify lineage in catalog views.

Routes Hex table-to-dashboard lineage through the shared DashboardServiceSource._get_add_lineage_request helper so edges carry source=DashboardLineage and both entity FQNs. 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

@ulixius9
ulixius9 added this pull request to the merge queue Oct 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

Merged via the queue into main with commit 2ea737f Oct 22, 2026
82 of 83 checks passed
@ulixius9
ulixius9 deleted the ulixius9/hex-agent-manual-lineage branch October 22, 2026 12:58
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Nothing to backport to 2.0 — this change is already on that branch.

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

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hex connector lineage edges are stored as Manual lineage

3 participants