mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
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:
parent
11028d5244
commit
59fe17261e
@ -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(
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user