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

Merged
merged 15 commits into from
Jan 15, 2025

Conversation

emmabjj
Copy link
Contributor

@emmabjj emmabjj commented Dec 31, 2024

Related ticket: #287

Added an additional user status ('evaluator_role_requested') that is associated with existing users that need their role changed. That user's role needs to be changed to 'evaluator' by an admin, then their status becomes 'Available' for assignment to submissions.

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!

Copy link
Contributor

@stepchud stepchud Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emmabjj Can you submit a PR on the Challenge_gov Phoenix repo against the eval-main branch that adds the new user status there too?

Copy link
Contributor Author

@emmabjj emmabjj Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stepchud Sure! Here's that PR - GSA/Challenge_gov#1502

Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

@emmabjj emmabjj merged commit 979b50c into dev Jan 15, 2025
10 checks passed
@emmabjj emmabjj deleted the 287_user_status_role_change_needed branch January 15, 2025 17:55
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