Skip to content

Fix issue with delete project container text

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR fixes the behavior where the container text contained blank restore until date for:

  • instances where delayed deletion is not enabled and days are set to zero.
  • instances that have enabled the delayed deletion but the group has opted out of this feature.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

Before After
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Ensure that you have ultimate license.
  2. Login with admin and navigate to Admin > Settings > General > Visibility and access controls
  3. Enable "Default delayed project deletion" and set "Default deletion delay" to a value greater than 0.
  4. Create a group and a project inside that OR use an existing project if you have one.
  5. Go to the Group settings > General > Permissions and group features and untick "Enable delayed project deletion".
  6. Try deleting the project and verify that the text "This project can be restored until." is not displayed anymore.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading