Repository navigation
[2.1] Fixes #38295: keep Data Models and Stored Procedures pagination in sync - #38504
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
shrabantipaul-collate
and removed request for
a team
November 23, 2026 14:43
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.1.6c8c3d89349c8592f7b709d34e36359d6b6b25beResolution notes
Backport notes — PR #38309 → 2.1
Source:
6c8c3d89349c8592f7b709d34e36359d6b6b25be("Fixes #38295: keep Data Models and StoredProcedures pagination in sync").
Clean picks (no conflict)
NextPrevious.tsx/NextPrevious.test.tsx— the actual pagination fix: stop counting aphantom page past the known total (
cursorTotalPagesno longer adds 1 forpaging.afteroncetotalPagesis already known), plus its regression test.DataModelsTable.tsx/StoredProcedureTab.tsx— removed the URL→page syncuseEffectthatfought with
usePaging's own state and caused the page to reset/stick.DataModelsTable.integration.test.tsx/StoredProcedureTab.integration.test.tsx(new files) —regression tests asserting the page stays put after paging forward, mounted with a real
MemoryRouter. Both applied cleanly against 2.1's existing component props/signatures.Conflicted files — resolved by deletion (kept absent)
pages/ServiceDetailsPage/ServiceDataModels.browser.test.tsxpages/StoredProcedure/StoredProcedureTab.browser.test.tsxThese conflicted as "deleted by us / modified by them": the source PR only edits these files (drops
the
knownIssues.failingentries that used to mark the pagination bug as a known/expected failure,now that it's fixed), but 2.1 does not have these files at all. They depend on a Vitest
browser-mode test helper,
describePaginatedList/paginationContract(undersrc/test/browser/), that was introduced onmainin PR #36198 and was never backported to 2.1 —there is no equivalent browser-test harness on this branch.
Since the files and their supporting infrastructure don't exist on 2.1, there's nothing for this
PR's edit to apply to. I left them deleted (matching 2.1's pre-cherry-pick state) rather than
recreating the file plus its missing dependency, which would add an unrelated, un-backported test
harness as a side effect of this fix.
What a reviewer should check: the actual bug fix (
NextPrevious.tsx,DataModelsTable.tsx,StoredProcedureTab.tsx) and its regression coverage(
*.integration.test.tsx,NextPrevious.test.tsx) are fully present and unaffected by this —only the two
*.browser.test.tsxfiles (which never existed on 2.1) are excluded.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
The PR appears safe to merge; no actionable issues were found.Summary
Keeps Data Models and Stored Procedures pagination under
usePagingand stops the page indicator from counting past a known total.Reviews (1) · Last reviewed commit: "Fixes #38295: keep Data Models and Store..." · Reviewed by Greptile