-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Create season champion special badges #181
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
user_id: user_id | ||
}) unless dry_run or !can_complete | ||
user_id: user_id, | ||
notify: !dry_run |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
apps/govquests-api/govquests/gamification/lib/gamification/strategies/season_champion.rb
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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 😉
Added season_champion badge type strategy, that verifies:
Added seed for season 7 champion of each tier