-
Notifications
You must be signed in to change notification settings - Fork 21
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
BugFixes #129
BugFixes #129
Conversation
private void checkParameters(String species, String assembly, Integer bufferValue) throws IllegalArgumentException { | ||
private void checkParameters(List<String> geneIds, String species, String assembly, Integer bufferValue) | ||
throws IllegalArgumentException { | ||
long emptyGeneIdCount = geneIds.stream().map(String::isEmpty).filter(value -> value == true).count(); |
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.
what this is checking is if any element is an empty string. I didn't think about this but it would be nice to search only non-empty strings, but my comment was that the endpoint allows to search by an empty list, which this method will allow right now.
so use this line to filter out empty elements, and fail only if the resulting list is empty.
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.
please disallow empty lists
eva-server/src/main/java/uk/ac/ebi/eva/server/ws/GeneWSServerV2.java
Outdated
Show resolved
Hide resolved
…2.java Co-Authored-By: andresfsilva <afsilva04@gmail.com>
The purpose of this PR is to perform bug fixes for v2 APIs