mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(dao): Organize DAOs according to SIP-92 (#24331)
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
This commit is contained in:
@@ -24,8 +24,8 @@ from flask_appbuilder.models.sqla.interface import SQLAInterface
|
||||
|
||||
from superset import is_feature_enabled
|
||||
from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
|
||||
from superset.daos.dashboard import EmbeddedDashboardDAO
|
||||
from superset.dashboards.schemas import EmbeddedDashboardResponseSchema
|
||||
from superset.embedded.dao import EmbeddedDAO
|
||||
from superset.embedded_dashboard.commands.exceptions import (
|
||||
EmbeddedDashboardNotFoundError,
|
||||
)
|
||||
@@ -98,7 +98,7 @@ class EmbeddedDashboardRestApi(BaseSupersetModelRestApi):
|
||||
$ref: '#/components/responses/500'
|
||||
"""
|
||||
try:
|
||||
embedded = EmbeddedDAO.find_by_id(uuid)
|
||||
embedded = EmbeddedDashboardDAO.find_by_id(uuid)
|
||||
if not embedded:
|
||||
raise EmbeddedDashboardNotFoundError()
|
||||
result = self.embedded_response_schema.dump(embedded)
|
||||
|
||||
Reference in New Issue
Block a user