Any possibility that we could add a "Rollback and import" action? This is something I do over and over, and would be very helpful when testing my field mapping.

CommentFileSizeAuthor
#3 rollback-and-import-1212818-3.patch2.55 KBjoelstein

Comments

moshe weitzman’s picture

Category: feature » support
Status: Active » Fixed

see --rollback option on migrate-import drush command.

joelstein’s picture

Status: Fixed » Active

Sorry, I should have been more specific. I was wondering if this could be implemented in the UI?

joelstein’s picture

StatusFileSize
new2.55 KB

Here's a patch which adds a "Rollback and import" operation to the Migrate UI. It first rolls back a Migration, then imports it. If multiple migrations are selected, it properly reverses the Migrations so that they are rolled back in reverse order, and then imported in the proper order.

joelstein’s picture

Status: Active » Needs review
geerlingguy’s picture

Works for me. +1 on having these kinds of things in the UI :)

joelstein’s picture

Title: Rollback and import » Rollback and import via UI

Changing the title to differentiate this from the drush functionality.

mikeryan’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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