created user profil customer migration

This commit is contained in:
Bachir Soussi Chiadmi 2021-07-15 18:00:42 +02:00
parent 76f671a9d3
commit 83b4c260bd
37 changed files with 4167 additions and 93 deletions

View File

@ -182,6 +182,12 @@ module:
strings_i18n_json_export: 0
structure_sync: 0
synonyms: 0
synonyms_autocomplete: 0
synonyms_list_field: 0
synonyms_select: 0
synonyms_views_argument_validator: 0
synonyms_views_field: 0
synonyms_views_filter: 0
syslog: 0
system: 0
taxonomy: 0

View File

@ -23,7 +23,7 @@ bundles:
rtf: maybe
rta: inc
enabled: true
anonymizer: ''
anonymizer: email_anonymizer
notes: ''
relationship: 0
sars_filename: ''

View File

@ -1,4 +1,4 @@
uuid: dc56e67a-4372-412e-8bba-18c623f22119
uuid: 35406e7f-b9ca-4a27-8730-ffdafc3bd897
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 89876565-2aff-4ee8-b911-d0dc90115044
uuid: 07754b1c-1ce9-4395-b445-52484677fd77
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: e174ba08-016f-4eed-98e0-83a840fe7de3
uuid: 7165e9a0-98d6-4655-854e-7597a979d395
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 9355d3f2-6ba9-4556-b23c-6f16a957a721
uuid: 9237cd40-dcf6-4a20-a0ed-2f65ff95779d
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: cecfab1b-41c8-42f0-aa36-5277e9c6d792
uuid: 6612e657-4f64-40e1-8591-293dddb08cd3
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: b3aeafeb-b607-403f-835c-5ed27df20521
uuid: b9ed8c19-1a6f-49f0-8a50-2ab147911f5b
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: d53a192b-b55a-4f92-8d35-47699914de14
uuid: 22ace0c9-c4cb-46d0-9c94-9198430091bb
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 5040a067-947f-4c18-8ee0-64e3f2737167
uuid: d8149f6f-aeec-46cd-9eb1-79a906e3c42e
langcode: en
status: true
dependencies:

View File

@ -1,4 +1,4 @@
uuid: 0cee8f1b-5640-4bf7-8b14-c8e67376c8b9
uuid: d55ad36d-4c3e-4b0b-b46e-16ce8c0c9e3a
langcode: en
status: true
dependencies:

View File

@ -1,4 +1,4 @@
uuid: 36e781b5-fffe-49eb-a8c5-b6574e8ea464
uuid: 65c9219c-ff6e-48c1-8edf-cefa85ff722c
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 805f2fcd-3109-4f9e-9c25-2f577d38a4c9
uuid: 8826255f-8105-4e33-ad41-2f012a7f666c
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 71bb63f1-e6bf-42dc-aa09-305be7533901
uuid: 1b656b5e-984d-417a-b499-93694ba57824
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: d2b12c96-7a79-4534-a988-28be5828951b
uuid: 8585beee-de2f-455e-a5b7-9f87faabc12f
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: dc6ea56a-d1a9-40a3-8fc0-d07a813c5361
uuid: 1ea1ed08-74d8-4c1d-a2a4-e6b66d55a5cb
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 455074a6-7256-4424-9306-44be4491ca6c
uuid: c173dfca-2339-42e4-9084-b43fc8195601
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: 2e55cb47-aafc-4e2b-96ff-dcc3e3db6893
uuid: 639535d6-8438-46f1-b3d1-e418be168295
langcode: en
status: true
dependencies:

View File

@ -1,4 +1,4 @@
uuid: 7eab92f2-f564-4717-aab3-9a74732034c4
uuid: 31329805-ff63-4a85-bbc6-71d7ce63b453
langcode: en
status: true
dependencies:

View File

@ -0,0 +1,70 @@
uuid: efadb1c8-1ff5-4a7c-9a1f-2b9c269a8362
langcode: en
status: true
dependencies:
enforced:
module:
- migrate_plus
- migrate_tools
- profile
id: d7_user_profile_customer
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags:
- 'Drupal 7'
- Content
- Materio
migration_group: d7_materio
label: 'D7 User Customer Profile'
source:
plugin: d7_user_profile
batch_size: 1000
high_water_property:
name: changed
alias: p
process:
type:
-
plugin: skip_on_value
equals: true
source: type
method: row
value:
- contact_operationnel
-
plugin: static_map
source: type
map:
adherent: customer
uid:
plugin: migration_lookup
migration: d7_users
source: uid
phone: field_private_phone
address:
plugin: iterator
source: field_adresse
process:
country_code: country
administrative_area: administrative_area
locality: locality
dependent_locality: dependent_locality
postal_code: postal_code
address_line1: thoroughfare
organization: organisation_name
given_name: first_name
family_name: last_name
tax_number:
plugin: iterator
source: field_vat_number_intra_ce
process:
value: value
type:
plugin: default_value
default_value: EU
destination:
plugin: 'entity:profile'
migration_dependencies:
required:
- d7_users

