Skip to content

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

Screenshots or screen recordings

Page FF disabled FF enabled, and setting enabled FF enabled, and setting disabled
Admin settings Screenshot_2025-10-01_at_10.52.41_AM Screenshot_2025-10-01_at_10.52.15_AM Screenshot_2025-10-01_at_1.10.08_PM
Admin settings trying to enable the setting while on Dedicated N/A Screenshot_2025-10-01_at_1.14.41_PM N/A

How to set up and validate locally

With the allow_immediate_namespaces_deletion FF disabled

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > General.
  3. Expand Visibility and access controls.
  4. The page doesn't show any Immediate deletion setting

With the allow_immediate_namespaces_deletion FF enabled

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > General.
  3. Expand Visibility and access controls.
  4. Scroll to Immediate deletion and uncheck the checkbox.
  5. 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.

Edited by Peter Hegman

Merge request reports

Loading