Skip to content

Fixes #37463: Keep column custom property values in the Explore right panel (backport 2.1 #37464) - #37469

Merged
anuj-kumary merged 2 commits into
2.1from
backport/2.1/pr-37464
Nov 10, 2026
Merged

anuj-kumary merged 2 commits into
2.1from
backport/2.1/pr-37464

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Describe your changes:

Backport of #37464 to 2.1. Fixes #37463.

In Explore, a column's right-panel Custom Properties tab lost a value you had just saved: after you left the tab or reselected the column, it showed "No value yet" until a page refresh. EntitySummaryPanel never fetched a tableColumn and kept re-seeding from the stale Explore search hit.

The fix loads columns through the existing getColumnByFQN (fields=tags,extension&include=all), lays the result over the search hit, and ignores responses for a column that is no longer selected. GetColumnByFQNParams gains an optional include.

Cherry-picked from 5fa6687c0c6 (git cherry-pick -x), applied cleanly with no conflicts.

Type of change:

  • Bug fix

Tests:

  • Diff-of-diffs: for each of the 4 files, the backport's -U0 diff matches the original merge commit's line-for-line (whitespace-normalised).
  • jest src/components/Explore/EntitySummaryPanel/ on this branch: 8 suites, 147 tests passed (same as the original PR), including the two new regressions.
  • getColumnByFQN already exists on 2.1 (used by ColumnDetailPanel), so no missing dependency.
  • Not run locally: eslint and Playwright; they run in CI.

Checklist:

  • I have read the CONTRIBUTING document.
  • Decision check: no durable decision; uses an existing API.

…panel (#37464)

* fix(ui): load column custom properties from the API in the Explore side panel

The panel re-seeded a tableColumn from the Explore search hit on every
remount, so a value saved there showed 'No value yet' until the page was
refreshed and Elasticsearch had reindexed. Fetch the column (tags,
extension) via GET /columns/name/{fqn} and overlay it on the search hit.

* fix(ui): ignore stale panel fetches and load columns of deleted tables

A late response for a previously selected entity no longer overwrites the
panel, and the column fetch passes include=all so a soft-deleted parent
table does not 404.

* chore(playwright): auto-refresh impact-map.generated.json

* style(ui): organise imports in EntitySummaryPanel

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 5fa6687)
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 10, 2026 06:58
@anuj-kumary anuj-kumary added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Nov 10, 2026
@anuj-kumary
anuj-kumary removed the request for review from a team November 10, 2026 06:58
@anuj-kumary anuj-kumary added the skip-pr-checks Bypass PR metadata validation check label Nov 10, 2026
@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

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: 1070 → 1069
- 0 added, 1 removed, 9 changed spec-list

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/data-contract/ODCSExportModal/ODCSExportModal.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/e2e/fixtures/pages.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/admin.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/apiResponse.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/dataContracts.ts
  openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractDetailTab/ContractDetail.tsx
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/dataContract.ts
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts

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

@gitar-bot

gitar-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Refreshing selected columns from the API and ignoring stale responses could show incomplete or mismatched column details if fetch or selection handling fails.

Backports the Explore right-panel fix so a column's saved Custom Properties value persists after switching tabs or reselecting the column, by loading columns through getColumnByFQN with fields=tags,extension&include=all and ignoring stale responses. 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: 81%
81.8% (142385/174049) 69.3% (52210/75330) 72.29% (29222/40419)

@anuj-kumary
anuj-kumary merged commit 51c4819 into 2.1 Nov 10, 2026
55 checks passed
@anuj-kumary
anuj-kumary deleted the backport/2.1/pr-37464 branch November 10, 2026 07:35
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.

1 participant