Add support for allow_immediate_namespaces_deletion setting in admin
Depends on Add the allow_immediate_namespaces_deletion app... (!205554 - merged).
What does this MR do and why?
This change adds a new admin setting that controls whether users can immediately delete groups and projects that are scheduled for deletion.
Previously, users could bypass the configured retention period and delete items right away with a second deletion action. Now administrators can disable this "immediate deletion" feature, forcing users to wait for the full retention period before items are automatically deleted.
The setting includes a checkbox in the admin interface labeled "Allow immediate deletion" and comes with help text explaining how it works. Administrators themselves can still immediately delete items through admin pages regardless of this setting.
The feature is behind by the allow_immediate_namespaces_deletion feature flag. Documentation has been updated to explain the new setting, and tests have been added to verify the functionality works correctly.
References
- Implements to Add the admin UI for the new setting (#570688 - closed)
- Part of Introduce a new "Allow immediate deletion" appl... (#569453 - closed)
Screenshots or screen recordings
| Page | FF disabled | FF enabled, and setting enabled | FF enabled, and setting disabled |
|---|---|---|---|
| Admin settings | ![]() |
![]() |
![]() |
| Admin settings trying to enable the setting while on Dedicated | N/A | ![]() |
N/A |
How to set up and validate locally
With the allow_immediate_namespaces_deletion FF disabled
- On the left sidebar, at the bottom, select Admin.
- Select Settings > General.
- Expand Visibility and access controls.
- The page doesn't show any Immediate deletion setting
With the allow_immediate_namespaces_deletion FF enabled
- On the left sidebar, at the bottom, select Admin.
- Select Settings > General.
- Expand Visibility and access controls.
- Scroll to Immediate deletion and uncheck the checkbox.
- Select Save changes. The checkbox should still be checked.
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.



