-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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.