vets-api icon indicating copy to clipboard operation
vets-api copied to clipboard

82557: Add all the logic to handle DB insertion with uploads controller

Open balexandr opened this issue 9 months ago • 1 comments

In support of sending an email update to a VFMP applicant, the PEGA response that represents the applicants data needs to be stored in the VA.gov back end.

This is Part A of this ticket as it handles the initial DB insertion and setup for part B

Summary

  • Update database to remove email uniqueness index; Add index for form_uuid
  • Update model to remove validation
  • Update existing models to include email and uuid
  • Add DB creation when file is being uploaded
  • Add Rspec to ensure database record is being added
  • Update existing tests

Related issue(s)

  • https://github.com/department-of-veterans-affairs/va.gov-team/issues/82557

Screenshots

Screenshot 2024-05-09 at 4 42 02 PM

Testing done

  • Rspec tests
  • Manual tests

Acceptance criteria

Given a well-formed call to the callback endpoint When the response is received Then the response should be persisted so that status can be send back to the applicantexpected

balexandr avatar May 09 '24 18:05 balexandr