Skip to content

Keep level reward roles a member already holds - #43

Merged
BoxingOctopus merged 1 commit into
mainfrom
fix/level_reward_roles
Dec 3, 2026
Merged

BoxingOctopus merged 1 commit into
mainfrom
fix/level_reward_roles

Conversation

@BoxingOctopus

Copy link
Copy Markdown
Contributor

Summary

  • A level change used to remove every reward role the member's level did not qualify for, including a role they were given some other way.
  • Reaching a level still grants its role. A role they already hold stays until they reach that level.
  • Dropping below a level they had reached still removes that reward. "Replace earlier reward roles" still removes the earlier role when they reach a later one.
  • A reset removes reward roles for levels they had reached. A role for a level they had not reached stays. A restore grants the roles for the restored score and leaves a higher role in place.
  • The levels page hint matches this.

Test plan

  • Give a member a role that is the reward for a level they have not reached. Have them gain a level below that reward and confirm the role stays.
  • Raise them to that level and confirm the role is granted if they do not already have it.
  • Set them below a reward level they had reached and confirm that role is removed. A reward role above both the old and new level stays.
  • With "Replace earlier reward roles" on, reach a later reward and confirm the earlier reward role is removed. A higher reward role they already hold stays.
  • Reset all levels and confirm reached reward roles are removed and an unreached reward role stays. Restore the backup and confirm the restored levels grant their roles again.

@BoxingOctopus BoxingOctopus added the release:patch Fix: bump the patch version (the default) label Dec 3, 2026
@BoxingOctopus
BoxingOctopus merged commit 2248943 into main Dec 3, 2026
6 checks passed
@BoxingOctopus
BoxingOctopus deleted the fix/level_reward_roles branch December 3, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Fix: bump the patch version (the default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant