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

SPIKE: How to handle changes in facility data from Lighthouse (name, data removal, etc) #4369

Closed kevwalsh closed 2 years ago

kevwalsh commented 3 years ago

Needs to be added to epic #4856

User Story or Problem Statement

Administrators of upstream facility databases (VAST, VBA_facilities database in the CDW) may make changes to facility names, which are migrated on a nightly basis, usually into node titles.

This becomes probably a bit more likely in the world of Vet Centers. Jessica is working on stats for me now for how frequently this happens, but generally they are in strip-mall esque rental space and sometimes they need to move b/c of expiration of lease etc. So the "Longmeadow Vet Center" could become the "Palmer Vet Center" because they moved 4 miles down the road and changed towns/cities.

How should the CMS handle facilty name changes? What should change about the content about that facility stored in the CMS, if anything?

Are there any manual processes required, such as

Acceptance Criteria

Possible short term

kevwalsh commented 3 years ago

Tagging this as "Good first task", assuming it's done with @swirtSJW to help with knowledge transfer on the broader migration approaches.

swirtSJW commented 2 years ago

Current risks related to data changes made in Facility API

  1. A title change to a facility will change the title of the node at midnight, which has a cascading problems of:
    1. Nobody knows it changed. - (lack of alert)
    2. Names in the menu for facilities are not updated, so the two titles will differ.
    3. The paths for the facility changes are based on menu title, so these change only if we intentionally update the menu title, then update the alias for that subsection of nodes (by hand).
      1. When paths are updated, Redirects in the CMS are created, but VA.gov does not know about them so any existing links outside the site fail to work.
    4. Name changes to not trickle down to facility services.

image

  1. A removal of a facility from the facility API is not operated on, no action is taken in the CMS and no-one is notified. Removal is done by hand under a request fulfillment.
    1. sub pages like facility health services need to be archived by hand as part of this.
  2. The appearance of a new facility in the facility API creates a new facility in the CMS within 24 hrs.
    1. No one is notified. You can only find it if you go looking for it.
    2. It is not connected to a system as the system affiliation is not in the facility API.
cmaeng commented 2 years ago

Closing this ticket out as the research has been completed. #4856 will track the follow-up needed.