Refactor asset and log migrations into generic entity type migration (for common fields) and bundle-specific migrations (for bundle-specific fields).
This commit is contained in:
parent
160c45a45e
commit
78f8397720
|
@ -0,0 +1,107 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- asset
|
||||
- farm_migrate
|
||||
id: farm_migrate_asset
|
||||
label: 'Assets'
|
||||
migration_group: farm_migrate
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- 'farmOS 1.x'
|
||||
class: Drupal\migrate\Plugin\Migration
|
||||
field_plugin_method: null
|
||||
cck_plugin_method: null
|
||||
source:
|
||||
plugin: d7_asset
|
||||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Static map old asset types to new.
|
||||
# This only handles known asset types provided by farmOS core.
|
||||
# If the asset type is not found in this map, then the asset will be skipped.
|
||||
# Contrib farmOS modules are responsible for migrating their own asset types.
|
||||
type:
|
||||
plugin: static_map
|
||||
source: type
|
||||
map:
|
||||
animal: animal
|
||||
compost: compost
|
||||
equipment: equipment
|
||||
group: group
|
||||
planting: plant
|
||||
sensor: sensor
|
||||
bypass: FALSE
|
||||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archived
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
plugin: migration_lookup
|
||||
migration:
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
plugin: migration_lookup
|
||||
migration:
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
- farm_migrate_user
|
||||
optional: { }
|
|
@ -20,86 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Hardcode the destination asset type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: animal
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_asset
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archived
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
- farm_migrate_asset
|
||||
optional: { }
|
||||
|
|
|
@ -20,84 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Hardcode the destination asset type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: compost
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_asset
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archived
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_asset
|
||||
optional: { }
|
||||
|
|
|
@ -20,84 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Hardcode the destination asset type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: equipment
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_asset
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archived
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_asset
|
||||
optional: { }
|
||||
|
|
|
@ -20,84 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Hardcode the destination asset type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: group
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_asset
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archived
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_asset
|
||||
optional: { }
|
||||
|
|
|
@ -20,84 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Hardcode the destination asset type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: plant
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_asset
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archive
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_asset
|
||||
optional: { }
|
||||
|
|
|
@ -20,84 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:asset'
|
||||
process:
|
||||
# Hardcode the destination asset type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: sensor
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_asset
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
# Map the old archived value to both an archived timestamp and a status.
|
||||
# If the old value is 0, status is active. Otherwise, it is archived.
|
||||
archived:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: archived
|
||||
-
|
||||
plugin: get
|
||||
source: archived
|
||||
status:
|
||||
plugin: static_map
|
||||
source: archived
|
||||
map:
|
||||
0: active
|
||||
default_value: archived
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_asset
|
||||
optional: { }
|
||||
|
|
|
@ -0,0 +1,106 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- log
|
||||
- farm_migrate
|
||||
id: farm_migrate_log
|
||||
label: 'Logs'
|
||||
migration_group: farm_migrate
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- 'farmOS 1.x'
|
||||
class: Drupal\migrate\Plugin\Migration
|
||||
field_plugin_method: null
|
||||
cck_plugin_method: null
|
||||
source:
|
||||
plugin: d7_log
|
||||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Static map old log types to new.
|
||||
# This only handles known log types provided by farmOS core.
|
||||
# If the log type is not found in this map, then the log will be skipped.
|
||||
# Contrib farmOS modules are responsible for migrating their own log types.
|
||||
type:
|
||||
plugin: static_map
|
||||
source: type
|
||||
map:
|
||||
farm_activity: activity
|
||||
farm_harvest: harvest
|
||||
farm_input: input
|
||||
farm_maintenance: maintenance
|
||||
farm_medical: medical
|
||||
farm_observation: observation
|
||||
farm_purchase: purchase
|
||||
farm_sale: sale
|
||||
farm_seeding: seeding
|
||||
farm_soil_test: lab_test
|
||||
farm_transplanting: transplanting
|
||||
farm_water_test: lab_test
|
||||
bypass: FALSE
|
||||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
plugin: migration_lookup
|
||||
migration:
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
plugin: migration_lookup
|
||||
migration:
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_file
|
||||
- farm_migrate_file_private
|
||||
- farm_migrate_user
|
||||
optional: { }
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: activity
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: harvest
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: input
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: maintenance
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: medical
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: observation
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: purchase
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: sale
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: seeding
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: lab_test
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: transplanting
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
|
@ -20,77 +20,11 @@ source:
|
|||
destination:
|
||||
plugin: 'entity:log'
|
||||
process:
|
||||
# Hardcode the destination log type (bundle).
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: lab_test
|
||||
id:
|
||||
plugin: get
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_log
|
||||
source: id
|
||||
name:
|
||||
plugin: get
|
||||
source: name
|
||||
uid:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: uid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_user
|
||||
source: uid
|
||||
timestamp:
|
||||
plugin: get
|
||||
source: timestamp
|
||||
created:
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
plugin: get
|
||||
source: changed
|
||||
status:
|
||||
plugin: static_map
|
||||
source: done
|
||||
map:
|
||||
0: pending
|
||||
1: complete
|
||||
file:
|
||||
plugin: sub_process
|
||||
source: field_farm_files
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
display: display
|
||||
description: description
|
||||
image:
|
||||
plugin: sub_process
|
||||
source: field_farm_images
|
||||
process:
|
||||
target_id:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file
|
||||
no_stub: true
|
||||
source: fid
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_file_private
|
||||
no_stub: true
|
||||
source: fid
|
||||
alt: alt
|
||||
title: title
|
||||
width: width
|
||||
height: height
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_user
|
||||
- farm_migrate_log
|
||||
optional: { }
|
||||
|
|
Loading…
Reference in New Issue