Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment & Observations import errors via BrAPI #4630

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Conversation

timparsons
Copy link
Contributor

Description

BreedBase was paginating its response to POST requests to the /studies endpoint, so not all created objects would be contained in the response, which is inconsistent with the BrAPI spec. Changed the pagination behavior to return all created objects, see lib/CXGN/BrAPI/v2/Studies.pm.

Checklist

  • Refactoring only
  • Documentation only
  • Fixture update only
  • Bug fix
    • The relevant issue has been closed.
    • Further work is required.
  • New feature
    • Relevant tests have been created and run.
    • Data was added to the fixture
      • Data was added via a patch in /t/data/fixture/patches/.
    • User-Facing Change
      • The user manual in /docs has been updated.
    • Any new Perl has been documented using perldoc.
    • Any new JavaScript has been documented using JSDoc.
    • Any new legacy JavaScript has been moved from /js to /js/source/legacy.

}

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! Will approve when tests pass

…s endpoint, so not all created objects would be contained in the response, which is inconsistent with the BrAPI spec.
@isaak isaak merged commit 2d70c9a into master Oct 12, 2023
1 check passed
@isaak isaak deleted the topic/BI-1797 branch October 12, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants