GraphQL and Policy changes to support Workspaces Admin UI
MR: Backend changes for workspaces admin (!135413 - merged)
Description
Changes to graphql and policies to support workspaces admin UI Frontend which will be added by UI: Introduce an admin view providing visibilit... (#419281 - closed)
See overview of Category:Remote Development Workspaces Admin UI issues and MRs in MVP of Admin UI for Workspaces (&11992 - closed)
Acceptance Criteria
-
Add GraphQL API which lists all the non-terminated workspaces for the agent
-
The response from the API is paginated -
Only maintainers of project in which the agent is configured should be able to access this API -
The license check is respected in the GraphQL API -
Update authorization rules so that the agent administrator can update the workspace -
Add validation to prevent any changes to the workspace if the agent associated to the workspace is disabled (will defer to separate issue Terminate workspaces after an agent has been di... (#402131), see note here: #426507 (comment 1681321232))
Edited by Chad Woolley