From 3d06a3c88bc806f3d733d4a1a3478cd7412c1f69 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Mon, 2 Nov 2020 13:19:28 -0800 Subject: [PATCH] chore: remove directory importexport --- superset/charts/commands/export.py | 2 +- superset/{importexport/commands/base.py => commands/export.py} | 0 superset/dashboards/commands/export.py | 2 +- superset/databases/commands/export.py | 2 +- superset/datasets/commands/export.py | 2 +- superset/queries/saved_queries/commands/export.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename superset/{importexport/commands/base.py => commands/export.py} (100%) diff --git a/superset/charts/commands/export.py b/superset/charts/commands/export.py index 23bdb55b2..326b290b9 100644 --- a/superset/charts/commands/export.py +++ b/superset/charts/commands/export.py @@ -25,7 +25,7 @@ import yaml from superset.charts.commands.exceptions import ChartNotFoundError from superset.charts.dao import ChartDAO from superset.datasets.commands.export import ExportDatasetsCommand -from superset.importexport.commands.base import ExportModelsCommand +from superset.commands.export import ExportModelsCommand from superset.models.slice import Slice from superset.utils.dict_import_export import IMPORT_EXPORT_VERSION, sanitize diff --git a/superset/importexport/commands/base.py b/superset/commands/export.py similarity index 100% rename from superset/importexport/commands/base.py rename to superset/commands/export.py diff --git a/superset/dashboards/commands/export.py b/superset/dashboards/commands/export.py index ba55b64be..26bb2b8a9 100644 --- a/superset/dashboards/commands/export.py +++ b/superset/dashboards/commands/export.py @@ -25,7 +25,7 @@ import yaml from superset.charts.commands.export import ExportChartsCommand from superset.dashboards.commands.exceptions import DashboardNotFoundError from superset.dashboards.dao import DashboardDAO -from superset.importexport.commands.base import ExportModelsCommand +from superset.commands.export import ExportModelsCommand from superset.models.dashboard import Dashboard from superset.utils.dict_import_export import IMPORT_EXPORT_VERSION, sanitize diff --git a/superset/databases/commands/export.py b/superset/databases/commands/export.py index a7715f5c0..4661c390a 100644 --- a/superset/databases/commands/export.py +++ b/superset/databases/commands/export.py @@ -24,7 +24,7 @@ import yaml from superset.databases.commands.exceptions import DatabaseNotFoundError from superset.databases.dao import DatabaseDAO -from superset.importexport.commands.base import ExportModelsCommand +from superset.commands.export import ExportModelsCommand from superset.models.core import Database from superset.utils.dict_import_export import IMPORT_EXPORT_VERSION, sanitize diff --git a/superset/datasets/commands/export.py b/superset/datasets/commands/export.py index a14cdcd67..fbcc7fd0f 100644 --- a/superset/datasets/commands/export.py +++ b/superset/datasets/commands/export.py @@ -22,10 +22,10 @@ from typing import Iterator, Tuple import yaml +from superset.commands.export import ExportModelsCommand from superset.connectors.sqla.models import SqlaTable from superset.datasets.commands.exceptions import DatasetNotFoundError from superset.datasets.dao import DatasetDAO -from superset.importexport.commands.base import ExportModelsCommand from superset.utils.dict_import_export import IMPORT_EXPORT_VERSION, sanitize logger = logging.getLogger(__name__) diff --git a/superset/queries/saved_queries/commands/export.py b/superset/queries/saved_queries/commands/export.py index 33dfffc86..44731b59d 100644 --- a/superset/queries/saved_queries/commands/export.py +++ b/superset/queries/saved_queries/commands/export.py @@ -22,7 +22,7 @@ from typing import Iterator, Tuple import yaml -from superset.importexport.commands.base import ExportModelsCommand +from superset.commands.export import ExportModelsCommand from superset.models.sql_lab import SavedQuery from superset.queries.saved_queries.commands.exceptions import SavedQueryNotFoundError from superset.queries.saved_queries.dao import SavedQueryDAO -- GitLab