diff options
| author | pi coding agent <pi@localhost> | 2026-10-22 20:19:14 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-22 16:14:05 -0500 |
| commit | d9b18832317be76657bf271724be89ed44833d21 (patch) | |
| tree | f80e3cdf6ab14dc3a24b515c012bb5faccd16bca /uploader/scripts/cli_parser.py | |
| parent | 429f036515e67319373bae2492de316772bf1769 (diff) | |
| download | gn-uploader-d9b18832317be76657bf271724be89ed44833d21.tar.gz | |
Reuse the shared resolver for phenotype uploads
Replace the hand-rolled resumable/direct branching in `process_phenotypes_individual_files` with `resolve_uploaded_file`, fixing several bugs in the direct-upload path: - optional files uploaded directly were skipped because presence was only checked in `request.form`, never in `request.files`; - `request.files[formkey]` raised `BadRequestKeyError` for a missing file, making the friendly error branch unreachable; - malformed/missing resumable data raised unhandled exceptions; - the absolute path from `save_file` was unnecessarily re-prefixed with the uploads directory. Use the returned original name (basename) as the zip arcname and in the control data, so both stay consistent.
Diffstat (limited to 'uploader/scripts/cli_parser.py')
0 files changed, 0 insertions, 0 deletions
