Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2018 at 15:23 UTC
Updated:
26 Sep 2018 at 09:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hchonovThis patch correctly adds the dependency on the module. Should we do anything about this in
\Drupal\search_api\Entity\Index::onDependencyRemoval()?Comment #3
drunken monkeyOh, yeah, makes sense! Thanks!
Pretty sure the
$key === 'imported'part is site-specific, though, right? Removed in the attached revision.Looks good, otherwise, though. We'll end up with a lot of dependencies on the module the entity type is provided by, though – maybe we should also check for that? (If the datasource is removed, all its fields should be removed automatically as well. (I hope.))
Regarding
onDependencyRemoval(): We just remove fields whose dependencies aren't met anymore, so no need for any changes there, I think.Comment #4
borisson_Yes.
Comment #5
drunken monkeyThanks for reviewing!
However, I think we should check whether this is actually a different module after all. It doesn’t really matter functionally, but I wouldn’t want to see the config export bloated unnecessarily like that.
Also, would still be great to hear from hchonov whether this actually fixes his issue. (Especially with the non-trivial change now.)
Comment #6
hchonovOh, I guess I've uploaded the wrong patch, and therefore there is the "imported" field :).
I am sorry about the confusion.
For consistency however I would add the provider always, not only when it is differs from the entity type provider.
Comment #7
drunken monkeyHm, OK … What’s your opinion on this, Joris?
This discussion aside, does the latest patch work for you?
Comment #8
borisson_I think more information is better, so I'm inclined to agree with @hchonov here.
Comment #10
drunken monkeyDemocracy is a bitch.
But sure, then let’s stick with #3. Committed.
Thanks again!