Skip to content

Draft: Adding a group member makes them Enterprise User if meet the condition

Bogdan Denkovych requested to merge bdenkovych-issue-388410 into master

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.

Edited by Bogdan Denkovych

Merge request reports