Backend: Add global Catalog arguments to GraphQL
Problem
The ciCatalogResources
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.
Proposed solution
Add an optional scope
argument to the query. scope
can be either all
or namespaces
. In the future it will also have official
and community
options.
- When
scope
is not present orall
: return all CI Catalog resources visible to the current user - When
scope
isnamespace
: return resources published in namespaces to which the current user belongs
Note: we can remove the projectPath
argument once the frontend has started using scope
Implementation table
Group | Link |
---|---|
backend |
|
frontend | #427939 (closed) |
Edited by Mark Nuzzo