CLOUDSTACK-7482: removed listAll from UI for API call not supporting it, still some left

This commit is contained in:
Pierre-Luc Dion 2014-11-30 21:14:03 -05:00
parent 1fe53411f2
commit 463a1020ba
6 changed files with 21 additions and 61 deletions

View File

@ -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;

View File

@ -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) {

View File

@ -398,8 +398,7 @@
}),
data: {
supportedServices: 'SecurityGroup',
listAll: true,
details: 'min'
listAll: true
},
async: false,
success: function(json) {
@ -5327,9 +5326,7 @@
required: true
},
select: function(args) {
var data = {
listAll: true
};
var data = {};
$.ajax({
url: createURL('listZones'),
data: data,
@ -5387,14 +5384,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) {

View File

@ -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
},

View File

@ -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 : [];

View File

@ -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;
@ -9076,7 +9068,6 @@
$.ajax({
url: createURL('listHosts'),
data: {
listAll: true,
details: 'min'
},
success: function (json) {
@ -13113,9 +13104,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
}: {
listAll: true
};
}: {};
$.ajax({
url: createURL('listZones'),
@ -13902,9 +13891,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
}: {
listAll: true
};
}: {};
$.ajax({
url: createURL('listZones'),
@ -15130,9 +15117,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
}: {
listAll: true
};
}: {};
$.ajax({
url: createURL('listZones'),
@ -16461,9 +16446,7 @@
select: function (args) {
var data = args.context.zones ? {
id: args.context.zones[0].id
}: {
listAll: true
};
}: {};
$.ajax({
url: createURL('listZones'),
@ -17053,7 +17036,7 @@
select: function (args) {
var data = args.context.providers ?
{ id: args.context.providers[0].id } :
{ listAll: true };
{};
$.ajax({
url: createURL('listStorageProviders'),
@ -18580,9 +18563,7 @@
select: function (args) {
$.ajax({
url: createURL('listZones'),
data: {
listAll: true
},
data: {},
success: function (json) {
var zones = json.listzonesresponse.zone ? json.listzonesresponse.zone:[];
@ -18704,9 +18685,7 @@
select: function (args) {
$.ajax({
url: createURL('listZones'),
data: {
listAll: true
},
data: {},
success: function (json) {
var zones = json.listzonesresponse.zone;
@ -19146,9 +19125,7 @@
select: function (args) {
$.ajax({
url: createURL('listZones'),
data: {
listAll: true
},
data: {},
success: function (json) {
var zones = json.listzonesresponse.zone ? json.listzonesresponse.zone:[];