feat(api): dataset read API uuid support (#34836)

This commit is contained in:
Danylo Korostil
2025-08-30 03:21:24 +03:00
committed by GitHub
parent 6b69dc42dc
commit 077724c2d2
15 changed files with 106 additions and 43 deletions

View File

@@ -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:

View File

@@ -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(