Repository navigation
fix(ui): owner links go to profile, uniform hover cards, drop stray owner labels - #33382
Conversation
…abels
Owner display fixes across the unified <Owner> component and its consumers:
- toOwnerRef no longer copies EntityReference.href (the API self-link) into the
owner ref. Owner renders the name as <a href>, so copying it made owner names
navigate to /api/v1/users/<id> and 401 on click. Consumers that want a
clickable owner now set an in-app route explicitly.
- Add getOwnersWithHref(owners) — maps toOwnerRefs then sets href to the in-app
profile route via getOwnerPath. Used by ownerTableObject and the owner/assignee
displays that render clickable names (incident assignee, alert/test-suite
details, data-asset summary panel).
- Add renderOwnerPopover(owner, chip) — a shared, non-hook helper that wraps an
owner chip in a UserPopOverCard, so the hover card renders uniformly across all
non-compact owner displays (previously only wired in select components).
useOwnerDisplayProps now returns it.
- Owner: add an inline layout branch for non-compact + showLabel=false +
selectorContent, so the incident-manager assignee cell renders avatar + name +
edit on one row (empty state: no-owner icon + placeholder + selector inline)
instead of stacking the selector above the owner.
- Drop the redundant "Owners" heading from the Add Glossary / Add Glossary Term
owner (and reviewer) previews via showLabel={false}.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
✅ Playwright Results — workflow succeededValidated commit ✅ 4506 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 1h 9m 54s ⏱️ Max setup 5m 21s · max shard execution 22m 46s · max shard-job elapsed before upload 25m 53s · reporting 27s 🌐 219.44 requests/attempt · 2.23 app boots/UI scenario · 40.66% common-shard skew Optimization targets still in progress:
🟡 9 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Why this is a common-component bug but not a single one-line fixRoot cause (one place): the unified Why there's still app-side work: Coverage: every clickable owner display is covered. The only deliberate exceptions (plain text, no link) are places a live link doesn't make sense — version/diff history (historical snapshots) and widget-customization previews (dummy owners). Those are safe (no 401), just not linked. |
Owner now accepts raw owner refs (the app's EntityReference shape) and
normalises them to OwnerRef internally, and the in-app profile href is
resolved through an app-registered resolver (setOwnerHrefResolver, wired
at bootstrap) — the same registry pattern as the hover card.
Call sites drop the `toOwnersWithHref` / `getOwnersWithHref` / toOwnerRefs
wrapping and just pass the array (`<Owner owners={dataAsset.owners} />`).
Retires the `useOwnerDisplayProps` hook and the `getOwnersWithHref`
helper; unwinds the domain-renderer owner plumbing.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…wnerLike -> OwnerDetails) Clearer names for the two owner shapes: OwnerDetails is the loose input accepted from call sites (the app's EntityReference fits it), and OwnerEntityReference is the normalised shape the library renders with. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Owner normalises inputs before rendering, which strips any incoming href (e.g. the backend API self-link), so the profile link comes solely from the app-registered resolver. Drops the dead "explicit href wins" branch in resolveOwnerHref so the code matches actual behaviour. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
| Count | Rule |
|---|---|
| 77 | react-hooks/exhaustive-deps |
| 29 | openmetadata-imports/no-circular-imports |
| 17 | openmetadata-imports/no-lower-layer-page-imports |
| 4 | openmetadata-imports/no-internal-barrel-imports |
| 4 | openmetadata-imports/review-sequential-api-calls |
| 1 | openmetadata-imports/no-cross-page-imports |
| 1 | no-restricted-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:33:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:34:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx:175:9 |
react-hooks/exhaustive-deps |
The 'handleTaskLinkClick' function makes the dependencies of useMemo Hook (at line 211) change on every render. Move it inside the useMemo callback. Alternative |
| 🟡 | src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:296:8 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'isVersionView' and 'navigate'. Either include them or remove the dependency array. |
| 🟡 | src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:460:8 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:536:7 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx:586:8 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchClassificationChildren', 'handlePageChange', and 'isAddingTag'. Either include them or remove the dependenc |
| 🟡 | src/components/DataAssetSummaryPanelV1/DataAssetSummaryPanelV1.tsx:398:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'dataAsset'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssetSummaryPanelV1/DataAssetSummaryPanelV1.tsx:482:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'entityType'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssetSummaryPanelV1/DataAssetSummaryPanelV1.tsx:575:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'dataAsset'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssetSummaryPanelV1/DataAssetSummaryPanelV1.tsx:588:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchEntityBasedDetails' and 'fetchTestCases'. Either include them or remove the dependency array. |
| 🟡 | src/components/DataAssetSummaryPanelV1/DataAssetSummaryPanelV1.tsx:982:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'changeSummaryParams.fieldPrefix', 'isColumnEntity', 'renderCommonLayoutSummary', 'renderDataProductSummary', 'rend |
| 🟡 | src/components/DataAssetSummaryPanelV1/DataAssetSummaryPanelV1.tsx:995:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'init'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:43:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:47:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:48:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:49:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:54:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:55:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:267:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'data'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:417:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'handleTagSelection'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:442:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'entityRules.canAddMultipleGlossaryTerm' and 'handleTagSelection'. Either include them or remove the dependency arr |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:478:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'data' and 'onUpdate'. Either include them or remove the dependency array. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:547:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'permissions'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/DataAssets/CommonWidgets/CommonWidgets.tsx:615:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'editCustomAttributePermission', 'entityRules.canAddMultipleDomains', 'entityType', 'type', and 'viewCustomProperti |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:40:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:41:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:42:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:78:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:86:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:93:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:94:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:98:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:99:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:100:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:101:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:110:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:111:1 |
openmetadata-imports/no-internal-barrel-imports |
Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:112:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:113:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:252:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'hasFollowers'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:376:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'entityType', 'fetchActiveAnnouncement', 'fetchContainerAncestors', and 'fetchDQFailureCount'. Either include the |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:665:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'dataAsset.fullyQualifiedName'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:741:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchDataContract'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:180:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:198:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:214:9 |
react-hooks/exhaustive-deps |
The 'handleRunNow' function makes the dependencies of useCallback Hook (at line 281) change on every render. To fix this, wrap the definition of 'handleRunNow' |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:547:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has unnecessary dependencies: 'handleRunNow' and 'validateLoading'. Either exclude them or remove the dependency array. |
| 🟡 | src/components/DataContract/ContractDetailTab/ContractDetail.tsx:564:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchLatestContractResults'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataProduct/DataProductListPage.tsx:378:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'dataProductColumns', 'dataProductListing.handleSelect', and 'dataProductListing.handleSelectAll'. Either include t |
… and 83 more. Run make ui-checkstyle-changed locally for the full list.
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changedReplaces the row name's native `title` (flagged by the ERROR-level no-raw-title-attribute rule as this PR brings the file into the lint set) with the design-system Tooltip, matching the sibling card. The Tooltip trigger is a react-aria button that consumes the press, so it navigates the row via onTriggerPress to keep the name clickable. Adds a Tooltip mock to the test's core-components mock so the suite renders it. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Code Review ✅ Approved 1 closed / 1 findingsFixes owner display regressions by routing owner names to in-app profiles via a registry resolver, unifying hover cards across all owner displays, and removing the API self-link that was navigating to ✅ 1 closedClosed: Performance: Owner profile links do full page reload, not SPA nav
OptionsDisplay: compact → Counting what did not apply, without listing it. 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 several owner-display regressions/gaps in the unified
Ownercomponent and its consumers.toOwnerRefcopiedEntityReference.href(the backend self-link,/api/v1/users/<id>) into the owner ref;Ownerrenders the name as<a href>, so clicking an owner navigated to the API and returned401 Not Authorized.toOwnerRefno longer copies that href.getOwnersWithHref(owners)— mapstoOwnerRefsthen setshrefto the in-app profile route viagetOwnerPath. Used byownerTableObject(all table Owners columns) and the owner/assignee displays that render clickable names (incident assignee, alert/test-suite details, data-asset summary panel).renderOwnerPopover(owner, chip)— a shared, non-hook helper wrapping the owner chip inUserPopOverCard, so the hover card renders uniformly across all non-compact owner displays.useOwnerDisplayPropsnow returns it. Wired intoownerTableObject, the incident assignee cell, version views, and the glossary add forms (previously only some components had it).Ownerinline layout for non-compact +showLabel={false}+selectorContent: the incident-manager assignee cell now renders avatar + name + edit on one row (empty state = no-owner icon + placeholder + edit inline) instead of stacking the selector above the owner.showLabel={false}) — the form field already labels them.Type of change
How was this tested
openmetadata-ui-core-components:vitestowner suite (4 tests, incl. new inline-mode cases).openmetadata-ui: Jest across the changed components/utils and their consumers — 267 tests green, no expectation changes needed (observable behavior preserved; only the API-href leak is removed).Notes
dist/foropenmetadata-ui-core-componentsis not committed (built in CI).getOwnersWithHref,renderOwnerPopover,Ownerinline mode, thetoOwnerRefhref-drop) and points its submodule at this branch.🤖 Generated with Claude Code
The PR appears safe to merge with no outstanding findings in the scoring set and no new actionable regression introduced since the previous review.
Summary
This PR centralizes owner presentation in the shared component library and configures application-wide profile-link and hover-card resolution.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Raw owner reference] --> B[Owner normalizes reference] B --> C[OwnerChip] D[Application startup] --> E[Register profile href resolver] D --> F[Register hover-card renderer] E --> C F --> C C --> G[Avatar and display name] C --> H[In-app profile link] C --> I[User or team hover card]Reviews (11) · Last reviewed commit: "fix(ui): use core Tooltip for the Connec..."