Hello,

Please include a bulkRollback method on the MigrateDestinationOGMembership. When rolling back migrations, this is significantly faster than rolling back each migrated membership individually.

Thanks for OG!
-G

CommentFileSizeAuthor
#1 og-bulkrollback-1811408.patch1.09 KBgdl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gdl’s picture

Patch attached.

The MigrateDestination migration says that a derived class must impliment either bulkRollback() or rollback(), but says nothing about whether it can/should support both.

gdl’s picture

Status: Active » Needs review
danylevskyi’s picture

Status: Needs review » Needs work

Thanks for your patch!
It worked for me, but there is a warning:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in EntityAPIController->load() (line 184 of entity/includes/entity.controller.inc).

danylevskyi’s picture

Status: Needs work » Reviewed & tested by the community

Previous warning was my fault.
Patch works great!
gdl, thanks!

amitaibu’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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