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.

Comments

penyaskito created an issue. See original summary.

penyaskito’s picture

Status: Active » Needs review
StatusFileSize
new4.35 KB

Added patch.

penyaskito’s picture

We also need to ignore when calculating dependencies in entity references.

penyaskito’s picture

Issue summary: View changes
penyaskito’s picture

Status: Needs review » Postponed

(edited)

penyaskito’s picture

Status: Postponed » Needs review

Sorry, commented on wrong ticket.

penyaskito’s picture

For an example, I just found in Core (via @berdir) than Aggregator's Item entity doesn't define an uuid.

npaudyal001’s picture

Status: Needs review » Reviewed & tested by the community

When the content entity doesn't provide a uuid field definition or uuid returned is empty and when referencing content with empty/no uuid field is defined, the entity references are ignored and the exports aren't seen for the lingotek metadata. This is tested by installing and enabling both content_sync module and lingotek tranlsation module. As a result, no exports are seen for the lingotek metadata.

blanca.esqueda’s picture

Version: 3.0.x-dev » 4.0.x-dev
Component: Code » Export/Import