Skip to content

fix(ui): owner links go to profile, uniform hover cards, drop stray owner labels - #33382

Merged
shrabantipaul-collate merged 8 commits into
mainfrom
fix/owner-links-labels-popover
Sep 17, 2026
Merged

shrabantipaul-collate merged 8 commits into
mainfrom
fix/owner-links-labels-popover

Conversation

@shrabantipaul-collate

@shrabantipaul-collate shrabantipaul-collate commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes

Fixes several owner-display regressions/gaps in the unified Owner component and its consumers.

  • Owner name linked to the API and 401'd on click. toOwnerRef copied EntityReference.href (the backend self-link, /api/v1/users/<id>) into the owner ref; Owner renders the name as <a href>, so clicking an owner navigated to the API and returned 401 Not Authorized. toOwnerRef no longer copies that href.
  • Add getOwnersWithHref(owners) — maps toOwnerRefs then sets href to the in-app profile route via getOwnerPath. Used by ownerTableObject (all table Owners columns) 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 wrapping the owner chip in UserPopOverCard, so the hover card renders uniformly across all non-compact owner displays. useOwnerDisplayProps now returns it. Wired into ownerTableObject, the incident assignee cell, version views, and the glossary add forms (previously only some components had it).
  • Owner inline 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.
  • Drop the redundant "Owners" heading from the Add Glossary / Add Glossary Term owner (and reviewer) previews (showLabel={false}) — the form field already labels them.

Type of change

  • Bug fix

How was this tested

  • openmetadata-ui-core-components: vitest owner 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).
  • Checkstyle (ESLint + Prettier + organize-imports) clean on all changed files.

Notes

  • dist/ for openmetadata-ui-core-components is not committed (built in CI).
  • A companion Collate PR consumes these changes (getOwnersWithHref, renderOwnerPopover, Owner inline mode, the toOwnerRef href-drop) and points its submodule at this branch.

🤖 Generated with Claude Code

RetriggerConfidence Score: 5/5

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.

  • Normalizes raw owner references before rendering to prevent backend API self-links from becoming browser navigation targets.
  • Registers profile-route and hover-card renderers once during application startup.
  • Applies consistent owner rendering across tables, summaries, feeds, version views, glossary forms, and observability pages.
  • Adds inline owner/assignee layout behavior and removes redundant owner labels.
  • The only change since the previous review adds a focused Tooltip mock to the connections-list test.
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]
Loading

Reviews (11) · Last reviewed commit: "fix(ui): use core Tooltip for the Connec..."

…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]>
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Sep 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 644b38847937d6b9880c00647ad05281851a4add in Playwright run 35230171262, attempt 1.

