Repository navigation
Fixes #35891: Fix lineage page PNG export, tab title and settings save (backport 2.0 #35892) - #37168
Conversation
…e (backport 2.0 #35892) The parts of #35892 that apply to 2.0, which has no hierarchical lineage map: - The Lineage page exports through the lineage provider, which frames and draws the platform graph it holds. The page's own export framed an empty node list and drew no edges. - The browser tab title on /lineage/:entityType/:fqn names the entity; label.entity-lineage is the literal "Entity Lineage". - Saving the lineage settings sends back the fields the page does not edit. The settings PUT replaces the whole value, so every save dropped graphPerformanceConfig. A page whose settings failed to load offers Reload instead of a form.
❌ 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 |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved🔴 High risk · Changing lineage settings saves to preserve the full stored configuration, so stale or incorrect fields could be written and alter persisted graph behavior. Backports the 2.0 lineage page fixes: PNG export now uses the platform graph through 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 |
|



Issue
Backport of #35892 to
2.0(Fixes #35891).What it fixes
2.0 has no hierarchical lineage map, so this carries only the parts of #35892 that apply to 2.0's Lineage page and lineage settings:
LineageProvider.onExportClick, which already exports the platform graph it holds, with its frame and edges. The button is a newLineageExportButton, rendered inside the provider throughplatformHeader./lineage/:entityType/:fqnusedlabel.entity-lineage, which is the literal "Entity Lineage". It now useslabel.platform-type-lineagewith the entity name, for example "Customer Dimension Lineage".graphPerformanceConfig. It now sends the loaded value back with the edited fields. If the settings fail to load, the page shows "Something went wrong" with Reload instead of a form.Left out (not on 2.0)
platformView, which 2.0's provider writes, so that bug does not exist here.query_filteronGET /v1/lineage/scene(there is no scene API on 2.0).LineageScenePerformanceScaleIT,LineageMapPageand the scale doc.ExportData.getViewport,getLineagePngExportOptions). 2.0's canvas renders every node and its export has no capture hooks, so a frame fitted at click time matches the capture.Backport notes
Applied by hand, because the files #35892 changes either don't exist on 2.0 or differ. Two 2.0-specific points:
handleSaveinLineageConfigPagewas auseCallbackwith no dependencies. It now listslineageConfigand the other values it reads; otherwise the spread would read the first render'sundefined. The saved value is renamedsavedConfig, because the oldconst lineageConfigin the same block would have shadowed the state. Prettier re-indents the callback, so view that file's diff with whitespace hidden.LineageConfigPage.test.tsxis new on 2.0.How it was tested
On this branch:
PlatformLineage.test.tsx, the newLineageConfigPage.test.tsxandLineageExportButton.test.tsx, andLineageProvider.test.tsx: 4 suites, 61 tests pass.keeps the settings the form does not edit,does not offer saving until the settings load,exports the platform graph through the lineage providerandnames the focused entity in the browser tab title.tscreports nothing new in them; the one error inPlatformLineage.tsxpredates this change, in the search-option mapping.Flow/LineageSettings.spec.tsgainsSaving the lineage config keeps the settings the form does not edit, andPages/Lineage/PlatformLineage.spec.tschecks the tab title. I did not run them locally; they run in CI.🤖 Generated with Claude Code