Repository navigation
Fixes #35743: Open a sub-domain when its name is clicked in list view - #35738
Conversation
The sub-domain table never passed onEntityClick to the name cell, so a click on the name landed on the ellipsis-tooltip trigger, which consumes the row's react-aria press. Wire it up like the Domain list (#31876) and add a Playwright regression test.
🔄 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 |
|
| Count | Rule |
|---|---|
| 2 | react-hooks/exhaustive-deps |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx:124:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'subdomainListing'. Either include it or remove the dependency array. |
| 🟡 | src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx:213:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'subDomainColumns', 'subdomainListing.handleClearAll', 'subdomainListing.handleSelect', 'subdomainListing.handleSel |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed…-list-edit-issue # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx
…issue' into anuj-kumary/subdomain-list-edit-issue
Code Review ✅ Approved🟡 Medium risk · Wiring the subdomain name cell to its navigation handler changes list-view behavior; a misrouted click could open the wrong subdomain. Passes 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 |
|
… [Backport #35738 - 2.0] (#35758) * fix(ui): open a sub-domain when its name is clicked in list view The sub-domain table never passed onEntityClick to the name cell, so a click on the name landed on the ellipsis-tooltip trigger, which consumes the row's react-aria press. Wire it up like the Domain list (#31876) and add a Playwright regression test. * chore(playwright): auto-refresh impact-map.generated.json --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>



Describe your changes:
Fixes #35743
Customer report: in a domain's Sub Domains tab, list view, clicking a sub-domain's name does not open it, so the sub-domain can't be edited. Card view and the globe icon work.
Root cause: the name is rendered with
Typography ellipsis={{ tooltip }}, whose tooltip trigger is a react-aria button. It consumes the row's react-aria press, soTable.Row onActionnever fires for clicks on the name (continuePropagation()only lets the native click reach plain DOMonClickancestors). #31876 fixed this for the Domain and Data Product lists by giving the name cell its ownonClickviauseDomainTableColumns({ onEntityClick });SubDomainsTablewas never wired up.Fix: pass
onEntityClicktouseDomainTableColumnsinSubDomainsTable(one line).Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
useDomainTableColumns.test.tsx/domainFieldRenderers.test.tsx(31/31 pass).Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Clicking a subdomain name in list view opens the subdomaininplaywright/e2e/Pages/DataProductAndSubdomains.spec.ts.--repeat-each 3, together with the existingNavigate between sibling subdomains(3/3).Manual testing performed
2.0.0-SNAPSHOT).Financewith sub-domainsPayments,BillingandTreasurythrough the API.Payments.main: nothing happens, even after several clicks.UI screen recording:
Recorded on commit
7150e2f1641(the "before" clip is the same code with the fix reverted).Before (main): clicking the name does nothing
subdomain-name-click-before.mp4
After (this PR): clicking the name opens the sub-domain
subdomain-name-click-after.mp4
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md.🤖 Generated with Claude Code


Confidence Score: 5/5
This PR appears safe to merge.Summary
Makes subdomain names clickable in list view by passing the existing
onEntityClickhandler touseDomainTableColumns.Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/anu..." · Reviewed by Greptile