mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore(command): Organize Commands according to SIP-92 (#25850)
This commit is contained in:
@@ -24,22 +24,6 @@ from flask_appbuilder.models.sqla.interface import SQLAInterface
|
||||
from flask_babel import ngettext
|
||||
from marshmallow import ValidationError
|
||||
|
||||
from superset.annotation_layers.annotations.commands.create import (
|
||||
CreateAnnotationCommand,
|
||||
)
|
||||
from superset.annotation_layers.annotations.commands.delete import (
|
||||
DeleteAnnotationCommand,
|
||||
)
|
||||
from superset.annotation_layers.annotations.commands.exceptions import (
|
||||
AnnotationCreateFailedError,
|
||||
AnnotationDeleteFailedError,
|
||||
AnnotationInvalidError,
|
||||
AnnotationNotFoundError,
|
||||
AnnotationUpdateFailedError,
|
||||
)
|
||||
from superset.annotation_layers.annotations.commands.update import (
|
||||
UpdateAnnotationCommand,
|
||||
)
|
||||
from superset.annotation_layers.annotations.filters import AnnotationAllTextFilter
|
||||
from superset.annotation_layers.annotations.schemas import (
|
||||
AnnotationPostSchema,
|
||||
@@ -47,7 +31,17 @@ from superset.annotation_layers.annotations.schemas import (
|
||||
get_delete_ids_schema,
|
||||
openapi_spec_methods_override,
|
||||
)
|
||||
from superset.annotation_layers.commands.exceptions import AnnotationLayerNotFoundError
|
||||
from superset.commands.annotation_layer.annotation.create import CreateAnnotationCommand
|
||||
from superset.commands.annotation_layer.annotation.delete import DeleteAnnotationCommand
|
||||
from superset.commands.annotation_layer.annotation.exceptions import (
|
||||
AnnotationCreateFailedError,
|
||||
AnnotationDeleteFailedError,
|
||||
AnnotationInvalidError,
|
||||
AnnotationNotFoundError,
|
||||
AnnotationUpdateFailedError,
|
||||
)
|
||||
from superset.commands.annotation_layer.annotation.update import UpdateAnnotationCommand
|
||||
from superset.commands.annotation_layer.exceptions import AnnotationLayerNotFoundError
|
||||
from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
|
||||
from superset.models.annotations import Annotation
|
||||
from superset.views.base_api import (
|
||||
|
||||
Reference in New Issue
Block a user