Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Mar 2016 at 17:50 UTC
Updated:
25 Oct 2016 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyThis should be a first step (just produced as a by-product of a different issue).
I'm not sure, though, whether this will be enough to make "is between" working – and we should definitely verify that by adding tests as well. Not too difficult, though, just a few assertions in
ViewsTest.Also interesting would be the discussion in #2624870: Add operators for (NOT) IN and (NOT) BETWEEN, to see whether we want to support "NOT BETWEEN" after all.
Comment #3
drunken monkeyComment #4
dermarioI will try to write some tests for this in the next days.
Comment #5
drunken monkeyThe follow-up to #2624870: Add operators for (NOT) IN and (NOT) BETWEEN got committed, so we should also add a "NOT BETWEEN" integration here.
Comment #6
drunken monkeyI guess I can un-assign you? Or are you still working on this?
Comment #7
dermarioSorry for not replying for so long. I will dig into this in Dublin now.
Comment #8
dermarioIch rerolled/reapplied the change from the patch in #2, tested locally and added simpletests for it.
Comment #9
borisson_@dermario, this looks good!
Comment #10
drunken monkeyThanks a lot, does look pretty good!
A few issues, though:
SearchApiQuery::sanitizeOperator(), we should uppercase "not between", too.SearchApiFilterTrait::opHelper()you removed thereturn, which looks to me as though it would add the conditions twice – once using "or" and once "and" logic – if the operator is "or". That our tests don't catch that is a bit worrisome. I've added tests for that.ViewsTest.The attached patch should fix all that, please test/review!
And, in any case, thanks again to both of you!
Comment #11
drunken monkeyComment #13
dermarioThank you @drunken monkey for your detailed feedback. That will help me - i'll try to be more precise with that. For now i rerolled the patch from #11. Hope it will apply now.
Comment #15
drunken monkeyAh, great. Thanks!
Seems like everyone's OK with this now, so: Committed.
Thanks again, everyone!