Add ancestor archive check to admin project view
What does this MR do and why?
Replace the archived? method with self_or_ancestors_archived? in
the admin projects show view to properly indicate when a project is
archived either directly or through an archived ancestor namespace.
This ensures administrators can see the complete archive status
including inherited states from parent groups.
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Create a new group called
my-groupand a new project calledmy-projectunder it. - Enable the archive group feature flag in the Rails console:
Feature.enable(:archive_group) - Archive the group by going to Settings -> Advanced -> Archive
- Go to the master branch and open the project in the admin area by going to https://gdk.test:3000/admin/projects/my-group/my-project. It should match the Before screenshot above.
- Check out the current branch, and the Project Information should contain the archived row as shown in the After screenshot.
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.
Related to #578809

