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.
Hello,
I am testing the alpha 5 version of facets.
I have facets with the dependency on a search API view.
Before the update, in the config file, the dependency was:
dependencies:
config:
- views.view.search
After updating, I delete the facets and recreate its, and now the dependency is:
dependencies:
config:
- views.view.search__page_1
This view does not exist so if I rebuild my website, it is broken.
I don't know if I would have time to investigate and made a patch.
Thanks for any help.
Comment | File | Size | Author |
---|---|---|---|
#7 | wrong_dependency-2809921-6.patch | 688 bytes | borisson_ |
Comments
Comment #2
GrimreaperComment #3
borisson_This is the current code in SearchApiViews::calculateDependencies, we have to make sure that everything after __ is not in there anymore. I think we can also write a test for that. Bingewatching Luke Cage now, when it finishes - I'll have a look at this.
Comment #4
borisson_This should help, can you confirm?
Comment #7
borisson_Should fix test fails
Comment #8
StryKaizerAfter a long debugging session, it turns out that dependencies are only calculated once you save the config entity.
So above patch works, but you need to
- resave all facet sources
- then resave all facets
in that order...
Comment #9
stephen-cox CreditAttribution: stephen-cox at Agile Collective commentedPatch #7 works. Thanks.
I needed to resave all the facet sources and facets after applying the patch and then export the new config. After that it was possible to import new config.
Comment #11
borisson_Pushed this. Thanks for confirming.
Comment #12
borisson_Comment #13
GrimreaperHello,
Sorry for the delay.
I have just tested the new facets version. Works perfectly. I can rebuild my site from scratch without problem.
Thanks you all.