View File

@ -1,4 +1,4 @@
uuid: 31b658d4-e019-468f-be15-f1704a3bc2f9
uuid: 73a8209b-f751-4bcc-90ad-aabbfb463fd8
langcode: en
status: true
dependencies: { }

View File

@ -1,4 +1,4 @@
uuid: c5fed484-531d-415a-a473-d177eaef5f11
uuid: dd6f01ed-a2ee-4114-bf01-5b8a34f79016
langcode: en
status: true
dependencies:

View File

@ -0,0 +1,11 @@
uuid: 9e45edd0-9ef8-4fde-9ba0-f60babd09c27
langcode: fr
status: true
dependencies:
config:
- field.field.taxonomy_term.tags.field_synonyms
- taxonomy.vocabulary.tags
id: field.taxonomy_term.tags.field_synonyms
provider_plugin: 'field:taxonomy_term.tags.field_synonyms'
base_provider_plugin: field
provider_configuration: { }

View File

@ -0,0 +1,11 @@
uuid: ae366f40-b2c5-42fd-9e04-69f77749d86b
langcode: fr
status: true
dependencies:
config:
- field.field.taxonomy_term.thesaurus.field_synonyms
- taxonomy.vocabulary.thesaurus
id: field.taxonomy_term.thesaurus.field_synonyms
provider_plugin: 'field:taxonomy_term.thesaurus.field_synonyms'
base_provider_plugin: field
provider_configuration: { }

View File

@ -0,0 +1,2 @@
status: true
wording: null

View File

@ -0,0 +1,3 @@
default_wording: '@synonym is the @field_label of @entity_label'
_core:
default_config_hash: 2mOM123uBFCay1DiJkWLIG3i3rDKj4ReoaATylih-5Y

View File

@ -0,0 +1,3 @@
include_entity_label: false
_core:
default_config_hash: UE-3k-p-BQKttOtuWn5U9f3MZzVY9xt-AKXQjzV6P_c

View File

@ -0,0 +1,2 @@
status: true
wording: null

View File

@ -0,0 +1,3 @@
default_wording: '@synonym is the @field_label of @entity_label'
_core:
default_config_hash: 2mOM123uBFCay1DiJkWLIG3i3rDKj4ReoaATylih-5Y

View File

@ -20,7 +20,6 @@ permissions:
- 'update own commerce_license'
- 'update own member profile'
- 'use jsonrpc services'
- 'view materio_order_type commerce_order'
- 'view own commerce_license'
- 'view own flag lists'
- 'view own member profile'

View File

@ -23,6 +23,7 @@ permissions:
- 'access synonyms entity autocomplete'
- 'access toolbar'
- 'access user profiles'
- 'add commerce_log commerce_order admin comment'
- 'add flag lists'
- 'administer commerce_license'
- 'administer commerce_order'
@ -43,12 +44,15 @@ permissions:
- 'cancel any commerce_subscription'
- 'change own username'
- 'create article content'
- 'create commerce_billing_schedule'
- 'create commerce_license'
- 'create commerce_promotion'
- 'create commerce_subscription'
- 'create content translations'
- 'create corpus_documents workflow_transition'
- 'create customer profile'
- 'create defalut workflow_transition'
- 'create default commerce_order'
- 'create default workflow_transition'
- 'create enregistrement content'
- 'create evenement content'
@ -57,7 +61,6 @@ permissions:
- 'create field_showroom'
- 'create generique workflow_transition'
- 'create materiau content'
- 'create materio_order_type commerce_order'
- 'create migration workflow_transition'
- 'create note content'
- 'create page content'
@ -80,6 +83,7 @@ permissions:
- 'delete any fil content'
- 'delete any page content'
- 'delete commerce_promotion'
- 'delete default commerce_order'
- 'delete terms in collectionneurs'
- 'delete terms in entrees'
- 'delete terms in genres'
@ -178,7 +182,7 @@ permissions:
- 'update any online commerce_store'
- 'update commerce_promotion'
- 'update content translations'
- 'update materio_order_type commerce_order'
- 'update default commerce_order'
- 'use jsonrpc services'
- 'use text format full_html'
- 'use text format wysiwyg'
@ -186,6 +190,7 @@ permissions:
- 'view any commerce_license'
- 'view any commerce_subscription'
- 'view any contact_company profile'
- 'view any customer profile'
- 'view any member profile'
- 'view article revisions'
- 'view autre_son revisions'
@ -193,6 +198,7 @@ permissions:
- 'view commerce_order'
- 'view commerce_promotion'
- 'view contact_company profile'
- 'view default commerce_order'
- 'view enregistrement revisions'
- 'view evenement revisions'
- 'view field_company'
@ -200,7 +206,6 @@ permissions:
- 'view field_showroom'
- 'view frontpage revisions'
- 'view materiau revisions'
- 'view materio_order_type commerce_order'
- 'view member profile'
- 'view online commerce_store'
- 'view own flag lists'

