Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #3683 use migmag_lookup instead of migrate_lookup #3684

Merged
merged 5 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/custom/az_migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ drush mr az_menu_links
```
## Exclude Node Title Migration

This migration uses migration_lookup to match source node id to the nid of
This migration uses migmag_lookup to match source node id to the nid of
migrated content.

Optional Migration Dependencies:
Expand Down Expand Up @@ -560,7 +560,7 @@ These plugins are designed to be reusable in custom migrations.
- [EntityEmbedProcess (az_entity_embed_process)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_migration/src/Plugin/migrate/process/EntityEmbedProcess.php)
- [MigratedPathLookup (az_migrated_path_lookup)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_migration/src/Plugin/migrate/process/MigratedPathLookup.php)
- [TextFormatRecognizer (text_format_recognizer)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_migration/src/Plugin/migrate/process/TextFormatRecognizer.php)
- [ManualMigrationLookup (az_manual_migration_lookup)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_core/src/Plugin/migrate/process/ManualMigrationLookup.php)
- [ManualMigrationLookup (az_manual_migrate_lookup)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_core/src/Plugin/migrate/process/ManualMigrationLookup.php)
trackleft marked this conversation as resolved.
Show resolved Hide resolved
- [ArrayIntersect (array_intersect)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_core/src/Plugin/migrate/process/ArrayIntersect.php)
- [ParagraphsMappingFlexiblePage (paragraphs_mapping_flexible_page)](https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_migration/src/Plugin/migrate/process/ParagraphMappingFlexiblePage.php)
- [ParagraphsBehavior
Expand Down
1 change: 1 addition & 0 deletions modules/custom/az_migration/az_migration.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package: 'The University of Arizona - Experimental'
lifecycle: experimental
lifecycle_link: 'https://github.com/az-digital/az_quickstart/blob/main/RELEASES.md#experimental-features'
dependencies:
- drupal:migmag
joeparsons marked this conversation as resolved.
Show resolved Hide resolved
trackleft marked this conversation as resolved.
Show resolved Hide resolved
- drupal:migrate
- drupal:migrate_plus
- drupal:migrate_tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ destination:
process:
uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: node_uid
Expand All @@ -61,7 +61,7 @@ process:
process:
value:
-
plugin: migration_lookup
plugin: migmag_lookup
source: value
migration:
- az_paragraph_callout
Expand Down
2 changes: 1 addition & 1 deletion modules/custom/az_migration/migrations/az_cas_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source:
process:
uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
source: uid
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process:
vid:
plugin: default_value
default_value: az_event_categories

name: name
weight: weight

Expand All @@ -31,9 +31,9 @@ process:
method: process
source: parent
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_event_categories

parent:
plugin: default_value
default_value: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ process:
-
plugin: multiple_values
-
plugin: migration_lookup
plugin: migmag_lookup
migration:
- az_node_carousel
- az_node_event
Expand Down
2 changes: 1 addition & 1 deletion modules/custom/az_migration/migrations/az_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ process:

uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: uid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process:
vid:
plugin: default_value
default_value: az_page_categories

name: name
weight: weight

Expand All @@ -31,9 +31,9 @@ process:
method: process
source: parent
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_flexible_page_categories

parent:
plugin: default_value
default_value: 0
Expand Down
6 changes: 3 additions & 3 deletions modules/custom/az_migration/migrations/az_media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source:
process:
uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: uid
Expand Down Expand Up @@ -39,7 +39,7 @@ process:
# The mfid field is temporary, and is not present in the source.
# Lookup fid through migration lookup. Should not depend on fid not changing.
mfid:
plugin: migration_lookup
plugin: migmag_lookup
migration: az_files
source: fid
# Bundles have different field names for their target reference.
Expand All @@ -60,7 +60,7 @@ process:
method: process
value: 'video/oembed'
not_equals: true
- plugin: migration_lookup
- plugin: migmag_lookup
source: field_uaqs_photo/0/fid
migration:
- az_files
Expand Down
6 changes: 3 additions & 3 deletions modules/custom/az_migration/migrations/az_news_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process:
vid:
plugin: default_value
default_value: az_news_tags

name: name
weight: weight

Expand All @@ -31,9 +31,9 @@ process:
method: process
source: parent
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_news_tags

parent:
plugin: default_value
default_value: 0
Expand Down
4 changes: 2 additions & 2 deletions modules/custom/az_migration/migrations/az_node_carousel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_media

uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: node_uid
Expand Down
12 changes: 6 additions & 6 deletions modules/custom/az_migration/migrations/az_node_event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_files
Expand All @@ -132,7 +132,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_media
Expand All @@ -144,7 +144,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_paragraph_contact
source: value
no_stub: true
Expand All @@ -154,7 +154,7 @@ process:
- 0
target_revision_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_paragraph_contact
source: value
no_stub: true
Expand All @@ -173,7 +173,7 @@ process:

uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: node_uid
Expand Down Expand Up @@ -204,7 +204,7 @@ process:
method: process
field_az_event_category:
-
plugin: migration_lookup
plugin: migmag_lookup
source: field_uaqs_event_category
migration:
- az_event_categories
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_media

uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: node_uid
Expand Down Expand Up @@ -82,14 +82,14 @@ process:
method: process
field_az_page_category:
-
plugin: migration_lookup
plugin: migmag_lookup
source: field_uaqs_flexible_category
migration:
- az_flexible_page_categories

tmp_flexible_subpage:
-
plugin: migration_lookup
plugin: migmag_lookup
source: nid
migration:
- az_paragraph_flexible_page_sub
Expand All @@ -101,7 +101,7 @@ process:
process:
value:
-
plugin: migration_lookup
plugin: migmag_lookup
source: value
migration:
- az_paragraph_callout
Expand Down
16 changes: 8 additions & 8 deletions modules/custom/az_migration/migrations/az_node_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration:
- az_paragraph_callout
- az_paragraph_card_deck
Expand Down Expand Up @@ -116,7 +116,7 @@ process:
- 0
target_revision_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration:
- az_paragraph_callout
- az_paragraph_card_deck
Expand Down Expand Up @@ -167,7 +167,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_files
Expand All @@ -182,7 +182,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_media
Expand Down Expand Up @@ -219,7 +219,7 @@ process:

field_az_news_tags:
-
plugin: migration_lookup
plugin: migmag_lookup
source: field_uaqs_news_tags
migration:
- az_news_tags
Expand Down Expand Up @@ -278,7 +278,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_paragraph_contact
source: value
no_stub: true
Expand All @@ -288,7 +288,7 @@ process:
- 0
target_revision_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_paragraph_contact
source: value
no_stub: true
Expand All @@ -299,7 +299,7 @@ process:

uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: node_uid
Expand Down
8 changes: 4 additions & 4 deletions modules/custom/az_migration/migrations/az_node_person.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_media

uid:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_user
no_stub: true
source: node_uid
Expand Down Expand Up @@ -196,14 +196,14 @@ process:
method: process
field_az_person_category:
-
plugin: migration_lookup
plugin: migmag_lookup
source: field_uaqs_person_category
migration:
- az_person_categories

field_az_person_category_sec:
-
plugin: migration_lookup
plugin: migmag_lookup
source: field_uaqs_person_categories
migration:
- az_person_categories_secondary
Expand Down
Loading