At the moment, migrate_cron only runs individual migrations without executing their dependencies. If a migration has unmet dependencies, it will be skipped by MigrateExecutable. The below patch provides an additional checkbox to allow Migrate Cron to run dependencies, similar to the option --execute-dependencies from Migrate Tools.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sonnykt created an issue. See original summary.

sonnykt’s picture

Status: Active » Needs review
StatusFileSize
new4.86 KB
vadimski’s picture

Assigned: Unassigned » vadimski

drurian made their first commit to this issue’s fork.

johnnydarkko’s picture

StatusFileSize
new4.07 KB

Patch no longer applies in 1.4. Rerolled the patch from #2.

liberatr made their first commit to this issue’s fork.

liberatr’s picture

Version: 8.x-1.2 » 8.x-1.x-dev

Added code from #6 to the Fork repository.

liberatr’s picture

johnnydarkko’s picture

StatusFileSize
new4.06 KB

Rerolled patch from #6. $migration->get('requirements') is no longer valid
Using $migration->getRequirements(); instead

prudloff’s picture

StatusFileSize
new4.18 KB
new1.28 KB

The patch in #10 forces the update if track_changes is not defined.
It should also check for high_water_property. We don't want to force the update if this configuration key exists.

NikLP made their first commit to this issue’s fork.

Edit: patch in #11 also applies cleanly to v1.5

somersoft made their first commit to this issue’s fork.

prudloff’s picture

The MR seems to contain unrelated D11 compatibility changes from #3438494: Automated Drupal 11 compatibility fixes for migrate_cron.

prudloff’s picture

Status: Needs review » Needs work

phpcs reports some problems.