fix: show truncation notice when table list exceeds API page limit (#40407)#41485
fix: show truncation notice when table list exceeds API page limit (#40407)#4148501zhas wants to merge 1 commit into
Conversation
…#40407) Signed-off-by: Ydyrys Olzhas <im01zhas@icloud.com>
Code Review Agent Run #f7506bActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #41485 +/- ##
==========================================
- Coverage 63.95% 63.95% -0.01%
==========================================
Files 2664 2664
Lines 146217 146221 +4
Branches 33731 33733 +2
==========================================
+ Hits 93511 93513 +2
- Misses 50991 50993 +2
Partials 1715 1715
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks @01zhas! There are three open PRs for #40407, and we're consolidating on #41617 since it includes a regression test and reuses the existing styling for this message. Closing this one to keep things tidy, but happy to reopen if you think there's more to add on as a follow-up to the other PR. Appreciate you taking a swing at it, and welcome more contributions in the future! |
SUMMARY
The
useTableshook already computes ahasMoreflag (json.count > json.result.length), but it was never consumed byTableSelector. When a database schema has more tables than the API page limit, users saw a truncated list with no indication that tables were missing.BEFORE
No indication when the table list is truncated.
AFTER
A helper message appears below the table selector when
hasMoreis true:CHANGES
superset-frontend/src/components/TableSelector/index.tsx— AddedTruncationNoticestyled component and conditional rendering of the message whendata?.hasMoreis true.TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Closes #40407