Problem/Motivation
When running a site migration from D7 to D8 it isn't clear why d7_node_title_label might only show a few records processed.
Steps to reproduce
Run the d7_node_title_label migration from a D7 site.
Proposed resolution
Document in d7_node_title_label.yml what the migration does, make it clear that there may only be a few records migrated and that this is ok.
Remaining tasks
Documentation.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal-n3161696-3.patch | 1.02 KB | damienmckenna |
Comments
Comment #2
damienmckennaComment #3
damienmckennaFor consideration.
Comment #4
davidhernandezShould this have a period?
This is a difficult read for me. Would it be better as "node title's field label" ?
"actually" can probably be removed here to shorten up the sentence. It is a bit run on at the moment.
This should be written as a more proper sentence. Beginning with "The" and having an "and" after the second comma.
I otherwise pass no judgement on whether this should be included. I trust Damian's opinion on its necessity.
Comment #5
quietone commented@DamienMcKenna, thanks for making a patch. It really helps to see what docs you would like to see.
By chance I saw this issue. I would prefer this in the migration system component so that migrate maintainers will see it. That is, we review what is in the migration system component. Thinking about that for the moment.
On my first look at the patch I wondered why it was necessary at all, it is clear what the skip_on_empty is doing. Then I realized that I'm quite familiar with reading core pipelines so I should ignore that thought. Plus, adding documentation is almost always a good idea. So, moving on.
Then again, why this skip_on_empty and this migration? What makes this skip_on_empty different from the other 103 instances of skip_on_empty with a method of 'row' in core. Just thinking out loud.
I don't think this is necessary. The first two lines of the migration inform the reader that this is a migration for the Node title label for Drupal 7.
Can we shorten this? Something like, 'Migrate the title_label only for node types where the title_label is not the default value, 'Title'.
And what do think about putting this in the pipeline just before 'label:'? I ask because I can't think of any migration yml that has a documentation block at the top, it is usually it is the pipeline and sometime the source or destination section.
Granted it is implied in the suggested description above, but I don't think an example is necessary.
Comment #6
quietone commentedAdding tag.
Comment #7
damienmckennaThank you both for your reviews!
As quietone points out, this was a prelude to wondering if all migration templates should have included documentation explaining how they work. There's no point in fixing just one file if there are also a hundred more to fix ;-)
I was aiming to follow the standard class format - start with an initial single sentence description, then proceed with additional details in further paragraphs.
I'll work on an improved patch for this file tomorrow.
Comment #14
quietone commentedThe Migrate Drupal Module was approved for removal in #3371229: [Policy] Migrate Drupal and Migrate Drupal UI after Drupal 7 EOL.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3522602: [meta] Tasks to remove Migrate Drupal module and the removal work in #3522602: [meta] Tasks to remove Migrate Drupal module.
Migrate Drupal will not be moved to a contributed project. It will be removed from core after the Drupal 12.x branch is open.
Comment #16
quietone commentedThe Migrate Drupal Module and Migrate Drupal UI are deprecated and they are not in Drupal 12.0.0.
Issues for these modules should now be on the 11.x branch. And the changes are limited to critical and major bug fixes. Other changes are allowed at the discretion of the core Release Managers in consultation with the Migrate subsystem maintainers.