Skip to content

Commit

Permalink
Close #3683 use migmag_lookup instead of migrate_lookup (#3684)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
  • Loading branch information
trackleft and joeparsons committed Sep 12, 2024
1 parent 8ecab96 commit 7c35469
Show file tree
Hide file tree
Showing 31 changed files with 79 additions and 71 deletions.
2 changes: 1 addition & 1 deletion 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
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_process
- drupal:migrate
- drupal:migrate_plus
- drupal:migrate_tools
Expand Down
7 changes: 7 additions & 0 deletions modules/custom/az_migration/az_migration.install
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ function az_migration_update_last_removed() {
// Remove updates added before 2.6.0.
return 920301;
}

/**
* Ensure the migmag_process module is installed.
*/
function az_migration_update_1021001() {
\Drupal::service('module_installer')->install(['migmag_process']);
}
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
10 changes: 5 additions & 5 deletions modules/custom/az_migration/migrations/az_node_flexible_page.yml
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 @@ -76,7 +76,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration:
- az_paragraph_column_image
- az_paragraph_extra_info
Expand All @@ -91,7 +91,7 @@ process:
- 0
target_revision_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration:
- az_paragraph_column_image
- az_paragraph_extra_info
Expand Down Expand Up @@ -129,7 +129,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_files
Expand All @@ -144,7 +144,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
source: fid
migration:
- az_media
Expand Down Expand Up @@ -181,7 +181,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 @@ -240,7 +240,7 @@ process:
delta: delta
target_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_paragraph_contact
source: value
no_stub: true
Expand All @@ -250,7 +250,7 @@ process:
- 0
target_revision_id:
-
plugin: migration_lookup
plugin: migmag_lookup
migration: az_paragraph_contact
source: value
no_stub: true
Expand All @@ -261,7 +261,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

0 comments on commit 7c35469

Please sign in to comment.