-
Notifications
You must be signed in to change notification settings - Fork 1
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
BI-2100 - BrAPI Hackathon Integration of Helium with DeltaBreed #337
Conversation
@Controller("/${micronaut.bi.api.version}/programs/{programId}" + BrapiVersion.BRAPI_V2) | ||
@Secured(SecurityRule.IS_AUTHENTICATED) | ||
public class BrAPIPedigreeController { | ||
private final String referenceSource; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see this being used, except in the constructor). Could it be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that, removed and pushed changes.
* @return A List of BrAPIPedigreeNode objects that match the search criteria. | ||
* @throws ApiException If an error occurs while searching for pedigree nodes. | ||
*/ | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is commenting-out everything down to line-183. Is that the intention? If so, should those lines be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I commented it out but left it here is case we want to add the search endpoints at some point we have some work done. I added a comment in the method documentation stating this and pushed changes.
* @param pedigreeNodes The list of pedigree nodes. | ||
* @param programKey The program key to be removed. | ||
*/ | ||
private void stripProgramKeys(List<BrAPIPedigreeNode> pedigreeNodes, String programKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method is never used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added justification for keeping it in the method documentation and pushed changes.
pedigreeNodes.forEach(node -> { | ||
node.setGermplasmName(Utilities.removeProgramKeyAnyAccession(node.getGermplasmName(), programKey)); | ||
// TODO: pedigree stripping not working right | ||
//node.setPedigreeString(Utilities.removeProgramKeyAnyAccession(node.getPedigreeString(), programKey)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left that commented line in with a TODO to fix in the future as that was what was desired but it wasn't working correctly so needs to be looked into more if we decide to strip the program keys in the future.
Description
Story: https://breedinginsight.atlassian.net/browse/BI-2100?atlOrigin=eyJpIjoiNzcxNDBiMTNmYWM2NGNjMmJiYzlmZGU0NzI3OTI5ZGMiLCJwIjoiaiJ9
Dependencies
Testing
Checklist: