Closed (works as designed)
Project:
Facets
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2016 at 11:02 UTC
Updated:
29 Sep 2016 at 12:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
borisson_am I correct in assuming that you don't have the rest module enabled? That might help in finding out why this fails.
Comment #3
mpotter commentedThis is a new error with 8.2.x. Didn't happen a couple weeks ago. I don't see any dependency listed in facets.info.yml for the Rest module, but enabling Rest did fix the error.
Either the facets.info.yml file needs to be updated, along with an update hook to enable it for existing sites. Or whatever caused Rest to suddenly be needed should be changed.
Comment #4
mikran commentedThis prevents new installations from configuration so here is a patch that adds rest module dependency to the module.
Comment #5
borisson_This is not the correct way, I don't want facets to depend on this. Perhaps we should put the rest stuff in a submodule and have that one depend on rest?
Comment #8
marthinal commentedI agree. We should put the rest stuff in a submodule. AFAIK the only way to avoid the error is enabling the REST module... so yes makes sense.
Comment #9
andypostNo reason in new module, just properly expose dependency.
This is how language module from core works
Comment #10
andypostProper title
Comment #11
andypostupdated IS
PS Tests are broken now so expect failures
Comment #14
andypostTests are failed because of search api #2777483: Unmet dependencies
Comment #15
mpp commentedI had a similar error with an event subscriber (https://www.drupal.org/node/2776235). This problem didn't occur before 8.1.6 after that I had to put extra dependencies to my install profile.
Comment #16
nick_vhBumping to critical as it's why the integration tests are failing:
https://travis-ci.org/mkalkbrenner/search_api_solr/jobs/149402468
Comment #17
andypostI think #9 is a proper patch so called to retest, maybe test should be fixed as well to declare dependency on rest module
Comment #20
borisson_I just committed #2776711: non-existent service "search_api.results_static_cache", so sent this for another retest.
Comment #22
borisson_I sent this for a rest earlier and while the tests are green, it look like this is not sufficient:
Comment #23
joachim commentedThe plugin is used in tests/facets_search_api_dependency/config/install/views.view.search_api_test_views_fulltext.ym.
Does rest module maybe need to be declared in test_dependencies?
Comment #24
borisson_@joachim: it's not just a problem in the tests, it's also a problem for real sites, and we really don't want to have rest as a hard dependency for all facets.
Comment #25
joachim commentedAFAIK, declaring a module in test_dependencies only tells the d.org test runner that the module is needed. It's not an actual dependency.
There's already this in facets.info:
Comment #26
borisson_While that is true, that's not enough. It's not just for the tests that we need to resolve this, but also for the normal installation.
Comment #27
borisson_I did the changing into a submodule.
Comment #28
borisson_The installation on @StryKaizer's machine didn't work without this patch applied. With the patch it did. I forgot to move the test though, so I did that.
I'm confident we can commit this patch so that at least installs work again.
Comment #30
borisson_This should probably maybe resolve the issue.
Comment #31
borisson_The fails that are currently happening on the last patch are because facets are broken. We're trying to resolve that issue. However, there's nothing related to rest anymore.
So I feel that this patch resolves the issue at hand.
Comment #32
borisson_I think this is ready, but I'd like confirmation.
Comment #33
andypostSeparation looks ok, just wondered why not put submodules in to "modules" folder - separate issue
Suppose this needs change record pointing that you need to enable new module
Comment #34
joachim commented> Separation looks ok, just wondered why not put submodules in to "modules" folder - separate issue
Yes please, do make that a separate issue, so the files move is its own commit. It makes a much cleaner git history.
Search API added code and moved files to a modules folder in a single commit, and I was trying to find a change in the git log and it was a painful commit to deal with!
Comment #35
mpp commentedOK to move the module to modules/
rtbc on the error
Comment #36
borisson_I agree with the modules directory, created #2798483: Move submodules into a modules folder.
Comment #37
borisson_I found a related core issue: #2796953: [regression] Plugins extending from classes of uninstalled modules lead to fatal error during discovery
Comment #38
borisson_Committed this, as it resolves at least some of our problems we currently have with facets.
I made sure to credit everyone I discussed this with at drupalcamp Ghent.
Thanks everyone for their help in figuring this one out.
Comment #40
ohmdesbois commentedIt seems that the patch solve the problem.
Thanks to everyone.
Comment #47
borisson_Was already fixed.