Problem/Motivation
When you group together migrations by tag, e.g. "media" or "node" or something like that and then try to import them like drush migrate-import --tag=node --execute-dependencies
, it prints the summary information multiple times.
When you are migrating content from 50 sites, it pretty makes the output useless as it can be printing screens full of summary updates before the latest update.
Versions in use
Drush Launcher Version: 0.8.0
Drush Commandline Tool 10.5.0
Drupal 9.2.2
Migrate Tools 5.0 dev version, commit 60bc0c01f1468cd58f7dec1dee6f6170cd5244e8 (6th Dec 2021)
Steps to reproduce
For the first migration, it will print one line like this:
[notice] Processed 312 items (312 created, 0 updated, 0 failed, 0 ignored) - done with 'node_news'
For the second migration, it will print two lines:
[notice] Processed 312 items (312 created, 0 updated, 0 failed, 0 ignored) - done with 'node_news'
[notice] Processed 486 items (485 created, 0 updated, 0 failed, 1 ignored) - done with 'node_event'
For the third migration, it will print three lines:
[notice] Processed 312 items (312 created, 0 updated, 0 failed, 0 ignored) - done with 'node_news'
[notice] Processed 486 items (485 created, 0 updated, 0 failed, 1 ignored) - done with 'node_event'
[notice] Processed 677 items (677 created, 0 updated, 0 failed, 0 ignored) - done with 'node_page'
and so on.
This means when you view the full output, you see this:
[notice] Processed 312 items (312 created, 0 updated, 0 failed, 0 ignored) - done with 'node_news'
[notice] Processed 312 items (312 created, 0 updated, 0 failed, 0 ignored) - done with 'node_news'
[notice] Processed 486 items (485 created, 0 updated, 0 failed, 1 ignored) - done with 'node_event'
[notice] Processed 312 items (312 created, 0 updated, 0 failed, 0 ignored) - done with 'node_news'
[notice] Processed 486 items (485 created, 0 updated, 0 failed, 1 ignored) - done with 'node_event'
[notice] Processed 677 items (677 created, 0 updated, 0 failed, 0 ignored) - done with 'node_page'
Proposed resolution
Can we have it so that it only prints the most recent summary output when each individual migration completes? And not whatever else has gone before on every single update?