Description
Create a ruby script to run in production to count the % of claims filed through vets-api that have user supplied files attached.
Based on this slack conversation:
https://dsva.slack.com/archives/C5AGLBNRK/p1655248009960399
Matt Self and Emily "Fast Track" Theis want to count user supplied 526 file uploads. Specifically, they are after the percent of claims submitted through vets-api that have user supplied files.
For the initial count, we can look at the Form526Submissions table. Filter on successfully submitted claims and the user attached files are down in the From526Submission record form_json field.
For CST file uploads, the endpoint is:
v0/evss_claims/<claim_id>/documents
So for example https://staging-api.va.gov/v0/evss_claims/600307936/documents
Follow that code, but the files might end up in the form_attachments table.
Some very basic notes I jotted down:
https://docs.google.com/document/d/1fOPZWyfcoWFJZ2LNne4rgK-OcDptg5bUqoLA5rSVLMA/edit
- ruby script to run in production to count the % of claims filed through vets-api that have user supplied files attached
Activity