Title: [opsview] [10159] rename limit to rows for /runtime/network
- Revision
- 10159
- Author
- aburzynski
- Date
- 2012-09-25 13:31:08 +0100 (Tue, 25 Sep 2012)
Log Message
rename limit to rows for /runtime/network
Modified Paths
Modified: trunk/opsview-core/lib/Runtime/ResultSet/OpsviewTopologyMap.pm
===================================================================
--- trunk/opsview-core/lib/Runtime/ResultSet/OpsviewTopologyMap.pm 2012-09-25 10:26:59 UTC (rev 10158)
+++ trunk/opsview-core/lib/Runtime/ResultSet/OpsviewTopologyMap.pm 2012-09-25 12:31:08 UTC (rev 10159)
@@ -140,7 +140,7 @@
my @list = ();
my $last_object_id = 0;
- my $req_limit = $filters->{limit} ? $filters->{limit} - 1 : 0;
+ my $req_limit = $filters->{rows} ? $filters->{rows} - 1 : 0;
my $limit_reached = -1;
my %host_ids = ();
Modified: trunk/opsview-web/t/tests/Test/Opsview/Web/REST/Runtime.pm
===================================================================
--- trunk/opsview-web/t/tests/Test/Opsview/Web/REST/Runtime.pm 2012-09-25 10:26:59 UTC (rev 10158)
+++ trunk/opsview-web/t/tests/Test/Opsview/Web/REST/Runtime.pm 2012-09-25 12:31:08 UTC (rev 10159)
@@ -387,7 +387,7 @@
subtest 'Filter by parent host group (with limit)' => sub {
plan tests => 2;
- $url = ""
+ $url = ""
$expected = {
rows => 4,
total => 18,
@@ -513,7 +513,7 @@
subtest 'Log in as viewkeywords (with limit)' => sub {
plan tests => 3;
- $url = ""
+ $url = ""
$expected = {
rows => 2,
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins