Fix "pending deletion" badge
What does this MR do and why?
Related to #419337 (closed)
In !122524 (merged) we switched the API that is used for the Archived projects
tab on group overview. It was missed that marked_for_deletion_at
is only available on EE when a condition is true. This caused a regression where the "pending deletion" badge was always shown on CE. This MR fixes the logic so the "pending deletion" badge is only shown when marked_for_deletion_at
is present and has a value set.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Remove your license (make sure you know where the original is so you can add it back after)
- Go to a group
- Create a project in that group
- In the project go to
Settings
->General
->Advanced
. ClickArchive project
- Go to the group overview and click
Archived projects
tab. The project should not have apending deletion
badge.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Hegman