I don't like manifest files. If you leave out a dependency, you can hose the entire migration set. This patch introduces an --execute-dependencies option to the migrate-import command, which will first execute all the dependencies of the migration(s) being executed.

Comments

mikeryan’s picture

Project: Migrate Plus » Migrate Tools
Component: Drush » Drush commands
stborchert’s picture

I've updated the patch to use the new module namespace.

  • mikeryan committed 5f31011 on 8.x-1.x authored by phenaproxima
    Issue #2506459 by phenaproxima, stBorchert: migrate-import should have...
mikeryan’s picture

Version: » 8.x-1.x-dev
Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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

devarch’s picture

Version: 8.x-1.x-dev » 8.x-4.x-dev
Category: Feature request » Bug report

This option doesn't work anymore.

I'm using drupal 8.6.14 and I have a migration group with 5 migrations defined, containing dependencies defined in the yml files with the migration_dependecies tag.

The only way that I can get the dependencies working is by importing with the --group= option. When running:

drush migrate:import migration_id --execute-dependencies

just the migration_id will be executed, regardless the fact that it has migration dependencies defined.

kari.kaariainen’s picture

Version: 8.x-4.x-dev » 8.x-1.x-dev
Category: Bug report » Feature request