This is an automated email from the ASF dual-hosted git repository. johnbodley pushed a commit to branch john-bodley--fix-tables-include-database-id in repository https://gitbox.apache.org/repos/asf/superset.git
commit 0846b44bd96917c92a7e3d6241cd020c6bcedf6f Author: John Bodley <[email protected]> AuthorDate: Fri Oct 7 17:06:34 2022 -0700 fix: Include database filter when fetching table extra dict --- superset/views/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset/views/core.py b/superset/views/core.py index 1382fbd020..60ce1edfd2 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -1198,7 +1198,10 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods extra_dict_by_name = { table.name: table.extra_dict for table in ( - db.session.query(SqlaTable).filter(SqlaTable.schema == schema_parsed) + db.session.query(SqlaTable).filter( + SqlaTable.database_id == database.id, + SqlaTable.schema == schema_parsed, + ) ).all() }
