mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat(api): dataset read API uuid support (#34836)
This commit is contained in:
@@ -106,7 +106,7 @@ class QueryContextFactory: # pylint: disable=too-few-public-methods
|
||||
def _convert_to_model(self, datasource: DatasourceDict) -> BaseDatasource:
|
||||
return DatasourceDAO.get_datasource(
|
||||
datasource_type=DatasourceType(datasource["type"]),
|
||||
datasource_id=int(datasource["id"]),
|
||||
database_id_or_uuid=datasource["id"],
|
||||
)
|
||||
|
||||
def _get_slice(self, slice_id: Any) -> Slice | None:
|
||||
|
||||
@@ -91,7 +91,7 @@ class QueryObjectFactory: # pylint: disable=too-few-public-methods
|
||||
def _convert_to_model(self, datasource: DatasourceDict) -> BaseDatasource:
|
||||
return self._datasource_dao.get_datasource(
|
||||
datasource_type=DatasourceType(datasource["type"]),
|
||||
datasource_id=int(datasource["id"]),
|
||||
database_id_or_uuid=datasource["id"],
|
||||
)
|
||||
|
||||
def _process_extras(
|
||||
|
||||
Reference in New Issue
Block a user