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
How to set up and validate locally
- Enable Setting
setting = ApplicationSetting.first; setting.enable_member_promotion_management=true; setting.save!
- Enable FF
Feature.enable(:member_promotion_management)
- Simulate Self Managed (
GITLAB_SIMULATE_SAAS=0
) and ensure that you have an Ultimate License - Create a new user, with
GUEST
as a highest role on the instance - Switch to a different non-admin account, and change that GUEST user role to Reporter or higher
- 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