Repository navigation
Fixes #28254: Show entity type in Follow tooltip for Domain and Data Product - #37049
Conversation
…Product
EntityHeader received entityType but never forwarded it to EntityHeaderTitle,
so the tooltip's {{entity}} interpolation rendered empty.
|
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 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 |



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:
EntityHeaderacceptsentityTypebut never forwarded it toEntityHeaderTitle, whose tooltip buildslabel.field-entityfromentityType. Domain and Data Product are the only pages that render the follow button throughEntityHeader(other data assets useDataAssetsHeader), so only they lost the type. The fix forwards the prop — one line in the shared component, which covers everyEntityHeadercaller.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Follow DomainFollow Data ProductUnit tests
src/components/Entity/EntityHeader/EntityHeader.test.tsx(new). Fails without the fix (2/2), passes with it.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
make playwright_affectedselects 21 specs (Entity, DataMarketplace, DomainIsolation/*, …); not run locally, so the merge queue covers them.Manual testing performed
npx vite --port 3010) against a local 2.0.0-SNAPSHOT backend, logged in as admin./domain/DomainDP) and hovered Follow → tooltip readsFollow Domain./dataProduct/darrepro1793774034dp) and hovered Follow → tooltip readsFollow Data Product.Follow, matching the issue.npx jest src/components/Entity/EntityHeaderpasses; eslint + prettier clean.UI screen recording:
Standalone bug fix (tooltip text), so screenshots instead of a recording:
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.