Skip to content

Fixes #35743: Open a sub-domain when its name is clicked in list view [Backport #35738 - 2.0] - #35758

Merged
anuj-kumary merged 2 commits into
2.0from
anuj-kumary/subdomain-list-edit-issue-2.0
Oct 20, 2026
Merged

anuj-kumary merged 2 commits into
2.0from
anuj-kumary/subdomain-list-edit-issue-2.0

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35743

Backport of #35738 to 2.0. Same one-line fix plus the same Playwright regression test; the only conflict was the neighbouring tagSize: 'lg' option that 2.0 passes to the same call (both kept).

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, so Table.Row onAction never fires for clicks on the name (continuePropagation() only lets the native click reach plain DOM onClick ancestors). #31876 fixed this for the Domain and Data Product lists by giving the name cell its own onClick via useDomainTableColumns({ onEntityClick }); SubDomainsTable was never wired up.

Fix: pass onEntityClick to useDomainTableColumns in SubDomainsTable (one line).

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • In list view, clicking a sub-domain's name opens that sub-domain.
  • Clicking the globe icon or another cell still opens it.
  • Clicking the name while another row is checked still opens it.

Unit tests

  • Not added: the press-swallowing only happens with real react-aria press handling, which jsdom doesn't reproduce. The name-cell click path is already covered by useDomainTableColumns.test.tsx / domainFieldRenderers.test.tsx (31/31 pass).

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Added Clicking a subdomain name in list view opens the subdomain in playwright/e2e/Pages/DataProductAndSubdomains.spec.ts.
  • Run on the 2.0 UI against a local server: fails without the fix (header still shows the parent domain), passes with it: 3/3 with --repeat-each 3, together with the existing Navigate between sibling subdomains (3/3).
  • Domain unit suites on 2.0: 138/138 pass.

Manual testing performed

  1. Ran the PR UI (Vite) against a local OpenMetadata server (2.0.0-SNAPSHOT).
  2. Created domain Finance with sub-domains Payments, Billing and Treasury through the API.
  3. Opened Finance → Sub Domains → list view and clicked the name Payments.
    • On main: nothing happens, even after several clicks.
    • With this PR: the Payments sub-domain page opens and can be edited.

UI screen recording:

Recorded for #35738 on main (commit 7150e2f1641); the change is identical on 2.0, where the before/after behaviour was verified with the Playwright test above.

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:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Fixes sub-domain name clicks in list view by passing the existing navigation handler to useDomainTableColumns.

  • Clicking a sub-domain name in list view opens that sub-domain.

Reviews (1) · Last reviewed commit: "chore(playwright): auto-refresh impact-m..." · Reviewed by Greptile

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.
@anuj-kumary anuj-kumary added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Oct 19, 2026
@anuj-kumary
anuj-kumary requested a review from a team as a code owner October 19, 2026 14:22
@anuj-kumary
anuj-kumary requested review from karthicksharan and removed request for a team October 19, 2026 14:22
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 567 → 567
- 0 added, 0 removed, 2 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/common/EntityListingTable/EntityListingTable.component.tsx
  openmetadata-ui/src/main/resources/ui/src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

@pmbrull
pmbrull requested review from a team, akash-jain-10, harshach and tutte as code owners October 19, 2026 14:22
@anuj-kumary anuj-kumary self-assigned this Oct 19, 2026
@gitar-bot

gitar-bot Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Wiring subdomain name clicks to the navigation handler changes UI behavior; incorrect entity routing could open a different subdomain.

Passes onEntityClick to useDomainTableColumns in SubDomainsTable, so clicking a sub-domain's name in list view opens it. Includes a Playwright regression test for that click path. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.3% (82854/121307) 53.2% (51311/96449) 53.95% (15267/28296)

@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary merged commit 2d13ea0 into 2.0 Oct 20, 2026
90 of 94 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/subdomain-list-edit-issue-2.0 branch October 20, 2026 02:20

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants