-
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
[287] Add User Status 'Role Change Needed' #341
base: dev
Are you sure you want to change the base?
Conversation
app/models/user.rb
Outdated
USER_STATUSES = %w[pending active role_change_needed].freeze | ||
validates :status, inclusion: { in: USER_STATUSES } |
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.
Some different, valid User statuses exist on the Phoenix app and we will have to support the same statuses on both apps. We will have to keep these in sync on both apps. Might also want to disambiguate role_change_needed
from which role is needed, i.e. evaluator_role_requested
in case we want others like challenge_manager_role_requested
.
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.
Okay I'll go ahead and do that - thanks!
Related ticket: #287
Added an additional user status ('Role Change Needed') that is associated with existing users that need their role changed. That user's role needs to be changed to 'evaluator' by admin, then their status becomes 'Available'.