Draft: Add name filter to Query.ciCatalogResources endpoint
What does this MR do and why?
This MR:
- Adds a new scope to the
Ci::Catalog::Resource
model. - Adds a
name
filter to theQuery.ciCatalogResources
endpoint. - Refactors the
ee/spec/graphql/resolvers/ci/catalog/resources_resolver_spec.rb
spec.
Resolves #427928 (closed).
How to set up and validate locally
- TBD
Query plan
SELECT "catalog_resources".* FROM "catalog_resources" INNER JOIN "projects" ON "projects"."id" = "catalog_resources"."project_id" WHERE "projects"."name" ILIKE '%cat%'
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 #427928 (closed)
Edited by Leaminn Ma