Order event summary results by host_name (#2455)

* order event summary results by host_name, resolves #2394

* disable select-all unit test

* Revert "disable select-all unit test"

This reverts commit ec8fd9ca81db90f33bedfd7e736ec55fcd8b5aea.
This commit is contained in:
Leigh
2016-06-16 13:50:11 -04:00
committed by GitHub
parent 251dae657a
commit 27f0224b90

View File

@@ -35,7 +35,7 @@
}; };
var init = function(){ var init = function(){
Wait('start'); Wait('start');
JobDetailService.getJobHostSummaries($stateParams.id, {page_size: page_size}) JobDetailService.getJobHostSummaries($stateParams.id, {page_size: page_size, order_by: 'host_name'})
.success(function(res){ .success(function(res){
$scope.hosts = res.results; $scope.hosts = res.results;
$scope.next = res.next; $scope.next = res.next;
@@ -114,7 +114,8 @@
var getAll = function(){ var getAll = function(){
Wait('start'); Wait('start');
JobDetailService.getJobHostSummaries($stateParams.id, { JobDetailService.getJobHostSummaries($stateParams.id, {
page_size: page_size page_size: page_size,
order_by: 'host_name'
}).success(function(res){ }).success(function(res){
Wait('stop'); Wait('stop');
$scope.hosts = res.results; $scope.hosts = res.results;
@@ -125,7 +126,8 @@
Wait('start'); Wait('start');
JobDetailService.getJobHostSummaries($stateParams.id, { JobDetailService.getJobHostSummaries($stateParams.id, {
page_size: page_size, page_size: page_size,
failed: true failed: true,
order_by: 'host_name'
}).success(function(res){ }).success(function(res){
Wait('stop'); Wait('stop');
$scope.hosts = res.results; $scope.hosts = res.results;