Repository navigation
feat(uploads): dataset upload with drafts, review workflow, and resumable raw ZIP uploads; refs #147 - #148
Merged
Conversation
…, raw_upload_attempts); refs #147
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a login-based dataset upload system (refs #147):
/upload): logged-in users upload a dataset JSON. It is stored in thesandbox CouchDB (
sandbox1d) as a draft and tracked in Postgres./uploads/:internalId): metadata, publishing settings(target database + preferred dataset ID), Submit / Withdraw,
review discussion thread, and "View submitted JSON" via an owner-only backend proxy
(the sandbox URL is never sent to the browser).
storage service on Zodiac, with progress, pause/resume, resume after a page reload,
cancel, and server-side verification (size, ZIP check, SHA-256).
What's new
Backend
dataset_registry,submissions,submission_comments,requested_db,raw_objects,submission_raw_files,raw_upload_attempts/api/v1/uploads(create/update, list, detail, document proxy, submit,withdraw, settings, comments, raw upload sessions)
/api/v1/internal/storage/...event endpoint (HMAC only) + a reconciliation job thatfinishes uploads by pulling if a push is missed
storage-api/
and HMAC-protected
/internalendpointsFrontend
UploadPage,UploadDetailPage,UploadsTab,PublishSettingsDialog,RawDataUploader(tus-js-client)