CLOUDSTACK-6031: UI > infrastructure > count > pass listAll=true to all 
listXXXXXXX API for counting resource.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/75757e94
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/75757e94
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/75757e94

Branch: refs/heads/rbac
Commit: 75757e94254dcacf746dea70b4784b8d4afe45c2
Parents: c2c7d33
Author: Jessica Wang <jessicaw...@apache.org>
Authored: Wed Feb 5 14:09:27 2014 -0800
Committer: Jessica Wang <jessicaw...@apache.org>
Committed: Wed Feb 5 14:38:16 2014 -0800

----------------------------------------------------------------------
 ui/scripts/system.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/75757e94/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 955d391..11dd0ba 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -210,6 +210,11 @@
                     zoneCount: function (data) {
                         $.ajax({
                             url: createURL('listZones'),
+                            data: {
+                               listAll: true,
+                                page: 1,
+                                pagesize: 1 //specifying pagesize as 1 because 
we don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
+                            },
                             success: function (json) {
                                 dataFns.podCount($.extend(data, {
                                     zoneCount: json.listzonesresponse.count ? 
json.listzonesresponse.count: 0,
@@ -223,6 +228,7 @@
                         $.ajax({
                             url: createURL('listPods'),
                             data: {
+                               listAll: true,
                                 page: 1,
                                 pagesize: 1 //specifying pagesize as 1 because 
we don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                             },
@@ -238,6 +244,7 @@
                         $.ajax({
                             url: createURL('listClusters'),
                             data: {
+                               listAll: true,
                                 page: 1,
                                 pagesize: 1 //specifying pagesize as 1 because 
we don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                             },
@@ -261,6 +268,7 @@
                     hostCount: function (data) {
                         var data2 = {
                             type: 'routing',
+                            listAll: true,
                             page: 1,
                             pagesize: 1 //specifying pagesize as 1 because we 
don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                         };
@@ -277,6 +285,7 @@
                     
                     primaryStorageCount: function (data) {
                         var data2 = {
+                               listAll: true,
                             page: 1,
                             pagesize: 1 //specifying pagesize as 1 because we 
don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                         };
@@ -294,6 +303,7 @@
                     secondaryStorageCount: function (data) {
                         var data2 = {
                             type: 'SecondaryStorage',
+                            listAll: true,
                             page: 1,
                             pagesize: 1 //specifying pagesize as 1 because we 
don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                         };
@@ -312,6 +322,7 @@
                         $.ajax({
                             url: createURL('listSystemVms'),
                             data: {
+                               listAll: true,
                                 page: 1,
                                 pagesize: 1 //specifying pagesize as 1 because 
we don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                             },
@@ -325,6 +336,7 @@
                     
                     virtualRouterCount: function (data) {
                         var data2 = {
+                               listAll: true,
                             page: 1,
                             pagesize: 1 //specifying pagesize as 1 because we 
don't need any embedded objects to be returned here. The only thing we need 
from API response is "count" property.
                         };

Reply via email to