Repository navigation
fix(lineage): open the drawer on the entity id, not the scene node id - #33802
Conversation
❌ 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 |
|
| Count | Rule |
|---|---|
| 33 | react-hooks/exhaustive-deps |
| 1 | no-restricted-imports |
| 1 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:20:1 |
no-restricted-imports |
'@untitledui/icons' import is restricted from being used by a pattern. Import icons from @openmetadata/ui-core-components/icons, not directly from @untitledui/i |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:107:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:756:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'isEditMode'. Either exclude it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:867:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'setColumnsHavingLineage', 'setEdges', 'setIsRepositioning', and 'setNodes'. Either include them or remove the |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:935:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:994:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'isTourOpen', 'setEdges', 'setNodes', 't', and 'timeFilter'. Either include them or remove the dependency array |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1023:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'navigate', 'setActiveLayer', and 'setPlatformView'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1095:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'exportLineageData', 'showModal', and 't'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1193:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'lineageData?.downstreamEdges', 'lineageData?.upstreamEdges', 't', and 'updateLineageData'. Either include them |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1245:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'setTracedColumns' and 'setTracedNodes'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1266:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'onPlatformViewChange' and 'setIsPlatformLineage'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1282:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'setSelectedEdge', 'setTracedColumns', and 'setTracedNodes'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1295:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setTracedColumns'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1455:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'edges', 'removeEdgesBySourceTarget', and 'removeNodeById'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1651:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setSelectedNode'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1674:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'selectLoadMoreNode', 'setActiveNode', 'setSelectedEdge', and 'setSelectedNode'. Either include them or remove |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1684:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'setActiveNode', 'setSelectedColumn', 'setSelectedNode', 'setTracedColumns', and 'setTracedNodes'. Either inclu |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1696:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'setActiveNode', 'setSelectedEdge', 'setSelectedNode', 'setTracedColumns', and 'setTracedNodes'. Either include |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1744:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setSelectedEdge'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1854:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'addTracedColumns', 'setColumnsHavingLineage', and 'setTracedNodes'. Either include them or remove the dependen |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1873:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setSelectedEdge'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:1954:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'bumpLineageMutationTick', 'handleModalCancel', and 'updateEdge'. Either include them or remove the dependency |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2018:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'bumpLineageMutationTick', 'setSelectedEdge', and 'updateEdge'. Either include them or remove the dependency ar |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2081:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'setActiveNode' and 'updateLineageData'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2086:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'redraw'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2137:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'fetchLineageData', 'fetchPlatformLineage', and 'timeFilter'. Either include them or remove the dependency arra |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2164:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'setActiveLayer' and 'setLineageConfig'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2207:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'removeNodeHandler'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2221:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'redraw'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2225:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'onPlatformViewUpdate'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2274:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'queryFilter' and 'setNodes'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2328:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'updateActiveLayer'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2334:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchDataQualityLineage'. Either include it or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2376:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'platformView' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/context/LineageProvider/LineageProvider.tsx:2381:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'reset'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
✅ Playwright Results — workflow succeededValidated commit ✅ 655 passed · ❌ 0 failed · 🟡 3 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 55m 55s ⏱️ Max setup 4m 24s · max shard execution 19m 49s · max shard-job elapsed before upload 23m 20s · reporting 6s 🌐 218.94 requests/attempt · 2.70 app boots/UI scenario · 22.88% common-shard skew Optimization targets still in progress:
🟡 3 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
b60bd4c to
1710420
Compare
"Verify LineageSearchSelect in lineage mode" failed asserting the selected node renders. The selection had worked -- the search box shows the container and the drawer is open -- but the drawer reads: You don't have necessary permissions. Please check with the admin to get the View Data Asset permission. for an admin. The trace shows why: GET 404 /api/v1/permissions/container/container:45bfac5c-... GET 200 /api/v1/containers/name/pw-storage-service-...pw-container-f10e87e6 The permission request carries the scene node id where an entity UUID belongs. `toLineageNode` spreads the real entity and then overwrites `id` with `node.id` so React Flow can key on it, so `data.node.id` is `<entityType>:<uuid>`. That object is handed to the drawer as-is, and DataAssetSummaryPanelV1 fetches permissions by `dataAsset.id`, so the request 404s, no permissions come back, and the panel reports denial for an entity the caller can plainly read. Resolve the real id through the existing `getRealEntityRef` accessor, which reads it from the scene node's sourceEntity, and fall back to the previous object when there is no sceneNode, so legacy non-scene nodes are untouched. `handleEntityUpdate` uses the same id as its entity fallback and gets the same correction. Verified: tsc unchanged at 581 errors with the one LineageProvider entry pre-existing in the test file, eslint 0 errors, 11/11 LineageProvider tests pass. The Playwright test above is the regression guard. (cherry picked from commit ebd72c7)
1710420 to
a3c2742
Compare
|
Good catch — real bug. Applied the suggested fix at
The drawer's |
Code Review ✅ Approved 1 closed / 1 findings🔴 High risk · Lineage drawer permission lookups change the entity used for authorization decisions Fixes the lineage drawer to open with the real entity UUID instead of the React Flow scene node ID, resolving permission request failures for admins viewing permitted entities. Drawer edits no longer incorrectly update the graph node in scene mode. ✅ 1 closed✅ Bug: Drawer edits no longer update the graph node in scene mode
OptionsDisplay: compact → Counting what did not apply, without listing it. 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:
"Verify LineageSearchSelect in lineage mode" failed asserting the selected node renders. The selection had worked — the search box shows the container and the drawer is open — but the drawer reads:
...for an admin. The trace shows why:
The permission request carries the scene node id where an entity UUID belongs.
toLineageNodespreads the real entity and then overwritesidwithnode.idso React Flow can key on it, sodata.node.idis<entityType>:<uuid>. That object is handed to the drawer as-is, andDataAssetSummaryPanelV1fetches permissions bydataAsset.id, so the request 404s, no permissions come back, and the panel reports denial for an entity the caller can plainly read.Resolve the real id through the existing
getRealEntityRefaccessor, which reads it from the scene node'ssourceEntity, and fall back to the previous object when there is nosceneNode, so legacy non-scene nodes are untouched.Type of change:
Notes:
Cherry-picked from #33088 (commit `ebd72c7bb3`) to land as a small, independently-mergeable PR. Original commit authored by @harshach.
🤖 Generated with Claude Code
The PR appears safe to merge because drawer permission requests and graph updates now use their respective entity and scene identifiers without introducing a reachable regression.
Summary
This PR corrects lineage drawer identity handling while preserving the distinct identifier required for React Flow updates.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Clicked React Flow node] --> B[Keep scene ID in activeNode] A --> C[Resolve entity UUID from sceneNode] C --> D[Open asset drawer] D --> E[Fetch entity permissions by UUID] D --> F[Submit metadata edit] F --> G[Update React Flow node by activeNode scene ID]Reviews (3) · Last reviewed commit: "fix(lineage): open the drawer on the ent..."