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

Add route to export top 100 rankings as CSV #321

Open
asmahood opened this issue Nov 20, 2024 · 0 comments
Open

Add route to export top 100 rankings as CSV #321

asmahood opened this issue Nov 20, 2024 · 0 comments
Labels
type::Feature Issues/Pull requests that implement a new feature/enhancement work::Product Development

Comments

@asmahood
Copy link
Member

Description

To support the development of uwpokerclub/app#761, we need a new route that will respond with a CSV file with the top 100 rankings.

Approach

  • Register a new route on GET /semesters/:semesterId/rankings/export
    • This route requires that a user is already authenticated
  • Get the top 100 rankings for that semester
  • Create a temporary CSV file with headers id,first_name,last_name,points (user ID, user first name, user last name, points in semester)
  • Respond with this file

Blocks

Blocked By

Related To

@asmahood asmahood added type::Feature Issues/Pull requests that implement a new feature/enhancement work::Product Development labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::Feature Issues/Pull requests that implement a new feature/enhancement work::Product Development
Projects
None yet
Development

No branches or pull requests

1 participant