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

[287] Add User Status 'Role Change Needed' #341

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from

Conversation

emmabjj
Copy link
Contributor

@emmabjj emmabjj commented Dec 31, 2024

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'.

role_change_needed

@emmabjj emmabjj self-assigned this Dec 31, 2024
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 12/31/24 milestone Dec 31, 2024
@r-bartlett-gsa r-bartlett-gsa linked an issue Dec 31, 2024 that may be closed by this pull request
38 tasks
Comment on lines 98 to 99
USER_STATUSES = %w[pending active role_change_needed].freeze
validates :status, inclusion: { in: USER_STATUSES }
Copy link
Contributor

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.

Copy link
Contributor Author

@emmabjj emmabjj Jan 6, 2025

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!

@emmabjj emmabjj requested a review from stepchud January 6, 2025 20:34
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.

User Status in Evaluator List for Existing Users
3 participants