Skip to content

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
image image

How to set up and validate locally

  1. Create a new group called my-group and a new project called my-project under it.
  2. Enable the archive group feature flag in the Rails console: Feature.enable(:archive_group)
  3. Archive the group by going to Settings -> Advanced -> Archive
  4. 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.
  5. 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

Merge request reports

Loading