Ignore content entities without uuid

Created on 11 May 2022, over 2 years ago
Updated 25 September 2024, about 2 months ago

Problem/Motivation

Content without uuid are generated on export, but that leads to lots of problems. UUIDs are optional, not mandatory.

Per EntityTypeInterface::getKeys documentation:

* - uuid: (optional) The name of the property that contains the universally
* unique identifier of the entity, which is used to distinctly identify
* an entity across different systems.

Proposed resolution

Ignore when the content entity doesn't provide a uuid field definition or uuid returned is empty.
Ignore entity references referencing content with empty uuid or no uuid field definition.

Remaining tasks

Review patch.

User interface changes

In single export and import forms, entity types not providing a UUID key are not listed.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

RTBC

Version

4.0

Component

Export/Import

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024