Skip to content

Add `scope` argument to Catalog resources query

Avielle Wolfe requested to merge 429103-add-scope-to-resources-graphql into master

What does this MR do and why?

This MR adds a scope argument to the ciCatalogResources GraphQL query. The argument is a new ResourceScopeEnum that only has one option - all. More options will be added in upcoming MRs. The all option is the default and causes the query to return all catalog resources visible to the current user.

The legacy projectPath argument is now optional. It will still return only catalog resources within the given project's root namespace.

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 #429103 (closed)

Edited by Avielle Wolfe

Merge request reports