This is an issue in the sequence of tickets to ensure the CPF reporter can accept a user-submitted upload file and receive feedback on any errors that are present in the submitted file data.
Blocked By
[x] #159
Current State
The following button on the upload-details page is not actually performing any action:
Download
Expected State
The following button on the upload-details page are able to make requests to the GraphQL server and handling the response appropriately:
Download
Must receive a SignedURL from S3 for the object and open a new-tab on the client that gets the URL
Acceptance Criteria
The Download must be performing the intended function as described above
Why is this issue important?
See User Story here https://github.com/usdigitalresponse/cpf-reporter/issues/73
This is an issue in the sequence of tickets to ensure the CPF reporter can accept a user-submitted upload file and receive feedback on any errors that are present in the submitted file data.
Blocked By
Current State
The following button on the upload-details page is not actually performing any action:
Expected State
The following button on the upload-details page are able to make requests to the GraphQL server and handling the response appropriately:
Acceptance Criteria
Implementation Plan
Download Button: API Changes
See the following throwaway PR: https://github.com/usdigitalresponse/cpf-reporter/compare/as/throwaway-download-code?expand=1
Add mutation called
downloadUploadFile
Add the function to
src/services/uploads/uploads.ts
. And add corresponding tests inuploads.test.ts
aws.ts
to anticipate theupload
as the argument forgetSignedUrl
.Download Button: Front-end Changes
Example code here: https://github.com/usdigitalresponse/cpf-reporter/compare/as/throwaway-download-code?expand=1#diff-f52c147a71be1b28df2d58bf7eab4091c7f3e08afd94ca098cfccf539ef4e5f1R1 Changes are needed in this file:
web/src/components/Upload/Upload/Upload.tsx
Relevant Code Snippets
No response