Provide an option to skip (opt-out) forcibly created new revision of the referenced entity (so that migrations won't lead to unnecessary saved revisions)

Created on 10 June 2021, over 3 years ago
Updated 8 March 2024, 9 months ago

Problem/Motivation

Right now, the Entity Reference revision field item creates a new revision from the referenced entity whenever the host entity being saved is a new revision. This is fine in 99% of the situations, but if you migrate content entity revisions, this behaviour creates new revisions from the entities referenced by an entity_reference_revisions field.

Steps to reproduce

Execute the test at #2977853-33: [PP-4] Multifield to Paragraphs migration .

Proposed resolution

Check the value of an unmapped (so unsaved) field property, e.g. needs_resave (or skip_new_revision). If it is explicitly set to FALSE (or TRUE), then don't create a new revision.

Remaining tasks

@tbd

User interface changes

Nothing

API changes

@tbd

Data model changes

Nothing.

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇭🇺Hungary huzooka Hungary 🇭🇺🇪🇺

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

Merge Requests

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