Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BD744200ABE for ; Fri, 20 May 2016 14:29:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC3B0160A0E; Fri, 20 May 2016 12:29:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 183FB1609AF for ; Fri, 20 May 2016 14:29:53 +0200 (CEST) Received: (qmail 20013 invoked by uid 500); 20 May 2016 12:29:53 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 19991 invoked by uid 99); 20 May 2016 12:29:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 12:29:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2B64BDFBA8; Fri, 20 May 2016 12:29:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swill@apache.org To: commits@cloudstack.apache.org Date: Fri, 20 May 2016 12:29:53 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: updated refs/heads/master to a38b17f archived-at: Fri, 20 May 2016 12:29:54 -0000 Repository: cloudstack Updated Branches: refs/heads/master 1dd866068 -> a38b17fff CLOUDSTACK-9377: Fix metrics pagesize issue Fixes listing of clusters and host to list all clusters/hosts by passing pagesize=-1. Signed-off-by: Rohit Yadav Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/da36ffe1 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/da36ffe1 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/da36ffe1 Branch: refs/heads/master Commit: da36ffe1e7e43e74ed167e64bbe41d5b0913b4f5 Parents: e3b38bb Author: Rohit Yadav Authored: Thu May 12 18:14:06 2016 +0530 Committer: Rohit Yadav Committed: Mon May 16 18:19:10 2016 +0530 ---------------------------------------------------------------------- ui/scripts/metrics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/da36ffe1/ui/scripts/metrics.js ---------------------------------------------------------------------- diff --git a/ui/scripts/metrics.js b/ui/scripts/metrics.js index 46d6b53..3ce8470 100644 --- a/ui/scripts/metrics.js +++ b/ui/scripts/metrics.js @@ -153,7 +153,7 @@ $.ajax({ url: createURL('listClusters'), - data: {zoneid: zone.id}, + data: {zoneid: zone.id, pagesize: -1}, success: function(json) { if (json && json.listclustersresponse && json.listclustersresponse.cluster && json.listclustersresponse.count) { items[idx].clusters += parseInt(json.listclustersresponse.count); @@ -163,7 +163,7 @@ } $.ajax({ url: createURL('listHosts'), - data: {clusterid: cluster.id, type: 'routing'}, + data: {clusterid: cluster.id, type: 'routing', pagesize: -1}, success: function(json) { if (json && json.listhostsresponse && json.listhostsresponse.host && json.listhostsresponse.count) { items[idx].hosts += parseInt(json.listhostsresponse.count); @@ -415,7 +415,7 @@ $.ajax({ url: createURL('listHosts'), - data: {clusterid: cluster.id, type: 'routing'}, + data: {clusterid: cluster.id, type: 'routing', pagesize: -1}, success: function(json) { if (json && json.listhostsresponse && json.listhostsresponse.host && json.listhostsresponse.count) { items[idx].hosts += parseInt(json.listhostsresponse.count);