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 Seasons to Tips (backend) #1

Open
willyogo opened this issue Oct 24, 2024 · 0 comments
Open

Add Seasons to Tips (backend) #1

willyogo opened this issue Oct 24, 2024 · 0 comments

Comments

@willyogo
Copy link
Contributor

willyogo commented Oct 24, 2024

As platform admins, we want to track tips earned on a seasonal basis so we can distribute tips at the end of each season and start tip balances from scratch.

AC:

  1. Hardcoded seasons are added to the backend with start and end dates
  2. A new query parameter is added to the Leaderboard endpoint to enable querying tips earned by Season # (ie. https://space-tip-allocator-git-main-nounspace.vercel.app/api/leaderboard?s=3)
  3. If Season # is not specified in the query parameter, the total amount of tips earned by a user is returned. If Season # is specified, only the tips earned during that season are returned.

Seasons to hardcode (google sheet):

0 | 9/19/2024 0:00:01 | 10/23/2024 0:00:00
1 | 10/23/2024 0:00:01 | 11/22/2024 0:00:00
2 | 11/22/2024 0:00:01 | 12/22/2024 0:00:00
3 | 12/22/2024 0:00:01 | 1/21/2025 0:00:00
4 | 1/21/2025 0:00:01 | 2/20/2025 0:00:00
5 | 2/20/2025 0:00:01 | 3/22/2025 0:00:00
6 | 3/22/2025 0:00:01 | 4/21/2025 0:00:00
7 | 4/21/2025 0:00:01 | 5/21/2025 0:00:00
8 | 5/21/2025 0:00:01 | 6/20/2025 0:00:00
9 | 6/20/2025 0:00:01 | 7/20/2025 0:00:00
10 | 7/20/2025 0:00:01 | 8/19/2025 0:00:00
11 | 8/19/2025 0:00:01 | 9/18/2025 0:00:00
12 | 9/18/2025 0:00:01 | 10/18/2025 0:00:00
13 | 10/18/2025 0:00:01 | 11/17/2025 0:00:00
14 | 11/17/2025 0:00:01 | 12/17/2025 0:00:00
15 | 12/17/2025 0:00:01 | 1/16/2026 0:00:00
16 | 1/16/2026 0:00:01 | 2/15/2026 0:00:00
17 | 2/15/2026 0:00:01 | 3/17/2026 0:00:00
18 | 3/17/2026 0:00:01 | 4/16/2026 0:00:00
19 | 4/16/2026 0:00:01 | 5/16/2026 0:00:00
20 | 5/16/2026 0:00:01 | 6/15/2026 0:00:00
21 | 6/15/2026 0:00:01 | 7/15/2026 0:00:00
22 | 7/15/2026 0:00:01 | 8/14/2026 0:00:00
23 | 8/14/2026 0:00:01 | 9/13/2026 0:00:00
24 | 9/13/2026 0:00:01 | 10/13/2026 0:00:00
25 | 10/13/2026 0:00:01 | 11/12/2026 0:00:00
26 | 11/12/2026 0:00:01 | 12/12/2026 0:00:00
27 | 12/12/2026 0:00:01 | 1/11/2027 0:00:00
28 | 1/11/2027 0:00:01 | 2/10/2027 0:00:00
29 | 2/10/2027 0:00:01 | 3/12/2027 0:00:00
30 | 3/12/2027 0:00:01 | 4/11/2027 0:00:00
31 | 4/11/2027 0:00:01 | 5/11/2027 0:00:00
32 | 5/11/2027 0:00:01 | 6/10/2027 0:00:00
33 | 6/10/2027 0:00:01 | 7/10/2027 0:00:00
34 | 7/10/2027 0:00:01 | 8/9/2027 0:00:00
35 | 8/9/2027 0:00:01 | 9/8/2027 0:00:00
36 | 9/8/2027 0:00:01 | 10/8/2027 0:00:00

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