Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
7 Mar 2017 at 04:17 UTC
Updated:
20 May 2017 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tavib47 commentedHi,
I implemented the
opEmpty()method ofSearchApiFilterTraitto change the conditions fromIS NULL NULLandIS NOT NULL NULLto= NULLand<> NULLComment #3
geek-merlinThanks for coding this, code makes sense. It will take some weeks though before i will work on this again and can test it.
Comment #5
drunken monkeyGreat catch, thanks a lot for reporting and fixing!
Your patch looks pretty good, but I think we can solve this even simpler, and more safely (in case code from anywhere else does this) – patch attached.
Also, however we fix this, it means we can remove the existing
opEmpty()overrides for the numeric and date filters.Finally, it would be great to add a test for that to the
ViewsTest. On the other hand, by removing the custom overrides for the numeric and date filters, we'll already have some testing there, so it's not too bad if we don't additionally test this for taxonomy term references, too.Comment #6
borisson_Looks good, I like removing code!
Comment #7
drunken monkeyThanks for reviewing!
Would be great, though, to also get a verification from beluoctavian or axel.rutz (or someone else experiencing this issue) that this indeed resolves the problem properly.
Comment #9
drunken monkeyWell, then I guess we'll just have to hope for the best.
Committed.
Thanks again, everyone!