department-of-veterans-affairs / caseflow

Caseflow is a web application that enables the tracking and processing of appealed claims at the Board of Veterans' Appeals.
Other
53 stars 18 forks source link

Check for long addresses as part of validating veterans #6947

Closed shanear closed 5 years ago

shanear commented 6 years ago

BGS does not allow veterans to have addresses with address_line_1 greater than 20 characters. We should be validating that before the intake begins and adding an appropriate error message.

Acceptance Criteria

This Veteran's address is too long. Please edit it in VBMS or SHARE so each address field is no longer than 20 characters (including spaces) then try again.

Tips:

Do: move end of address to additional address fields (address 2 & 3) Do: abbreviate to St. Ave. Rd. Blvd. Dr. Ter. Pl. Ct. Don't: edit street names or numbers

Technical notes

Validation

  1. Find a veteran with an address_line1 (or address_line2/3) that is longer than 20 characters
  2. Attempt an intake with this veteran - there should be an error displayed with instructions to update their address in VBMS or SHARE.
shanear commented 6 years ago

Suzanne: talk to ARC or AMO about techniques to do this, and then write those in the message.

One possible technique is to use address_line_1 and address_line_2

shanear commented 6 years ago

Also explore potentially automatic ways to fix this.

abbyraskinUSDS commented 6 years ago

AMO gave the OK to break these into multiple lines

suzchap commented 6 years ago

This Veteran's address is too long. Please edit it in VBMS or SHARE so each address field is no longer than 20 characters (including spaces) then try again.

Tips:

kencheeto commented 6 years ago

I think I need some help again finding a veteran with a long address, but otherwise this will be merged in a bit and ready for validation.

shanear commented 5 years ago

I think we can just validate this one by making sure we don't see any Caseflow::Error::LongAddress errors. If we do we can always reopen this. That plus automated tests are good enough for me.

nicholasholtz commented 5 years ago

VA is beginning an effort to change VBA systems from 6x20 to 6x35. I do not have a projected date here.

To enable Vet360 to be the authoritative source of Veteran contact information, VBA must work to remove all dependencies on the 6 line by 20 character address format and align with standard postal and Department of Treasury requirements used by VHA. We are addressing most VBA dependencies by updating web services currently utilizing this format and updating the format to the validated 6 line by 35 character address format which is known as PAM.

Per OBPI, BGS will implement this for the February CI.

nicholasholtz commented 5 years ago

@amprokop FYI

kencheeto commented 5 years ago

thanks, this will be easy and safe to change after BGS implements 6x35 support.