Repurpose achievements_enabled as a global award opt-out
What does this MR do and why?
Repurposes user_preferences.achievements_enabled from "display achievements on profile" to "allow others to award me achievements", providing an explicit global opt-out of receiving new achievement awards.
-
Achievements::AwardServicenow returns an error if the recipient hasachievements_enabled: false, preventing the award and notification. - The profile settings checkbox label is updated to reflect the new meaning.
- The
achievements_enabledgate is removed from the profile sidebar so existing awarded achievements remain visible regardless of the preference. -
locale/gitlab.potupdated for the new i18n string.
References
Closes #593740
Screenshots or screen recordings
How to set up and validate locally
- Visit
/-/user_settings/profileand confirm the checkbox reads "Allow others to award me achievements". - Uncheck the box and save.
- Attempt to award that user an achievement via the group achievements page. Confirm an error is returned and no award is created.
- Visit the user's profile and confirm their existing achievements are still displayed.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Mattias Michaux
