Add GraphQL field `web_path` to CiCatalogResource
What does this MR do and why?
Added the web_path field to ciCatalogResource in GraphQL.
Partially resolves #407382 (closed)
How to set up and validate locally
- In the Rails console, run
Feature.enable(:ci_private_catalog_beta)andFeature.enable(:ci_namespace_catalog_experimental). - Create a Catalog Resource with an existing or new Project:
::Ci::Catalog::Resource.create(project: Project.find(<project_id>))
- Go to
http://gdk.test:3000/-/graphql-explorerand run the following query (adjust theprojectPathas necessary):
query getCiCatalogResources {
ciCatalogResources(projectPath: "group-a/project-catalog-resource-1") {
nodes {
id
name
webPath
}
}
}
- Observe that the output shows the correct Catalog Resource data.
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.
Related to #407382 (closed)
Edited by Leaminn Ma
