Skip to content

[BI-1580] BrAPIDAOUtils pagination only fetching first page of results#215

Merged
dmeidlin merged 4 commits intodevelopfrom
feature/BI-1580
Oct 10, 2022
Merged

[BI-1580] BrAPIDAOUtils pagination only fetching first page of results#215
dmeidlin merged 4 commits intodevelopfrom
feature/BI-1580

Conversation

@dmeidlin
Copy link
Contributor

Description

Story: BI-1580
The page size used by bi-api when POSTing a search for a BrAPI variable was hard-coded to a value large enough to ensure that all records for the BrAPI variable would fit in a single page. This work-around ensures that when Breedbase returns a 202 response to the initial POST search the GET search will apply to all records of the BrAPI variable stored in Breedbase.

This change is a work-around until either Breedbase or the BrAPI spec is updated.

A unit test was created to test the search method using both the POST search callback and GET search callback.

Dependencies

none

Testing

run the unit test for BrAPIDAOUtil.search(),
src/test/java/org/breedinginsight/daos/BrAPIDAOUtilUnitTest.java,
and verify all tests pass

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have tested that my code works with both the brapi-java-server and BreedBase
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF: <please include a link to TAF run>

@dmeidlin dmeidlin requested review from a team, HMS17 and timparsons and removed request for a team September 28, 2022 13:44
Copy link
Member

@timparsons timparsons left a comment

Choose a reason for hiding this comment

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

Tested the code by running the application, and pointing my databases to the QA databases. Tested viewing germplasm for the AAA-Test program, and viewing germplasm lists, and downloading a list. All passed.

I agree with Heather's comment, and am approving with the assumption that her comment will be addressed.

@dmeidlin dmeidlin merged commit 369af45 into develop Oct 10, 2022
@dmeidlin dmeidlin deleted the feature/BI-1580 branch October 10, 2022 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants