Skip to content

Commit

Permalink
VACMS-17969: Updates script per code review, plus corrects related ti…
Browse files Browse the repository at this point in the history
…cket
  • Loading branch information
omahane committed Jun 12, 2024
1 parent 0972c8e commit c9ee1a3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function run() {
echo "This script can only be run on local or Tugboat environments.\n";
exit();
}
process_csv_file(__DIR__ . '/VACMS-17696-vba-test-data-source-services.csv',
process_csv_file(__DIR__ . '/VACMS-17969-vba-test-data-source-services.csv',
'create_vba_facility_service_node');
process_csv_file(__DIR__ . '/VACMS-17696-vba-test-data-source-facilities.csv',
process_csv_file(__DIR__ . '/VACMS-17969-vba-test-data-source-facilities.csv',
'update_vba_facility_node');
process_csv_file(__DIR__ . '/VACMS-17696-vba-test-data-source-service-regions.csv',
process_csv_file(__DIR__ . '/VACMS-17969-vba-test-data-source-service-regions.csv',
'create_vba_service_region_node');
}

Expand Down Expand Up @@ -276,7 +276,7 @@ function create_phone_paragraph($phone_index, $phone_type, $add_extension = NULL
'field_phone_number' => $phone_number,
'field_phone_number_type' => $phone_type,
'field_phone_extension' => $extension,
'field_phone_label' => 'Service Location Phone ' . $phone_index + 1,
'field_phone_label' => sprintf("Service location phone %d, (%s)", $phone_index + 1, $phone_type),
]);
$phone->save();
return $phone;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Facility (field_office),facility_nid,Service Name,service_tid,Section,section_tid,Number of service locations (field_service_location),field_office_visits,field_virtual_support,field_appt_intro_text_type,field_appt_intro_text_custom,field_use_facility_phone_number,# of add'l phones (field_other_phone_numbers),field_phone_number_type,Create an extention for field_phone_extension,field_online_scheduling_avail,field_clinic_name,field_building_name_number,field_wing_floor_or_room_number,field_use_facility_address,field_hours (facility hours = 0; specific hours = 2; do not specify = 1),field_office_hours (case statement),field_additional_hours_info,field_use_main_facility_phone,# of phone (field_phone),type ,Create an extension for field_phone_extension,# of field_email_contacts
Philadelphia VA Regional Benefit Office,3968,Benefit letters and decision letters,1142,Philadelphia VA Regional Benefit Office,1057,1,null,no,use_default_text,,1,0,tel,0,yes,,,,1,0,,,0,1,tel,1,0
Philadelphia VA Regional Benefit Office,3968,Burials and memorials,1143,Philadelphia VA Regional Benefit Office,1057,2,no,yes_appointment_only,customize_text,Test text,0,1,tel,1,no,Office of Burials and Memorials,,,0,2,hours_24_7,,1,2,tel,0,1
Philadelphia VA Regional Benefit Office,3968,Careers and employment,1169,Philadelphia VA Regional Benefit Office,1057,3,yes_appointment_only,yes_veterans_can_call,remove_text,,null,2,tel,0,null,,Careers building,,1,1,,,null,3,fax,1,2
Philadelphia VA Regional Benefit Office,3968,Direct deposit information,1170,Philadelphia VA Regional Benefit Office,1057,1,yes_walk_in_visits_only,virtual_visits_may_be_available,null,,null,3,fax,0,null,,,West wing,0,0,,Come by any time.,1,4,sms,0,3
Philadelphia VA Regional Benefit Office,3968,Disability compensation,1144,Philadelphia VA Regional Benefit Office,1057,2,yes_with_or_without_appointment,null,use_default_text,,0,4,sms,0,no,,Disability compensation building,1st floor,0,2,hours_mf8_4,After hours available by appointment.,1,5,tty,0,4
Philadelphia VA Regional Benefit Office,3968,Education benefits for family members,1145,Philadelphia VA Regional Benefit Office,1057,3,null,yes_appointment_only,customize_text,Test text,1,5,fax,0,yes,,,,1,1,,,null,0,null,null,5
Philadelphia VA Regional Benefit Office,3968,Education benefits for Veterans,1146,Philadelphia VA Regional Benefit Office,1057,1,no,yes_veterans_can_call,remove_text,,0,6,tel,0,no,Office of Education Benefits,Education building,Room 123,0,0,,Operators are standing by 24/7.,0,0,null,null,1
Philadelphia VA Regional Benefit Office,3968,Grief and bereavement counseling,1006,Philadelphia VA Regional Benefit Office,1057,2,yes_appointment_only,virtual_visits_may_be_available,null,,null,7,sms,0,null,,,,1,2,hours_12a_12a,,1,3,tel,1,2
Philadelphia VA Regional Benefit Office,3968,Home loans,1131,Philadelphia VA Regional Benefit Office,1057,3,yes_walk_in_visits_only,no,use_default_text,,1,8,tty,0,yes,Office of Home Loans,,,1,1,,,0,1,tel,1,3
Philadelphia VA Regional Benefit Office,3968,Homeless Veteran care,39,Philadelphia VA Regional Benefit Office,1057,1,yes_with_or_without_appointment,null,customize_text,Test text,null,9,tel,1,yes,,Homeless Veteran care building,,0,0,,,1,2,tel,0,4
Philadelphia VA Regional Benefit Office,3968,Life Insurance,1147,Philadelphia VA Regional Benefit Office,1057,2,null,yes_veterans_can_call,remove_text,,1,0,sms,0,yes,,,East wing,1,2,hours_closed,Come by any time.,null,3,tel,1,5
Philadelphia VA Regional Benefit Office,3968,Military records,1148,Philadelphia VA Regional Benefit Office,1057,3,no,virtual_visits_may_be_available,null,,0,1,tty,0,no,,Military records building,Sub-bassement B,0,1,,After hours available by appointment.,0,4,sms,0,0
Philadelphia VA Regional Benefit Office,3968,Military sexual trauma-related claims,1171,Philadelphia VA Regional Benefit Office,1057,1,yes_appointment_only,no,use_default_text,,0,2,tel,0,null,,,,0,0,,,0,5,fax,0,5
Philadelphia VA Regional Benefit Office,3968,Pre-discharge claims,1172,Philadelphia VA Regional Benefit Office,1057,2,yes_walk_in_visits_only,yes_appointment_only,customize_text,Test text,1,0,tty,0,null,Office of Pre-discharge claims,Pre-discharge claims building,Room 321,1,2,hours_mf8_4,Operators are standing by 24/7.,1,1,tel,1,4
Philadelphia VA Regional Benefit Office,3968,Returning service member care,55,Philadelphia VA Regional Benefit Office,1057,3,yes_with_or_without_appointment,yes_veterans_can_call,remove_text,,null,0,fax,0,no,,,,1,1,,,0,2,tel,0,3
Philadelphia VA Regional Benefit Office,3968,Veteran readiness and employment programs,94,Philadelphia VA Regional Benefit Office,1057,1,null,virtual_visits_may_be_available,null,,0,1,tel,1,yes,Office of VRE,,,0,0,,,null,3,tel,1,2
Philadelphia VA Regional Benefit Office,3968,Veterans pension,1130,Philadelphia VA Regional Benefit Office,1057,2,no,no,use_default_text,,null,1,fax,0,no,,Pension building,,0,2,hours_mf8_4,,1,4,sms,0,1
Philadelphia VA Regional Benefit Office,3968,VetSuccess on Campus,1173,Philadelphia VA Regional Benefit Office,1057,3,yes_appointment_only,yes_appointment_only,customize_text,Test text,1,0,tel,1,null,,,North wing,1,1,,Come by any time.,0,5,tty,0,0

0 comments on commit c9ee1a3

Please sign in to comment.