fixe user company bug

This commit is contained in:
2019-04-12 01:06:54 +02:00
parent f9b8effe96
commit d86a4a061a
21 changed files with 207 additions and 54 deletions

View File

@@ -32,7 +32,7 @@ process:
source: parent
-
plugin: migration_lookup
migration: d7_taxonomy_term_companie
migration: d7_taxonomy_term_company
parent:
plugin: default_value
default_value: 0

View File

@@ -6,19 +6,14 @@ migration_tags:
- Drupal 7
- Content
- Materio
class: Drupal\user\Plugin\migrate\User
source:
plugin: d7_user
plugin: d7_users
destination:
plugin: entity:user
process:
# If you are using this file to build a custom migration consider removing
# the uid field to allow incremental migrations.
# uid: uid
name: name
pass: pass
mail:
@@ -53,10 +48,6 @@ process:
source: language
fallback_to_site_default: true
init: init
# roles:
# plugin: migration_lookup
# migration: d7_user_role
# source: roles
roles:
plugin: static_map
source: roles
@@ -76,29 +67,43 @@ process:
12: "translator"
13: "admin_showroom"
user_picture:
-
plugin: default_value
source: picture
default_value: null
-
plugin: migration_lookup
migration: d7_file
# TODO : a vérifier
# jai fait un test de recherche sur ce tableau user (recherche par email "@materio.com"), les réponses sont pour linstant aberrantes (kevin travaille par exemple chez Onip Peinture)
field_company:
plugin: migration_lookup
migration: d7_taxonomy_term_company
source: field_company
no_stub: true
# field_company:
# -
# plugin: sub_process
# source: field_company
# process:
# target_id:
# plugin: migration_lookup
# migration: d7_taxonomy_term_company
# source: tid
# no_stub: true
# field_company:
# plugin: default_value
# default_value: 2673
field_showroom:
plugin: migration_lookup
migration: d7_taxonomy_term_showroom
no_stub: true
source: field_showroom
field_memo: field_memo
# user_picture:
# -
# plugin: default_value
# source: picture
# default_value: null
# -
# plugin: migration_lookup
# migration: d7_file
# no_stub: true
migration_dependencies:
required:
- d7_allpublicfiles