Problem/Motivation

The fix in #3203014: BaseFieldOverride cause inconsistencies during export (beta1) skips read-only fields during export. This causes data loss for crop entities where essential fields (x.value, y.value) are marked as read-only.

Steps to reproduce

1. Install drupal/crop and drupal/focal_point
2. Create content with images and set focal points
3. Export content using default_content
4. Import to fresh site
5. Focal point coordinates are lost - images crop at center

Comments

leksat created an issue. See original summary.

leksat’s picture

StatusFileSize
new0 bytes

I have no good idea how to solve this. Currently using this workaround.

UPD: it's in the next comment

leksat’s picture

StatusFileSize
new1.26 KB
david.muffley’s picture

Title: Read-only field skip in 2.0.0-beta1 causes data loss for crop entities » Read-only field skip in 2.0.0-beta1 causes data loss for entities

It also now removes a lot of group_content/group_relationship entity data, specifically gid, label, plugin_id, and group_type. Without gid and plugin_id the entity isn't wired up properly.

Here's an example diff from 2.0.0-alpha3 -> 2.0.0-beta1.

@@ -5,24 +5,11 @@ _meta:
   bundle: group_content_type_a0123bf0f12bf
   default_langcode: en
   depends:
-    883ee571-e1ca-44f5-9de8-87cbe5398d96: group
     18ecc4fd-0aef-42fc-a2a1-f1c5efaed77b: node
 default:
-  gid:
-    -
-      entity: 883ee571-e1ca-44f5-9de8-87cbe5398d96
   entity_id:
     -
       entity: 18ecc4fd-0aef-42fc-a2a1-f1c5efaed77b
-  label:
-    -
-      value: 'Content Label'
   created:
     -
       value: 1724266915
-  plugin_id:
-    -
-      value: 'group_node:content_type_1'
-  group_type:
-    -
-      target_id: group_type_1