Skip to content

Handle role change for Promotion Approval flow

What does this MR do and why?

Handles flow when user role change is enqueued to Pending Promotion tab (part of &12141 epic)

Resolves #441275 (closed), follow-up after #433172 (comment 1762728411)

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.

Screenshots or screen recordings

role_change_dropdown

How to set up and validate locally

  1. Enable Setting setting = ApplicationSetting.first; setting.enable_member_promotion_management=true; setting.save!
  2. Enable FF Feature.enable(:member_promotion_management)
  3. Simulate Self Managed (GITLAB_SIMULATE_SAAS=0) and ensure that you have an Ultimate License
  4. Create a new user, with GUEST as a highest role on the instance
  5. Switch to a different non-admin account, and change that GUEST user role to Reporter or higher
  6. You should see a "Role change request was sent to the administrator." toast, and the role dropdown should be restored to a previous state.
Edited by Kos Palchyk

Merge request reports

Loading