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

Create season champion special badges #181

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

juliano-quatrin-nunes
Copy link
Contributor

@juliano-quatrin-nunes juliano-quatrin-nunes commented Feb 12, 2025

  • Added season_champion badge type strategy, that verifies:

    • if other user has already earned badge(only one can earn);
    • if season has ended;
    • if user is on top of their tier leaderboard
  • Added seed for season 7 champion of each tier

Copy link

linear bot commented Feb 12, 2025

Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
op-govquests ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 17, 2025 11:36am

user_id: user_id
}) unless dry_run or !can_complete
user_id: user_id,
notify: !dry_run
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting. Would love to explore a more general way of running dry runs/running w/o side effects in general

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I don't like the way this is being done. The problem is that unlocked_by is used to check if any user has unlocked that badge earlier. If the user tries to collect the badge and it can unlock it, I don't want to notify them, but still want to update unlocked_by. Any idea of how doing that? I thought I could call @unlocked_by << user_id if it's a dry_run and don't calling the event, but don't know if this is good

Copy link
Contributor

@ribeirojose ribeirojose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 almost there, just left one critical comment 😉

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

Successfully merging this pull request may close these issues.

2 participants