Draft: Adding a group member makes them Enterprise User if meet the condition
What does this MR do and why?
Related to #388410 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Remove Enterprise trait
user = User.find_by(email: 'bdenkovych@example.com')
user.user_detail.update!(provisioned_by_group_id: nil, provisioned_by_group_at: nil)
Create GitLab Pages custom domains
projec_pages = Project.find_by_path('pages')
projec_pages.pages_domains.create!(domain: 'unverified.example.com')
projec_pages.pages_domains.create!(domain: 'example.com')
projec_pages.pages_domains.create!(domain: 'gitlab.com')
# Verify domain
projec_pages.pages_domains.find_by(domain: 'gitlab.com').update!(verified_at: Time.current)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Bogdan Denkovych