department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

[Spike] VEDUHSF Fixes -LH migration for evidence uploads error responses #91097

Open lisacapaccioli opened 2 months ago

lisacapaccioli commented 2 months ago

Most of the fixes for the silent upload failures are going to require the LH migration for evidence uploads. Before we can plan the fixes we need to know more about the LH Migration endpoint.

Example

Probably way more than I can think of right now.

Notes

ajones446 commented 2 months ago

Gathering context for LH requirements -

1: Summary of June 17 slack convo

VA.gov should use the Benefits Documents API for uploading documents related to claims. Documentation here: https://developer.va.gov/explore/api/benefits-documents/docs?version=current

Requirements we should check before sending to Lighthouse

### 2: Other requirements from Benefits Intake API documentation There is no limit on the number of files a payload can contain, but file size and page dimension limits do apply. - Uploaded PDFs can't be larger than 78" x 101". - Uploaded PDFs can't exceed 100 MB. (*this is different than max file size listed above) - The entire payload can't exceed 5 GB.

To prevent submission delays and errors: - Be sure to validate all metadata fields against their data requirements as defined in the DocumentUploadMetadata schema before submitting your payload. - The businessLine field is optional, but when included, it will ensure the fastest possible processing. If not specified, businessLine will default to CMP, the business line for Compensation requests. - The POST /uploads/validatedocument endpoint can be used to ensure individual PDF documents meet system requirements prior to submission. (*this only appears to be for PDFs_)

UPDATE: I copied those requirements from the wrong API earlier - for Benefits INTAKE. We will be using the Benefits DOCUMENTS API https://developer.va.gov/explore/api/benefits-documents/docs?version=current

ajones446 commented 2 months ago

For the final form submit, we will use the LH benefits-document API POST /documents endpoint. That endpoint is ready - the mobile team has been using it.

Updates from 8.27 slack convo

ajones446 commented 2 months ago

Note from the mobile team about their LH migration experience: https://github.com/department-of-veterans-affairs/va.gov-team/issues/88297#issuecomment-2230998143, probably related to the requirement The fileNumber/participantId belongs to the claimId

Only minor gotcha is that the user must be a Veteran or a dependent of a deceased Veteran in order to upload files. If they are a dependent of a living Veteran than you will get back a 4XX error

lisacapaccioli commented 2 months ago

@ajones446 I'm assuming there is something in the User Information that distinguishes a dependent and whether the Veteran is living or deceased and that they check against the fileNumber/participantId? We'll have to remember to ask OCTO if this would ever be a problem when filing a disability claim. I don't know if dependents are allowed to file them (my assumption would be no).