Change call order of callbacks and SourceMigration
It's more useful to call callbacks before SourceMigration allow to process field value to extract external id if it is complex.
Like
external id is 'views'
xml field contains 'views 7.x-2.x-dev'
callback explode it and return 'views'
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1994232-change_order_callbacks_and_sourceMigration-1.patch | 1.49 KB | igor.ro |
Comments
Comment #1
igor.ro commentedhere is the patch
Comment #2
igor.ro commentedComment #3
mikeryanDepending on the application, it may make more sense to process a given callback before or after sourceMigration (some scenarios may want to be working with the destination values rather than the source values). Your scenario may be more common, but given that it's already been this way as long as we've had callbacks, changing the order would risk break existing code - I would not change it at this time. You can always do the work you would do in the callback in prepareRow() to make sure it happens before sourceMigration.