chore(command): Organize Commands according to SIP-92 (#25850)

This commit is contained in:
John Bodley
2023-11-22 11:55:54 -08:00
committed by GitHub
parent 984c278c4c
commit 07bcfa9b5f
265 changed files with 786 additions and 808 deletions

View File

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