- Issue created by @mgaskey
- πΊπΈUnited States kgthompson
I've updated my usage of this to the following for the time being:
$key_value_factory = \Drupal::service('keyvalue'); $time = \Drupal::service('datetime.time'); $translation_manager = \Drupal::service('string_translation'); return new MigrateExecutable($migration, $this->migrationMessagesCapture, $key_value_factory, $time, $translation_manager, $migration_options);
- First commit to issue fork.
- heddn Nicaragua
Can you tell if this makes things easier to upgrade to the 6.1.x branch?
- πΊπΈUnited States m.stenta
Ouch. Ran into this today on a client's site after a simple
composer update
broke all their CSV importers. :-/Would it make sense to simply revert the specific change that caused this from π Fix PHPCS issues Active and put out a quick 6.1.2 release to avoid breaking other sites. Then we can take our time to figure out the *right* way to do it...
I haven't looked closely, but it sounds like it was just a PHPCS fix, so undoing it won't break any new functionality, right?
- heddn Nicaragua
It wouldn't be trivial to back out the full phpcs changes as they were done back in January and the impact wasn't caught until recently. The easier way forward is to see these fixes land quickly.
- πΊπΈUnited States m.stenta
done back in January and the impact wasn't caught until recently
They were committed to the dev branch in January but were included in a stable release ~2 weeks ago, which is why it's just coming up now. Running
composer update
wouldn't pull the changes in until the stable release was made.revert the specific change that caused this
Just to clarify, I wasn't suggesting reverting "the full phpcs changes". Just the one that caused this.
But if the proper fix is almost done then full speed ahead! Didn't mean to distract...
- π³πΏNew Zealand xurizaemon Εtepoti, Aotearoa π
I believe this change also caused breakage on sites using Migrate Source UI, as the 6.0.x function signature is used there. Opened π Migrate Tools v6.1.x compatibility Active .
Quick workaround can be to downgrade to 6.0.x for sites using Migrate Source UI? That worked for 6.0.5 for me.
I see this MR (and issue) currently targets 6.0.x, but introduces a deprecation notice and fixes handling for 6.1.x - should the MR be targeting 6.1.x or 6.0.x?
Suggest that we update "Proposed resolution" so that the intent of this change is clearer?
Thanks for working on this!
- πΊπΈUnited States m.stenta
I believe this change also caused breakage on sites using Migrate Source UI
Correct. We use Migrate Source UI in farmOS β for our CSV importers, and that's what caused the issue for us. But it broke because Migrate Tools introduced a breaking change in a minor release instead of a major release with proper deprecation procedure, as dictated by semantic versioning. Accidents happen. π€·
(Makes me wonder if there are any PHPStan/PHPCS plugins that can be used to check for changes that would break semantic versioning, to catch things like this before they are merged... π€)
Quick workaround can be to downgrade to 6.0.x for sites using Migrate Source UI? That worked for 6.0.5 for me.
This worked as a quick fix for me as well. I'm hoping we can put out a 6.1.2 release soon so I don't need to tag a new release of farmOS that pins Migrate Tools to 6.0.5, though.
- π³πΏNew Zealand xurizaemon Εtepoti, Aotearoa π
Following up on my own question re branch for 6.1.x - FYI @heddn, the 6.1.0 and 6.1.1 releases are from the 6.0.x branch.
(Not meaning to nitpick, just alerting to something which was confusing me when I tried git operations relating to that branch.)
- heddn Nicaragua
Let's merge this and tag a release. If there are any more issues, we can resolve them in a follow-up and yet another release. I'd rather not leave this hanging forever.
- πΊπΈUnited States m.stenta
Thanks @heddn and @mrshowerman for the quick fix on this!!
- πΊπΈUnited States joegraduate Arizona, USA
Doesn't the change record also need to be changed from draft to published?
- πΊπΈUnited States joegraduate Arizona, USA
π Fix PHPCS issues Active also introduced an additional API change to the constructor method signature for
Drupal\migrate_tools\MigrateBatchExecutable
beyond the changes made to its parent class here.MigrateBatchExecutable::construct()
now expects aMigrationPluginManagerInterface
as its sixth parameter and pushes the$options
parameter to the end.Does the change record need to mention this additional change to
Drupal\migrate_tools\MigrateBatchExecutable
as well? - π¨π¦Canada nicoleannevella
I have just updated to 6.1.2 and am seeing this error:
Drupal\migrate_tools\MigrateBatchExecutable::__construct(): Argument #3 ($keyValue) must be of type Drupal\Core\KeyValueStore\KeyValueFactoryInterface, array given
the custom code calling this is:
$executable = new MigrateBatchExecutable($migration, new MigrateMessage(), $options);
Is there something I need to change in the custom code to stop that error? or is there a problem with the migrate_tools module? $options is an array.