Refactor permission issue for ontology data mode#27332
Conversation
Removes fontSize from SelectContext so it can be shipped as a standalone feature in a separate PR, keeping this branch focused on permission fixes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Code Review 👍 Approved with suggestions 2 resolved / 4 findingsRefactors the ontology data permission logic and addresses stale UI issues caused by missing stats change triggers. Consider replacing the silent catch block with proper error logging and switching to a waiting visibility check for canvas nodes. 💡 Quality: Silent catch block hides graph update errorsThe empty 💡 Quality: rightClickCanvasToFindNode uses non-waiting isVisible() check📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/OntologyExplorer.spec.ts:708-714 In Contrast with Suggested fix✅ 2 resolved✅ Edge Case: Test clicks at pixel (0.5, 0.5) — unlikely to hit a node
✅ Bug: onStatsChange never called when stats become empty → stale UI
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Describe your changes:
Fixed a permission issue in data mode when clicking on a term.
In data mode, nodes were being created using id: fqn (the FQN string) instead of a UUID, while the function expects a UUID. As a result, the backend was unable to resolve the entity and returned empty permissions, causing a "no permission" error even for admins.
Screen.Recording.2026-04-14.at.8.43.54.AM.mov
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>