diff --git a/superset/dashboards/schemas.py b/superset/dashboards/schemas.py index b5a12737ad217..9054af6da8ce1 100644 --- a/superset/dashboards/schemas.py +++ b/superset/dashboards/schemas.py @@ -374,6 +374,9 @@ class ImportV1DashboardSchema(Schema): version = fields.String(required=True) is_managed_externally = fields.Boolean(allow_none=True, dump_default=False) external_url = fields.String(allow_none=True) + certified_by = fields.String(allow_none=True) + certification_details = fields.String(allow_none=True) + published = fields.Boolean(allow_none=True) class EmbeddedDashboardConfigSchema(Schema): diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py index 20f2f7e685f07..1d02c65b590b9 100644 --- a/superset/models/dashboard.py +++ b/superset/models/dashboard.py @@ -178,6 +178,9 @@ class Dashboard(Model, AuditMixinNullable, ImportExportMixin): "description", "css", "slug", + "certified_by", + "certification_details", + "published", ] extra_import_fields = ["is_managed_externally", "external_url"] diff --git a/tests/integration_tests/dashboards/commands_tests.py b/tests/integration_tests/dashboards/commands_tests.py index 7106a978c4170..75bdd17bcf158 100644 --- a/tests/integration_tests/dashboards/commands_tests.py +++ b/tests/integration_tests/dashboards/commands_tests.py @@ -92,6 +92,9 @@ def test_export_dashboard_command(self, mock_g1, mock_g2): "description": None, "css": None, "slug": "world_health", + "certified_by": None, + "certification_details": None, + "published": False, "uuid": str(example_dashboard.uuid), "position": { "CHART-36bfc934": { @@ -279,6 +282,9 @@ def test_export_dashboard_command_key_order(self, mock_g1, mock_g2): "description", "css", "slug", + "certified_by", + "certification_details", + "published", "uuid", "position", "metadata",