From 9881c86227ca95cb36c7d21d641e059e8fabb83f Mon Sep 17 00:00:00 2001 From: Thomas Yu Date: Sun, 13 Nov 2022 23:33:01 -0800 Subject: [PATCH] [GEN-285] hotfix - make sure release folder fileview is indexed (#488) * Add query * Push patch --- genie/__init__.py | 2 +- genie/dashboard_table_updater.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/genie/__init__.py b/genie/__init__.py index 8c113d81..d7f9fe9d 100644 --- a/genie/__init__.py +++ b/genie/__init__.py @@ -7,6 +7,6 @@ # create version in __init__.py # https://packaging.python.org/en/latest/guides/single-sourcing-package-version/ -__version__ = "14.3.0" +__version__ = "14.3.1" __all__ = ["__version__"] diff --git a/genie/dashboard_table_updater.py b/genie/dashboard_table_updater.py index e1d37c31..52c7f560 100644 --- a/genie/dashboard_table_updater.py +++ b/genie/dashboard_table_updater.py @@ -633,6 +633,9 @@ def update_data_release_file_table(syn, database_mappingdf): release_folder_fileview_synid = database_mappingdf["Id"][ database_mappingdf["Database"] == "releaseFolder" ].values[0] + # Add this query so that the fileview is indexed to include the + # new release folder + syn.tableQuery(f"select * from {release_folder_fileview_synid} limit 1") release_folder = syn.tableQuery( "select id,name from %s" % release_folder_fileview_synid + " where name not like 'Release%' and name <> 'case_lists' "