fix(sqllab): show truncated table list warning#41617
Conversation
Code Review Agent Run #4eed2cActionable 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 |
|
Thanks @YinkaMetrics! Of the three open PRs for #40407, I think this is the one we should carry forward... it has a test and reuses the existing One thing I flagged on #40656 applies here too: the message fires purely on The jest failures look unrelated to this change... a rebase on current |
Code Review Agent Run #b006b2Actionable Suggestions - 0Additional Suggestions - 1
Review 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 |
Code Review Agent Run #7cb0dbActionable 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41617 +/- ##
==========================================
+ Coverage 64.77% 64.80% +0.02%
==========================================
Files 2740 2740
Lines 153135 153111 -24
Branches 35127 35123 -4
==========================================
+ Hits 99193 99219 +26
+ Misses 52043 51995 -48
+ Partials 1899 1897 -2
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:
|
rusackas
left a comment
There was a problem hiding this comment.
This is exactly what I was after, thanks! Gating on !disabled covers both the readOnly and no-schema cases, and the two new tests prove it. Approving!
|
Bito Automatic Review Skipped – PR Already Merged |
|
Thanks @rusackas for the review, approval, and guidance along the way. Really happy to help improve Superset, and glad the |
SUMMARY
Fixes #40407.
TableSelectornow uses the existinghasMorevalue returned byuseTablesto show a helper message when the API reports more tables than were returned in the current response. This makes truncated table lists visible to users and prompts them to refine their search.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Not included. The UI change is a small helper message below the table selector:
Some tables are not shown. Refine your search.TESTING INSTRUCTIONS
cd superset-frontendnpm run test -- src/components/TableSelector/TableSelector.test.tsxnpx prettier --check src/components/TableSelector/index.tsx src/components/TableSelector/TableSelector.test.tsxnpx oxlint --config oxlint.json --quiet src/components/TableSelector/index.tsx src/components/TableSelector/TableSelector.test.tsxnpm run plugins:buildnpm run typeprek run --all-filesNote:
prek run --all-filespassed the frontend hooks relevant to this change, includingprettier (frontend),oxlint (frontend),custom rules (frontend), andType-Checking (Frontend). The repo-wide run still failed on unrelated existing/local-environment items: mypy errors intests/unit_tests/semantic_layers/mapper_test.py, missingyarnfor docs eslint, missinghelm-docs, existing Python ruff findings, and localpythoncommand resolution for two Python hooks.ADDITIONAL INFORMATION