Seeing as there's a D8 version of this module already, it'd be nice to have support for the Migrate system to upgrade sites from D7.

CommentFileSizeAuthor
#6 3007210-edit.patch610 bytesmuaz7731
#2 3007210.patch590 bytesziomizar

Comments

DamienMcKenna created an issue. See original summary.

ziomizar’s picture

Status: Active » Needs review
StatusFileSize
new590 bytes

Hi @DamienMcKenna ,

I had a look at the migration api to see how it works.
Based on the telephone core module this should be very close to what we need to migrate from d7.

This patch has not been tested and is just a first try/ work in progress

damienmckenna’s picture

Thanks excellent, thanks! I'll try to get time in the next few days to try it out.

Christopher Riley’s picture

Tried the patch but when I try to migrate the content I get the following:

Plugin (weight) instance class "Drupal\weight\Plugin\migrate\field\d7\Weight" does not exist.

Suggestions?

ovidenov’s picture

The namespace of the example in #2 is wrong.
Instead of:

namespace Drupal\weight\Field\Plugin\migrate\field\d7;

use:

namespace Drupal\weight\Plugin\migrate\field\d7;
muaz7731’s picture

StatusFileSize
new610 bytes

tweak patch from #2 with changes from @ovidenov.. I tested it myself.. it works

muaz7731’s picture

Status: Needs review » Reviewed & tested by the community

  • muaz91 authored 6f77461 on 8.x-3.x
    Issue #3007210 by muaz91, ziomizar: Migrate support to upgrade Weight...
ziomizar’s picture

Status: Reviewed & tested by the community » Fixed

Thanks,

Added commit credit to @muaz91 for testing and fix the patch.

Status: Fixed » Closed (fixed)

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