Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a rough sketch of the implementation of the raw data/files sharing. Based on feedback, further thoughts and looking through the code, I further refined the proposal that I posted in #3344 (comment).
The basic flow:
/files/request-uploads
, providing the number of files that it wants to upload.<private bucket>/files_uploads/<file id>
where the file id is a UUID. It sends the pre-signed URLs to the client./files/confirm-uploads
with the IDs of the uploaded files.<private bucket>/files/<file id>
./submit
and provides in the metadata file in the columnfile
the file ID for each entry./files/request-uploads
to get pre-signed URLs to upload processed files, and uploads the processed files, and calls/files/confirm-uploads
to confirm the uploads./submit-processed-data
with the processed metadata, consensus sequences, and associated file IDs./get-released-data
Some notes:
/files_uploads
to/files
, we ensure that the file cannot be edited afterward. This is needed because it is not possible to invalidate a pre-signed URL.