Skip to content

BI-2330 - MrBean DeltaBreed Integration#413

Merged
mlm483 merged 13 commits intorelease/1.0from
bug/BI-2330
Oct 28, 2024
Merged

BI-2330 - MrBean DeltaBreed Integration#413
mlm483 merged 13 commits intorelease/1.0from
bug/BI-2330

Conversation

@mlm483
Copy link
Contributor

@mlm483 mlm483 commented Oct 10, 2024

Description

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

The observations/table endpoint was not implemented. This PR implements it as a proxy request to the backing BrAPI service with id translation for the only parameter that Mr. Bean seems to use, studyDbId.

Dependencies

For testing, Breeding Insight's fork of Mr. Bean: https://github.com/Breeding-Insight/MrBeanApp

Testing

  1. Follow this guide on Confluence to get Mr. Bean running locally.
  2. Upload germplasm, ontology and experiment data to a DeltaBreed program. Go to BrAPI > BrAPI Base URL and generate an Access Token.
  3. In Mr. Bean, go to Data > Upload and enter the Base URL and Access Token from DeltaBreed then select Connect.
  4. Select the Crop, Program, Trial then Study you want to load, then select Search to load the observations.
    If the observations are loaded without error, then the observations/table endpoint is working!

You can also try testing the endpoint manually, it's a GET request to /brapi/v2/observations/table.

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>

@github-actions github-actions bot added the bug Something isn't working label Oct 10, 2024
@mlm483 mlm483 changed the base branch from develop to release/1.0 October 10, 2024 14:36
@mlm483 mlm483 marked this pull request as ready for review October 16, 2024 15:25
@mlm483 mlm483 requested review from a team, davedrp and nickpalladino and removed request for a team October 18, 2024 22:33
.observationUnitLevelRelationshipCode(observationUnitLevelRelationshipCode);
}

public SearchRequest constructSearchRequest() {
Copy link
Member

Choose a reason for hiding this comment

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

Was this and the next method just left in for potential future use in case we switch to using cache data or a different proxying method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, both constructSearchRequest and toQueryString were used in different implementations I was experimenting with. They might be useful in the future, but I'm in favor of removing unused code... what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I'd favor removing them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mlm483 mlm483 requested a review from nickpalladino October 22, 2024 20:15
Copy link
Contributor

@davedrp davedrp left a comment

Choose a reason for hiding this comment

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

Passed Test

@mlm483 mlm483 merged commit b42343e into release/1.0 Oct 28, 2024
@mlm483 mlm483 deleted the bug/BI-2330 branch October 28, 2024 21:09
@mlm483 mlm483 restored the bug/BI-2330 branch October 28, 2024 21:09
@mlm483 mlm483 changed the title BI-2330 - MrBean DealtBreed Integration BI-2330 - MrBean DeltaBreed Integration Dec 7, 2025
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