Add an option to exclude records from import and rollback

Created on 18 November 2020, almost 4 years ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

In some cases, we need to exclude some already imported record or records from rollback operation as well as from import with --update option. E.g. Some migrated entity has been updated on the destination system and has to be protected from deleting or overwriting during next migration operations.

Proposed resolution

Add a '--exclude-idlist' option for Drush commands migrate-import and migrate-rollback. Make sure it cannot be used together with '--idlist' option. Exclude all records in the list. When 'drush mi --update' is used, make sure the needs_update flag in migration map is reset back for excluded records.

User interface changes

No. Only Drush environment.

API changes

No.

Data model changes

No.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇿Czech Republic martin_klima

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