Skip to content

Fixes #28254: Show entity type in Follow tooltip for Domain and Data Product - #37049

Merged
anuj-kumary merged 2 commits into
mainfrom
fix/28254-follow-tooltip-domain-dataproduct
Nov 4, 2026
Merged

anuj-kumary merged 2 commits into
mainfrom
fix/28254-follow-tooltip-domain-dataproduct

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #28254

On Domain and Data Product pages the Follow button tooltip rendered without the entity type (EN Follow, RU Подписаться объекта «»), while other entities showed e.g. Follow Database Schema.

Root cause: EntityHeader accepts entityType but never forwarded it to EntityHeaderTitle, whose tooltip builds label.field-entity from entityType. Domain and Data Product are the only pages that render the follow button through EntityHeader (other data assets use DataAssetsHeader), so only they lost the type. The fix forwards the prop — one line in the shared component, which covers every EntityHeader caller.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Domain page: Follow tooltip reads Follow Domain
  • Data Product page: Follow tooltip reads Follow Data Product

Unit tests

  • I added unit tests for the new/changed logic.
  • Files added/updated: src/components/Entity/EntityHeader/EntityHeader.test.tsx (new). Fails without the fix (2/2), passes with it.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable: no Playwright spec added. The fix forwards one prop and the unit test fails without it.
  • make playwright_affected selects 21 specs (Entity, DataMarketplace, DomainIsolation/*, …); not run locally, so the merge queue covers them.

Manual testing performed

  1. Ran this branch's UI with Vite (npx vite --port 3010) against a local 2.0.0-SNAPSHOT backend, logged in as admin.
  2. Opened a Domain (/domain/DomainDP) and hovered Follow → tooltip reads Follow Domain.
  3. Opened a Data Product (/dataProduct/darrepro1793774034dp) and hovered Follow → tooltip reads Follow Data Product.
  4. Removed the one-line fix (HMR, same session), repeated 2–3 → tooltip reads only Follow, matching the issue.
  5. npx jest src/components/Entity/EntityHeader passes; eslint + prettier clean.

UI screen recording:

Standalone bug fix (tooltip text), so screenshots instead of a recording:

Before After
Domain before domain after domain
Data Product before data product after data product

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 added tests (unit / integration / Playwright as applicable) and listed them above.
  • Decision check: not applicable, no durable decision.
  • I have added a test that covers the exact scenario we are fixing.

…Product

EntityHeader received entityType but never forwarded it to EntityHeaderTitle,
so the tooltip's {{entity}} interpolation rendered empty.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 4, 2026 11:35
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Nov 4, 2026
@github-actions github-actions Bot added the UI UI specific issues label Nov 4, 2026
@anuj-kumary anuj-kumary self-assigned this Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 81%
81.33% (138136/169832) 68.35% (49795/72849) 71.39% (27971/39179)

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@anuj-kumary anuj-kumary added the 2.1 label Nov 4, 2026
@gitar-bot

gitar-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Forwarding entityType into the shared header changes Follow tooltip text for Domain and Data Product; incorrect propagation could show misleading entity labels.

Forwards the entityType prop from EntityHeader to EntityHeaderTitle so the Follow tooltip on Domain and Data Product pages shows the entity type (e.g., Follow Domain). 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

@anuj-kumary
anuj-kumary enabled auto-merge (squash) November 4, 2026 14:48
@anuj-kumary
anuj-kumary merged commit 6e0d9c3 into main Nov 4, 2026
95 of 100 checks passed
@anuj-kumary
anuj-kumary deleted the fix/28254-follow-tooltip-domain-dataproduct branch November 4, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.1 safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooltip for 'Follow' button does not display entity type for Domain and Data Product entities

2 participants