Draft: Add Pending promotion tab to the group and project
What does this MR do and why?
This is a PoC for FE: Add a “Pending promotion” tab to the group ... (#433174 - closed)
Context: Ultimate license SM instances account GUEST users as non-billable. The parent epic [Phase 1] Add Controls for Ability to Promote N... (&12141) adds a set of flows and UIs to allow customers to control the promotion from non-billable to billable roles.
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
Before | After |
---|---|
N/A | |
N/A |
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)
- Purchase Ultimate License, and simulate Ultimate SM setup
- Visit any Group as a non-instance-admin user (i.e. an owner)
- try promoting a non-billable GUEST member to a DEVELOPER role
- Reload the page, you should see a new "Promotions" tab, as seen on the screenshots.
- Repeat the same for a Project member
NOTE: The user should be non-billable on the instance, i.e. have a GUEST highest role. If there's any hiccup in role updates or billable position calculation — please check the instance Background Jobs, and in the scheduled tab select all UpdateHighestRoleWorker
jobs, and press "Add to the queue".