Skip to content

Commit

Permalink
BreedBase was paginating its response to POST requests to the /studie…
Browse files Browse the repository at this point in the history
…s endpoint, so not all created objects would be contained in the response, which is inconsistent with the BrAPI spec.
  • Loading branch information
timparsons committed Aug 31, 2023
1 parent db87e84 commit 70548a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/CXGN/BrAPI/v2/Studies.pm
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,13 @@ sub store {
return { error => $references->{'error'} };
}
}


}

my $data_out;
my $total_count=0;
# This is servicing a POST request, make sure pagination returns all created objects.
$page_size = scalar(@study_dbids);
$page = 0;
if (scalar(@study_dbids)>0){
my $dbh = $c->dbc->dbh();
my $bs = CXGN::BreederSearch->new( { dbh=>$dbh, dbname=>$c->config->{dbname}, } );
Expand Down

0 comments on commit 70548a3

Please sign in to comment.