You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2022/08/02 20:16:52 UTC
[superset] branch master updated: fix(import): error with disable_data_preview field (#20932)
This is an automated email from the ASF dual-hosted git repository.
rusackas 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 6ce027d2f8 fix(import): error with disable_data_preview field (#20932)
6ce027d2f8 is described below
commit 6ce027d2f80476b2586adccde80083b689de1d07
Author: Diego Medina <di...@gmail.com>
AuthorDate: Tue Aug 2 17:16:45 2022 -0300
fix(import): error with disable_data_preview field (#20932)
---
superset/databases/schemas.py | 1 +
superset/datasets/schemas.py | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/superset/databases/schemas.py b/superset/databases/schemas.py
index bd30ad4ec5..aa88822a85 100644
--- a/superset/databases/schemas.py
+++ b/superset/databases/schemas.py
@@ -626,6 +626,7 @@ class ImportV1DatabaseExtraSchema(Schema):
cost_estimate_enabled = fields.Boolean()
allows_virtual_table_explore = fields.Boolean(required=False)
cancel_query_on_windows_unload = fields.Boolean(required=False)
+ disable_data_preview = fields.Boolean(required=False)
class ImportV1DatabaseSchema(Schema):
diff --git a/superset/datasets/schemas.py b/superset/datasets/schemas.py
index 8a44da458f..38646471d0 100644
--- a/superset/datasets/schemas.py
+++ b/superset/datasets/schemas.py
@@ -144,7 +144,7 @@ class ImportV1ColumnSchema(Schema):
@pre_load
def fix_extra(self, data: Dict[str, Any], **kwargs: Any) -> Dict[str, Any]:
"""
- Fix for extra initially beeing exported as a string.
+ Fix for extra initially being exported as a string.
"""
if isinstance(data.get("extra"), str):
data["extra"] = json.loads(data["extra"])
@@ -170,7 +170,7 @@ class ImportV1MetricSchema(Schema):
@pre_load
def fix_extra(self, data: Dict[str, Any], **kwargs: Any) -> Dict[str, Any]:
"""
- Fix for extra initially beeing exported as a string.
+ Fix for extra initially being exported as a string.
"""
if isinstance(data.get("extra"), str):
data["extra"] = json.loads(data["extra"])
@@ -192,7 +192,7 @@ class ImportV1DatasetSchema(Schema):
@pre_load
def fix_extra(self, data: Dict[str, Any], **kwargs: Any) -> Dict[str, Any]:
"""
- Fix for extra initially beeing exported as a string.
+ Fix for extra initially being exported as a string.
"""
if isinstance(data.get("extra"), str):
data["extra"] = json.loads(data["extra"])