Paragraphs parent IDs are wrong

Created on 7 May 2024, about 1 year ago

Problem/Motivation

When pulling paragraphs, their "parent_id" attribute is equal to the value from the source site while it can be different on the target site.

Steps to reproduce

* Create a node type with a paragraph field.
* Create a new node of that type on source and target sites (to make sure the ID of a newly pulled node differs from one on the source site).
* Pull the node from source to target site using Entity Share.
* Check the "parent_id" of the pulled paragraph and see it is equal to one on the source site and generally not equal to the actual parent on the target site.

Proposed resolution

* Expose paragraph parent UUID in JSON:API
* Use the UUID to set a proper parent ID.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇨🇾Cyprus alex.bukach

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

Comments & Activities

  • Issue created by @alex.bukach
  • Status changed to Needs review about 1 year ago
  • 🇨🇾Cyprus alex.bukach

    Here's a patch to add an enhancer for the parent ID field to pass the UUID instead of just an ID.

  • Status changed to Postponed: needs info about 1 month ago
  • 🇬🇧United Kingdom joachim

    I'm not able to reproduce this.

    I've got paragraphs that I've pulled in from a node, and the parent_id value is different on the source and the destination.

    I assume that Paragraphs module is overwriting this when the paragraph entity is saved?

Production build 0.71.5 2024