- last update
over 1 year ago 82 pass, 3 fail The last submitted patch, 12: entity_embed_3116547-11.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 3:08pm 1 August 2023 - 🇬🇧United Kingdom Baysaa
Re-rolled above patch which didn't contain the reference to the TranslatableInterface
- last update
over 1 year ago 82 pass, 2 fail - last update
over 1 year ago 82 pass, 2 fail - 🇨🇦Canada smulvih2 Canada 🍁
I disagree with the change of approach starting in #6. This new approach is causing tests in ContentTranslationTest to fail, since the
data-langcode
value doesn't match the embedded entity's language.I think the approach in #2 was correct, since this actually fixes the data. If we use a filter to fix this, then the data on non-English languages will still use an incorrect
data-langcode
value, but the problem is masked while viewing the content. This would cause issues for anyone needing to manipulate the data programmatically and relying on the language code to be correct. I re-rolled #2 to apply against 1.5.0.I also modified the ContentTranslationTest test as follows:
- Do not create a French translation right after the initial entity creation.
- Save the English node after adding an embedded entity.
- Go to the add translation route, ensure a element exists with the data-langcode set to "fr".
- Delete the embedded entity and continue tests with French embedding.
I'm not very good with tests, so this might need to be adjusted.