hgdharold opened a new pull request, #2448: URL: https://github.com/apache/solr/pull/2448
# Description old code: ```// Checks if this node is the first (alphabetically) for a given host. Used to decide rowspan in table $scope.isFirstNodeForHost = function(node) { var hostName = node.split(":")[0]; var nodesInHost = $scope.filteredNodes.filter(function (node) { return node.startsWith(hostName); }); return nodesInHost[0] === node; }; ``` hostname like `server-1`, `server-10`, this code will cause the node list to be displayed incorrectly # Solution ``` $scope.isFirstNodeForHost = function(node) { var hostName = node.split(":")[0]; var nodesInHost = $scope.filteredNodes.filter(function (node) { var hostName2 = node.split(":")[0]; return hostName2 === hostName; }); return nodesInHost[0] === node; }; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org