It's nice that $this->prepareRow() allows us to cancel (ignore) the current row import. It would be nice if this can happen also at migration level. For example preImport() method may behave in the same way? Returning FALSE if decide to cancel? On a cancelled migration all records may be reported as "ignored".

Use case

I'm importing from CSV files. If the file was not touched at all I want to simplly implement cancellation at migrate level. Course I can save and read the old CSV file modified time by using a Drupal persistent variable (variable_set()/variable_get()) and compare with the actual file mtime and decide to cancel or not the whole migration.

Any thoughts?

Comments

pifagor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)