-
Notifications
You must be signed in to change notification settings - Fork 912
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
Fix Issue #4831 - Adds pagination of tokens on user profile page. #4990
Fix Issue #4831 - Adds pagination of tokens on user profile page. #4990
Conversation
Fixes issue: #4831 |
This still needs to be backported to 3.0.x, i'll create a new PR for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created 21 tokens. Navigated to the second page, then deleted a token. Instead of removing the paginator, and rendering 20 tokens, it rendered an empty token list with the paginator still visible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the token is inserted into the table with ajax the total token count isn't being updated. Also, the striping on the table stops alternating.
finally the behavior will be the following:
The practical effect of this behavior is that users with a low amount of tokens will only see the dynamic behavior, but as the number of tokens grow the page will switch to the gsp paginator. Also fixed the table striping bug and the table summary update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I like the way the token insertion works.
… token creation paging.
adds config option to set default max page size
adds config option to set default max page size
…paging2 Backport PR #4990 - Adds pagination of tokens on user profile
This PR adds pagination to the token section of the user profile page, in order to support a high amount of tokens.
Tested with 8000+ tokens. Loading time was reduced from 20s to ~300ms
The main changes on this PR are: