Add the allow_immediate_namespaces_deletion application settings
What does this MR do and why?
This change adds a new setting called "allow immediate namespaces deletion" that controls whether users can bypass the normal waiting period when deleting namespaces (groups/projects).
By default, this feature is enabled for regular GitLab installations, allowing administrators to choose whether users can delete namespaces immediately. However, for GitLab.com (the hosted service) and GitLab Dedicated instances, this setting is automatically disabled and cannot be enabled, forcing users to wait through the standard deletion retention period for safety reasons.
The implementation includes database changes to store this new setting, validation rules to enforce the restrictions on different GitLab deployment types, and tests to ensure it works correctly. This gives GitLab administrators more control over deletion policies while maintaining stricter safety measures on managed GitLab services.
Admin support for the setting is added by Add support for allow_immediate_namespaces_dele... (!205556 - merged).
References
- Implements to Add the application setting column (#570687 - closed)
- Part of Introduce a new "Allow immediate deletion" appl... (#569453 - closed)
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.