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.

realm_export: Fix error message for large exports.

Sahil Batra365ecd2bc756
diff --git a/zerver/tests/test_realm_export.py b/zerver/tests/test_realm_export.py
index 1373aeb6aca..795ec23d19f 100644
--- a/zerver/tests/test_realm_export.py
+++ b/zerver/tests/test_realm_export.py
@@ -311,7 +311,7 @@ class RealmExportTest(ZulipTestCase):
result = self.client_post("/json/export/realm")
self.assert_json_error(
result,
- f"Please request a manual export from {settings.ZULIP_ADMINISTRATOR}.",
+ f"The export you requested is too large for automatic processing. Please request a manual export by contacting {settings.ZULIP_ADMINISTRATOR}.",
)
# Message limit is set as 250000
@@ -320,7 +320,7 @@ class RealmExportTest(ZulipTestCase):
result = self.client_post("/json/export/realm")
self.assert_json_error(
result,
- f"Please request a manual export from {settings.ZULIP_ADMINISTRATOR}.",
+ f"The export you requested is too large for automatic processing. Please request a manual export by contacting {settings.ZULIP_ADMINISTRATOR}.",
)
def test_get_users_export_consents(self) -> None:
diff --git a/zerver/views/realm_export.py b/zerver/views/realm_export.py
index 718a9fdf499..6fb00d505d5 100644
--- a/zerver/views/realm_export.py
+++ b/zerver/views/realm_export.py
@@ -77,7 +77,9 @@ def export_realm(
or user.realm.currently_used_upload_space_bytes() > MAX_UPLOAD_QUOTA
):
raise JsonableError(
- _("Please request a manual export from {email}.").format(
+ _(
+ "The export you requested is too large for automatic processing. Please request a manual export by contacting {email}."
+ ).format(
email=FromAddress.SUPPORT,
)
)