-
Task
-
Resolution: Done
-
Normal
-
None
-
None
-
Product / Portfolio Work
-
5
-
False
-
-
False
-
None
-
Unset
-
None
-
-
-
Plat-Ex UI Sprint 41
Description
As a customer I should be able to move WS between workspaces by using new action on a row called "Move Workspace".
Technical details
This action is only enabled if the user has write access to the workspace checked by permissions check.
This feature will use the new Workspace selector.
The action will show new modal with title: Move workspace $CURRENT_WS_NAME then we will show breadcrumbs component which will have first item clickable $WS_PARENT_NAME and second item will be workspace selector.
Hide this feature behind a feature flag `platform.rbac.workspace-hierarchy` or `platform.rbac.workspaces` (either of them can be enabled)
Based on the table in https://issues.redhat.com/browse/CRCPLAN-310 user can perform these actions:
WS type | Move |
---|---|
Root | ❌ |
Default | ❌ |
Ungroupped | ❌ |
Standard | ✅ |
If the action is allowed for workspace type we first have to check permissions list by calling getPermissions from chrome API. If the user has inventory:groups:write with empty resource array they should have the action allowed. If the user has any resource definition only workspaces with matching ID should be allowed.
If the action is either not allowed based on the type and or not allowed based on the resource definition permission we should disable the action in the dropdown.
There is already similar check for edit and remove actions so we can utilize that implementation.
- is blocked by
-
RHCLOUD-40532 Workspace movement feature
-
- Closed
-