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
I think the fields in the User migration for d6 (d6_user
) are somewhat misleading considering it lists the profile fields (using drush migrate-fields-source
) but are actually not accessible.
Proposed resolution
Remove the fields so it won't be listed as part of the source.
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal-profile_fields-2939336-1.patch | 655 bytes | dsdeiz |
Comments
Comment #2
dsdeiz CreditAttribution: dsdeiz commentedPatch attached.
Comment #3
quietone CreditAttribution: quietone as a volunteer commentedtagging
Comment #4
heddnAre we sure that d6 user profile data isn't available? #2225959: D6 Users and User Profile data isn't migrating and others seem to indicate it is supported.
Comment #5
dsdeiz CreditAttribution: dsdeiz commentedNot really sure, sorry. It doesn't seem to be available when I tested it. Unlike
ProfileFieldValues
which does seem to provide the data for profile fields.Comment #6
quietone CreditAttribution: quietone as a volunteer commented@dsdeiz, thanks for the patch. Yes, the profile fields are not available on d6_user source plugin. Neither the query method or prepareRow add Profile fields to the row, it is only in the fields method that the fields from the profile table are added. So, yes that should be removed.
Retesting the patch.
Comment #7
quietone CreditAttribution: quietone as a volunteer commentedManually tested the patch, with the patch applied the profile fields are not listed and when it is not the profile fields are listed. So, all good to go.
Comment #9
quietone CreditAttribution: quietone as a volunteer commentedRetesting, the failure is unrelated.
Comment #10
quietone CreditAttribution: quietone as a volunteer commentedAssigning to self for rvw
Comment #11
quietone CreditAttribution: quietone as a volunteer commentedThe recent test failure was unrelated and the patch was retested, within the past day, and passed tests.
Back to RTBC
Comment #12
alexpottCommitted and pushed 729b6308bc to 8.6.x and 6609757cc5 to 8.5.x. Thanks!
I think this is a bug - which shouldn't be listing fields that aren't migrated.