This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new e246916 fix: select database fix (#16472)
e246916 is described below
commit e2469162fa074af229ff97e845755caf1a29ca0d
Author: AAfghahi <[email protected]>
AuthorDate: Mon Aug 30 20:04:10 2021 -0400
fix: select database fix (#16472)
* select database fix
* made a backend change
---
superset/views/core.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index d7e626e..6ec0709 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -3004,12 +3004,12 @@ class Superset(BaseSupersetView): # pylint:
disable=too-many-public-methods
.first()
)
- databases: Dict[int, Any] = {
- database.id: {
+ databases: Dict[int, Any] = {}
+ for database in DatabaseDAO.find_all():
+ databases[database.id] = {
k: v for k, v in database.to_json().items() if k in
DATABASE_KEYS
}
- for database in DatabaseDAO.find_all()
- }
+ databases[database.id]["backend"] = database.backend
queries: Dict[str, Any] = {}
# These are unnecessary if sqllab backend persistence is disabled