Skip to content

User Mapping - Add reassigning, keep_as_placeholder to source users

What does this MR do and why?

This MR adds two statuses that were not included in the original implementation of Import::SourceUser:

  1. :keep_as_placeholder: statuses :pending_assignment, :awaiting_approval and :rejected can transition to this status. Transitioning to this status also clears reassign_to_user
  2. :reassignment_in_process: only awaiting_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

  1. Open a rails console and find or create a Placeholder user. At the moment, placeholder users are not created in any importer.
  2. Update the status of the placeholder user using the transition methods in Import::SourceUser

Related to #467053

Merge request reports