Skip to content

Exploration demo for bulk revision with files#6770

Draft
tombch wants to merge 39 commits into
mainfrom
bulk-submission-revise-files
Draft

Exploration demo for bulk revision with files#6770
tombch wants to merge 39 commits into
mainfrom
bulk-submission-revise-files

Conversation

@tombch

@tombch tombch commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Another demo idea for #5820 :)

PR description generated by AI:

Summary

Adds bulk file revision: keep, replace, and add the files attached to a group's sequences when revising in bulk.

The "Download originally submitted data" zip now includes a files.tsv listing the existing files, which the bulk revise page reads back to pre-populate the files before edit and submit.

Changes

Backend

  • get-submitted-data zip now includes files.tsv (one row per file: id, category, fileId, fileName) when the organism has files enabled. id reuses the metadata TSV's id so the two join on re-upload.

Website

  • parseExistingFilesTsv parses an uploaded files.tsv into FilesBySubmissionId.
  • Bulk revise shows two drop zones — Reuse existing files (files.tsv) and Upload folder — both leading to the same file list.
  • That list supports per-file discard, plus a folder "Add additional files" that overlays (same name replaces, others added, new sequence IDs accepted).
  • Form / single-edit flows unchanged (gated behind bulk-revise).

Testing

  • Backend: GetSubmittedDataWithFilesEndpointTest (contents, id↔metadata join, no-files case).
  • Website: parseExistingFilesTsv unit tests + FolderUploadComponent tests (two-drop-zone, bulk discard, overlay). Submission suite green; types/lint clean.

Screenshot

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by appropriate, automated tests.
  • Any manual testing that has been done is documented.

🚀 Preview: https://bulk-submission-revise-fi.loculus.org

tombch and others added 30 commits May 27, 2026 13:22
…with discard files and accessing default files
…h discard all files not working for revisions
…dit page: if we had an empty file mapping, keyed on submission id, this would display the folder upload. files would then be added, but keyed to dummy submission id. at submit time, the 'first' item in the map was accessed - the empty submission id map. I've decided to update the component to include an optional formSubmissionId, as in the edit/revise case we have the submission id already. this removes the possibility of having a mix of real id and dummy in the single edit/revise case which IMO was a bit of a footgun
@claude claude Bot added website Tasks related to the web application backend related to the loculus backend component labels Jun 25, 2026
@tombch tombch added the preview Triggers a deployment to argocd label Jun 25, 2026
Base automatically changed from single-submission-revise-files to main June 29, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend related to the loculus backend component preview Triggers a deployment to argocd website Tasks related to the web application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant