You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cr...@apache.org on 2023/06/03 15:19:54 UTC

[superset] branch master updated: fix: ensure json is not None (#24280)

This is an automated email from the ASF dual-hosted git repository.

craigrueda 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 40fffc396c fix: ensure json is not None (#24280)
40fffc396c is described below

commit 40fffc396c5206b38ae1be63c05c08f43908d576
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Sat Jun 3 08:19:36 2023 -0700

    fix: ensure json is not None (#24280)
---
 .../2023-05-11_12-41_4ea966691069_cross_filter_global_scoping.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/migrations/versions/2023-05-11_12-41_4ea966691069_cross_filter_global_scoping.py b/superset/migrations/versions/2023-05-11_12-41_4ea966691069_cross_filter_global_scoping.py
index 638e54430f..eac4f0a2b6 100644
--- a/superset/migrations/versions/2023-05-11_12-41_4ea966691069_cross_filter_global_scoping.py
+++ b/superset/migrations/versions/2023-05-11_12-41_4ea966691069_cross_filter_global_scoping.py
@@ -59,7 +59,7 @@ def upgrade():
         #
         needs_upgrade = True
         try:
-            json_metadata = json.loads(dashboard.json_metadata)
+            json_metadata = json.loads(dashboard.json_metadata or "{}")
             new_chart_configuration = {}
             for config in json_metadata.get("chart_configuration", {}).values():
                 chart_id = int(config.get("id", 0))