From 2df074111b7c8969847b3bc49cec08e6883842be Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Wed, 15 Dec 2021 16:24:29 +0100 Subject: [PATCH] Test flash loqus settings --- CHANGELOG.md | 1 + scout/server/blueprints/variant/controllers.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 866e95e8f7..0a6418f68b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/) - Modified the code to collect database params specified as env vars - Created a GitHub action that pushes the Dockerfile-server image to Docker Hub (scout-server-stage) every time a PR is opened - Created a GitHub action that pushes the Dockerfile-server image to Docker Hub (scout-server) every time a new release is created +- Temp debug message to check why loqus is not reachable ### Changed - Updated the python config file documentation in admin guide ### Fixed diff --git a/scout/server/blueprints/variant/controllers.py b/scout/server/blueprints/variant/controllers.py index 28124e9222..4a8f32a469 100644 --- a/scout/server/blueprints/variant/controllers.py +++ b/scout/server/blueprints/variant/controllers.py @@ -405,7 +405,10 @@ def observations(store, loqusdb, case_obj, variant_obj): institute_obj = store.institute(institute_id) loqusdb_id = institute_obj.get("loqusdb_id") or "default" if loqusdb.loqusdb_settings[loqusdb_id]["version"] is None: - flash("Could not connect to the preselected loqusdb instance", "danger") + flash( + f"Could not connect to the preselected loqusdb instance. Settings:{loqusdb.loqusdb_settings}", + "danger", + ) return { "total": "N/A", }