Menu migration should happen before block migration

Created on 19 September 2020, over 4 years ago
Updated 8 March 2024, about 1 year ago

Problem/Motivation

When you run a migration using Migrate Upgrade, which leverages core's Migrate Drupal system, it runs the block migration before the menu migration, resulting in warnings that blocks from the menu system cannot be found, e.g.:

[warning] The "system_menu_block:secondary-menu" was not found

Steps to reproduce

  • Use Migrate Upgrade to prepare a D7 migration to D8 or D9 where menu blocks were displayed in a region.
  • Run the migration.

Proposed resolution

List the d7_menu migration as an optional dependency on d7_block.

Remaining tasks

  • Confirm the problem.
  • Provide a patch with the fix.
  • Test coverage.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Release notes snippet

TBD

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated 3 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

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