-
Notifications
You must be signed in to change notification settings - Fork 31
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
HydroShare Bulk Upload #3032
HydroShare Bulk Upload #3032
Conversation
Previously we uploaded files one by one to HydroShare. When overwriting, we would have to check if the file existed and delete it before uploading the same file again. This took a long time, slowed by the need to make three calls per file. With the new "unzip overwrite" functionality introduced in hydroshare/hydroshare#2943, we can do "bulk uplaods" by zipping all the files into one archive, sending that once, and unzipping on HydroShare, overwriting any existing files. This reduces the time taken to do a HydroShare Export.
115de35
to
04d1201
Compare
This is now ready for testing, as the bug encountered (and described in the Notes section above) has been remedied: hydroshare/hydroshare#2860 (comment) |
Had some trouble getting HydroShare set up. Reassigning to @caseycesari so that I don't block this one. |
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.
Everything worked without issue! Nice job.
Thanks! Merging this now. |
Overview
Previously we uploaded files one by one to HydroShare. When overwriting, we would have to check if the file existed and delete it before uploading the same file again. This took a long time, slowed by the need to make three calls per file.
With the new "unzip overwrite" functionality introduced in hydroshare/hydroshare#2943, we can do "bulk uploads" by zipping all the files into one archive, sending that once, and unzipping on HydroShare, overwriting any existing files.
This reduces the time taken to do a HydroShare Export.
Connects #3016
Notes
For some reason,
mmw_project_snapshot.json
is deleted, not overwritten, on subsequent uploads. This is being discussed here: hydroshare/hydroshare#2860 (comment).Testing Instructions