Skip to content
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

Open
2 of 3 tasks
Yisel-Ulloa opened this issue Dec 26, 2024 · 1 comment
Open
2 of 3 tasks

Table chart pagination is not working since version 4.1.0 #31626

Yisel-Ulloa opened this issue Dec 26, 2024 · 1 comment
Labels
viz:charts:table Related to the Table chart

Comments

@Yisel-Ulloa
Copy link

Yisel-Ulloa commented Dec 26, 2024

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.

Captura de pantalla 2024-12-26 152851
Captura de pantalla 2024-12-26 152905

Superset version

4.1.1

Python version

3.10

Node version

Not applicable

Browser

Chrome

Additional context

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • 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.
Copy link

dosubot bot commented Dec 26, 2024

There are two similar unsolved discussions related to table chart pagination issues in Superset:

  1. Table chart pagination not working since version 4.1.0, last updated on December 23, 2024 [1].
  2. Table Chart, last updated on December 19, 2024 [2].

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 limitingFactor property, limitReached flag, and defaultQueryLimit [5].

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

@dosubot dosubot bot added the viz:charts:table Related to the Table chart label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
viz:charts:table Related to the Table chart
Projects
None yet
Development

No branches or pull requests

1 participant