Skip to content

Commit 2528a35

Browse files
authored
VACMS 19968 - remove CMS toggle usage for phone number migration and use only new fields (#2380)
* remove CMS toggle usage and use only new fields * checked with deleted old phone numbers
1 parent e4e2719 commit 2528a35

14 files changed

+8
-63
lines changed

src/site/includes/facilityListing.drupal.liquid

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<strong>VA health connect:</strong> {{ fieldVaHealthConnectPhone | processPhoneToVaTelephoneOrFallback : '', 'VA health connect' }}
4343
</div>
4444
{% endif %}
45-
{% if entity.fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
45+
{% if entity.fieldTelephone %}
4646
<div>
4747
{% include "src/site/components/phone-number-no-header.drupal.liquid" with
4848
phoneNumber = entity.fieldTelephone.entity.fieldPhoneNumber
@@ -51,14 +51,6 @@
5151
phoneLabel = entity.fieldTelephone.entity.fieldPhoneLabel | default: 'Mental health care'
5252
%}
5353
</div>
54-
{% elsif entity.fieldMentalHealthPhone and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
55-
<div>
56-
{% include "src/site/components/phone-number-no-header.drupal.liquid" with
57-
phoneNumber = entity.fieldMentalHealthPhone
58-
phoneLabel = 'Mental health care'
59-
phoneNumberType = "tel"
60-
%}
61-
</div>
6254
{% endif %}
6355
</div>
6456
</section>

src/site/layouts/health_care_local_facility.drupal.liquid

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</strong> {{ fieldRegionPage.entity.fieldVaHealthConnectPhone | processPhoneToVaTelephoneOrFallback : '', 'VA health connect' }}
119119
</div>
120120
{% endif %}
121-
{% if fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
121+
{% if fieldTelephone %}
122122
<div>
123123
{% include "src/site/components/phone-number-no-header.drupal.liquid" with
124124
phoneNumber = fieldTelephone.entity.fieldPhoneNumber
@@ -127,14 +127,6 @@
127127
phoneLabel = fieldTelephone.entity.fieldPhoneLabel | default: 'Mental health care'
128128
%}
129129
</div>
130-
{% elsif fieldMentalHealthPhone and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
131-
<div>
132-
{% include "src/site/components/phone-number-no-header.drupal.liquid" with
133-
phoneNumber = fieldMentalHealthPhone
134-
phoneLabel = 'Mental health care'
135-
phoneNumberType = 'tel'
136-
%}
137-
</div>
138130
{% endif %}
139131
</div>
140132
{% include 'src/site/includes/hours.liquid' with allHours = fieldOfficeHours headerType = 'clinical' %}

src/site/layouts/person_profile.drupal.liquid

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
vads-u-font-weight--regular">
6161
<span class="vads-u-font-weight--bold">Email:</span> <va-link type="email" href="mailto:{{ fieldEmailAddress }}" text="{{ fieldEmailAddress }}"></va-link></p>
6262
{% endif %}
63-
{% if fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
63+
{% if fieldTelephone %}
6464
<p class="
6565
vads-u-margin--0
6666
vads-u-margin-bottom--0p5
@@ -72,13 +72,6 @@
7272
phoneLabel = fieldTelephone.entity.fieldPhoneLabel
7373
%}
7474
</p>
75-
{% elsif fieldPhoneNumber and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
76-
<p class="
77-
vads-u-font-weight--regular
78-
vads-u-margin--0
79-
vads-u-margin-bottom--0p5">
80-
<span class="vads-u-font-weight--bold">Phone:</span> {{ fieldPhoneNumber | processPhoneToVaTelephoneOrFallback : '', '' }}
81-
</p>
8275
{% endif %}
8376
</div>
8477
</div>

src/site/layouts/press_release.drupal.liquid

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
{% if c != empty %}
4949
<div>
5050
<p class="vads-u-margin-top--1 vads-u-margin-bottom--0">{{ c.title }}{% if c.fieldDescription != empty %}, {{ c.fieldDescription }} {% endif %}</p>
51-
{% if c.fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
51+
{% if c.fieldTelephone %}
5252
<p class="vads-u-margin-top--1 vads-u-margin-bottom--0">
5353
{% include "src/site/components/phone-number-no-header.drupal.liquid" with
5454
phoneNumber = c.fieldTelephone.entity.fieldPhoneNumber
@@ -57,8 +57,6 @@
5757
phoneLabel = c.fieldTelephone.entity.fieldPhoneLabel
5858
%}
5959
</p>
60-
{% elsif c.fieldPhoneNumber and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
61-
<p class="vads-u-margin-top--1 vads-u-margin-bottom--0">{{ c.fieldPhoneNumber }}</p>
6260
{% endif %}
6361
{% if c.fieldEmailAddress != empty %}
6462
<p class="vads-u-margin-top--1 vads-u-margin-bottom--0"><va-link

src/site/layouts/vamc_system_billing_insurance.drupal.liquid

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
immunizations.
4040
</p>
4141
{% endif %}
42-
{% if fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
42+
{% if fieldTelephone %}
4343
{% include "src/site/components/phone-number.drupal.liquid" with
4444
phoneHeaderLevel = 3
4545
useParagraph = true
@@ -48,12 +48,6 @@
4848
phoneType = fieldTelephone.entity.fieldPhoneNumberType
4949
phoneLabel = fieldTelephone.entity.fieldPhoneLabel
5050
%}
51-
{% elsif fieldPhoneNumber and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
52-
<h3>
53-
Phone
54-
</h3>
55-
<p>{{ fieldPhoneNumber | processPhoneToVaTelephoneOrFallback : '', '' }}
56-
</p>
5751
{% endif %}
5852
<div class="vads-u-margin-bottom--3">
5953
{% include 'src/site/includes/hours.liquid' with allHours = fieldOfficeHours headerType = 'small' %}

src/site/paragraphs/service_location.drupal.liquid

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,10 @@
127127
{% endcomment %}
128128
{% assign shouldShowIntroText = single.fieldApptIntroTextType | shouldShowIntroText: single.fieldApptIntroTextCustom %}
129129

130-
{% if isMentalHealthService and fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
130+
{% if isMentalHealthService and fieldTelephone %}
131131
{% assign serviceLocationMainNumber = fieldTelephone.entity.fieldPhoneNumber %}
132132
{% assign serviceLocationMainExt = fieldTelephone.entity.fieldPhoneExtension %}
133133
{% assign serviceLocationMainPhoneType = fieldTelephone.entity.fieldPhoneNumberType %}
134-
{% elsif isMentalHealthService and fieldMentalHealthPhone and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
135-
{% assign serviceLocationMainNumber = fieldMentalHealthPhone %}
136-
{% assign serviceLocationMainExt = "" %}
137-
{% assign serviceLocationMainPhoneType = "tel" %}
138134
{% elsif fieldPhoneNumber %}
139135
{% assign serviceLocationMainNumber = fieldPhoneNumber %}
140136
{% assign serviceLocationMainExt = "" %}

src/site/paragraphs/staff_profile.drupal.liquid

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{{ bio.fieldOffice.entity.entityLabel }}
4848
</p>
4949
{% endif %}
50-
{% if bio.fieldTelephone and enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
50+
{% if bio.fieldTelephone %}
5151
<p class="
5252
vads-u-font-weight--normal
5353
vads-u-margin--0
@@ -59,13 +59,6 @@
5959
phoneLabel = bio.fieldTelephone.entity.fieldPhoneLabel
6060
%}
6161
</p>
62-
{% elsif bio.fieldPhoneNumber and !enabledFeatureFlags.FEATURE_TELEPHONE_MIGRATION_V1 %}
63-
<p class="
64-
vads-u-font-weight--normal
65-
vads-u-margin--0
66-
vads-u-margin-bottom--1">
67-
<strong>Phone:</strong> {{ bio.fieldPhoneNumber | processPhoneToVaTelephoneOrFallback : '', '' }}
68-
</p>
6962
{% endif %}
7063
{% if bio.fieldEmailAddress %}
7164
<p class="

src/site/stages/build/drupal/graphql/facilities-fragments/healthCareLocalFacility.node.graphql.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const FACILITIES_RESULTS = `
5757
postalCode
5858
}
5959
fieldPhoneNumber
60-
fieldMentalHealthPhone
6160
${mhTelephonePara}
6261
fieldOfficeHours {
6362
day

src/site/stages/build/drupal/graphql/facilities-fragments/healthCareRegionStaffBios.node.graphql.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const PERSON_PROFILE_RESULTS = `
1212
fieldLastName
1313
fieldSuffix
1414
fieldEmailAddress
15-
fieldPhoneNumber
1615
${personTelephoneParagraphGraphql}
1716
fieldDescription
1817
fieldOffice {

src/site/stages/build/drupal/graphql/healthCareLocalFacilityPage.graphql.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const healthCareLocalFacilityPageFragment = `
5858
lon
5959
}
6060
fieldPhoneNumber
61-
fieldMentalHealthPhone
6261
${mhTelephonePara}
6362
fieldOfficeHours {
6463
day

0 commit comments

Comments
 (0)