Repository navigation
Fixes 35881: tag Hex table-to-dashboard lineage as DashboardLineage (2.0) - #35946
Conversation
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. (cherry picked from commit 3c4db6a)
❌ 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 |
| self.assertIsInstance(lineage_request, AddLineageRequest) | ||
| self.assertEqual(lineage_request.edge.fromEntity.id, EXAMPLE_TABLE.id) | ||
| self.assertEqual(lineage_request.edge.toEntity.id, EXAMPLE_DASHBOARD.id) | ||
| self.assertEqual(lineage_request.edge.lineageDetails.source, LineageSource.DashboardLineage) |
There was a problem hiding this comment.
New assertion breaks test rules
The new assertion uses self.assertEqual, but the repository’s Python rules require plain assert statements. Use assert lineage_request.edge.lineageDetails.source == LineageSource.DashboardLineage instead. This requirement must be met before merging; the existing assertions do not need to change in this PR.
| self.assertEqual(lineage_request.edge.lineageDetails.source, LineageSource.DashboardLineage) | |
| assert lineage_request.edge.lineageDetails.source == LineageSource.DashboardLineage |
Context Used: CLAUDE.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
…ight The helper returns Either | None; yielding it directly from an Iterable[Either[AddLineageRequest]] generator fails static checks. (cherry picked from commit 39ef1e5)
Code Review ✅ Approved🔴 High risk · Hex now stores lineage provenance and entity FQNs via the shared helper; incorrect values could misrepresent table-to-dashboard dependencies. Hex table-to-dashboard lineage now uses the shared 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 #35881
This backports #35882 to
2.0withgit cherry-pick -x 3c4db6a, which applied cleanly. Hex built its table → dashboardAddLineageRequestwith nolineageDetails, so the server stored every Hex edge with the defaultsource=Manual. Hex now uses the sharedDashboardServiceSource._get_add_lineage_request, so its edges carrysource=DashboardLineageand both entity FQNs.Type of change:
High-level design:
N/A: small change (backport).
Tests:
Use cases covered
lineageDetails.source = DashboardLineage.Unit tests
ingestion/tests/unit/topology/dashboard/test_hex.py::test_yield_dashboard_lineage_detailsasserts the lineage source.2.0branch, with models generated from2.0's schemas, I ranPYTHONPATH=src python -m pytest tests/unit/topology/dashboard/test_hex.py tests/unit/topology/dashboard/test_hex_ingestion_flow.py: 34 passed.ruff checkandruff format --checkare clean on both changed files.Backend integration tests
Ingestion integration tests
ingestion/tests/integration/.Playwright (UI) tests
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:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.3c4db6a, no 🔴 findings).🤖 Generated with Claude Code
The new guard preserves valid lineage requests, but the outstanding test-style requirement must be met before merging.
Findings
Summary
Hex now uses the shared lineage helper to mark table-to-dashboard edges as
DashboardLineage.Reviews (2) · Last reviewed commit: "fix(hex): skip None from _get_add_lineag..." · Reviewed by Greptile