Skip to content

Draft: Add name filter to Query.ciCatalogResources endpoint

Leaminn Ma requested to merge ci-add-gql-catalog-resources-name-filter into master

What does this MR do and why?

This MR:

  • Adds a new scope to the Ci::Catalog::Resource model.
  • Adds a name filter to the Query.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

  1. TBD

Query plan

SELECT "catalog_resources".* FROM "catalog_resources" INNER JOIN "projects" ON "projects"."id" = "catalog_resources"."project_id" WHERE "projects"."name" ILIKE '%cat%'

Query plan link

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #427928 (closed)

Edited by Leaminn Ma

Merge request reports

Loading