Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There are a few places in core that use the old Migration plugin, these should be refactored to use the MigrationLookup plugin or the migrate.lookup and migrate.stub services.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#25 | 3004929-25.drupal.patch | 58.48 KB | mikelutz |
#25 | interdiff.3004929.21-25.txt | 1.56 KB | mikelutz |
Comments
Comment #2
mikelutzComment #4
mikelutzI'm reopening this, as I believe #3004927: Create Migration Lookup and Stub services Is close, and I'd like to get started on this.
Comment #5
mikelutzTest patch to remove the deprecation suppression, just to see which tests are failing.
Comment #6
mikelutzOne more with the easy ones out of the way.
Comment #8
mikelutzbumping priority
Comment #9
mikelutzHere's one of the plugins, rest coming.
Comment #11
mikelutzChanging my approach slightly here for a better BC layer. 2 down 3 to go.
Comment #13
mikelutzLast three plugins to test, I expect there will still be cleanup.
Comment #14
mikelutzIterating some more fixes
Comment #16
mikelutzHopefully the last iteration of fixes, before I double check for any documentation cleanup.
Comment #18
mikelutzNope, one more..
Comment #20
heddnI think we should make it clear that we suggest folks use the
migrate.lookup
service now.Nit: 80 characters.
The wording of this comment doesn't make sense to me. We've got too many plugins called 'migration'. Are we meaning the migration lookup service, the plugin, migration base plug or the legacy migration process plugin? This isn't clear.
Comment #21
mikelutzThanks! Here's the feedback addressed.
Comment #22
heddnI applied the patch and see things like:
This means we have hard coded migration names in the lookups. This isn't a good thing as it leads to BC concerns for folks using
migrate_upgrade
. Am I missing something though and that isn't a concern? Traditionally, we've steered away from doing this.Comment #23
mikelutzOne of the five process plugins I adjusted allowed for customizing the migration ids via plugin configuration, and I kept that ability. The remaining ones all had the the migration names hardcoded in the process plugin in already. I don't like it and would like to change it, but it's out of scope for this issue.
I think it needs to be either a tag based lookup, or at least have the migration in the configuration so that migrate_upgrade can adjust it, but that needs another issue.
Comment #24
heddn#3091841: Remove hardcoded plugin IDs from migration process plugins is opened to address #23. As discussed in Slack, that is an existing issue that is outside of scope of this. Let's pass this on to RTBC.
Comment #25
mikelutzFixing a php7.1+ coding style change that phpstorm must have snuck in on me, but leaving RTBC
Comment #26
mikelutzComment #27
alexpottCommitted and pushed efc4dd9796 to 9.0.x and e8b6250313 to 8.9.x. Thanks!
<3
Comment #30
alexpottDiscussed with @catch and we agreed to backport.