Skip to content

BI-1741 - Genotype Import#244

Merged
timparsons merged 4 commits intodevelopfrom
bug/BI-1741
Mar 16, 2023
Merged

BI-1741 - Genotype Import#244
timparsons merged 4 commits intodevelopfrom
bug/BI-1741

Conversation

@timparsons
Copy link
Member

@timparsons timparsons commented Mar 13, 2023

Description

Story: https://breedinginsight.atlassian.net/browse/BI-1741

Updating how calls are fetched to prevent duplication of calls when there is more than one callset per germplasm

Dependencies

bi-web bug/BI-1741
brapi bug/BI-1741
Mgdb2BrapiV2Impl bug/BI-1741

Testing

Test using instructions from BI-1650

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>

@timparsons timparsons requested review from a team, davedrp and dmeidlin and removed request for a team March 13, 2023 14:24
@github-actions github-actions bot added the bug Something isn't working label Mar 13, 2023
//arbitrary, large value to ensure that in the event that a 202 response is returned, the searchDbId
//stored will refer to all records of the BrAPI variable.
searchBody.pageSize(10000000);
searchBody.pageSize(1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

I can see why 10000000 is excessively large. But is 1000 large enough? Too small of a pageSize could cause a problem, but is there a down side to a pageSize that it too large?

Copy link
Member Author

@timparsons timparsons Mar 15, 2023

Choose a reason for hiding this comment

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

@davedrp Fair question. It could be, but I think part of that would be doing some trial and error. For calls to BreedBase, we had to set this to an excessively large number due to the way in which the POST /search endpoints are implemented. For Gigwa, there's a bug where they limit the page size, but the pagination metadata in the response is still utilizing the page size sent on the request to calculate the total number of pages. Because of this, I changed the page size to 1000 for the searchWithToken method (that method is only utilized by the code interacting with Gigwa at the moment).

I updated this to use the brapi.page-size configuration that's in application.yml so that it's no longer hard coded for the searchWithToken method.

@timparsons timparsons requested a review from davedrp March 15, 2023 19:59
@timparsons timparsons merged commit ac35e41 into develop Mar 16, 2023
@timparsons timparsons deleted the bug/BI-1741 branch March 16, 2023 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants