Skip to content

Commit f6efb54

Browse files
evanpurkhiserandrewshie-sentry
authored andcommitted
ref(dx): Move filestore to services module (#97692)
1 parent 418df26 commit f6efb54

File tree

8 files changed

+1085
-1058
lines changed

8 files changed

+1085
-1058
lines changed

src/sentry/conf/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,8 +2050,8 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
20502050

20512051
SENTRY_FILESTORE_ALIASES = {
20522052
"filesystem": "django.core.files.storage.FileSystemStorage",
2053-
"s3": "sentry.filestore.s3.S3Boto3Storage",
2054-
"gcs": "sentry.filestore.gcs.GoogleCloudStorage",
2053+
"s3": "sentry.services.filestore.s3.S3Boto3Storage",
2054+
"gcs": "sentry.services.filestore.gcs.GoogleCloudStorage",
20552055
}
20562056

20572057
# set of backends that do not support needing SMTP mail.* settings

src/sentry/filestore/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
Backward compatibility shim for getsentry.
3+
4+
This module re-exports everything from the new sentry.services.filestore location
5+
to maintain compatibility with existing getsentry imports.
6+
"""
7+
8+
# Re-export everything from the new location
9+
from sentry.services.filestore import * # noqa: F401, F403

0 commit comments

Comments
 (0)