Write Migrate integration for the global configurations to allow for upgrading from 7.x-1.x.

This should convert the "metatag_defaults" table data to the MetatagDefaults config entities for D8.

Issue fork metatag-2563651

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

The 1.0 release is being bumped up, so the everything else is being put on the back burner for now.

DamienMcKenna’s picture

Postponing until after 1.0.

DamienMcKenna’s picture

Status: Active » Postponed
DamienMcKenna’s picture

Status: Postponed » Active

8.x-1.0 is out, so this is fair game again.

DamienMcKenna’s picture

Issue tags: +migrate-d7-d8
DamienMcKenna’s picture

Title: Migrations: global configurations » Migrations: default configurations
DamienMcKenna’s picture

DamienMcKenna’s picture

Title: Migrations: default configurations » Migrations: Metatag-D7 default configurations
DamienMcKenna’s picture

Work has started on this, see the issue fork for details; I've also attached it as a patch file to avoid accidental loss.

DamienMcKenna’s picture

Some suggestions of things to look at from @alisonjo315 (her comments):

  • d7_view_modes - very simple example of using static_map, no dependencies/connections on other migrations.
  • d7_field has example usage of "constants" -- and an explanatory code comment about "translatable".
  • d7_field_formatter_settings goes one level up I think -- two migration_lookup uses, to the field migration and view mode migration -- and has examples of setting local variables (I can't remember if that's the actual term, sorry if it isn't).

DamienMcKenna’s picture

WIP from last time.

DamienMcKenna’s picture

Everything so far, not sure if anything was changed from #14.

DamienMcKenna’s picture

Status: Active » Needs review

So yes, some changes were made from #14 ;-)

The last submitted patch, 14: metatag-n2563651-14.patch, failed testing. View results

The last submitted patch, 10: metatag-n2563651-10.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 15: metatag-n2563651-15.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

bob.hinrichs’s picture

FYI, I tried this out. I do not know if it is finished enough to try. But the sourceid2 length for the migrate map table created this error:
String data, right truncated: 1406 Data too long for column 'sourceid2' at row 1: INSERT INTO {migrate_map_upgrade_d7_metatag_default} ("source_ids_hash", "sourceid1", "sourceid2", "source_row_status", "rollback_action", "hash") VALUE
S (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5)

DamienMcKenna’s picture

Issue summary: View changes
DamienMcKenna’s picture

Status: Needs work » Needs review
FileSize
633 bytes
6.56 KB

Remove the workaround for D8.

Status: Needs review » Needs work

The last submitted patch, 22: metatag-n2563651-22.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

DamienMcKenna’s picture

Status: Needs review » Needs work

The last submitted patch, 24: metatag-n2563651-24.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

DamienMcKenna’s picture

A suggestion from benjifisher in Slack - use the entity destination plugin, like Menu and Block use.

DamienMcKenna’s picture

Status: Needs work » Needs review
FileSize
33.88 KB

Changing the migration plugin to call them "defaults", and using the entity destination plugin.

DamienMcKenna’s picture

DamienMcKenna’s picture

PHP 7 doesn't allow for multiple return types.

Status: Needs review » Needs work

The last submitted patch, 33: metatag-n2563651-33.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.