Skip to content

Commit

Permalink
[GEN-285] hotfix - make sure release folder fileview is indexed (#488)
Browse files Browse the repository at this point in the history
* Add query

* Push patch
  • Loading branch information
thomasyu888 authored Nov 14, 2022
1 parent 383391d commit 9881c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion genie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__"]
3 changes: 3 additions & 0 deletions genie/dashboard_table_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' "
Expand Down

0 comments on commit 9881c86

Please sign in to comment.