realm_export: Support up to 20GB of data via the UI.

We have not see noticeable impact due to export size.
This commit is contained in:
Alex Vandiver 2025-03-19 17:43:17 +00:00 committed by Tim Abbott
parent 11028d5244
commit 59fe17261e
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -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