Added archived field to resource type
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Added archived field to resource type
This change adds support for displaying an "Archived" badge on CI catalog resources when the associated project is archived. The implementation includes:
- Adding an
isArchivedcomputed property to both the resource header and list item components to check if a resource is archived - Adding visual indicators (badges) in the UI that show "Archived" when a resource is archived
- Exposing the
archivedstatus from the project model to the CI catalog resource - Adding the
archivedfield to the GraphQL API for CI catalog resources - Updating tests and documentation to reflect these changes
The change makes it clearer to users when they're viewing or interacting with archived resources in the CI catalog.
Delegated archive to resource to project in model
Related: #537608 (closed)
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Make sure you have components set up in the CI/CD catalogue.
- Navigate to Settings > General of the component.
- Open 'Advanced' and scroll down to the 'Archive project' and click it.
- The 'Archived' badge will appear next to the version badge on the component.
- To unarchive, navigate back to Settings > General > Advanced and click the 'Unarchive project' button. The 'Archive' badge on the component will disappear.
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.
Edited by Sunjung Park



