Allow the idlist option to work on the primary ID of source plugins containing multiple IDs

Created on 2 May 2023, over 1 year ago
Updated 28 February 2024, 10 months ago

Problem/Motivation

Moving on from Allow the idlist option to work on the primary ID of source plugins containing multiple IDs Needs work and into the 6.0.x branch.

Some migration sources require multiple IDs e.g. node revisions (nid, vid, language).

It'd be nice to be able to specify just the nid and allow it to apply the update against the nid, and if you still require a specific entry, you can specify the full entry including the vid and language.

Steps to reproduce

Running a command such as this should be possible:

# Run a migration against all of node 1's revisions.
drush migrate:import d7_node_complete__page --update --idlist=1

Rather than:

# Run a migration against all of node 1's revisions.
drush migrate:import d7_node_complete__page --update --idlist=1:1:und,1:2:und,1:3:und

Proposed resolution

Provide the functionality. Will most likely require a patch in core as well.

Remaining tasks

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Feature request
Status

Needs review

Version

6.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024