support: Show file upload usage compared to realm upload quota.

Implemented on Zulip Cloud support view only since this information
isn't relevant for self-hosted support actions.

Looking up the realm's currently used upload space adds 3 database
queries to the support view test as there is no RealmCount data for
the upload quota used in the test. And therefore installation_epoch
is called for the realm.

With RealmCount upload quota used data, only 2 additional database
queries would be made for the realm's support view data.
This commit is contained in:
Lauryn Menard
2025-05-07 20:07:26 +02:00
committed by Tim Abbott
parent 798f59a01b
commit 7fc9d29c1e
3 changed files with 24 additions and 1 deletions

View File

@@ -55,6 +55,8 @@
{% set user_data = realm_support_data[realm.id].user_data %}
{% include 'corporate/support/basic_realm_data.html' %}
{% endwith %}
<br />
<b>File upload usage</b>: {{ realm_support_data[realm.id].file_upload_usage }}<br />
</div>
<div>
<div class="realm-management-actions">