View File

@ -30,6 +30,7 @@ permissions:
- 'subscribe to newsletters'
- 'use text format wysiwyg'
- 'view commerce_product'
- 'view materio_product_type commerce_product'
- 'view privacy_policy config page entity'
- 'view published fil entities'
- 'view search api pages'

View File

@ -35,10 +35,13 @@ permissions:
- 'restful get config_rest_resource'
- 'restful post user_registration'
- 'subscribe to newsletters'
- 'update own customer profile'
- 'use chutier'
- 'use text format wysiwyg'
- 'view commerce_product'
- 'view materio_product_type commerce_product'
- 'view own commerce_order'
- 'view own customer profile'
- 'view own profile'
- 'view own unpublished chutier entities'
- 'view own unpublished composition entities'

File diff suppressed because it is too large Load Diff

View File

@ -59,7 +59,7 @@ sleep 5
echo " "
echo "Migrating companies"
drush mim d7_taxonomy_term_company --update --feedback="100"
drush mim d7_taxonomy_term_company --update --feedback="1000"
sleep 5
echo " "
@ -73,6 +73,8 @@ drush mim d7_users --update --feedback="1000"
echo " "
drush mim d7_user_profile --feedback="1000"
echo " "
drush mim d7_user_profile_customer --feedback="1000"
echo " "
drush mim d7_uc_roles_license --update --feedback="200"
sleep 5

View File

@ -0,0 +1,96 @@
id: d7_user_profile_customer
label: D7 User Customer Profile
migration_group: d7_materio
audit: true
migration_tags:
- Drupal 7
- Content
- Materio
source:
plugin: d7_user_profile
batch_size: 1000
high_water_property:
name: changed
alias: p
destination:
plugin: entity:profile
process:
# id: pid
# label: label
type:
-
plugin: skip_on_value
equals: true
source: type
method: row
value:
- contact_operationnel
-
plugin: static_map
source: type
map:
adherent: customer
uid:
plugin: migration_lookup
migration: d7_users
source: uid
phone: field_private_phone
address:
plugin: iterator
source: field_adresse
process:
# langcode:
country_code: country
administrative_area: administrative_area
locality: locality
dependent_locality: dependent_locality
postal_code: postal_code
# sorting_code:
address_line1: thoroughfare
# address_line2:
organization: organisation_name
given_name: first_name
# additional_name:
family_name: last_name
# SOURCES
# sub_administrative_area
# premise
# sub_premise
# name_line
# data
# body:
# plugin: iterator
# source: field_description
# process:
# value: value
# format:
# plugin: default_value
# default_value: wysiwyg
tax_number:
plugin: iterator
source: field_vat_number_intra_ce
process:
value: value
type:
plugin: default_value
default_value: EU
migration_dependencies:
required:
- d7_users
dependencies:
enforced:
module:
- migrate_plus
- migrate_tools
- profile

View File

@ -16,22 +16,23 @@ dependencies:
# https://www.liip.ch/en/blog/using-the-new-drupal-8-migration-api-module
config_devel:
install:
- migrate_plus.migration.d7_users
- migrate_plus.migration_group.d7_materio
- migrate_plus.migration.d7_allpublicfiles
- migrate_plus.migration.d7_taxonomy_term_thesaurus
- migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n
- migrate_plus.migration.d7_taxonomy_term_tags
- migrate_plus.migration.d7_taxonomy_term_tags_i18n
- migrate_plus.migration.d7_taxonomy_term_company
- migrate_plus.migration.d7_taxonomy_term_showroom
- migrate_plus.migration.d7_users
- migrate_plus.migration.d7_user_profile
- migrate_plus.migration.d7_user_profile_customer
- migrate_plus.migration.d7_uc_roles_license
- migrate_plus.migration.d7_simplenews_subscribers
- migrate_plus.migration.d7_node_article
- migrate_plus.migration.d7_simplenews_nodes
- migrate_plus.migration.d7_node_materiau
- migrate_plus.migration.d7_node_materiau_i18n
- migrate_plus.migration.d7_node_article
- migrate_plus.migration.d7_node_article_i18n
- migrate_plus.migration.d7_user_profile
- migrate_plus.migration_group.d7_materio
- migrate_plus.migration.d7_taxonomy_term_showroom
- migrate_plus.migration.d7_taxonomy_term_tags_i18n
- migrate_plus.migration.d7_taxonomy_term_tags
- migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n
- migrate_plus.migration.d7_taxonomy_term_thesaurus
- migrate_plus.migration.d7_simplenews_nodes
- migrate_plus.migration.d7_simplenews_subscribers
- migrate_plus.migration.d7_flaglists
- migrate_plus.migration.d7_flaglistitems