fix(server): project role updates after workspace role/seat changes (#4599)

* fix(workspaces): workspace role sync

* role changes fixed + validated

* seat changes validated

* fix tests

---------

Co-authored-by: Charles Driesler <chuck@speckle.systems>
This commit is contained in:
Kristaps Fabians Geikins
2025-04-29 10:49:37 +03:00
committed by GitHub
parent 02be5652d3
commit cf833a7719
18 changed files with 1328 additions and 654 deletions
@@ -30,11 +30,12 @@ type WorkspaceCreatedPayload = {
type WorkspaceUpdatedPayload = { workspace: Workspace }
type WorkspaceRoleDeletedPayload = {
acl: Pick<WorkspaceAcl, 'userId' | 'workspaceId' | 'role'>
updatedByUserId: string
}
type WorkspaceRoleUpdatedPayload = {
acl: Pick<WorkspaceAcl, 'userId' | 'workspaceId' | 'role'>
flags?: { skipProjectRoleUpdatesFor: string[] }
updatedByUserId: string
flags?: { skipProjectRoleUpdatesFor: string[] }
}
type WorkspaceSeatUpdatedPayload = {
seat: WorkspaceSeat