flaglists migration is ok, but flood drupal
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# idlist=43615,53523,53524,58332,58333,58681,58682,58683,69219,69221,69235,69236,69237,69238,70903,72618,72619
|
||||
|
||||
# This is the migrations file from Flag Lists D7
|
||||
id: d7_flaglistitems
|
||||
label: Materio Flag List Items D7
|
||||
@@ -8,41 +10,53 @@ migration_tags:
|
||||
- Content
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_flaglists
|
||||
- d7_users
|
||||
- d7_node_article
|
||||
- d7_node_materiau
|
||||
- d7_flaglists
|
||||
source:
|
||||
plugin: d7_flaglistitems_materio
|
||||
#
|
||||
process:
|
||||
id: fcid
|
||||
# id: fcid
|
||||
# user_id: uid
|
||||
user_id:
|
||||
plugin: migration_lookup
|
||||
migration: d7_users
|
||||
source: uid
|
||||
|
||||
type: entity_type
|
||||
|
||||
# flag_list: fid
|
||||
flag_list:
|
||||
plugin: migration_lookup
|
||||
migration: d7_flaglists
|
||||
source: fid
|
||||
|
||||
baseflag: relatedflag
|
||||
# baseflag:
|
||||
# plugin: skip_on_empty
|
||||
# method: row
|
||||
# source: relatedflag
|
||||
|
||||
# TODO: skip if article or enable flaging of articles on D8
|
||||
entity_id:
|
||||
plugin: migration_lookup
|
||||
migration:
|
||||
- d7_node_materiau
|
||||
- d7_node_article
|
||||
no_stub: true
|
||||
source: entity_id
|
||||
|
||||
|
||||
# TODO use the destination entity_id isnstead of the original id
|
||||
name:
|
||||
plugin: concat
|
||||
source:
|
||||
- title
|
||||
- entity_id
|
||||
- dest_entity_id
|
||||
delimiter: ' '
|
||||
baseflag: relatedflag
|
||||
flag_list: fid
|
||||
# entity_id: entity_id
|
||||
entity_id:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: linked_materials
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d7_node_materiau
|
||||
no_stub: true
|
||||
|
||||
# type: entity_type
|
||||
#
|
||||
destination:
|
||||
plugin: entity:flag_list_item
|
||||
|
@@ -1,3 +1,6 @@
|
||||
# user test 55811
|
||||
# dossier test 4009,5084,6008,6315
|
||||
|
||||
# This is the migrations file from Flag Lists D7
|
||||
id: d7_flaglists
|
||||
label: 'Materio Flagging Collections D7'
|
||||
@@ -17,8 +20,8 @@ source:
|
||||
# key: migrate
|
||||
#
|
||||
process:
|
||||
id: fid
|
||||
vid: fid
|
||||
# id: fid
|
||||
# vid: fid
|
||||
langcode:
|
||||
plugin: default_value
|
||||
default_value: en
|
||||
@@ -42,4 +45,4 @@ process:
|
||||
#
|
||||
destination:
|
||||
plugin: entity:flagging_collection
|
||||
default_bundle: dossier
|
||||
default_bundle: flagging_collection_type
|
||||
|
Reference in New Issue
Block a user