Deleting translation deletes paragraphs on other translations when using the stable widget

Created on 11 January 2024, 11 months ago
Updated 7 August 2024, 4 months ago

Problem/Motivation

When using the stable widget, deleting a translation with a non-default language source can delete paragraphs if that translation's source is the non-default language.

Steps to reproduce

- Configure a translatable site with 3 languages (EN, EN-GB, FR)
- Create a translatable paragraph type and add to a content type
- Create a node in EN, with a paragraph
- Create an EN-GB translation and translate the paragraph
- Create a FR translation, but set the source language to EN-GB. Translate the paragraph
- Delete the EN-GB translation. The paragraph will be missing from the FR translation

Proposed resolution

I think it would be possible to prevent this in paragraphs_asymmetric_translation_widgets_entity_translation_delete() but there seems to be a problem with the underlying data model and fixing that should fix this issue as well. See #3412626: Difference between the 'Paragraphs (stable)' widget and the 'Paragraphs Legacy Asymmetric' widget

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States dabblela

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024