Skip to content

Commit

Permalink
chore(connector): Cleanup base models and views
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley committed Jul 21, 2023
1 parent abb8e28 commit 42e2c6c
Show file tree
Hide file tree
Showing 26 changed files with 699 additions and 919 deletions.
2 changes: 1 addition & 1 deletion superset/charts/data/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from superset.charts.post_processing import apply_post_process
from superset.charts.schemas import ChartDataQueryContextSchema
from superset.common.chart_data import ChartDataResultFormat, ChartDataResultType
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource
from superset.daos.exceptions import DatasourceNotFound
from superset.exceptions import QueryObjectValidationError
from superset.extensions import event_logger
Expand Down
2 changes: 1 addition & 1 deletion superset/charts/post_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
)

if TYPE_CHECKING:
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource
from superset.models.sql_lab import Query


Expand Down
2 changes: 1 addition & 1 deletion superset/commands/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from superset.utils.core import DatasourceType, get_user_id

if TYPE_CHECKING:
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource


def populate_owners(
Expand Down
2 changes: 1 addition & 1 deletion superset/common/query_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from superset import app
from superset.common.chart_data import ChartDataResultType
from superset.common.db_query_status import QueryStatus
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource
from superset.exceptions import QueryObjectValidationError
from superset.utils.core import (
extract_column_dtype,
Expand Down
2 changes: 1 addition & 1 deletion superset/common/query_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from superset.models.slice import Slice

if TYPE_CHECKING:
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource
from superset.models.helpers import QueryResult


Expand Down
2 changes: 1 addition & 1 deletion superset/common/query_context_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from superset.utils.core import DatasourceDict, DatasourceType

if TYPE_CHECKING:
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource

config = app.config

Expand Down
2 changes: 1 addition & 1 deletion superset/common/query_context_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
get_since_until_from_query_object,
get_since_until_from_time_range,
)
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource
from superset.constants import CacheRegion, TimeGrain
from superset.daos.annotation import AnnotationLayerDAO
from superset.daos.chart import ChartDAO
Expand Down
2 changes: 1 addition & 1 deletion superset/common/query_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from superset.utils.hashing import md5_sha_from_dict

if TYPE_CHECKING:
from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion superset/common/query_object_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
if TYPE_CHECKING:
from sqlalchemy.orm import sessionmaker

from superset.connectors.base.models import BaseDatasource
from superset.connectors.sqla.models import BaseDatasource
from superset.daos.datasource import DatasourceDAO


Expand Down
16 changes: 0 additions & 16 deletions superset/connectors/base/__init__.py

This file was deleted.

Loading

0 comments on commit 42e2c6c

Please sign in to comment.