Skip to content

Commit

Permalink
improved heredicare and clinvar upload status display
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Aug 29, 2024
1 parent 0ab9520 commit 22fbb76
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/frontend_celery/webapp/variant/variant_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,11 @@ def summarize_heredicare_status(heredicare_queue_entries, publish_queue, mrcc):
if prefer_publish_queue_status and publish_queue.insert_tasks_status == "progress":
summary["status"] = "requesting"
if prefer_publish_queue_status and publish_queue.insert_tasks_status == "error":
summary["status"] = "error"
summary["insert_tasks_message"] = publish_queue.insert_tasks_message
if mrcc.needs_heredicare_upload:
summary["status"] = "error"
summary["insert_tasks_message"] = publish_queue.insert_tasks_message
else:
prefer_publish_queue_status = False
elif publish_queue.insert_tasks_status in ["success"]:
prefer_publish_queue_status = False
if not prefer_publish_queue_status:
Expand Down Expand Up @@ -361,7 +364,7 @@ def summarize_heredicare_status(heredicare_queue_entries, publish_queue, mrcc):



def summarize_clinvar_status(clinvar_queue_entries, publish_queue):
def summarize_clinvar_status(clinvar_queue_entries, publish_queue, mrcc):

summary = {"status": "unknown", "insert_tasks_message": ""}

Expand All @@ -377,8 +380,11 @@ def summarize_clinvar_status(clinvar_queue_entries, publish_queue):
if prefer_publish_queue_status and publish_queue.insert_tasks_status == "progress":
summary["status"] = "requesting"
if prefer_publish_queue_status and publish_queue.insert_tasks_status == "error":
summary["status"] = "error"
summary["insert_tasks_message"] = publish_queue.insert_tasks_message
if mrcc.needs_heredicare_upload:
summary["status"] = "error"
summary["insert_tasks_message"] = publish_queue.insert_tasks_message
else:
prefer_publish_queue_status = False
elif publish_queue.insert_tasks_status in ["success"]:
prefer_publish_queue_status = False
if not prefer_publish_queue_status:
Expand Down

0 comments on commit 22fbb76

Please sign in to comment.