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

FR: Seasonal Rep Race #221

Open
samhwang opened this issue Mar 23, 2024 · 0 comments
Open

FR: Seasonal Rep Race #221

samhwang opened this issue Mar 23, 2024 · 0 comments
Labels
enhancement New feature or request EPIC

Comments

@samhwang
Copy link
Collaborator

samhwang commented Mar 23, 2024

Is your feature request related to a problem? Please describe.

Since the leaderboard only shows the top 10 of the server every time, it makes it a bit frustrating for some people to get rep, and not show up on the leaderboard whatsoever. This will introduce a "seasonal" rep score that resets every quarter.

image

Describe the solution you'd like

These requirements can be splitted off and deal with in separate PRs. No need to do it all in one.

  • The leaderboard will show a tagline like LEADERBOARD Q1 2024.
    • For this to work, the parseDate utils will also need to parse the current time to find out which quarter of the year it's in.
  • Make a cron job that runs every 3 months to set user existing in the db to 0 rep.
    • ReputationLog will also need to record these operations.
    • cron expression: 0 0 1 1,4,7,9 * - verified with https://crontab.guru

Describe alternatives you've considered

I have considered introducing a "decay" mechanic to the rep, but this is simpler to implement than actual decaying, with more background process and logic on how to decay the rep.

Additional context

  • Admins can also then use this to reward the user with the highest rep?
  • We can also change this into an exp system, whether commenting/posting guarantees 1 XP, but being thanked is given 10rep? But this is out of the scope of this issue.
@samhwang samhwang added enhancement New feature or request EPIC labels Mar 23, 2024
@samhwang samhwang changed the title EPIC: Seasonal Rep Race FR: Seasonal Rep Race Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request EPIC
Projects
None yet
Development

No branches or pull requests

1 participant