-
Notifications
You must be signed in to change notification settings - Fork 70
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-15422: Makes Vet Center - Outstation names more like Vet Center #15716
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
Facilities
Facilities products (VAMC, Vet Center, etc)
label
Oct 19, 2023
omahane
force-pushed
the
VACMS-15422-vet-center-outstation-common-name
branch
from
October 20, 2023 15:32
100b6c4
to
c3bf9ea
Compare
omahane
force-pushed
the
VACMS-15422-vet-center-outstation-common-name
branch
from
October 20, 2023 16:25
c3bf9ea
to
9a13781
Compare
omahane
force-pushed
the
VACMS-15422-vet-center-outstation-common-name
branch
from
October 23, 2023 21:22
9a13781
to
c4d73dd
Compare
omahane
force-pushed
the
VACMS-15422-vet-center-outstation-common-name
branch
from
October 24, 2023 10:39
1723a3c
to
092ea65
Compare
swirtSJW
approved these changes
Oct 24, 2023
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.
* Status message. | ||
*/ | ||
function va_gov_copy_vet_center_os_title(array &$sandbox, $revision_message) { | ||
$node_storage = \Drupal::entityTypeManager()->getStorage('node'); |
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.
Suggested change
$node_storage = \Drupal::entityTypeManager()->getStorage('node'); | |
$node_storage = get_node_storage(); |
Minor: Existing patterns.
swirtSJW
force-pushed
the
VACMS-15422-vet-center-outstation-common-name
branch
from
October 24, 2023 16:46
092ea65
to
5a78f4d
Compare
chri5tia
pushed a commit
that referenced
this pull request
Oct 25, 2023
…#15716) * VACMS-15422: Makes outstations more like vet centers * VACMS-15422: Migration config and code updated for title and official name. * VACMS-15422: Reverts revision log * VACMS-15422: Removes install file. We need to the config first. * VACMS-15422: Adds script for updating facilities in prod.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Relates to #15422
This PR creates the field on the Vet Center - Outstation and sets the migration configuration and presave to put the official name in the title. After deploy, the new script (
scripts/content/VACMS-15422-vet-center-outstation-copy-title.php
) will need to be run in production.Testing done
Manually
Screenshots
node:edit as an admin
node:edit as an editor
QA steps
In the browser
Delete a current Vet Center - Outstation
Delete a current Vet Center
In the Terminal
Restore "Keene Vet Center Outstation" by migration
drush migrate:import va_node_facility_vet_centers_os --update --idlist=vc_1221OS
Restore "Henderson Vet Center" by migration
drush migrate:import va_node_facility_vet_centers --update --idlist=vc_0534V
In the browser
Verify the "Keene Vet Center Outstation" migration
Verify the "Henderson Vet Center" migration
In the terminal
Update the Vet Center - Outstation names via a script
drush scr ./scripts/content/VACMS-15422-vet-center-outstation-copy-title.php
In the browser
Confirm the Vet Center - Outstation script's changes on previously migrated nodes
Review a Vet Center - Outstation with different common and official names as an editor
Review a Vet Center - Outstation with the same common and official names as an editor
Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing