MelikHajlawi opened a new issue, #40407:
URL: https://github.com/apache/superset/issues/40407

   ### Bug description
   
   The `useTables` hook returns a `hasMore` flag that is `true` when the backend
   has more tables than the current page response includes:
   
     hasMore: json.count > json.result.length
   
   However, this flag is never consumed by `TableSelector` or any other UI 
component.
   When a database has more tables than the API page limit, users see a 
truncated list
   with no warning, no count indicator, and no way to know that tables are 
missing.
   
   ### Steps to reproduce
   1. Connect a database schema with 100+ tables
   2. Open SQL Lab, select that database and schema
   3. Observe the table dropdown — there is no indicator that the list is 
truncated
   
   ### Expected behavior
   A helper message should appear below the table selector informing users that 
the
   list is truncated, e.g. "Some tables are not shown. Refine your search."
   
   ### Files
   - `superset-frontend/src/hooks/apiResources/tables.ts` — `hasMore` is 
computed
   - `superset-frontend/src/components/TableSelector/index.tsx` — `hasMore` 
never used
   ```
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to