Repository navigation
[2.0] Fixes #38295: keep Data Models and Stored Procedures pagination in sync - #38505
Merged
Merged
Conversation
…nc (#38309) * fix(pagination): let usePaging own URL-to-page synchronization (#38295) * fix(pagination): let usePaging own URL-to-page synchronization (#38295) * test: regression tests for Data Models and Stored Procedures paging sync (#38295) * fix(pagination): don't count a phantom page past the known total * test(pagination): unpin Data Models and Stored Procedures browser tests now that URL sync is fixed --------- Co-authored-by: Sweta Agarwalla <swetaagarwalla13@gmail.com> Co-authored-by: Sweta Agarwalla <105535990+sweta1308@users.noreply.github.com> (cherry picked from commit 6c8c3d8)
gh-bot-collate
Bot
requested review from
shah-harshit
and removed request for
a team
November 23, 2026 14:45
Author
|
🤖 This backport will not merge itself: |
sweta1308
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #38309 to
2.0.6c8c3d89349c8592f7b709d34e36359d6b6b25beResolution notes
Backport notes: PR #38309 → 2.0
Source: "Fixes #38295: keep Data Models and Stored Procedures pagination in sync"
(merge commit
6c8c3d89349c8592f7b709d34e36359d6b6b25be).Clean cherry-picks (no action needed)
NextPrevious.tsx— fixescursorTotalPagesto stop counting a phantompage past the known total when
paging.afteris set buttotalPagesisalready known.
NextPrevious.test.tsx— regression test for the above.DataModelsTable.tsx/StoredProcedureTab.tsx— removes the redundantuseEffectthat re-syncedcurrentPagefrompagingCursor.currentPage,which fought with
usePaging's own URL-to-page sync and caused the pageto reset/desync.
DataModelsTable.integration.test.tsx/StoredProcedureTab.integration.test.tsx(new files) — plain Jest/RTL regression tests (mock
NextPreviousand theREST call) proving the page number is preserved across a "next page" click.
These are self-contained and don't depend on any main-only test
infrastructure, so they applied without conflict.
Conflicts and how they were resolved
ServiceDataModels.browser.test.tsxandStoredProcedureTab.browser.test.tsxconflicted as "deleted by us, modified by them" (
DU).Resolution: kept them deleted (removed the working-tree copies that the
cherry-pick had restored from the "theirs" side).
Reason: these files are written against a
test/browser/paginationContract+
test/browser/fixtures/*harness that does not exist anywhere on2.0(
git ls-tree -r HEAD | grep test/browserreturns nothing). They wereintroduced on
mainafter2.0diverged, as part of a newer"describePaginatedList" browser-test contract. The only change PR Fixes #38295: keep Data Models and Stored Procedures pagination in sync #38309
makes to them is removing two
knownIssuesentries that recorded the bugthis PR fixes — there is no equivalent file/harness on
2.0to apply thatchange to, and porting the whole browser-test framework is out of scope
for this fix. The actual regression coverage for
2.0is provided by thetwo new
.integration.test.tsxfiles listed above, which applied cleanly.What a reviewer should check
openmetadata-ui/src/main/resources/ui/src/test/browser/genuinelydoesn't exist on
2.0(it doesn't, as of this backport) — if a laterbackport introduces it, these two browser tests should be revisited.
2.0's Jest config:yarn test DataModelsTable.integration.test.tsx StoredProcedureTab.integration.test.tsx.NextPrevious.tsx,DataModelsTable.tsx, andStoredProcedureTab.tsxcarry the identicallogic change as on
main.Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #38309 is asked to look.
resolver run


Confidence Score: 5/5
This PR appears safe to merge; no actionable issues were found.Summary
This backport removes competing page-sync effects from Data Models and Stored Procedures. It also stops the shared page indicator from adding a page beyond a known total.
Reviews (1) · Last reviewed commit: "Fixes #38295: keep Data Models and Store..." · Reviewed by Greptile