Skip to content

Add GraphQL query to fetch Groups and Switchers permission list #348

@petruki

Description

@petruki

Is your feature request related to a problem? Please describe.
Currently, Switcher Management consumes /admin/collaboration/permission when displaying a list of Groups or Switchers.
For each element, the resource is accessed individually, which will demand several accesses to the API in a single action.

Describe the solution you'd like
Expose a new query (permission) for the GraphQL endpoint to be able to validate the permission of several items in one single call.
The resolver will be responsible for fetching the requested element and validating the permissions for all child elements.

Describe alternatives you've considered
Update the current endpoint to be able to fetch permission from the parent element.
E.g. /admin/collaboration/permission?parent=[ID]

However, this approach will cause major changes to the current consumers for this endpoint.
GraphQL should be a more scalable solution for this purpose.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions