- Issue created by @ericchew
- ๐ฌ๐งUnited Kingdom peterjlord
Hi there,
I seem to be having this issue as well. After (drupal 9) upgrading from search_api 1.28 to 1.29. I've reverted back to 1.28 until there is a patch. I may try and investigate.
Thanks
- Status changed to Needs review
over 1 year ago 12:51pm 19 April 2023 - last update
over 1 year ago 534 pass - ๐บ๐ธUnited States ericchew
Here is a patch to fix it.
I'm not sure if there is a good way to fix the test so that it catches this issue. It is a Unit Test that mocks the SearchApiQuery object and the test is checking mock objects instead of getting the conditions from the actual query (where the conditions were not present).
https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/tests/src/U...
- last update
over 1 year ago 534 pass - ๐ฆ๐นAustria drunken monkey Vienna, Austria
Thanks for reporting this issue and providing a patch. Also thanks to Mike for pinging me on Slack, spotting the cause and also that the date argument plugin is affected, too. This is indeed quite a bad regression. Even worse that our automated tests didnโt catch it.
However, your proposed solution doesnโt take the new API introduced in ๐ Add a $add_directly parameter to QueryInterface::createConditionGroup() Fixed into account, to which we should definitely still switch. Also, we should also fix the date plugin, while weโre at it.Patch attached, please test/review!
-
drunken monkey โ
committed 9faec459 on 8.x-1.x authored by
ericchew โ
Issue #3354906 by ericchew, drunken monkey, miedward: Fixed regression...
-
drunken monkey โ
committed 9faec459 on 8.x-1.x authored by
ericchew โ
- Status changed to Fixed
over 1 year ago 7:13am 2 May 2023 - ๐ฆ๐นAustria drunken monkey Vienna, Austria
Good to hear! Iโll take that as a confirmation that the patch worked as expected.
Committed. Thanks again, everyone! Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 2:06pm 18 July 2023 - ๐จ๐ญSwitzerland phma Basel, CH
When can we expect a release for this fix?