Filter GraphQL results by Current.organization
We need to filter GraphQL by the current Organization isolation context.
Proposal:
-
We should filter returns results similar to authorize :read_projectinProjectTypewhere we only select results within the current Organization. Initially we should focus on:-
Project Type -
Group/Namespace Type -
User Type
-
-
Add the current Organization to the GraphQL context in app/controllers/graphql_controller.rb. This will allow gradual improvement of queries to scope by the current Organization. -
Add the current Organization to the GraphQL context in app/channels/graphql_channel.rb
Edited by Rutger Wessels