- π©πͺGermany osopolar π©πͺ GER π
Patch #22 also works for migration development where
drush migrate:rollback {migration-name}
failed with the message "Drush command terminated abnormally" due to redirect response. - π¦πΊAustralia sonnykt Melbourne, Australia
Migrations can be rolled back via UI and I'm afraid that Content Lock still breaks migrations.
IMO, a low-level CRUD hook is not an appropriate solution as it can break many operations using the entity_delete(), eg. bulk operations, cron, queue workers, etc.
- First commit to issue fork.
- Status changed to Needs work
8 months ago 5:53pm 23 March 2024 - π¬π§United Kingdom alexpott πͺπΊπ
The way the redirect is done is wrong. What this issue should be doing is throwing an exception. It should then implement a listener that catches this exception and changes it into a redirect.
The question then becomes what should something like migrate rollback do. Ideally whoever initiates a migrate rollback would break any necessary content locks before doing the rollback. For me this is the same with the views bulk delete. I think if the user has the "break content lock" permission then we should allow the delete to proceed. That would offer a few ways around this and everything would cleaner.
@falc0, please apply the changes to the merge request. We should keep the MR up-to-date, rather than creating new patches.