You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/05/14 21:34:56 UTC

[incubator-trafficcontrol] branch master updated: adds ?orderby=name when fetching cache groups

This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 0574845  adds ?orderby=name when fetching cache groups
0574845 is described below

commit 0574845ff94091ae39ada64d1fb30e93a8e070c5
Author: Jeremy Mitchell <mi...@gmail.com>
AuthorDate: Mon May 14 14:33:13 2018 -0600

    adds ?orderby=name when fetching cache groups
---
 traffic_portal/app/src/common/modules/form/asn/FormASNController.js     | 2 +-
 .../app/src/common/modules/form/cacheGroup/FormCacheGroupController.js  | 2 +-
 .../app/src/common/modules/form/server/FormServerController.js          | 2 +-
 traffic_portal/app/src/modules/private/cacheGroups/list/index.js        | 2 +-
 traffic_portal/app/src/modules/private/types/cacheGroups/index.js       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/traffic_portal/app/src/common/modules/form/asn/FormASNController.js b/traffic_portal/app/src/common/modules/form/asn/FormASNController.js
index 85f1475..31bd295 100644
--- a/traffic_portal/app/src/common/modules/form/asn/FormASNController.js
+++ b/traffic_portal/app/src/common/modules/form/asn/FormASNController.js
@@ -20,7 +20,7 @@
 var FormASNController = function(asn, $scope, formUtils, locationUtils, cacheGroupService) {
 
     var getCacheGroups = function() {
-        cacheGroupService.getCacheGroups()
+        cacheGroupService.getCacheGroups({ orderby: 'name' })
             .then(function(result) {
                 $scope.cachegroups = result;
             });
diff --git a/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js b/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
index 5eb334d..f53c28a 100644
--- a/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
+++ b/traffic_portal/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
@@ -20,7 +20,7 @@
 var FormCacheGroupController = function(cacheGroup, $scope, $location, formUtils, locationUtils, cacheGroupService, typeService) {
 
     var getCacheGroups = function() {
-        cacheGroupService.getCacheGroups()
+        cacheGroupService.getCacheGroups({ orderby: 'name' })
             .then(function(result) {
                 $scope.cacheGroups = result;
             });
diff --git a/traffic_portal/app/src/common/modules/form/server/FormServerController.js b/traffic_portal/app/src/common/modules/form/server/FormServerController.js
index 53e7745..2f46931 100644
--- a/traffic_portal/app/src/common/modules/form/server/FormServerController.js
+++ b/traffic_portal/app/src/common/modules/form/server/FormServerController.js
@@ -27,7 +27,7 @@ var FormServerController = function(server, $scope, $location, $state, $uibModal
     };
 
     var getCacheGroups = function() {
-        cacheGroupService.getCacheGroups()
+        cacheGroupService.getCacheGroups({ orderby: 'name' })
             .then(function(result) {
                 $scope.cacheGroups = result;
             });
diff --git a/traffic_portal/app/src/modules/private/cacheGroups/list/index.js b/traffic_portal/app/src/modules/private/cacheGroups/list/index.js
index 2a15b39..2a275ec 100644
--- a/traffic_portal/app/src/modules/private/cacheGroups/list/index.js
+++ b/traffic_portal/app/src/modules/private/cacheGroups/list/index.js
@@ -28,7 +28,7 @@ module.exports = angular.module('trafficPortal.private.cacheGroups.list', [])
                         controller: 'TableCacheGroupsController',
                         resolve: {
                             cacheGroups: function(cacheGroupService) {
-                                return cacheGroupService.getCacheGroups();
+                                return cacheGroupService.getCacheGroups({ orderby: 'name' });
                             }
                         }
                     }
diff --git a/traffic_portal/app/src/modules/private/types/cacheGroups/index.js b/traffic_portal/app/src/modules/private/types/cacheGroups/index.js
index d2fa83a..3224dec 100644
--- a/traffic_portal/app/src/modules/private/types/cacheGroups/index.js
+++ b/traffic_portal/app/src/modules/private/types/cacheGroups/index.js
@@ -31,7 +31,7 @@ module.exports = angular.module('trafficPortal.private.types.cacheGroups', [])
 								return typeService.getType($stateParams.typeId);
 							},
 							cacheGroups: function($stateParams, cacheGroupService) {
-								return cacheGroupService.getCacheGroups({ type: $stateParams.typeId });
+								return cacheGroupService.getCacheGroups({ type: $stateParams.typeId, orderby: 'name' });
 							}
 						}
 					}

-- 
To stop receiving notification emails like this one, please contact
dangogh@apache.org.