Skip to content

Check feature flag in Deletion protection admin setting

What does this MR do and why?

Related to #389557 (closed)

We are changing the functionality of the Deletion protection setting so group and projects are always deleted after a delay. The backend logic and feature flag was added in !113332 (merged). This MR uses that feature flag to update the UI.

In the admin area you can now only set the retention period to a value between 1 and 90 In the group settings there is no longer a setting to adjust how project deletion works

Screenshots or screen recordings

Admin setting

:always_perform_delayed_deletion feature flag disabled :always_perform_delayed_deletion feature flag enabled
Screenshot_2023-03-13_at_12.47.51_PM Screenshot_2023-03-13_at_12.50.19_PM

Group setting

:always_perform_delayed_deletion feature flag disabled :always_perform_delayed_deletion feature flag enabled
Screenshot_2023-03-14_at_3.26.36_PM Screenshot_2023-03-14_at_3.27.30_PM

How to set up and validate locally

  1. Enable the `` feature flag
  2. Go to /admin/application_settings/general and expand the Visibility and access controls section. There should be only an input for retention period.
  3. Go to a group -> Settings -> General -> Permissions and group features. The Deletion protection setting shouldn't be rendered.

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 Peter Hegman

Merge request reports