Uh oh!
There was an error while loading. Please reload this page.
Tests for email collaborators pagination - #8710
Conversation
| } | ||
| $searchResult->addResultSet($emailType, $result['wide'], $result['exact']); | ||
| return true; |
There was a problem hiding this comment.
this was a pretty bad assumption, so I had to fix all tests and wrote some where it is actually supposed to be true
There was a problem hiding this comment.
Its the default for anything that cannot (or could not) paginate. I took it over as it was when i refactored it.
blizzz
commented
Mar 7, 2018
no test case where you look for $reachedEnd = true? |
| $result['wide'] = []; | ||
| $userResults['wide'] = []; | ||
| } else { | ||
| $reachedEnd = (count($result['wide']) < $offset + $limit) || |
There was a problem hiding this comment.
Isn't the end reached when both sets don't have further elements?
There was a problem hiding this comment.
yeah should have been &&
also the answer for @blizzz comment. I messed up when inverting the logic from "more results" to "end reached"
db8d664 to
d03663cCompareblizzz
commented
Mar 8, 2018
failing tests |
Signed-off-by: Joas Schilling <coding@schilljs.com>
d03663c to
fe30d63CompareCodecov Report
@@ Coverage Diff @@## master #8710 +/- ##
=============================================
- Coverage 51.86% 34.98% -16.89% - Complexity 25373 25374 +1
=============================================
Files 1607 1607 Lines 95170 95173 +3 Branches 1379 1379 =============================================
- Hits 49362 33297 -16065 - Misses 45808 61876 +16068
|
nickvergessen
commented
Mar 8, 2018
I messed up conflict resolution on rebase. |
Signed-off-by: Joas Schilling <coding@schilljs.com>
fe30d63 to
8820966Comparenickvergessen
commented
Mar 9, 2018
Backport in #8749 |
Followup to #8596