department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
97 stars 69 forks source link

Script to replace instances of 800-273-8255 with 988 #9714

Closed kevwalsh closed 2 years ago

kevwalsh commented 2 years ago

User Story or Problem Statement

See epic for context.

We are still discussing if a script is appropriate, or if these content updates will be done manually by editors.

Acceptance Criteria

This script may skip the following (pending Dave's convo with JHL on Tuesday July 12th)

Moderation state

Post Deployment

Not included

Implementation steps

TODO: Get latest version of the node

Design principles

Veteran-centered

Editor-centered

CMS Team

Please check the team(s) that will do this work.

omahane commented 2 years ago

State of the 988 scripts

Guided by Airtable of the content audit

Working

Note: QA needed, of course

VACMS-9714-change-crisis-to-988-VAMC-facilities.php

I'm getting 48 nodes changed for VAMC Detail Page with WYSIWYG paragraphs https://capture.dropbox.com/RYLWZJuLLs6WF2VK

VACMS-9714-change-crisis-to-988.php

I'm getting 138 nodes changed for Operating Status with a Patient Resources field https://capture.dropbox.com/S1gKlFOeCvlJOOzP

VACMS-9714-change-crisis-to-988-VAMC-detail-field-description.php

Note: not in the audit I'm getting 140 nodes changes for VAMC Detail Page on the Meta Description field

Maybe close to working

VACMS-9714-change-crisis-to-988-accordion.php

I used the Entity Query approach, which made it cleaner. I used Michael Chelen's code for using REGEX: https://gist.github.com/mchelen/0d02801e8a6ac0dde13ab9c0e6864caa

Which took the number to change down to 42.

I have TODOs in the code of what I know needs to be addressed.

https://capture.dropbox.com/owFPRE9ZgLmppDfm

swirtSJW commented 2 years ago

Post release steps task here https://github.com/department-of-veterans-affairs/va.gov-cms/issues/10141