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.
Due to latest changes in Search API
Comment | File | Size | Author |
---|---|---|---|
#8 | non_existent_service-2776711-8.patch | 8.9 KB | borisson_ |
Comments
Comment #2
mkalkbrennercaused by
in SearchApiBaseFacetSource::create()
Comment #3
mkalkbrennerComment #4
mkalkbrennerWithout deeper knowledge of facets code, this patch got the Solr tests to pass again.
Comment #5
mkalkbrennerComment #8
borisson_There also seemed to be a bunch of errors like:
Class 'Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid' not found
, looks like we needed to also depend on taxonomy in our tests. I also updated the view. This should reduce the number of failures by a bunch. There will still be a number of failures because the testbot checks out search api alpha-16.Comment #9
borisson_NR for #8.
Comment #12
mkalkbrennerHave a look at #2777483: Unmet dependencies.
Comment #13
mkalkbrenner#2777483: Unmet dependencies got committed. Does it fix the tests here?
Comment #14
borisson_@mkalkbrenner: I haven't had the time to look at it yet, the testbot is using an old version of search api and I haven't had the time to run tests locally with the latest search_api + facets yet. I'm trying to make time in the evening.
Comment #15
borisson_@mkalkbrenner: we might need to ask @drunken monkey to release a new alpha to make tests pass on testsbots again.
Comment #17
mkalkbrennerI can confirm that the Solr integration tests pass again with the patch from #8 applied. Without that patch they still fail.
To get travis to turn green for solr I suggest a commit here ;-)
Test results without facets patch:
Test results including facets patch:
Are the facet tests passing at your local machine?
Comment #18
borisson_I applied the patch and ran the tests, this is the outcome. I think that #2775963: FacetsSerializer views style plugin depends on optional rest module is the reason for the rest test failures, not yet an idea about why the other tests are failing.
Comment #19
borisson_I also ran the tests without the patch applied, so it does seem to resolve some failures. I can commit this and the rest test and open a followup to fix the rest of the tests if that sounds like a good idea.
Comment #20
borisson_Committed this, hopefully this will help w/ the tests. Keep in mind that the test will fail on d.o until @drunk monkey releases a new alpha, so the infrastructure can use that one.
Comment #22
acidaniel CreditAttribution: acidaniel as a volunteer commentedI also have issues using facets dev version and search api 1.0-alpha16 on installation I get:
Any clue?
Comment #23
borisson_@acidaniel, this patch was to keep up with the -dev version of search api. so facets dev + alpha16 will not work.
Comment #25
Rishi KulshreshthaI'm getting the similar message just after enabling the facets module. I tried both 8.x-1.0-alpha9 and 8.x-1.x-dev but its same on both.
Comment #26
borisson_#2877989: Module depends on a search api service and it shouldn't
Comment #27
Rishi KulshreshthaThanks @borisson_, I just came across a similar thread where you've mentioned the same. But the reason why I posted it here, is I want to use the Facets with Drupal Core Search, as mentioned in the description of the module page and also by Neograph734 at drupal.stackexchange.com as well.
.
Comment #28
borisson_@Rishi Kulshreshtha, yes, we support core search as a provider for facets, please try the patch in #2877989: Module depends on a search api service and it shouldn't, that should resolve your issue. That issue adds a defence against that problem.
If that patch doesn't work for you, please report back in that issue, we will fix it there. That's the same thing I said in the other issue you linked to.
I updated the other issue's title to clarify.
Comment #29
Rishi KulshreshthaThanks once again Joris, I've got another issue now, hence updating the same on the actual thread.