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

BI-2372 Create Deltabreed List Controller #434

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft

Conversation

dmeidlin
Copy link
Contributor

@dmeidlin dmeidlin commented Nov 18, 2024

Description

Story: BI-2372

Please include a summary of the change that was made.

Dependencies

Brapi Java Testserver hackathon/delete-germplasm

Testing

Please include any details needed for reviewers to test this code

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>

Comment on lines 228 to 238
private void makeCall(Request brapiRequest) throws ApiException {
OkHttpClient client = new OkHttpClient.Builder()
.readTimeout(5, TimeUnit.MINUTES)
.build();
try {
client.newCall(brapiRequest).execute();
} catch (IOException e) {
log.error("Error calling BrAPI Service", e);
throw new ApiException("Error calling BrAPI Service");
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@dmeidlin could you make makeCall a static method in a utility class or something like that so that all the DAOs that issue similar delete requests can reuse it?

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.

2 participants