Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
export: Order RealmAuditLog export by id.
Alex Vandiver058dd178fd36
diff --git a/zerver/lib/export.py b/zerver/lib/export.pyindex c1c5a8afc8b..a3165d517f5 100644--- a/zerver/lib/export.py+++ b/zerver/lib/export.py@@ -1652,7 +1652,7 @@ def custom_fetch_realm_audit_logs_for_realm(response: TableData, context: Contexassert exportable_user_ids_from_context is Noneconsenting_user_ids = set()- query = RealmAuditLog.objects.filter(realm=realm)+ query = RealmAuditLog.objects.filter(realm=realm).order_by("id")if export_type != RealmExport.EXPORT_FULL_WITHOUT_CONSENT:# Keep entries whose modified_user is a consenting user, is# None, or whose event_type is one we preserve for every