Problem/Motivation
I have two migrations, image
and media
, and media
depends on image
.
If I explicitly request to run both of them in one order it's fine:
$ drush mim image,media --execute-dependencies --update
[notice] Processed 1 item (0 created, 1 updated, 0 failed, 0 ignored) - done with 'image'
[notice] Processed 1 item (0 created, 1 updated, 0 failed, 0 ignored) - done with 'media'
but if I swap the order, the image
migration is run twice:
$ drush mim media,image --execute-dependencies --update
[notice] Processed 1 item (0 created, 1 updated, 0 failed, 0 ignored) - done with 'image'
[notice] Processed 1 item (0 created, 1 updated, 0 failed, 0 ignored) - done with 'media'
[notice] Processed 1 item (0 created, 1 updated, 0 failed, 0 ignored) - done with 'image'
Steps to reproduce
Proposed resolution
The order should not matter when --execute-dependencies
is specified, the resolution should be the same and image
should only be run once.
Remaining tasks
User interface changes
API changes
Data model changes