You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2014/12/08 11:09:00 UTC
[12/50] [abbrv] git commit: updated refs/heads/master to b61733d
CLOUDSTACK-7482: removed listAll from UI for API call not supporting it, still some left
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7afd1234
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7afd1234
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7afd1234
Branch: refs/heads/master
Commit: 7afd123418b7b0b0cb02a7bf1a68961fdf09c93b
Parents: 7ade808
Author: Pierre-Luc Dion <pd...@apache.org>
Authored: Sun Nov 30 21:14:03 2014 -0500
Committer: Pierre-Luc Dion <pd...@apache.org>
Committed: Sun Nov 30 21:14:03 2014 -0500
----------------------------------------------------------------------
ui/scripts/configuration.js | 8 ++------
ui/scripts/domains.js | 8 ++------
ui/scripts/network.js | 15 ++++-----------
ui/scripts/regions.js | 6 +++---
ui/scripts/storage.js | 4 +---
ui/scripts/system.js | 41 +++++++++-------------------------------
6 files changed, 21 insertions(+), 61 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7afd1234/ui/scripts/configuration.js
----------------------------------------------------------------------
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index 76c04cd..6468d22 100644
--- a/ui/scripts/configuration.js
+++ b/ui/scripts/configuration.js
@@ -2248,9 +2248,7 @@
// Check whether there are any advanced zones
$.ajax({
url: createURL('listZones'),
- data: {
- listAll: true
- },
+ data: {},
async: false,
success: function(json) {
var zones = json.listzonesresponse.zone;
@@ -3509,9 +3507,7 @@
// Check whether there are any advanced zones
$.ajax({
url: createURL('listZones'),
- data: {
- listAll: true
- },
+ data: {},
async: false,
success: function(json) {
var zones = json.listzonesresponse.zone;
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7afd1234/ui/scripts/domains.js
----------------------------------------------------------------------
diff --git a/ui/scripts/domains.js b/ui/scripts/domains.js
index e585d85..a3cc8c0 100644
--- a/ui/scripts/domains.js
+++ b/ui/scripts/domains.js
@@ -488,9 +488,7 @@
$.ajax({
url: createURL("listAccounts&domainid=" + domainObj.id),
async: false,
- data: {
- details: 'min'
- },
+ data: {},
success: function(json) {
var items = json.listaccountsresponse.account;
if (items != null) {
@@ -508,9 +506,7 @@
$.ajax({
url: createURL("listProjects&domainid=" + domainObj.id),
async: false,
- data: {
- details: 'min'
- },
+ data: {},
success: function(json) {
var items = json.listprojectsresponse.project;
if (items != null) {
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7afd1234/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index ab3698b..156b738 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -398,8 +398,7 @@
}),
data: {
supportedServices: 'SecurityGroup',
- listAll: true,
- details: 'min'
+ listAll: true
},
async: false,
success: function(json) {
@@ -5290,9 +5289,7 @@
required: true
},
select: function(args) {
- var data = {
- listAll: true
- };
+ var data = {};
$.ajax({
url: createURL('listZones'),
data: data,
@@ -5348,14 +5345,10 @@
},
select: function(args) {
- var data = {
- listAll: true
- };
+ var data = {};
$.ajax({
url: createURL('listVPCOfferings'),
- data: {
- listAll: true
- },
+ data: {},
success: function(json) {
var offerings = json.listvpcofferingsresponse.vpcoffering ? json.listvpcofferingsresponse.vpcoffering : [];
var filteredofferings = $.grep(offerings, function(offering) {
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7afd1234/ui/scripts/regions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/regions.js b/ui/scripts/regions.js
index 4899c92..9f3de5f 100644
--- a/ui/scripts/regions.js
+++ b/ui/scripts/regions.js
@@ -27,7 +27,7 @@
regionSelector: {
dataProvider: function(args) {
$.ajax({
- url: createURL('listRegions&listAll=true'),
+ url: createURL('listRegions'),
success: function(json) {
var regions = json.listregionsresponse.region;
@@ -130,7 +130,7 @@
},
dataProvider: function(args) {
$.ajax({
- url: createURL('listRegions&listAll=true'),
+ url: createURL('listRegions'),
success: function(json) {
var items = json.listregionsresponse.region;
args.response.success({
@@ -246,7 +246,7 @@
}],
dataProvider: function(args) {
$.ajax({
- url: createURL('listRegions&listAll=true'),
+ url: createURL('listRegions'),
data: {
id: args.context.regions[0].id
},
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7afd1234/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 4a826c3..24dc267 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -388,9 +388,7 @@
select: function(args) {
$.ajax({
url: createURL('listZones'),
- data: {
- listAll: true
- },
+ data: {},
success: function(json) {
var zones = json.listzonesresponse.zone ? json.listzonesresponse.zone : [];
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7afd1234/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 67c3a2a..a056343 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -221,7 +221,6 @@
$.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.
},
@@ -238,7 +237,6 @@
$.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.
},
@@ -254,7 +252,6 @@
$.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.
},
@@ -278,7 +275,6 @@
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.
};
@@ -295,7 +291,6 @@
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.
};
@@ -312,8 +307,6 @@
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.
};
@@ -332,7 +325,6 @@
$.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.
},
@@ -1058,7 +1050,7 @@
},
dataProvider: function (args) {
$.ajax({
- url: createURL("listStorageNetworkIpRange&zoneid=" + args.context.zones[0].id + "&networkId=" + selectedPublicNetworkObj.id),
+ url: createURL("listStorageNetworkIpRange&zoneid=" + args.context.zones[0].id),
dataType: "json",
success: function (json) {
var items = json.liststoragenetworkiprangeresponse.storagenetworkiprange;
@@ -9064,7 +9056,6 @@
$.ajax({
url: createURL('listHosts'),
data: {
- listAll: true,
details: 'min'
},
success: function (json) {
@@ -13091,9 +13082,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
- }: {
- listAll: true
- };
+ }: {};
$.ajax({
url: createURL('listZones'),
@@ -13880,9 +13869,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
- }: {
- listAll: true
- };
+ }: {};
$.ajax({
url: createURL('listZones'),
@@ -15108,9 +15095,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
- }: {
- listAll: true
- };
+ }: {};
$.ajax({
url: createURL('listZones'),
@@ -16439,9 +16424,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
- }: {
- listAll: true
- };
+ }: {};
$.ajax({
url: createURL('listZones'),
@@ -17032,7 +17015,7 @@
select: function (args) {
var data = args.context.providers ?
{ id: args.context.providers[0].id } :
- { listAll: true };
+ {};
$.ajax({
url: createURL('listStorageProviders'),
@@ -18559,9 +18542,7 @@
select: function (args) {
$.ajax({
url: createURL('listZones'),
- data: {
- listAll: true
- },
+ data: {},
success: function (json) {
var zones = json.listzonesresponse.zone ? json.listzonesresponse.zone:[];
@@ -18683,9 +18664,7 @@
select: function (args) {
$.ajax({
url: createURL('listZones'),
- data: {
- listAll: true
- },
+ data: {},
success: function (json) {
var zones = json.listzonesresponse.zone;
@@ -19125,9 +19104,7 @@
select: function (args) {
$.ajax({
url: createURL('listZones'),
- data: {
- listAll: true
- },
+ data: {},
success: function (json) {
var zones = json.listzonesresponse.zone ? json.listzonesresponse.zone:[];