User Mapping - Add reassigning, keep_as_placeholder to source users
requested to merge 467053-user-mapping-add-reassigning-and-keep_as_placeholder-statuses-to-import-sourceuser into master
What does this MR do and why?
This MR adds two statuses that were not included in the original implementation of Import::SourceUser
:
-
:keep_as_placeholder
: statuses:pending_assignment
,:awaiting_approval
and:rejected
can transition to this status. Transitioning to this status also clearsreassign_to_user
-
:reassignment_in_process
: onlyawaiting_approval
can transition to this because a real user must approve their reassignment to begin the reassignment process.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Open a rails console and find or create a Placeholder user. At the moment, placeholder users are not created in any importer.
- Update the status of the placeholder user using the transition methods in
Import::SourceUser
Related to #467053