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

Pagination view for Scoreboard #67

Open
eshaan7 opened this issue May 5, 2020 · 0 comments
Open

Pagination view for Scoreboard #67

eshaan7 opened this issue May 5, 2020 · 0 comments

Comments

@eshaan7
Copy link
Member

eshaan7 commented May 5, 2020

Describe the solution you'd like
When user visits scoreboard, points for all users are calculated (most are already in cache) and shown in one long single list. We should change this to a paginated view; 20 users should be shown on a page at one time with "prev", "next" buttons.

Additional context

  • Flask-SQLAlchemy provides a pagination API but we might need to implement our own since we cache the list of users.
  • We can also consider not caching the list of all users to allow us to use the inbuilt pagination API. But we need to think about speed and performance.
  • Main problem: The scoreboard should still be ordered by descending points along with ranks shown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant