Skip to content

Backport to 2.0: #32736 #32699 #33115 #32741 - #33211

Merged
Rohit0301 merged 6 commits into
2.0from
backport-33115-32741-32699-32736-2.0
Sep 11, 2026
Merged

Rohit0301 merged 6 commits into
2.0from
backport-33115-32741-32699-32736-2.0

Conversation

@Rohit0301

Copy link
Copy Markdown
Contributor

Backport

Cherry-picks four bug fixes from main into the 2.0 release branch.

PR Title
#32736 Fixes #32672: show error placeholder on Topic page for sustained fetch failures
#32699 Fixes #32632: reset Impact Analysis pagination to page 1 on search/quick-filter change
#33115 fix(ui): reset TierCard selectedTier on close to prevent stale radio state
#32741 Fixes #32677: preserve user data in table-type custom property editor when a column is named 'id'

Cherry-pick notes

All four commits applied cleanly. One auto-resolved conflict in .github/playwright/impact-map.generated.json (generated file — took the incoming version).

detail-app Bot and others added 4 commits September 11, 2026 18:24
…h failures (#32736)

* Fixes #32672: show error placeholder on Topic page for sustained fetch failures

* chore(playwright): auto-refresh impact-map.generated.json [skip ci]

---------

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: Karan Hotchandani <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rohit Jain <[email protected]>
…ick-filter change (#32699)

* fix(ui): reset Impact Analysis pagination to page 1 on search/quick-filter change

* test(ui): add Playwright pagination-reset tests for Impact Analysis (#32632)

Add two E2E tests to Pagination.spec.ts that guard the fix introduced in
change):

- "should reset Impact Analysis table pagination to page 1 on search change"
- "should reset Impact Analysis table pagination to page 1 on quick filter
  change"

Both tests create 16 downstream TableClass entities (exceeding PAGE_SIZE_BASE=15)
so two pages are reachable via ?pageSize=15 in the URL. Each test navigates to
page 2, then triggers the filter/search, and asserts the page-indicator resets
to "1 of X".

Also adds skipUrlParamCheck option to testCompletePaginationWithSearch utility
for callers where search state lives in component state rather than the URL.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* lint fix

* chore(playwright): auto-refresh impact-map.generated.json [skip ci]

---------

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: Rohit0301 <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: Rohit Jain <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chirag Madlani <[email protected]>
…state (#33115)

* fix(ui): reset TierCard selectedTier on close to prevent stale radio state

Two bugs caused the tier radio button to show stale state:
- Bug A: cancelling a tier change left the cancelled tier selected on reopen
- Bug B: after a successful save, the old tier was shown on reopen because
  handleOpenChange closed over a stale currentTier before React propagated
  the updated prop

Fix: extract handleOpenChange to reset selectedTier to currentTier on every
close, and add a useEffect([currentTier]) guard that re-syncs when the prop
updates while the popover is closed (covers the save-stale race).

Adds unit tests (TierWidget.test.tsx) and a Playwright E2E spec
(TierWidget.spec.ts) covering both scenarios.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* chore(playwright): auto-refresh impact-map.generated.json [skip ci]

* minor fix

* chore(ui): fix formatting in TierWidget spec and test files

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* fix(ui): track TierCard open state internally to guard currentTier re-sync

The useEffect that re-syncs selectedTier on currentTier change was guarding
with !popoverProps?.open, but uncontrolled usages (no popoverProps) have
open === undefined (always falsy), so the reset fired mid-edit, silently
discarding the user's in-progress selection.

Fix: add isOpen state updated in handleOpenChange so the guard works for
both controlled and uncontrolled usages. Also adds isOpen to the useEffect
dependency array to satisfy react-hooks/exhaustive-deps.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* chore(ui): move TableClass init into beforeAll and clarify onOpenChange override

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… when a column is named 'id' (#32741)

* Fixes #32677: preserve user data in table-type custom property editor when a column is named 'id'

* Remove backend reserved-column validation; keep FE __row_id__ guard only

The frontend row-id key rename (id -> __row_id__ in EditTableTypePropertyModal)
already fixes the data loss on its own, and __row_id__ is never persisted. The
backend reserved-name check added the wrong guarantee at the wrong layer: it
rejected `id` -- a legitimate, previously-valid column name -- at the API, and
hard-coded a frontend grid sentinel into backend validation.

- Revert TypeRepository.validateTableTypeConfig reserved-name rejection and its
  RESERVED_TABLE_COLUMN_NAMES constant.
- Remove the three TypeResourceIT tests (and now-unused imports/fixtures) that
  only exercised that backend validation.
- Scope the AddCustomProperty form guard to the frontend's own sentinel
  `__row_id__` (drop `id`), so the form no longer bans a valid column name.

* chore(playwright): auto-refresh impact-map.generated.json [skip ci]

* chore(playwright): auto-refresh impact-map.generated.json [skip ci]

* i18n: translate reserved-column-name into all non-English locales

yarn i18n stamped the English string verbatim into every locale for
message.reserved-column-name; replace those placeholders with real
translations (19 non-en locales), preserving the {{name}} interpolation.

---------

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: sonika-shah <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Karan Hotchandani <[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 11, 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!

@Rohit0301 Rohit0301 self-assigned this Sep 11, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Sep 11, 2026
@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: 759 → 560
- 39 added, 238 removed, 58 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCard/FeedCardFooter/FeedCardFooter.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCard/FeedCardHeader/FeedCardHeader.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCard/PopoverContent.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardV2/FeedCardHeader/FeedCardHeaderV2.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityThreadPanel/ActivityThread.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityThreadPanel/ActivityThreadList.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/TaskFeedCard/TaskFeedCard.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/TaskFeedCard/TaskFeedCardNew.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Alerts/DestinationFormItemV2/DestinationFormItemV2.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Announcement/AnnouncementFeedCardBody.component.tsx
  … and 29 more

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/playwright/constant/KnowledgeCenter.constant.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/advancedSearch.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/alert.interface.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/alert.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/bulkImportExport.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/conditionalPermissions.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/config.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/contianer.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/customProperty.ts
  … and 228 more

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardNew/ActivityFeedcardNew.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardNew/CommentCard.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/ActivityFeedListV1New.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedList/TaskListV1.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/Reactions/Emoji.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/Reactions/Reactions.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/Shared/ActivityFeedActions.tsx
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/TaskFeedCard/TaskFeedCardFromTask.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Alerts/AlertFormSourceItem/AlertFormSourceItem.tsx
  … and 48 more

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

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit c5362a4124a367bb87fcc33b401f0da528eb01ae in Playwright run 34605742428, attempt 1.

✅ 946 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 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) 51m 18s

⏱️ Max setup 3m 3s · max shard execution 16m 28s · max shard-job elapsed before upload 20m 36s · reporting 6s

🌐 210.07 requests/attempt · 2.70 app boots/UI scenario · 30.06% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 30.06% (convergence target: at most 15%).
  • Browser traffic was 210.07 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.7 per UI scenario (2688 boots / 996 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 115 0 0 0 0 0
🟡 Shard chromium-02 141 0 1 0 0 0
✅ Shard chromium-03 130 0 0 0 0 0
✅ Shard chromium-04 121 0 0 0 0 0
✅ Shard chromium-05 135 0 0 0 0 0
✅ Shard chromium-06 146 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 ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 1 flaky test(s) (passed on retry)
  • Pages/CustomProperties.spec.ts › String (shard chromium-02, 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

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 67%
67.28% (80957/120323) 51.96% (49892/96009) 52.74% (14812/28081)

…sent in 2.0)

support/fixtures/base.ts was introduced in main after the 2.0 branch cut.
Swap the import to @playwright/test so Playwright can resolve the module
during test discovery on this branch.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@gitar-bot

gitar-bot Bot commented Sep 11, 2026

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

Backport of four UI bug fixes to the 2.0 release branch: error placeholder on Topic page fetch failures, Impact Analysis pagination reset on filter change, stale TierCard radio state, and column-name collision in custom property editor. Consider extracting the ROW_ID_KEY constant to a shared module and referencing it in RESERVED_TABLE_COLUMN_NAMES to prevent the two from drifting if the key is ever updated.

✅ 1 resolved
✅ Quality: ROW_ID_KEY duplicated as a literal in reserved-name guard

📄 openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/TableTypeProperty/EditTableTypePropertyModal.tsx:37 📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/CustomProperty/AddCustomProperty/AddCustomProperty.tsx:84
The internal row identifier is defined as ROW_ID_KEY = '__row_id__' in EditTableTypePropertyModal.tsx, but the reserved-name guard in AddCustomProperty.tsx hardcodes the same value in a separate array RESERVED_TABLE_COLUMN_NAMES = ['__row_id__']. These must stay in lockstep: if ROW_ID_KEY is ever changed, the reserved-name validation would silently no longer block the new key, reopening the exact column-name collision this PR fixes. Export ROW_ID_KEY from a shared module and reference it in RESERVED_TABLE_COLUMN_NAMES so the two cannot drift.

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

@Rohit0301
Rohit0301 merged commit e00037a into 2.0 Sep 11, 2026
91 of 93 checks passed
@Rohit0301
Rohit0301 deleted the backport-33115-32741-32699-32736-2.0 branch September 11, 2026 16:02

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