Requested: a migrate progress plugin to migrate any geofield from Drupal 7 to Drupal 8.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lennartvv created an issue. See original summary.

Fernly’s picture

Priority: Normal » Minor
FileSize
4.21 KB

Patch adds new migrate process plugin to migrate D7 geofields to D8 geofields.

Added some small corrections to the GeofieldLatLon process plugin.

sahaj’s picture

Is this patch working? How to use it?

I tried:

  field_geofield_d8:
    -
      plugin: sub_process
      source: field_geofield_d7
      process:
        plugin: geofield_latlon

But I'm still getting empty field.

Thanks to pointing me the right process or any alternative way to migrate geofield.

Fernly’s picture

The plugin expects 2 source fields, make sure you have those available (in pseudo fields or define them in a custom source plugin):

field_geofield_d8:
  plugin: geofield_latlon
  source:
    - latitude
    - longitude
timwood’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch. This worked perfectly for our D7 to D8 geofield data migration! All we had to do in the yaml config was:

  field_d8_geo_address:
    plugin: geofield_d7d8
    source: field_d7_geo_address
DamienMcKenna’s picture

Is there any way to make the system automatically detect the geofield field type so that the migration could work the same as simpler fields? e.g.:
field_address: field_address

itamair’s picture

@folks ... so, is the #2 ready to commit into dev? green flag on this? I cannot (easily) test and replicate this use case ...
Just confirm this once again, upon the last #6 comment, please.

  • itamair committed eaedb2c on 8.x-1.x authored by lennartvv
    Issue #3003822 by lennartvv: Migrate process plugin for geofield D7 to...
itamair’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

2pha’s picture

Patches relating to @DamienMcKenna's comment are over at:
https://www.drupal.org/project/geofield/issues/2825635