-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table chart pagination is not working since version 4.1.0 #31626
Comments
There are two similar unsolved discussions related to table chart pagination issues in Superset:
Regarding your issue, it seems that the 'server page length' setting is crucial for the pagination to work correctly. When you set it to 200, the records update as expected, but with the default value of 10, it doesn't update beyond that. This behavior might be related to how the 'server page length' interacts with the pagination controls. The 'server page length' determines the number of rows displayed per page when server-side pagination is enabled, and setting it to 0 means no pagination will be applied [3][4]. Additionally, there are conditions in the code that could prevent the pagination dropdown menu from updating the number of displayed records, such as the You might want to check if the 'server pagination' option is enabled and ensure that the 'server page length' is set appropriately to see if it resolves the issue. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Sorry to ask the obvious question, but is the table scrollable (i.e. you SEE the first 10, but there are more that you can scroll to)? I'm unable to reproduce this issue when I try it, and the change in the little page number buttons at the bottom of your screenshots also indicate it's working. |
The table should be scrollable, as the total number of records is 1,695. However, as can be seen in the following video, regardless of the number of records I select from the dropdown menu, it always shows the same 10 records. What I've noticed is that the server page length is being treated as the maximum number of records to display, instead of the minimum value. For example, if I increase the server page length to 100, it only allows me to update to a number lower than 100. We are not sure if we made any mistake during the version change and need help to resolve it. Thank you very much. Error.2.mp4 |
Bug description
Pagination is not working correctly. When interacting with the dropdown menu to change the number of records to display, the number of records does not update.
If I set the 'server page length' to the value of 200, the number of records updates correctly based on the selection in the dropdown menu. However, if I leave the value at 10, the information does not update and continues to show only those 10 records, even when I select a higher number or the option to show all records from the selector.
I appreciate your help.
Error.mp4
Screenshots/recordings
You can see in the images that it always shows me 10 records even if I have a larger number selected.
Superset version
4.1.1
Python version
3.10
Node version
Not applicable
Browser
Chrome
Additional context
Checklist
The text was updated successfully, but these errors were encountered: