feat: "workspace" project visibility (#4704)
* WIP new visi * test fixes * visibility seems to work * authz policies & authorizeResolver updated * various test fixes * users tests * frontend changes * minor adjustments * shared test fix * test fixes * force rerun CI
This commit is contained in:
committed by
GitHub
parent
02b97bcb86
commit
4db1531064
@@ -1,4 +1,4 @@
|
||||
import { StreamRecord } from '@/modules/core/helpers/types'
|
||||
import { ProjectRecordVisibility, StreamRecord } from '@/modules/core/helpers/types'
|
||||
import {
|
||||
GetDefaultRegion,
|
||||
GetWorkspaceDomains,
|
||||
@@ -211,7 +211,17 @@ export const moveProjectToWorkspaceFactory =
|
||||
}
|
||||
|
||||
// Assign project to workspace
|
||||
return await updateProject({ projectUpdate: { id: projectId, workspaceId } })
|
||||
return await updateProject({
|
||||
projectUpdate: {
|
||||
id: projectId,
|
||||
workspaceId,
|
||||
visibility:
|
||||
// Migrate from Private -> Workspace visibility
|
||||
project.visibility === ProjectRecordVisibility.Private
|
||||
? ProjectRecordVisibility.Workspace
|
||||
: project.visibility
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const getWorkspaceRoleToDefaultProjectRoleMappingFactory =
|
||||
|
||||
Reference in New Issue
Block a user