Deactivate Workspace
Motivation
Principles
Workspace with WorkspaceDescriptor.Status != Active accepts only System token. 403 forbidden otherwise
Workspace is (consistently) inactive if:
Workspace/WorkspaceDescriptor.Status == Inactive
There is no any active JoinedWorkspace record which refers to the Workspace
Note that Workspace.Subject records are still active
AppWorkspace/WorkspaceID[Workspace].IsActive == false
The following case is possible:
cdoc.sys.WorkspaceID.IsActive == truebut it is impossible to work there becausecdoc.sys.WorkspaceDescriptor.Status!= Active already. Consistency is gauranteed within a single partition only, here there are 2 different partitionsDeactivating a previously created workspaces is possible but nothing will be made on
c.sys.OnJoinedWorkspaceDeactivatedbeacuse:there was no
sp.sys.WorkspaceIDIdxthere was no field
view.sys.WorkspaceIDIdx.InvitingWorkspaceWSID
c.sys.InitiateDeactivateWorkspace()
AuthZ: role.sys.WorkspaceOwner
Params: none
cdoc.sys.WorkspaceIDexistence in appWS is checked byview.sys.WorkspaceIDIdxbut there was no this view before. So need to check the existence of the link tocdoc.sys.WorkspaceIDbefore checkingcdoc.sys.WorkspaceID.IsActive
Last updated
Was this helpful?