Skip to content
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

Add CSV file upload #9

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Add CSV file upload #9

merged 1 commit into from
Sep 30, 2024

Conversation

lkeegan
Copy link
Member

@lkeegan lkeegan commented Sep 30, 2024

  • replace single zip file upload with two file uploads: one h5 file, one csv file
  • replace /input_file endpoint with /input_h5_file and /input_csv_file
  • update model, endpoints and runner accordingly
  • validate csv file on frontend
    • parse first line and extract column names
    • require that "barcode", "cdr3", "chain" are present
  • resolves add CSV file upload #3
  • validate file sizes
  • increase nginx/flask body limit to 100MB

@lkeegan lkeegan force-pushed the fix_3_csv_file_upload branch 2 times, most recently from 06cfb84 to d869e3b Compare September 30, 2024 11:43
- replace single zip file upload with two file uploads: one h5 file, one csv file
- replace `/input_file` endpoint with `/input_h5_file` and `/input_csv_file`
- update model, endpoints and runner accordingly
- validate csv file on frontend
  - parse first line and extract column names
  - require that "barcode", "cdr3", "chain" are present
- resolves #3
- validate file sizes
  - h5 must be less than 50MB
  - csv must be less than 10MB
  - resolves #2
- increase nginx/flask body limit to 100MB
- make runner into a package, add initial test using requests-mock
@lkeegan lkeegan force-pushed the fix_3_csv_file_upload branch from d869e3b to 65a2e8c Compare September 30, 2024 11:56
@lkeegan lkeegan merged commit c4ad026 into main Sep 30, 2024
5 checks passed
@lkeegan lkeegan deleted the fix_3_csv_file_upload branch September 30, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add CSV file upload limit upload file sizes
1 participant