aboutsummaryrefslogtreecommitdiff
path: root/uploader/samples/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-13 11:49:51 -0500
committerFrederick Muriuki Muriithi2024-09-13 11:49:51 -0500
commit319d4bf99a67aa7183c5cf5ee4f60e56a558d624 (patch)
tree31b3c7a0898242b3d8e15bf244cf28756bd75128 /uploader/samples/views.py
parent851af01fcb32f58ca230a49091cab9db0c8b1f29 (diff)
downloadgn-uploader-319d4bf99a67aa7183c5cf5ee4f60e56a558d624.tar.gz
Leave notes on things that need to be handled in code and UI
Diffstat (limited to 'uploader/samples/views.py')
-rw-r--r--uploader/samples/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/uploader/samples/views.py b/uploader/samples/views.py
index f444497..4332c21 100644
--- a/uploader/samples/views.py
+++ b/uploader/samples/views.py
@@ -200,6 +200,11 @@ def upload_samples(species_id: int, population_id: int):#pylint: disable=[too-ma
redisuri = app.config["REDIS_URL"]
with Redis.from_url(redisuri, decode_responses=True) as rconn:
+ #TODO: Add a QC step here — what do we check?
+ # 1. Does any sample in the uploaded file exist within the database?
+ # If yes, what is/are its/their species and population?
+ # 2. If yes 1. above, provide error with notes on which species and
+ # populations already own the samples.
the_job = jobs.launch_job(
jobs.initialise_job(
rconn,