Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

upload: Rename backend to store_export_tarball.

Alex Vandiver7c4538b6f957
diff --git a/zerver/lib/export.py b/zerver/lib/export.py
index 9cde24cd788..6bb4a685a3a 100644
--- a/zerver/lib/export.py
+++ b/zerver/lib/export.py
@@ -3044,7 +3044,7 @@ def export_realm_wrapper(
return None
print("Uploading export tarball...")
- public_url = zerver.lib.upload.upload_backend.upload_export_tarball(
+ public_url = zerver.lib.upload.upload_backend.store_export_tarball(
export_row.realm, tarball_path, percent_callback=percent_callback
)
print(f"\nUploaded to {public_url}")
diff --git a/zerver/lib/upload/__init__.py b/zerver/lib/upload/__init__.py
index be03efad907..696de4b8e5e 100644
--- a/zerver/lib/upload/__init__.py
+++ b/zerver/lib/upload/__init__.py
@@ -596,7 +596,7 @@ def handle_reupload_emojis_event(realm: Realm, logger: logging.Logger) -> None:
def upload_export_tarball(
realm: Realm, tarball_path: str, percent_callback: Callable[[Any], None] | None = None
) -> str:
- return upload_backend.upload_export_tarball(
+ return upload_backend.store_export_tarball(
realm, tarball_path, percent_callback=percent_callback
)
diff --git a/zerver/lib/upload/base.py b/zerver/lib/upload/base.py
index 6edae3d8bb3..a499bf5c99f 100644
--- a/zerver/lib/upload/base.py
+++ b/zerver/lib/upload/base.py
@@ -143,7 +143,7 @@ class ZulipUploadBackend:
def get_export_tarball_url(self, realm: Realm, export_path: str) -> str:
raise NotImplementedError
- def upload_export_tarball(
+ def store_export_tarball(
self,
realm: Realm,
tarball_path: str,
diff --git a/zerver/lib/upload/local.py b/zerver/lib/upload/local.py
index fc2a6bad17a..a07dbb9236e 100644
--- a/zerver/lib/upload/local.py
+++ b/zerver/lib/upload/local.py
@@ -246,7 +246,7 @@ class LocalUploadBackend(ZulipUploadBackend):
return realm.url + export_path
@override
- def upload_export_tarball(
+ def store_export_tarball(
self,
realm: Realm,
tarball_path: str,
diff --git a/zerver/lib/upload/s3.py b/zerver/lib/upload/s3.py
index 00b88a7d95b..96562a1a8c8 100644
--- a/zerver/lib/upload/s3.py
+++ b/zerver/lib/upload/s3.py
@@ -535,7 +535,7 @@ class S3UploadBackend(ZulipUploadBackend):
)
@override
- def upload_export_tarball(
+ def store_export_tarball(
self,
realm: Realm,
tarball_path: str,