-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
False
-
-
False
-
Unset
-
CRCPLAN-312 - Management Fabric | Global UI Updates to Console.redhat.com for RHEL Workspace Conversion
-
None
-
-
The API: /api/rbac/v2/workspaces/ The trailing / is required
The spec: https://github.com/RedHatInsights/insights-rbac/blob/master/docs/source/specs/v2/openapi.v2.yaml
The data is a flat list from which we will have to create the hierarchy on frontend. We will always have to request the entire tree. We should use the “depth=-1” query param to get around the default limit of 10 items
The items have the parent_id attribute. This is either a uuid or null. If a workspace has the parent_id == null, it means it is a root workspace.
We should update this list periodically. In the future, we will use WebSockets, but for now, we can poll the API every 10 minutes or so. We do not expect the list to change much. However, we should provide a ChromeAPI to refresh the list because some of the UIs (rbac) can change the workspaces.
The tree structure should be provided via Chrome API for services. And it should be stored in an atom so it is accessible in the entire UI.