✅ 4506 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Common shard skew was 40.66% (convergence target: at most 15%).
  • Browser traffic was 219.44 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.23 per UI scenario (10716 boots / 4804 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 130 0 0 0 0 0
✅ Shard chromium-01 163 0 0 0 0 0
✅ Shard chromium-02 165 0 0 0 0 0
✅ Shard chromium-03 177 0 0 0 0 0
✅ Shard chromium-04 230 0 0 0 0 0
✅ Shard chromium-05 169 0 0 0 0 0
✅ Shard chromium-06 194 0 0 0 0 0
🟡 Shard chromium-07 164 0 1 0 0 0
✅ Shard chromium-08 171 0 0 0 0 0
✅ Shard chromium-09 168 0 0 1 0 0
✅ Shard chromium-10 163 0 0 0 0 0
🟡 Shard chromium-11 179 0 1 0 0 0
🟡 Shard chromium-12 159 0 1 0 0 0
🟡 Shard chromium-13 189 0 1 0 0 0
✅ Shard chromium-14 178 0 0 0 0 0
🟡 Shard chromium-15 185 0 2 0 0 0
🟡 Shard chromium-16 214 0 1 0 0 0
🟡 Shard chromium-17 210 0 1 0 0 0
🟡 Shard chromium-18 167 0 1 0 0 0
✅ Shard chromium-19 201 0 0 0 0 0
✅ Shard chromium-20 164 0 0 0 0 0
✅ Shard chromium-21 168 0 0 0 0 0
✅ Shard chromium-22 166 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 80 0 0 0 0 0
✅ Shard import-export-02 70 0 0 0 0 0
✅ Shard ingestion-01 43 0 0 0 0 0
✅ Shard ingestion-02 55 0 0 0 0 0
✅ Shard reindex-01 28 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 9 flaky test(s) (passed on retry)
  • Features/ContextCenterArticles.spec.ts › Recently viewed widget shows viewed articles (shard chromium-07, 1 retry)
  • VersionPages/EntityVersionPages.spec.ts › Table (shard chromium-11, 1 retry)
  • Pages/Users.spec.ts › Admin soft & hard delete and restore user from profile page (shard chromium-12, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › validates visible/hidden tabs and tab content for database (shard chromium-13, 1 retry)
  • Flow/ConditionalPermissions.spec.ts › User with owner permission can only view owned Pipeline Services (shard chromium-15, 1 retry)
  • Flow/CustomizeWidgets.spec.ts › KPI Widget (shard chromium-15, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should perform CRUD and Removal operations for searchIndex (shard chromium-16, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard chromium-17, 1 retry)
  • Pages/TasksUIFlow.spec.ts › Verify task shows correct metadata (shard chromium-18, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@shrabantipaul-collate

Copy link
Copy Markdown
Contributor Author

Why this is a common-component bug but not a single one-line fix

Root cause (one place): the unified Owner renders the owner name as <a href={owner.href}>, and the shared converter toOwnerRef copied EntityReference.href straight through. On an API entity ref that href is the backend self-link (/api/v1/users/<id>), not a UI route — so every owner name linked to the API and 401'd. Fixed centrally: toOwnerRef no longer copies that href, which stops the 401 everywhere at once.

Why there's still app-side work: ui-core-components is intentionally route-agnostic — it can't know OpenMetadata routes (/users/<name> for a user vs the team path; that's getOwnerPath, app-level). So the component can stop emitting the wrong link centrally, but the correct profile link has to be injected by the app. That injection is centralized in one shared helper (getOwnersWithHref) + the shared table-column definition — a few shared touch-points, not scattered logic.

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.

@shrabantipaul-collate shrabantipaul-collate added the safe to test Add this label to run secure Github workflows on PRs label Sep 16, 2026
@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 72%
72.88% (102465/140586) 57.82% (62310/107750) 58.9% (20381/34602)

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]>
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 133 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 133 warning(s) across 27 changed file(s).

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-changed

Replaces 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]>
@gitar-bot

gitar-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

Fixes 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 401 Not Authorized. Also adds inline assignee layout, removes redundant glossary owner labels, and replaces the connection name title with a shared tooltip. No issues found.

✅ 1 closed
Closed: Performance: Owner profile links do full page reload, not SPA nav

📄 openmetadata-ui/src/main/resources/ui/src/utils/ownerUtils.ts:39-47
getOwnersWithHref now populates href with in-app SPA routes from getUserPath/getTeamAndUserDetailsPath (e.g. /users/<name>), and non-compact OwnerChip renders them via a plain <a href> (owner-chip.tsx:119-125). Because these are same-origin app routes, clicking an owner triggers a full page reload instead of client-side react-router navigation, which is slower and drops app state — a behavior newly activated by this fix (previously the href pointed at the API and 401'd). The anchor lives in the unchanged core component (which can't import react-router), so a proper fix likely means teaching OwnerChip/Owner to accept a link component or intercept clicks; worth a follow-up rather than a blocker.

Review coverage

Rules No rules evaluated

Functional validation Not enabled · Set up

Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@sonarqubecloud

Copy link
Copy Markdown

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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants