Save quantities as a pseudo field in the farm_migrate_log migration group.
This is necessary so that individual log types can use pseudo fields in the "quantity" process if they override it themselves. When a migration group defines shared_configuration processes that are overwritten by a migration, the processes are still executed in the order defined by the migration group. This prevents an individual migration from using its own pseudo fields for a process that it overrides.
This commit is contained in:
parent
a95c487b9d
commit
a847724a46
|
@ -152,7 +152,8 @@ shared_configuration:
|
|||
title: title
|
||||
width: width
|
||||
height: height
|
||||
quantity:
|
||||
# Save quantities as a pseudo field and let log types migrate themselves.
|
||||
_log_quantities:
|
||||
-
|
||||
plugin: farm_migration_group_lookup
|
||||
migration_group: farm_migrate_quantity
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
migration_dependencies:
|
||||
required: { }
|
||||
optional: { }
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
# Birth specific fields.
|
||||
mother:
|
||||
plugin: sub_process
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
# Harvest specific fields.
|
||||
lot_number:
|
||||
plugin: get
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
# Input specific fields.
|
||||
lot_number:
|
||||
plugin: get
|
||||
|
|
|
@ -30,6 +30,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
# Lab test specific fields.
|
||||
lab:
|
||||
plugin: get_lab
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
migration_dependencies:
|
||||
required: { }
|
||||
optional: { }
|
||||
|
|
|
@ -32,6 +32,10 @@ process:
|
|||
vet:
|
||||
plugin: get
|
||||
source: field_farm_vet
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
migration_dependencies:
|
||||
required: { }
|
||||
optional: { }
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
migration_dependencies:
|
||||
required: { }
|
||||
optional: { }
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
# Seeding specific fields.
|
||||
lot_number:
|
||||
plugin: get
|
||||
|
|
|
@ -28,6 +28,10 @@ process:
|
|||
id:
|
||||
plugin: get
|
||||
source: id
|
||||
# Migrate log quantities.
|
||||
quantity:
|
||||
plugin: get
|
||||
source: '@_log_quantities'
|
||||
migration_dependencies:
|
||||
required: { }
|
||||
optional: { }
|
||||
|
|
Loading…
Reference in New Issue