Problem/Motivation
Upgrading a Drupal 7 site to Drupal 8 should automatically convert data from the Location field to work with the Address module.
Proposed resolution
Provide the necessary plugins to automatically convert Location fields from Drupal 7 to the Address module in Drupal 8.
Remaining tasks
Build the necessary plugins to migrate Location fields.- Add examples to the process plugin description.
- Provide test coverage.
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | address-location_to_address_migration_support-3173870-12.patch | 8.94 KB | mparker17 |
Issue fork address-3173870
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 #2
damienmckennaComment #3
huzookaComment #4
huzookaComment #5
huzookaComment #6
huzookaComment #7
lunk rat commentedHow do you use this patch to import nodes, mapping D7 location data to D8 address fields? Can anyone hint with example migration yml?
Comment #8
matroskeenI applied and tested patch #5 - it works like a charm! Thanks for that 🙌
Assuming you have
field_source_locationlocation field in the source andfield_destination_addressaddress field in the destination site.We will also need to add an example to the plugin description, similar to
Drupal\link\Plugin\migrate\process\FieldLink. (added it to the remaining items)Comment #9
wim leers@Matroskeen: yay, thanks for confirming!
Comment #10
huzookaSince Location's data structure is very complex, we decided to create a standalone module called Location Migration. I accidentally forgot to mention it here.
Comment #11
matroskeenThanks for letting me know. It made me check the source columns more carefully...
Turns out I also have geodata in the source, so I wanted to go with the module instead. However, I noticed it has a dependency on geolocation, but in my project, the destination will be geofield.
So I'll probably go with an extra process plugin similar to
Drupal\location_migration\Plugin\migrate\process\LocationToGeolocation.Anyway, thanks for the great work!
P.S. I'll try to circle back and create a task in the module to remove the dependency on geolocation :)
Comment #12
mparker17Now that #3189605: Declare upgrade status from D6, D7 has been committed; here's the patch from #5 with the upgrade status set properly.
Comment #15
liam morlandCreated a merge request with the pach in #12.
Comment #16
liam morland