Adds `components` field to Ci::Catalog::ResourceType
What does this MR do and why?
Adds components
field to Ci::Catalog::ResourceType
which has a name
field
Adds missing foreign key to Ci::Catalog::Resources
Changelog: added
How to set up and validate locally
In a project marked as a catalog resource with components, write the following query:
query getCiCatalogResourceDetails {
ciCatalogResource(id: "gid://gitlab/Ci::Catalog::Resource/13") {
components {
nodes {
id
name
path
}
}
}
}
Response:
{
"data": {
"ciCatalogResource": {
"components": {
"nodes": [
{
"id": "gid://gitlab/Ci::Catalog::Resources::Component/3",
"name": "chocolate cookie",
"path": "templates/secrets.yml"
}
]
}
}
}
}
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 Laura Montemayor