feat(workspaces): workspace member role resolvers (#2540)

* feat(workspaces): update/delete workspace role resolvers

* chore(workspaces): gql tests for role changes

* fix(workspaces): test syntax oops

* fix(workspaces): got it twisted

* fix(workspaces): simplify api surface, better return types

* fix(workspaces): correct role type usage, improve tests

* fix(workspaces): authorize in resolver

* fix(workspaces): correct usage of authorizeResolver
This commit is contained in:
Chuck Driesler
2024-08-01 09:36:52 +01:00
committed by GitHub
parent 662a4a09e9
commit 8a9659f223
15 changed files with 324 additions and 112 deletions
@@ -62,17 +62,6 @@ const config: SpeckleModuleMocksConfig = FF_WORKSPACES_MODULE_ENABLED
throw new Error('Fake update role error')
}
return getMockRef('Workspace', {
id: args.input.workspaceId
})
},
deleteRole: (_parent, args) => {
const val = faker.datatype.boolean()
if (val) {
throw new Error('Fake delete role error')
}
return getMockRef('Workspace', {
id: args.input.workspaceId
})