Unverified Commit fd404c6e authored by Stefan Auditor's avatar Stefan Auditor
Browse files

Issue #3292391 by sanduhrs: Implement migration for Groups, Nodes, Users: Add...

Issue #3292391 by sanduhrs: Implement migration for Groups, Nodes, Users: Add core user, node, term migrations
parent 4b4ac2f0
Loading
Loading
Loading
Loading
+67 −0
Original line number Diff line number Diff line
uuid: 8a31c78f-c947-4227-87c5-0e6e64365e54
langcode: en
status: true
dependencies: {  }
id: localize_d7_file
class: Drupal\migrate\Plugin\Migration
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Content
migration_group: migrate_drupal_7
label: 'Public files'
source:
  plugin: d7_file
  scheme: public
  constants:
    source_base_path: /
process:
  fid:
    -
      plugin: get
      source: fid
  filename:
    -
      plugin: get
      source: filename
  source_full_path:
    -
      plugin: concat
      delimiter: /
      source:
        - constants/source_base_path
        - filepath
    -
      plugin: urlencode
  uri:
    -
      plugin: file_copy
      source:
        - '@source_full_path'
        - uri
  filemime:
    -
      plugin: get
      source: filemime
  status:
    -
      plugin: get
      source: status
  created:
    -
      plugin: get
      source: timestamp
  changed:
    -
      plugin: get
      source: timestamp
  uid:
    -
      plugin: get
      source: uid
destination:
  plugin: 'entity:file'
migration_dependencies:
  required: {  }
  optional: {  }
+108 −0
Original line number Diff line number Diff line
uuid: 27a1dbec-9fc6-4419-b761-e629ca839607
langcode: en
status: true
dependencies: {  }
id: localize_d7_node_complete_news
class: Drupal\node\Plugin\migrate\D7NodeTranslation
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Content
migration_group: migrate_drupal_7
label: 'Node complete (News post)'
source:
  plugin: d7_node_complete
  node_type: news
process:
  nid:
    -
      plugin: get
      source: tnid
  vid:
    -
      plugin: get
      source: vid
  langcode:
    -
      plugin: default_value
      source: language
      default_value: und
  title:
    -
      plugin: get
      source: title
  uid:
    -
      plugin: get
      source: node_uid
  status:
    -
      plugin: get
      source: status
  created:
    -
      plugin: get
      source: created
  changed:
    -
      plugin: get
      source: timestamp
  promote:
    -
      plugin: get
      source: promote
  sticky:
    -
      plugin: get
      source: sticky
  revision_uid:
    -
      plugin: get
      source: revision_uid
  revision_log:
    -
      plugin: get
      source: log
  revision_timestamp:
    -
      plugin: get
      source: timestamp
  content_translation_source:
    -
      plugin: get
      source: source_langcode
  comment_node_news/0/status:
    -
      plugin: get
      source: comment
  taxonomy_vocabulary_4:
    -
      plugin: sub_process
      source: taxonomy_vocabulary_4
      process:
        target_id: tid
  body:
    -
      plugin: get
      source: body
  upload:
    -
      plugin: sub_process
      source: upload
      process:
        target_id: fid
        display: display
        description: description
destination:
  plugin: 'entity_complete:node'
  translations: true
  default_bundle: news
migration_dependencies:
  required:
    - localize_d7_user
    - localize_d7_node_type
    - localize_language
  optional:
    - localize_d7_field_instance
    - localize_d7_comment_field_instance
+102 −0
Original line number Diff line number Diff line
uuid: 267cf9f3-8542-4a85-b109-0ff08f469805
langcode: en
status: true
dependencies: {  }
id: localize_d7_node_complete_page
class: Drupal\node\Plugin\migrate\D7NodeTranslation
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Content
migration_group: migrate_drupal_7
label: 'Node complete (Page)'
source:
  plugin: d7_node_complete
  node_type: page
process:
  nid:
    -
      plugin: get
      source: tnid
  vid:
    -
      plugin: get
      source: vid
  langcode:
    -
      plugin: default_value
      source: language
      default_value: und
  title:
    -
      plugin: get
      source: title
  uid:
    -
      plugin: get
      source: node_uid
  status:
    -
      plugin: get
      source: status
  created:
    -
      plugin: get
      source: created
  changed:
    -
      plugin: get
      source: timestamp
  promote:
    -
      plugin: get
      source: promote
  sticky:
    -
      plugin: get
      source: sticky
  revision_uid:
    -
      plugin: get
      source: revision_uid
  revision_log:
    -
      plugin: get
      source: log
  revision_timestamp:
    -
      plugin: get
      source: timestamp
  content_translation_source:
    -
      plugin: get
      source: source_langcode
  comment_node_page/0/status:
    -
      plugin: get
      source: comment
  body:
    -
      plugin: get
      source: body
  upload:
    -
      plugin: sub_process
      source: upload
      process:
        target_id: fid
        display: display
        description: description
