Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2018 at 13:44 UTC
Updated:
26 Sep 2018 at 09:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyThanks for reporting this!
You’re right, those two aggregations won’t work on empty arrays, just like “First”/“Last” which we’ve already fixed. However, since the other aggregations still make sense (especially “Count”), we shouldn’t use that general check, but instead just add more checks for the individual aggregations.
Patch attached, please test/review!
Comment #3
borisson_Since this was not caught with any of our tests, we should probably add one to it?
Comment #4
drunken monkey*grumble, grumble* … stupid Joris and his stupid tests … *grumble, grumble*
(Tests-only == interdiff.)
Comment #6
borisson_Woo, tests!
Comment #8
drunken monkey:O
Committed. Thanks again, everyone!