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.69% 64.69%
=======================================
Files 2686 2686
Lines 148602 148605 +3
Branches 34288 34290 +2
=======================================
+ Hits 96136 96139 +3
Misses 50701 50701
Partials 1765 1765
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:
|
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