Problem/Motivation
Commit #70d3741 added support for config translations. Unfortunately this breaks an existing installation of the config_translation module is not also enabled.
Steps to reproduce
Configure the module with 2.1.0-rc5 without installing config_translation.
Update to 2.1.0-rc6.
Proposed resolution
List config_translation as a dependency, or properly adjust the code to not make it required.
Remaining tasks
Either make config_translation required, or rework the current code to not require it.
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Comments
Comment #4
pasqualleMade a dirty quickfix to remove the error.
Comment #6
grgcrlsn321 commentedI went ahead and rewrote the code and removed it. This is working good on my end and solves the issue for config_translation being a dependency.
Comment #7
grgcrlsn321 commentedSetting to needs review.
Comment #8
smustgrave commentedGot hit with this today when attempting to upgrade and it was causing the site to crash.
Comment #9
ericgsmith commentedMR36 is a good work around for people impacted by this (the other work around being to enable content translation).
I'm setting this to needs work though as I think the issue summary still stands that the module should either list config_translation as a dependency, or properly adjust the code to not make it required. By properly adjust the code - I think that means check appropriately that it is only adding dependencies to config translation when the module is enabled. MR36 current reverts the feature entirely.
My preference is that config translation remains optional - I'm not sure if there is some prior art from other modules we can take inspiration from here? Seems like initial changes from @pasqualle were heading in that direction.
Comment #10
anybodyThanks, always feel free to ping us, if something like this happens! We're on it.
Comment #12
grevil commentedComment #15
grevil commentedAlright, that's it! Works without config translation again!
Comment #16
anybodyI'll merge this and tag a new release, as soon as it's RTBC'd. Thanks @grevil!
Comment #17
ericgsmith commentedThanks team!
I've tested on 11.x - confirmed that when config_translate is not enabled with MR38 there are no issues or errors enabling / using the module. After enabling config_translate the translations specific routes / UI are present and appear to be functioning as expected - so it looks like no regression here for people with config translate enabled.
Code changes look good - phpstan is complaining "Ternary operator condition is always true." but clearly that is not the case - can ignore that one.
Setting as RTBC
Comment #19
grevil commentedMerged and tagged a new version: https://www.drupal.org/project/entity_extra_field/releases/2.1.0.
Thanks all!