Loading
Add group setting: allow_non_enterprise_placeholder_reassignment
What does this MR do and why?
Introduce allow_non_enterprise_placeholder_reassignment as an
Owner-only group setting, modeled after the existing
allow_enterprise_bypass_placeholder_confirmation pattern.
Disabled by default to preserve current reassignment behavior. This commit only adds the opt-in flag; finder and authorization logic will read it in subsequent changes.
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
How to set up and validate locally
- If not already set, export
GITLAB_SIMULATE_SAAS=1and restart the Rails server. - In rails console, enable the feature flag:
Feature.enable(:allow_non_enterprise_placeholder_reassignment) - Navigate to a top-level group where you are an Owner and the
:domain_verificationlicensed feature is available. - Visit the group's General Settings page at
/groups/<group-full-path>/-/edit. - Locate the "Allow reassigning placeholder users to non-enterprise members" checkbox under "Permissions and group features".
- Toggle the checkbox and click Save.
- Verify the setting persisted in rails console:
Group.find_by_full_path('<group-full-path>').namespace_settings.allow_non_enterprise_placeholder_reassignment? - Disable the feature flag to confirm it gates checkbox visibility:
Feature.disable(:allow_non_enterprise_placeholder_reassignment) - Refresh the group settings page and confirm the checkbox has disappeared.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Rodrigo Tomonari
