-
Notifications
You must be signed in to change notification settings - Fork 253
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
Remove redundant limit on number of search results #799
Conversation
@trevorgowing I can't request a review on the PR, but please will you take a look and confirm that this resolves the issue for you? |
b50f86f
to
777bfdd
Compare
@bausmeier Working for me. Nice one. |
Codecov Report
@@ Coverage Diff @@
## master #799 +/- ##
============================================
- Coverage 35.18% 35.16% -0.03%
+ Complexity 315 314 -1
============================================
Files 115 115
Lines 4360 4360
Branches 841 841
============================================
- Hits 1534 1533 -1
Misses 2496 2496
- Partials 330 331 +1
Continue to review full report at Codecov.
|
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 @bausmeier! 👍
please feel free to merge |
Accessing the value of `patientCount` using the not-null assertion operator was resulting in a Null Pointer Exception if the count operation had not yet completed. Limiting the number of search results based on the count was not necessary anyway since the set of filters used for the search was narrower than those used for the count which meant that the count would always be greater than or equal to the number of search results.
777bfdd
to
ca04471
Compare
@jingtang10 Thanks, I've rebased against master so that the branch is up to date to pass the branch protection, but I don't have write access to the repo to be able to merge. |
Fixes #788.
Description
Remove redundant limit on number of search results
Type
Bug fix.
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project./gradlew check
and./gradlew connectedCheck
to test my changes locally