Greg Sheremeta has submitted this change and it was merged.
Change subject: webadmin: Fix System tree when in Gluster-only mode
......................................................................
webadmin: Fix System tree when in Gluster-only mode
This patch adds Hosts and Volumes nodes needed in
Gluster-only mode to the System tree root. Previously only
System and Sessions were shown in Gluster-only mode
(because there is no datacenter in Gluster-only mode, and
datacenter's children were being filtered out of the tree).
This patch uses the following approach:
* Filter out the nodes as usual as per the associated ApplicationMode.
* If it is applicable to the current ApplicationMode
* As a node is removed, attach its child nodes to its parent, thus
promoting those children to peers.
Change-Id: I7c85bc2b78f885511a8e53212984d93343ffd6a8
Signed-off-by: Anmol Babu <anbabu(a)redhat.com>
---
M
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/ApplicationModeHelper.java
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
anmolbabu: Verified
Vojtech Szocs: Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/39363
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7c85bc2b78f885511a8e53212984d93343ffd6a8
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <anbabu(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen(a)redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: anmolbabu <anbabu(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server