When visiting /admin/structure/migrate/manage/:group/migrations/:name/execute, no message is displayed letting the user know that the rollback, stop, or reset operations succeeded.

Screenshot:

No message on rollback

Proposed solution:

Add a status message indicating the result of the operation.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dinarcon created an issue. See original summary.

kevinquillen’s picture

Its true. There is no message at all, unlike the Drush command equivalent.

shkiper’s picture

Status: Active » Needs review
FileSize
2.86 KB

I've added messages using Drush functions as an example. Could someone please check if it looks fine?

shkiper’s picture

FileSize
2.86 KB

Here is updated patch with more understandable messages

heddn’s picture

  1. +++ b/src/Form/MigrationExecuteForm.php
    @@ -214,18 +215,47 @@ class MigrationExecuteForm extends FormBase {
    +            $this->messenger()->addError($this->t('!name migration failed.', ['!name' => $migration_id]));
    

    "Rollback" should be worked into this failure message.

  2. +++ b/src/Form/MigrationExecuteForm.php
    @@ -214,18 +215,47 @@ class MigrationExecuteForm extends FormBase {
    +              $this->messenger()->addWarning($this->t('Migration @id is idle', ['@id' => $migration_id]));
    

    Should this be a normal (not warning) message?

edurenye’s picture

Applied the changes mentioned by @heddn.

heddn’s picture

Status: Needs review » Fixed

Thanks for your contributions!

  • heddn committed 7e4dbd4 on 8.x-5.x authored by edurenye
    Issue #3012731 by shkiper, edurenye, dinarcon, heddn: Provide status...
heddn’s picture

heddn’s picture

Version: 8.x-4.x-dev » 8.x-5.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.