29
Drupal 8 Migrations by Example @ Twin Cities Drupal Camp 2018 http://bit.ly/migrations-by-example

Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn 2. Migrate All the Things presentation by

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Drupal 8 Migrations by Example@ Twin Cities Drupal Camp 2018http://bit.ly/migrations-by-example

Page 2: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Mauricio Dinarte

@dinarcon

[email protected]

https://www.drupal.org/u/dinarcon

Page 3: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Nicaragua

Page 4: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

USA | Nicaragua | México | Germany

Page 5: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Coming soon! ¡Muy pronto! Prochainement!

www.understanddrupal.com

Page 6: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Follow along

http://bit.ly/migrations-by-example

http://bit.ly/migrations-by-example-feedback

https://pad.riseup.net/p/migrate-lab-keep

https://gist.github.com/dinarcon/72922e8cf634ada47483117ffa659d76

https://github.com/dinarcon/mbe_professors

Page 7: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

W ?

Page 8: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

What we will cover

● Migrating data into nodes, files, and paragraphs.● Migrating data into taxonomy, date, image, file, and

address fields.● Migrating data from JSON and CSV files.● Running migrations from the UI and the terminal.

Page 9: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

What we will NOT cover

● Migrating data into multi value fields.● Migrating multilingual data.● Migrating data from previous versions of Drupal.● Writing custom migration plugins.

Page 10: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by
Page 11: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

ExtractTransformLoad

Page 12: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Extract (Source plugin)

Page 13: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Transform (Process plugin)

Page 14: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Load (Destination plugin)

Page 15: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by
Page 16: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

SQL database

nodes

CSV file

Google Sheet

JSON file

XML file

static map

migration_lookupiterator

default_value

concat

getusers

files

paragraphs

Page 17: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by
Page 18: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

SQL database nodes

CSV file

Google Sheet

JSON file

XML file

migration_lookup

iterator

default_value

concat

get

users

files

images

paragraphs

SOURCE PROCESS DESTINATION

Page 19: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

SOURCE

PROCESS

DESTINATION

Page 20: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by
Page 21: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Live demo (what can go wrong?)

https://gist.github.com/dinarcon/72922e8cf634ada47483117ffa659d76 https://github.com/dinarcon/mbe_professors

Page 22: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

"This is impossible to understand for people

that are not migrate maintainers."

Adam Globus-Hoenich@phenaproxima

Migrate maintainer

Page 23: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Modules Migrate Tools drupal.org/project/migrate_tools

Migrate Plusdrupal.org/project/migrate_plus

Page 24: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

More modules Migrate Source CSVdrupal.org/project/migrate_source_csv

Migrate Spreadsheetdrupal.org/project/migrate_spreadsheetSupports .ods, .xls, .xlsx, .csv

Page 25: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Resources1. Building a custom migration in Drupal 8 blog series by Tess Flynn

https://deninet.com/tags/drupal-migration 2. Migrate All the Things presentation by Dave Vasilevsky

https://www.youtube.com/watch?v=hTeijxQPMnI 3. Evolving Web tutorials https://evolvingweb.ca/tags/migrate 4. MTech tutorials https://www.mtech-llc.com/blog 5. Migrate with the Maintainers Lab

events.drupal.org/baltimore2017/sessions/migrate-maintainers-lab

Page 26: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Thanks● Lucas Hedding (heddn)● Adam Globus-Hoenich (phenaproxima)● All migrate contributors

Page 27: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by
Page 28: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by
Page 29: Drupal 8 Migrations by Example - 2018.badcamp.org · Resources 1. Building a custom migration in Drupal 8 blog series by Tess Flynn  2. Migrate All the Things presentation by

Please Provide Feedback@dinarcon | #D8MigrateExample | [email protected]

http://bit.ly/migrations-by-examplehttp://bit.ly/migrations-by-example-feedback