Repository navigation
Fixes #38295: keep Data Models and Stored Procedures pagination in sync - #38309
chirag-madlani merged 7 commits into
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
UI browser testsRan: all test files (no impact map from main yet) Result: ✅ 1070 passed · 154 skipped |
Code Review ✅ Approved 🟡 Medium riskCentralizing URL-to-page synchronization and adjusting cursor page counts changes UI pagination, which could display or fetch the wrong page for affected lists. Removes the redundant URL-to-page sync effects from Data Models and Stored Procedures so VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
…nc (#38309) (#38505) * 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 --------- (cherry picked from commit 6c8c3d8) Co-authored-by: Kefia-02 <yoshimtsu4432@gmail.com> Co-authored-by: Sweta Agarwalla <swetaagarwalla13@gmail.com> Co-authored-by: Sweta Agarwalla <105535990+sweta1308@users.noreply.github.com>
…nc (#38309) (#38504) * 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 --------- (cherry picked from commit 6c8c3d8) Co-authored-by: Kefia-02 <yoshimtsu4432@gmail.com> Co-authored-by: Sweta Agarwalla <swetaagarwalla13@gmail.com> Co-authored-by: Sweta Agarwalla <105535990+sweta1308@users.noreply.github.com>
… tests (#38651) #38309 and #38308 fixed the Data Models / Stored Procedures page reset and the duplicate fetch on page change, so the browser tests no longer need the knownIssues escape hatch: the single-fetch assertion in paginationContract is now unconditional, the option is removed, the four Playwright tests for those tabs are tagged @migrated-browser again, and PAGINATION_MIGRATION.md reflects 35 tagged / 4 untagged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Data Models and Stored Procedures each independently re-sync the page number from
pagingCursor.currentPagein auseEffect. This duplicatesusePaging's built-in URL synchronization and can revert the newly selected page under React Router transitions. Users see page 2 data with page number 1; refresh/search can then target the wrong page.Change
DataModelsTable.tsxandStoredProcedureTab.tsx.usePaging's centralized URL/current-page sync; retain existing click handlers, cursor-driven fetch, search resets, and page-size handling.Fixes #38295.
Verification
usePagingimplementation and both affected components at basee19a162637fb2db86707f5c163191859d982e7d3.test.failsregression pins are on unmerged Fixes #37219: Vitest browser-mode UI integration tests (Pagination migration, marked) + CI #35623; these should be unmarked and verified when that PR lands. This fix intentionally does not modify tests that aren't in the base branch.90e71470, the StoredProcedureTab and ModelTab component suites passed (6 tests, 0 failures) on 2026-11-22. Focused verification run.Prepared with AI assistance.
Summary by Gitar
NextPreviousfrom counting a phantom page past the known total when the previous cursor is setNextPrevioustest for page count with a known totalThis will update automatically on new commits.


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Removes duplicate page synchronization from Data Models and Stored Procedures so
usePagingowns the page state.Reviews (10) · Last reviewed commit: "Merge branch 'main' into fix/38295-persi..." · Reviewed by Greptile