drupalorg_migrate-1.0.x-dev/migrations/drupalorg_migrate_project_release.yml
migrations/drupalorg_migrate_project_release.yml
id: drupalorg_migrate_project_release
label: 'Drupal.org Project Release'
migration_group: drupalorg_migrate
#migration_tags:
# - Drupal 7
# - Content
#deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
source:
plugin: d7_node
batch_size: 1000
track_changes: true
node_type: project_release
destination:
plugin: entity:node
process:
nid: tnid
type:
plugin: default_value
default_value: project_release
title: title
field_packaged_git_sha1: field_packaged_git_sha1
field_core_compatibility:
plugin: migration_lookup
migration: drupalorg_migrate_core_compatibility
source: taxonomy_vocabulary_6
field_release_type:
plugin: migration_lookup
migration: drupalorg_migrate_release_type
source: taxonomy_vocabulary_7
field_release_project:
plugin: sub_process
source: field_release_project
process:
target_id:
plugin: migration_lookup
migration:
- drupalorg_migrate_project_module
- drupalorg_migrate_project_theme
- drupalorg_migrate_project_theme_engine
- drupalorg_migrate_project_translation
- drupalorg_migrate_project_drupalorg
- drupalorg_migrate_project_distribution
- drupalorg_migrate_project_core
source: target_id
no_stub: true
field_release_category: field_release_category
field_project_release_files:
-
plugin: sub_process
source: field_release_files
process:
target_id:
-
plugin: paragraphs_lookup
tags: 'Field Collection Content'
source: value
-
plugin: extract
index:
- id
target_revision_id:
-
plugin: paragraphs_lookup
tags:
- 'Field Collection Revisions Content'
- 'Field Collection Content'
tag_ids:
'Field Collection Revisions Content':
- revision_id
'Field Collection Content':
- value
-
plugin: extract
index:
- revision_id
field_release_build_type: field_release_build_type
field_release_short_description: field_release_short_description
field_show_download: field_show_download
field_release_update_status: field_release_update_status
field_release_vcs_label: field_release_vcs_label
field_release_version: field_release_version
field_release_version_extra: field_release_version_extra
field_release_version_ext_delta: field_release_version_ext_delta
field_release_version_ext_weight: field_release_version_ext_weight
field_release_version_major: field_release_version_major
field_release_version_minor: field_release_version_minor
field_release_version_patch: field_release_version_patch
uid:
plugin: migration_lookup
migration: drupalorg_migrate_users
source: node_uid
sticky:
plugin: default_value
default_value: 0
status: status
body: body
created: created
changed: changed
langcode:
plugin: default_value
source: language
default_value: "und"
migration_dependencies:
required:
- drupalorg_migrate_core_compatibility
- drupalorg_migrate_release_type
- drupalorg_migrate_project_module
- drupalorg_migrate_project_theme
- drupalorg_migrate_project_theme_engine
- drupalorg_migrate_project_translation
- drupalorg_migrate_project_drupalorg
- drupalorg_migrate_project_distribution
- drupalorg_migrate_project_core
# https://www.drupal.org/project/drupal/issues/2797505#comment-12129356
optional:
- drupalorg_migrate_users
- drupalorg_migrate_field_collection_release_files
dependencies:
enforced:
module:
- drupalorg_migrate
