Backend: Move GraphQL Catalog code to FOSS

Summary of problem to solve

The ciCatalogResource query currently takes a projectPath and returns catalog resources published in the project's root namespace.

We need to update it for the new General Catalog.

Proposal

Remove the projectPath argument from ciCatalogResources. Replace it with an optional scope argument. scope can be either all or namespaces. In the future it will also have official and community options.

  • When scope is not present or all: return all CI Catalog resources visible to the current user
  • When scope is namespace: return resources published in namespaces to which the current user belongs

NOTE: this work will also require removing the read_namespace_catalog authorization since the Catalog is now available to FOSS

Implementation Table

Description Merge Request
Move Catalog GraphQL code to FOSS !133994 (merged)
Clean up Catalog policies TBA
Add new GraphQL arguments TBA
Edited by Avielle Wolfe