Skip to content

Conversation

MegaChriz
Copy link
Collaborator

Problem/Motivation

For debugging a migrations, it is sometimes very useful to see what your source like or what kind of effect your process plugins have.

This code displays a preview of a migration.

Proposed solution

This code extends the MigrateExecutable from Migrate Tools. It tries to ignore migration statuses and prevents stuff from being saved.

The results are displayed in two tables:

  1. The first one represents the source.
  2. The second one represents the processed data, thus after process plugins are applied.

This is work in progress. The UI could be improved a lot and it should perhaps be designed similar to the UI of Feeds Import Preview: https://www.drupal.org/project/feedspreview/

The current code doesn't depend on Feeds Migrate code. It doesn't event integrate with it. It's more an addition to Migrate Tools, so perhaps when the code gets mature, it could be added to Migrate Tools. Hopefully in a way that Feeds Migrate can just use MigratePreviewExecutable.

Example/QA

Add a 'standard' migration, using Migrate Plus. Click on a migration to see its information and click the "Preview" tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant