Lior Vernia has posted comments on this change.

Change subject: webadmin: Adding VfsConfigModel to HostNicModel
......................................................................


Patch Set 9:

(1 comment)

https://gerrit.ovirt.org/#/c/36258/9/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/VfsConfigModel.java
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/VfsConfigModel.java:

Line 65:     }
Line 66: 
Line 67:     private void initNetworks(List<Network> allClusterNetworks) {
Line 68:         Map<Guid, Network> clusterNetworksMap = 
createClusterNetworksMap(allClusterNetworks);
Line 69:         Set<Network> vfsConfigNetworks = new HashSet<>();
> The networks are already sorted. They are returned sorted from the backend 
But then you put them in a HashMap, then move them from the HashMap to a 
HashSet. I doubt these data structures preserve insertion order (especially the 
map with relation to its values as opposed to keys)?...
Line 70: 
Line 71:         for (Guid networkGuid : getEntity().getNetworks()) {
Line 72:             vfsConfigNetworks.add(clusterNetworksMap.get(networkGuid));
Line 73:         }


-- 
To view, visit https://gerrit.ovirt.org/36258
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I70f2955d16287c291341646c76ebeaea9bbcb0aa
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to