Added handle to queue nonbillable users from email
What does this MR do and why?
Fix for handling user invite not getting queued when tried with email_id.
Fixes: [BE] bug: inviting an existing user via email w... (#485076 - closed)
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Have an Ultimate License, and simulate Ultimate Self Managed setup (
export GITLAB_SIMULATE_SAAS=0 gdk restart
) - Enable the Setting `Gitlab::CurrentSettings.update!(enable_member_promotion_management: true)
- Enable the Feature Flag
Feature.enable(:member_promotion_management)
- Create promotion requests:
- Visit a group as an owner (e.g. https://gdk.test:3443/groups/gitlab-org/-/group_members)
- Click on
invite members
button - Find a member. This member should have
GUEST
as the highest role in the hole instance. - Invite them as any role higher then
GUEST
- They should not be added and should get queued for promotion
- Try the same thing for the same user using their email_id
- Previously:
- They would get invited on the higher role
- Now:
- They should also get queued for promotion
- Previously:
Edited by Suraj Tripathi