- Issue created by @alex.bukach
- Status changed to Needs review
9 months ago 1:34pm 8 May 2024 - 🇨🇾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.
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.
* 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.
* Expose paragraph parent UUID in JSON:API
* Use the UUID to set a proper parent ID.
Needs review
4.0
Code
Here's a patch to add an enhancer for the parent ID field to pass the UUID instead of just an ID.