Add componentUsages GraphQL types and feature flag
What does this MR do and why?
Adds the GraphQL types and feature flag for the new componentUsages field on CiCatalogResource. This is split out from !222663 (merged) to reduce review scope.
Changes included:
-
CiCatalogResourceProjectUsagetype — represents a project using components from a catalog resource -
CiCatalogResourceComponentUsageDetailtype — details of a specific component used (component, version, last used date, outdated status) - EE extension on
CiCatalogResourceTypeadding thecomponentUsagesfield -
ci_component_analyticsfeature flag (gitlab_com_derisk, disabled by default) - CE
prepend_mod_withfor the EE extension - Unit specs for all types
The resolver that wires up the data will be added in !222663 (merged).
References
- Parent issue: #579460
- Resolver MR: !222663 (merged)
How to set up and validate locally
No user-facing changes — the field returns null until the resolver is added in !222663 (merged) and the feature flag is enabled.
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 #579460
Edited by Rajendra Kadam