diff --git a/src/sentry/api/bases/sentryapps.py b/src/sentry/api/bases/sentryapps.py deleted file mode 100644 index b1e5512dce5ed4..00000000000000 --- a/src/sentry/api/bases/sentryapps.py +++ /dev/null @@ -1,13 +0,0 @@ -from sentry.sentry_apps.api.bases.sentryapps import ( - RegionSentryAppBaseEndpoint, - SentryAppBaseEndpoint, - SentryAppInstallationBaseEndpoint, - SentryAppInstallationsBaseEndpoint, -) - -__all__ = ( - "SentryAppBaseEndpoint", - "RegionSentryAppBaseEndpoint", - "SentryAppInstallationBaseEndpoint", - "SentryAppInstallationsBaseEndpoint", -) diff --git a/src/sentry/api/endpoints/integrations/sentry_apps/__init__.py b/src/sentry/api/endpoints/integrations/sentry_apps/__init__.py deleted file mode 100644 index 7f0a6d8ce27d92..00000000000000 --- a/src/sentry/api/endpoints/integrations/sentry_apps/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from sentry.sentry_apps.api.endpoints.sentry_internal_app_token_details import ( - SentryInternalAppTokenDetailsEndpoint, -) - -__all__ = ("SentryInternalAppTokenDetailsEndpoint",) diff --git a/src/sentry/deletions/__init__.py b/src/sentry/deletions/__init__.py index 59e13f34e9a13a..27aa2c3b58d159 100644 --- a/src/sentry/deletions/__init__.py +++ b/src/sentry/deletions/__init__.py @@ -104,6 +104,7 @@ def load_defaults(manager: DeletionTaskManager) -> None: from sentry.models.commitfilechange import CommitFileChange from sentry.models.rulefirehistory import RuleFireHistory from sentry.monitors import models as monitor_models + from sentry.sentry_apps.models.platformexternalissue import PlatformExternalIssue from sentry.sentry_apps.models.sentry_app import SentryApp from sentry.sentry_apps.models.sentry_app_installation import SentryAppInstallation from sentry.sentry_apps.models.sentry_app_installation_token import SentryAppInstallationToken @@ -153,7 +154,7 @@ def load_defaults(manager: DeletionTaskManager) -> None: manager.register(OrganizationIntegration, defaults.OrganizationIntegrationDeletionTask) manager.register(models.OrganizationMember, defaults.OrganizationMemberDeletionTask) manager.register(models.OrganizationMemberTeam, BulkModelDeletionTask) - manager.register(models.PlatformExternalIssue, defaults.PlatformExternalIssueDeletionTask) + manager.register(PlatformExternalIssue, defaults.PlatformExternalIssueDeletionTask) manager.register(models.Project, defaults.ProjectDeletionTask) manager.register(models.ProjectBookmark, BulkModelDeletionTask) manager.register(models.ProjectKey, BulkModelDeletionTask) diff --git a/src/sentry/models/__init__.py b/src/sentry/models/__init__.py index cf171644ad67ad..e5f9ed7d417ea8 100644 --- a/src/sentry/models/__init__.py +++ b/src/sentry/models/__init__.py @@ -1,4 +1,3 @@ -from ..sentry_apps.models.platformexternalissue import * # NOQA from .activity import * # NOQA from .apiapplication import * # NOQA from .apiauthorization import * # NOQA @@ -60,7 +59,6 @@ from .groupsubscription import * # NOQA from .grouptombstone import * # NOQA from .importchunk import * # NOQA -from .integrations import * # NOQA from .latestreporeleaseenvironment import * # NOQA from .notificationmessage import * # NOQA from .notificationsettingoption import * # NOQA diff --git a/src/sentry/models/integrations/__init__.py b/src/sentry/models/integrations/__init__.py deleted file mode 100644 index c56c940a443d8a..00000000000000 --- a/src/sentry/models/integrations/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -__all__ = ("SentryApp",) - - -# REQUIRED for migrations to run. -from sentry.integrations.types import ExternalProviders # NOQA -from sentry.sentry_apps.models.sentry_app import SentryApp diff --git a/src/sentry/models/integrations/sentry_app.py b/src/sentry/models/integrations/sentry_app.py deleted file mode 100644 index db625c60ee0d34..00000000000000 --- a/src/sentry/models/integrations/sentry_app.py +++ /dev/null @@ -1,3 +0,0 @@ -from sentry.sentry_apps.models.sentry_app import SentryApp - -__all__ = ("SentryApp",)