aboutsummaryrefslogtreecommitdiff
path: root/qc_app/samples.py
AgeCommit message (Collapse)Author
2024-06-12Make URI and UI correspond to each other.Frederick Muriuki Muriithi
Formerly, the URI and UI were not corresponding to each other, e.g. the URI /upload/samples/select_species would display the UI for selecting/creating the population. This was very confusing. This commit fixes that. The commit also adds in user input validation to catch input errors.
2024-06-12Validate input before attempting to use it.Frederick Muriuki Muriithi
2024-05-05Fix indentation.Frederick Muriuki Muriithi
2024-02-12Raise error if file is missing rather than returning a Union value.Frederick Muriuki Muriithi
2024-01-24Checks: Update code and tests to ensure all checks pass.Frederick Muriuki Muriithi
2024-01-24redis-prefix: update "upload samples" pathFrederick Muriuki Muriithi
2024-01-15Update imports: `take` was moved to different package.Frederick Muriuki Muriithi
2024-01-08Use extracted functions and fix bugsFrederick Muriuki Muriithi
2024-01-08Extract common database functions into a separate package.Frederick Muriuki Muriithi
2023-12-19Bug: Commit population before trying to upload data.Frederick Muriuki Muriithi
2023-12-18Samples: Hook-up external async script to upload the samples.Frederick Muriuki Muriithi
2023-12-14samples: Create external script and fix some bugs.Frederick Muriuki Muriithi
2023-12-14Pass connection to `species_by_id` function.Frederick Muriuki Muriithi
To make `species_by_id` function reusable even outside of the application context, pass in the database connection instead of creating the connection inside the function.
2023-12-11samples: Fix bugs in code saving samples to dbFrederick Muriuki Muriithi
* Check whether first row in file is for headings * Break infinite loop: check batch has content * Update saving of uploaded files
2023-12-07Samples: Read an save data to db.Frederick Muriuki Muriithi
2023-12-06Feature: Upload Samples/CasesFrederick Muriuki Muriithi
Implements the code enabling the upload of the samples/cases to the database.