destination:
  plugin: 'entity_complete:node'
  translations: true
  default_bundle: page
migration_dependencies:
  required:
    - localize_d7_user
    - localize_d7_node_type
    - localize_language
  optional:
    - localize_d7_field_instance
    - localize_d7_comment_field_instance
+102 −0
Original line number Diff line number Diff line
uuid: 109c1b65-5abe-423e-809c-06f75f4c2fe0
langcode: en
status: true
dependencies: {  }
id: localize_d7_node_complete_poll
class: Drupal\node\Plugin\migrate\D7NodeTranslation
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Content
migration_group: migrate_drupal_7
label: 'Node complete (Poll)'
source:
  plugin: d7_node_complete
  node_type: poll
process:
  nid:
    -
      plugin: get
      source: tnid
  vid:
    -
      plugin: get
      source: vid
  langcode:
    -
      plugin: default_value
      source: language
      default_value: und
  title:
    -
      plugin: get
      source: title
  uid:
    -
      plugin: get
      source: node_uid
  status:
    -
      plugin: get
      source: status
  created:
    -
      plugin: get
      source: created
  changed:
    -
      plugin: get
      source: timestamp
  promote:
    -
      plugin: get
      source: promote
  sticky:
    -
      plugin: get
      source: sticky
  revision_uid:
    -
      plugin: get
      source: revision_uid
  revision_log:
    -
      plugin: get
      source: log
  revision_timestamp:
    -
      plugin: get
      source: timestamp
  content_translation_source:
    -
      plugin: get
      source: source_langcode
  comment_node_poll/0/status:
    -
      plugin: get
      source: comment
  upload:
    -
      plugin: sub_process
      source: upload
      process:
        target_id: fid
        display: display
        description: description
  og_group_ref:
    -
      plugin: get
      source: og_group_ref
destination:
  plugin: 'entity_complete:node'
  translations: true
  default_bundle: poll
migration_dependencies:
  required:
    - localize_d7_user
    - localize_d7_node_type
    - localize_language
  optional:
    - localize_d7_field_instance
    - localize_d7_comment_field_instance
+112 −0
Original line number Diff line number Diff line
uuid: 96953c0e-c7d1-4f32-9c76-69f65f50c19f
langcode: en
status: true
dependencies: {  }
id: localize_d7_node_complete_story
class: Drupal\node\Plugin\migrate\D7NodeTranslation
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Content
migration_group: migrate_drupal_7
label: 'Node complete (Story)'
source:
  plugin: d7_node_complete
  node_type: story
process:
  nid:
    -
      plugin: get
      source: tnid
  vid:
    -
      plugin: get
      source: vid
  langcode:
    -
      plugin: default_value
      source: language
      default_value: und
  title:
    -
      plugin: get
      source: title
  uid:
    -
      plugin: get
      source: node_uid
  status:
    -
      plugin: get
      source: status
  created:
    -
      plugin: get
      source: created
  changed:
    -
      plugin: get
      source: timestamp
  promote:
    -
      plugin: get
      source: promote
  sticky:
    -
      plugin: get
      source: sticky
  revision_uid:
    -
      plugin: get
      source: revision_uid
  revision_log:
    -
      plugin: get
      source: log
  revision_timestamp:
    -
      plugin: get
      source: timestamp
  content_translation_source:
    -
      plugin: get
      source: source_langcode
  comment_node_story/0/status:
    -
      plugin: get
      source: comment
  taxonomy_vocabulary_2:
    -
      plugin: sub_process
      source: taxonomy_vocabulary_2
      process:
        target_id: tid
  body:
    -
      plugin: get
      source: body
  upload:
    -
      plugin: sub_process
      source: upload
      process:
        target_id: fid
        display: display
        description: description
  og_group_ref:
    -
      plugin: get
      source: og_group_ref
destination:
  plugin: 'entity_complete:node'
  translations: true
  default_bundle: story
migration_dependencies:
  required:
    - localize_d7_user
    - localize_d7_node_type
    - localize_language
  optional:
    - localize_d7_field_instance
    - localize_d7_comment_field_instance
Loading