Skip to content

Commit

Permalink
VACMS-14238 Add removal of , e xt. specifically.
Browse files Browse the repository at this point in the history
  • Loading branch information
swirtSJW committed Dec 22, 2023
1 parent 5dfb2de commit d7af510
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions config/sync/migrate_plus.migration.va_node_facility_nca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: fax
field_phone_number:
Expand All @@ -271,19 +271,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone
field_office_hours:
Expand Down
4 changes: 2 additions & 2 deletions config/sync/migrate_plus.migration.va_node_facility_vba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone-main
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone-main
field_office_hours:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone-main
field_office_hours:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone-main
field_office_hours:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,19 +187,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone-mental-health
field_phone_number:
Expand All @@ -210,19 +210,19 @@ process:
- X
- ' '
- ext
- Ext
- .
- ','
- Ext
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- x
- ', ext. '
source: phone-main
field_mobile:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,14 @@ process:
field_fax_number:
# 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. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: fax
field_phone_number:
# 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. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone
field_office_hours:
plugin: va_field_office_hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ process:
field_phone_number:
# 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. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone-main
# Bring these in as unpublished.
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ process:
field_phone_number:
# 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. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone-main
field_office_hours:
plugin: va_field_office_hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ process:
field_phone_number:
# 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. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone-main
field_office_hours:
plugin: va_field_office_hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ process:
field_phone_number:
# 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. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone-main
field_office_hours:
plugin: va_field_office_hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ process:
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. ']
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
search: ['(', ')', 'X', ' ', 'ext', '.', ',', 'Ext', 'x']
replace: ['', '-', 'x', '', 'x', '', '', 'x', ', ext. ']
search: ['(', ')', 'X', ' ', 'ext', 'Ext', '.', ',', 'x']
replace: ['', '-', 'x', '', 'x', 'x', '', '', ', ext. ']
source: phone-main
field_mobile:
plugin: convert_boolean
Expand Down

0 comments on commit d7af510

Please sign in to comment.