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
resumable dataset upload #4860
resumable dataset upload #4860
Conversation
ToDo:
|
Regarding this ToDo:
resumable uses this code to generate it:
In my opinion, this isn't unique enough, but I am not sure if it would be enough to add a time code or if we should add the user token in the backend, but that could break it, if the token changes while uploading. Any ideas @philippotto, @fm3 ? |
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.
Awesome stuff! Just left a few small comments and you probably want to change the unique identifier thing, right?
Co-authored-by: Philipp Otto <philippotto@users.noreply.github.com>
Co-authored-by: Philipp Otto <philippotto@users.noreply.github.com>
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.
Looks good from my side 🕺
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.
I like the approach and separating uploading of chunks and a final finish request seems fair. To be honest I had some troubles understanding some of the semantics of pendingUploadChunks
and needsWrite
in the DataSourceService
. Maybe we can figure something out for that (or maybe I just need a verbal explanation)
...nossos-datastore/app/com/scalableminds/webknossos/datastore/services/DataSourceService.scala
Outdated
Show resolved
Hide resolved
...nossos-datastore/app/com/scalableminds/webknossos/datastore/services/DataSourceService.scala
Outdated
Show resolved
Hide resolved
...nossos-datastore/app/com/scalableminds/webknossos/datastore/services/DataSourceService.scala
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.
Thanks, with the renamings everything gets clear 👍 Works for me and Backend LGTM
🕺 🎉 |
This reverts commit 20b1095.
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
[ ] Updated (unreleased) migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes