Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It has logic to check if the creation of a search query object failed and if so, does not execute the query.
The check is however only in execute(), build() is called before and results in a fatal error if for example the index is disabled.
Comment | File | Size | Author |
---|---|---|---|
search-api-views-query-abort.patch | 600 bytes | Berdir | |
Comments
Comment #1
BerdirAbout those test fails (in HEAD)
We had similar problems in https://www.drupal.org/node/2385503, and we figured out that testbot doesn't find test modules in tests/modules, when we moved our test modules out of there, it didn't have any problems at all.
That is a core/testbot bug that has to be fixed, but it might be a workaround that you want to do for now..
Comment #2
drunken monkeyLooks good, thanks! Committed.
I guess a test for that wouldn't really be possible in our existing
ViewsTest
, we'd probably need a unit test for that … So let's leave that out for now.And thanks a lot for the tip with the testbot failures! I immediately tried it out, over in #2386357-1: Fix testbot failures. Let's hope for the best …
Comment #6
BerdirAww, testbot.