Add ability to view migrate_message table data

Created on 25 June 2019, over 5 years ago
Updated 4 January 2024, 12 months ago

Problem/Motivation

There is a great deal of info about what actually went wrong when you performed a migration, but it is all kept in tables called migrate_message_% with no mechanism in core (UI, command-line prompt, etc.) to extract info. Ideally, there would be a searchable/filterable view of this information.

Proposed resolution

Add a new page at /admin/reports/migration-messages with a summary, and child pages that display the messages in any migrate_message_% table. Add the ability to filter on the migration and the severity.

When the migrate_drupal_ui module is enabled, the summary page has the following additional text:

The upgrade process may log messages about steps that require user action or errors. This page allows you to view these messages
Review the detailed upgrade log.

The second line is a link to /admin/reports/upgrade.

The new pages call the fields() method of the related source plugin. Some of these need to be updated to catch exceptions when the source database has not been configured:

  • MenuLink.php (There are also a lot of uses of the global t() in fields().)
  • Menu.php
  • d7/User.php
  • d6/User.php (in baseFields())
  • d6/ProfileFieldValues.php

Since source plugins from contrib or custom modules may also throw exceptions, this issue catches exceptions in the source plugins and also in the new controller. @quietone and @benjifisher agree that this is the correct approach, but @alexpott expressed skepticism. This is discussed in Comments 54, 60, 86.1, 89.1, 128-130, and 139.

Work-around: There is a drush command to view the messages, drush mmsg migration-name.

Remaining tasks

  1. Use a thin controller, see #42.6 📌 Add ability to view migrate_message table data Fixed . (Follow-up issue?)
  2. (done as part of this issue)

User interface changes

New pages for displaying messages from the migrate_message tables.

Some screenshots are missing the period at the end of this sentence, "This page allows you to view these messages.". It has been fixed in the patch in #116, I just didn't make new screenshots for that.

API changes

None

Data model changes

None

Release notes snippet

When migrating to Drupal 10 the migration messages can be viewed from the UI .

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Migration 

Last updated 3 days ago

Created by

🇨🇦Canada webchick Vancouver 🇨🇦

Live updates comments and jobs are added and updated live.
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