Red Hat Bugzilla – Bug 1461876
Provide context-sensitive navigation depending on which clusters are present
Last modified: 2018-04-27 17:30:59 EDT
Description of problem:
As a Ceph only user, I only want to see Ceph objects (no File Shares / Volumes) in the menu.
As a Gluster only user, I only want to see Gluster objects (e.g. no Pools, RBDs) in the menu.
If I have both Ceph and Gluster, I expect to see both Ceph and Gluster objects in the menu (or all menu items).
This was documented in the UX Design Approach and Information Architecture design document: https://tendrl.atlassian.net/secure/attachment/10100/Tendrl_%20UX%20Design%20Approach%20%26%20Information%20Architecture.pdf
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. See Menu on left when Ceph, Gluster, or both clusters present.
User currently sees both Ceph and Gluster menu items even if only one of the cluster types (Ceph / Gluster) is present. When both Ceph and Gluster are present, the menu is showing as expected.
See description above
See also https://bugzilla.redhat.com/show_bug.cgi?id=1460864.
In reviewing the code, a suggested approach is to:
- Expose another menu item, i.e. an additional attribute for the menu item, which you can then set a condition for it to decide whether or not to show Pools, RBDs, or Volumes — see dashboard/src/modules/base/navigation/menu-svc.js
- Use a rootscope event (e.g. ImportCluster) to trigger when the menus get rebuilt
- Note: this similar trigger would also need to control which Ceph or Gluster (main) dashboard tab gets presented as well