-
Notifications
You must be signed in to change notification settings - Fork 69
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
VACMS-16335 Add VAMC System police contact migration #16430
Conversation
6306bed
to
b151294
Compare
There is an upstream issue with token replacement I will get it patched and fixed this weekend. |
b151294
to
f83493c
Compare
This is largely working I also created an upstream feature request and patched it to work out the phone number parsing #3409322: Add process plugin gate_comparator I am only seeing 4 failures related to failed lookups. This is usually the result of data mismatches in the CSV. I am looking into those now
|
Solved the problem with the missing entity lookups. It was due to a mismatch in data enclosures. Switched to " and we are all good. |
Troubleshooting log
|
@@ -132,7 +132,7 @@ | |||
"drupal/migrate_source_csv": "^3.4", | |||
"drupal/migrate_source_ui": "^1.0", | |||
"drupal/migrate_tools": "^6.0", | |||
"drupal/migration_tools": "^2.7", | |||
"drupal/migration_tools": "^2.8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugin: callback | ||
callable: trim | ||
- | ||
plugin: gate_comparator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New process plugin https://www.drupal.org/project/migration_tools/issues/3409322
nid: | ||
- | ||
plugin: entity_lookup | ||
access_check: false | ||
ignore_case: true | ||
entity_type: node | ||
bundle_key: type | ||
bundle: health_care_region_page | ||
value_key: title | ||
source: vamc_system_label | ||
- | ||
plugin: skip_on_empty | ||
method: row | ||
message: 'Entity lookup found no VAMC System for @vamc_system_label.' | ||
- | ||
plugin: entity_lookup | ||
access_check: false | ||
ignore_case: true | ||
entity_type: node | ||
bundle_key: type | ||
bundle: vamc_system_va_police | ||
value_key: field_office | ||
- | ||
plugin: skip_on_empty | ||
method: row | ||
message: 'Entity lookup found no police page for @vamc_system_label.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dance is needed to lookup the nid so that it can update an existing node rather than migrate in a new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the exception of the
Click the Execute button for "vamc_system_police_contact" and Execute the migration with no additional options.
actually requiring me to choose the "update" option because the nodes had already been migrated, everything else was as described.
This migration looks pretty hairy. Your solution is really impressive.
Description
Relates to #16335
Testing done
Screenshots
QA steps
What needs to be checked to prove this works?
What needs to be checked to prove it didn't break any related things?
What variations of circumstances (users, actions, values) need to be checked?
As an admin
Go to the VA Police contact migration
Click the Execute button for "vamc_system_police_contact" and Execute the migration with no additional options.
Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing
Is this PR blocked by another PR?
DO NOT MERGE
Does this PR need review from a Product Owner
Needs PO review
CMS user-facing announcement
Is an announcement needed to let editors know of this change?