Problem/Motivation

Migrations in Drupal can be performed into every kind of entity types. The module is a great helper to set default values, if the entry is a new one. This solves the challenge we have, that an update migration is always overwriting the value.

As far as I can see there is no need to tie this feature to nodes only. The whole functionality itself can be easily entity agnostic, so support for example taxonomy terms or user migrations as well, because all of them can be reached via the entityTypeManager.

Steps to reproduce

Proposed resolution

Make the module entity agnostic.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

szeidler created an issue. See original summary.

szeidler’s picture

Status: Active » Needs review

Here's a try. Thanks for reviewing.

jnicola made their first commit to this issue’s fork.

jnicola’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, and yeah come to think of it there really isn't a reason it can't be entity agnostic!

Merging.

Glad someone else ran into this same issue and found it helpful. I not only found it maddening to deal with, but when I have explained it to others they just assumed I didn't do something right or didn't know what I was talking about!

jnicola’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.