From 1fc3d041adaa83d265090e62733e7546664d1b94 Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Thu, 17 Oct 2024 13:40:40 +0200 Subject: [PATCH] comment out mapping generation for now --- backend/src/upload.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/src/upload.py b/backend/src/upload.py index 6fd323a..e34c8ad 100644 --- a/backend/src/upload.py +++ b/backend/src/upload.py @@ -405,16 +405,16 @@ async def upload_cohort( ) # NOTE: waiting for more tests before sending to production - background_tasks.add_task(generate_mappings, cohort_id, metadata_path, g) + # background_tasks.add_task(generate_mappings, cohort_id, metadata_path, g) # TODO: move all the "delete_existing_triples" and "publish_graph_to_endpoint" logic to the background task after mappings have been generated # Delete previous graph for this file from triplestore # TODO: will move to background task - # delete_existing_triples( - # get_cohort_mapping_uri(cohort_id), f"<{get_cohort_uri(cohort_id)!s}>", "icare:previewEnabled" - # ) - # delete_existing_triples(get_cohort_uri(cohort_id)) - # publish_graph_to_endpoint(g) + delete_existing_triples( + get_cohort_mapping_uri(cohort_id), f"<{get_cohort_uri(cohort_id)!s}>", "icare:previewEnabled" + ) + delete_existing_triples(get_cohort_uri(cohort_id)) + publish_graph_to_endpoint(g) except Exception as e: os.remove(metadata_path) raise e