From 13f1944785229d2ad441a2e1e07f78f232cbd69f Mon Sep 17 00:00:00 2001 From: brouillette Date: Thu, 21 Apr 2022 12:35:40 -0400 Subject: [PATCH 1/2] patch: replaced fake gohan table name --- .../search/dataset_search/dataset_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_federation_service/search/dataset_search/dataset_search.py b/bento_federation_service/search/dataset_search/dataset_search.py index d7f0512..b6e07be 100644 --- a/bento_federation_service/search/dataset_search/dataset_search.py +++ b/bento_federation_service/search/dataset_search/dataset_search.py @@ -161,7 +161,7 @@ async def _fetch_table_definition_worker(table_queue: Queue, auth_header: Option # - Gohan compatibility # TODO: formalize/clean this up if USE_GOHAN and t['service_artifact'] == "variant": - url = f"api/gohan/tables/fake" + url = f"api/gohan/tables/{t['table_id']}" print("url: " + url) From 4894935b762e41b53fc2dba726b004b862280d73 Mon Sep 17 00:00:00 2001 From: brouillette Date: Thu, 21 Apr 2022 12:58:36 -0400 Subject: [PATCH 2/2] patched service_artifact check --- .../search/dataset_search/dataset_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_federation_service/search/dataset_search/dataset_search.py b/bento_federation_service/search/dataset_search/dataset_search.py index b6e07be..e3e3b8c 100644 --- a/bento_federation_service/search/dataset_search/dataset_search.py +++ b/bento_federation_service/search/dataset_search/dataset_search.py @@ -230,7 +230,7 @@ async def _table_search_worker( # - Gohan compatibility # TODO: formalize/clean this up - if USE_GOHAN and table_ownership['service_artifact'] == "variant": + if USE_GOHAN and table_ownership['service_artifact'] == "gohan": # reset path_fragment: path_fragment = (f"api/gohan/variants/get/by/variantId")