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: Support up to 20GB of data via the UI.

Alex Vandiver59fe17261e24
diff --git a/zerver/tests/test_realm_export.py b/zerver/tests/test_realm_export.py
index fd1a481e7ed..edc6791de7b 100644
--- a/zerver/tests/test_realm_export.py
+++ b/zerver/tests/test_realm_export.py
@@ -302,10 +302,10 @@ class RealmExportTest(ZulipTestCase):
subgroup="public_stream",
)
- # Space limit is set as 10 GiB
+ # Space limit is set as 20 GiB
with patch(
"zerver.models.Realm.currently_used_upload_space_bytes",
- return_value=11 * 1024 * 1024 * 1024,
+ return_value=21 * 1024 * 1024 * 1024,
):
result = self.client_post("/json/export/realm")
self.assert_json_error(
diff --git a/zerver/views/realm_export.py b/zerver/views/realm_export.py
index 2b56e552bd5..aea4909a47a 100644
--- a/zerver/views/realm_export.py
+++ b/zerver/views/realm_export.py
@@ -46,7 +46,7 @@ def export_realm(
#
# It's very possible that higher limits would be completely safe.
MAX_MESSAGE_HISTORY = 250000
- MAX_UPLOAD_QUOTA = 10 * 1024 * 1024 * 1024
+ MAX_UPLOAD_QUOTA = 20 * 1024 * 1024 * 1024
# Filter based upon the number of events that have occurred in the delta
# If we are at the limit, the incoming request is rejected