mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
fix: dataset extra import/export (#17740)
* fix: dataset extra import/export * Update superset/datasets/commands/importers/v1/utils.py
This commit is contained in:
@@ -325,7 +325,10 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
assert dataset.template_params == "{}"
|
||||
assert dataset.filter_select_enabled
|
||||
assert dataset.fetch_values_predicate is None
|
||||
assert dataset.extra == "dttm > sysdate() -10 "
|
||||
assert (
|
||||
dataset.extra
|
||||
== '{"certification": {"certified_by": "Data Platform Team", "details": "This table is the source of truth."}, "warning_markdown": "This is a warning."}'
|
||||
)
|
||||
|
||||
# user should be included as one of the owners
|
||||
assert dataset.owners == [mock_g.user]
|
||||
|
||||
@@ -373,7 +373,7 @@ dataset_config: Dict[str, Any] = {
|
||||
"template_params": {},
|
||||
"filter_select_enabled": True,
|
||||
"fetch_values_predicate": None,
|
||||
"extra": "dttm > sysdate() -10 ",
|
||||
"extra": '{ "certification": { "certified_by": "Data Platform Team", "details": "This table is the source of truth." }, "warning_markdown": "This is a warning." }',
|
||||
"metrics": [
|
||||
{
|
||||
"metric_name": "count",
|
||||
|
||||
Reference in New Issue
Block a user