mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: switching out ConnectorRegistry references for DatasourceDAO (#20380)
* rename and move dao file * Update dao.py * add cachekey * Update __init__.py * change reference in query context test * add utils ref * more ref changes * add helpers * add todo in dashboard.py * add cachekey * circular import error in dar.py * push rest of refs * fix linting * fix more linting * update enum * remove references for connector registry * big reafctor * take value * fix * test to see if removing value works * delete connectregistry * address concerns * address comments * fix merge conflicts * address concern II * address concern II * fix test Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com>
This commit is contained in:
@@ -23,7 +23,7 @@ from typing import Any, Dict, List, Set
|
||||
from urllib import request
|
||||
|
||||
from superset import app, db
|
||||
from superset.connectors.connector_registry import ConnectorRegistry
|
||||
from superset.connectors.sqla.models import SqlaTable
|
||||
from superset.models.slice import Slice
|
||||
|
||||
BASE_URL = "https://github.com/apache-superset/examples-data/blob/master/"
|
||||
@@ -32,7 +32,7 @@ misc_dash_slices: Set[str] = set() # slices assembled in a 'Misc Chart' dashboa
|
||||
|
||||
|
||||
def get_table_connector_registry() -> Any:
|
||||
return ConnectorRegistry.sources["table"]
|
||||
return SqlaTable
|
||||
|
||||
|
||||
def get_examples_folder() -> str:
|
||||
|
||||
Reference in New Issue
Block a user