File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,8 @@ sub _compose_job_overview_search_args ($c) {
395
395
$v -> optional(' limit' , ' not_empty' )-> num(0, undef );
396
396
397
397
# add simple query params to search args
398
- for my $arg (qw( distri version flavor test limit) ) {
398
+ $search_args {limit } = $v -> param(' limit' ) if $v -> is_valid(' limit' );
399
+ for my $arg (qw( distri version flavor test) ) {
399
400
next unless $v -> is_valid($arg );
400
401
my $params = $v -> every_param($arg );
401
402
my $param_count = scalar @$params ;
Original file line number Diff line number Diff line change @@ -150,6 +150,14 @@ subtest 'time parameter' => sub {
150
150
like(get_summary, qr / at the time of.*show latest.*Incomplete: 1$ / s , ' jobs newer than time parameter shown' );
151
151
};
152
152
153
+ subtest ' limit parameter' => sub {
154
+ $t -> get_ok(
155
+ ' /tests/overview?distri=opensuse&version=Factory&limit=2&limit=2' ,
156
+ ' no database error when specifying more than one limit'
157
+ );
158
+ is $t -> tx-> res-> dom-> find(' table.overview td.name' )-> size, 2, ' number of jobs limited' ;
159
+ };
160
+
153
161
# Advanced query parameters can be forwarded
154
162
$form = {distri => ' opensuse' , version => ' 13.1' , result => ' passed' };
155
163
$t -> get_ok(' /tests/overview' => form => $form )-> status_is(200);
You can’t perform that action at this time.
0 commit comments