Some fixes in the terms migration.

The migrations fails if the static values aren't passed via a constant.
This commit is contained in:
David Valdez 2019-08-30 12:11:47 -05:00
parent 0b7d2a812e
commit e62dcf96f4
8 changed files with 24 additions and 8 deletions

View file

@ -11,6 +11,8 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy terms (Economic Sectors)'
source:
constants:
vocabulary: topics
plugin: d7_taxonomy_term
bundle: vocabulary_1
process:
@ -18,7 +20,7 @@ process:
-
plugin: get
source: tid
vid: 'topics'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -13,12 +13,14 @@ label: 'Taxonomy terms (Visions & Models)'
source:
plugin: d7_taxonomy_term
bundle: vocabulary_10
constants:
vocabulary: topics
process:
tid:
-
plugin: get
source: tid
vid: 'topics'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -11,6 +11,8 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy terms (Movements & Struggles)'
source:
constants:
vocabulary: topics
plugin: d7_taxonomy_term
bundle: vocabulary_12
process:
@ -18,7 +20,7 @@ process:
-
plugin: get
source: tid
vid: 'topics'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -11,6 +11,8 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy terms (Practices, Tools & Strategies)'
source:
constants:
vocabulary: topics
plugin: d7_taxonomy_term
bundle: vocabulary_13
process:
@ -18,7 +20,7 @@ process:
-
plugin: get
source: tid
vid: 'topics'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -11,6 +11,8 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy terms (Regions)'
source:
constants:
vocabulary: topics
plugin: d7_taxonomy_term
bundle: vocabulary_2
process:
@ -18,7 +20,7 @@ process:
-
plugin: get
source: tid
vid: 'topics'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -11,6 +11,8 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy terms (Departments)'
source:
constants:
vocabulary: article_type
plugin: d7_taxonomy_term
bundle: vocabulary_3
process:
@ -26,7 +28,7 @@ process:
# - 50 # Is not going to be used anymore.
-
plugin: get
vid: 'article_type'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -11,6 +11,8 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy terms (Institutions & Structures)'
source:
constants:
vocabulary: topics
plugin: d7_taxonomy_term
bundle: vocabulary_7
process:
@ -18,7 +20,7 @@ process:
-
plugin: get
source: tid
vid: 'topics'
vid: constants/vocabulary
name:
-
plugin: get

View file

@ -11,9 +11,11 @@ migration_tags:
migration_group: migrate_drupal_7_geo
label: 'Taxonomy vocabularies'
source:
constants:
vocabulary: topics
plugin: d7_taxonomy_vocabulary
process:
vid: 'topics'
vid: constants/vocabulary
name:
- plugin: skip_on_value
method: row