Skip to content

Commit

Permalink
VACMS-15686: Removes the temp field from everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
omahane committed Feb 9, 2024
1 parent 917d9e3 commit 6decf42
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -158,7 +157,6 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_contact_phon
label: 'Locations and contact information'
region: content
parent_name: ''
Expand Down Expand Up @@ -318,13 +316,6 @@ content:
settings:
media_types: { }
third_party_settings: { }
field_mental_health_contact_phon:
type: telephone_default
weight: 21
region: content
settings:
placeholder: ''
third_party_settings: { }
field_mental_health_phone:
type: telephone_default
weight: 28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -151,7 +150,6 @@ hidden:
field_location_services: true
field_main_location: true
field_media: true
field_mental_health_contact_phon: true
field_mental_health_phone: true
field_meta_tags: true
field_mobile: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -95,7 +94,6 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_contact_phon
label: 'Locations and contact information'
parent_name: ''
region: content
Expand Down Expand Up @@ -202,14 +200,6 @@ content:
third_party_settings: { }
weight: 0
region: content
field_mental_health_contact_phon:
type: telephone_link
label: inline
settings:
title: ''
third_party_settings: { }
weight: 20
region: content
field_mental_health_phone:
type: telephone_link
label: inline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -268,7 +267,6 @@ hidden:
field_location_services: true
field_main_location: true
field_media: true
field_mental_health_contact_phon: true
field_meta_tags: true
field_meta_title: true
field_operating_status_facility: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -120,7 +119,6 @@ hidden:
field_local_health_care_service_: true
field_location_services: true
field_main_location: true
field_mental_health_contact_phon: true
field_mental_health_phone: true
field_meta_tags: true
field_mobile: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -96,7 +95,6 @@ hidden:
field_location_services: true
field_main_location: true
field_media: true
field_mental_health_contact_phon: true
field_mental_health_phone: true
field_meta_tags: true
field_mobile: true
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ field_name: field_mental_health_phone
entity_type: node
bundle: health_care_local_facility
label: 'Mental health phone number'
description: ''
description: 'Enter the number Veterans should call to access mental health services at your facility, for example 202-555-1234, ext. 23. If your facility doesn''t offer these services, enter the most appropriate system number. This number will be displayed everywhere your facility appears across VA.gov. <a href="/help/va-medical-centers-vamcs/about-locations-content-for-vamcs/how-to-edit-a-vamc-facility" target="_blank">View guidelines for editing VAMC facilities (opens in a new tab)</a>'
required: false
translatable: false
default_value: { }
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ source:
name: phone-main
label: phone-main
selector: properties/phone/main
-
name: phone-mental-health
label: phone-mental-health
selector: properties/phone/mental_health_clinic
-
name: state
label: state
Expand Down Expand Up @@ -179,29 +175,6 @@ process:
'Other Outpatient Services (OOS)': 6
'Extended Care Site (Community Living Center) (Stand-Alone)': 7
'Residential Care Site (MH RRTP/DRRTP) (Stand-Alone)': 8
field_mental_health_phone:
plugin: str_replace
search:
- (
- )
- X
- ' '
- ext
- Ext
- .
- ','
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- ', ext. '
source: phone-mental-health
field_phone_number:
plugin: str_replace
search:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ source:
name: phone-main
label: phone-main
selector: properties/phone/main
-
name: phone-mental-health
label: phone-mental-health
selector: properties/phone/mental_health_clinic
-
name: state
label: state
Expand Down Expand Up @@ -191,12 +187,6 @@ process:
'Other Outpatient Services (OOS)': 6
'Extended Care Site (Community Living Center) (Stand-Alone)': 7
'Residential Care Site (MH RRTP/DRRTP) (Stand-Alone)': 8
field_mental_health_phone:
# Covert all ext variants to x and then replace it with, ', ext. ' last.
plugin: str_replace
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone-mental-health
field_phone_number:
# Covert all ext variants to x and then replace it with, ', ext. ' last.
plugin: str_replace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,8 @@ protected function shouldPushSystem(NodeInterface $entity) {
* The mental health phone number.
*/
protected function getFacilityMentalHealthPhone(): string {
// This is the original and life-long field.
$mental_health_phone = $this->getFieldSafe('field_mental_health_phone');
// This is the temporary shuffle field that will be removed once conversion
// to fully edited is complete.
$mental_health_contact = $this->getFieldSafe('field_mental_health_contact_phon');
return (!empty($mental_health_contact)) ? $mental_health_contact : $mental_health_phone;
return $mental_health_phone;
}

/**
Expand Down

0 comments on commit 6decf42

Please sign in to comment.