-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds use cases for uploading files through direct upload API #153
Conversation
… into 152-direct-upload-files-use-case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all congratulations for such a great implementation and research about file uploading! 👏🏼
Overall the code looks very good and solid, I've left a few suggestions for minor improvements.
src/files/infra/repositories/transformers/fileUploadDestinationsTransformers.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
Looks good and all tests pass, merging! |
What this PR does / why we need it:
This PR includes the use cases to support file uploads through the Direct Upload API. These use cases are entirely based on the Direct Upload API, so for the review of this PR, I recommend to rely on: https://guides.dataverse.org/en/latest/developers/s3-direct-upload-api.html
Which issue(s) this PR closes:
Related PRs:
Special notes for your reviewer:
This PR does not incorporate use case functional tests because the tests are run outside the container network and we encountered issues with hostnames not being recognized for the generated destination URLs. However, coverage is still high, over 95%, and the different scenarios are tested with integration and unit tests.
Suggestions on how to test this:
Visual inspection of the code and unit and integration tests execution.
Additional documentation: