Problem/Motivation
The module generates derivatives with a delimiter different from the standard notation used by most Drupal derivatives. Which is __, but the module currently uses _.
This makes it difficult to do migration lookups against base derivatives since the expected mapping ID is different to what was generated by the module.
e.g. a simple derivative ID for the basic_page bundle of the d7_node_complete migration should be migrate_plus.migration.d7_node_complete__page, but it's currently generated as migrate_plus.migration.d7_node_complete_page.
Steps to reproduce
The following migration process should be possible (based off the statistics migration):
process:
nid:
-
plugin: migration_lookup
migration:
# It should be possible to lookup all derivatives of this migration. This currently fails with the default configurations.
- d7_node_complete
source: nid
-
plugin: node_complete_node_lookup
-
plugin: skip_on_empty
method: row
Proposed resolution
Switch the derivative delimiter in \Drupal\migrate_upgrade\MigrateUpgradeDrushRunner::modifyId from _ to __.
Remaining tasks
Provide a patch and MR.
User interface changes
N/A.
API changes
N/A. I believe this should only affect new migrations.
| Comment | File | Size | Author |
|---|
Issue fork migrate_upgrade-3228311
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
codebymikey commentedAttached a copy of the patch from the MR.
Comment #4
codebymikey commentedComment #5
heddnI like the idea here. Let's roll this into an MR and see how tests like it.
Comment #6
codebymikey commentedTests seem to pass with a 4.0.x reroll
Comment #7
heddnThanks for rerolling this.