Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
support: Display remote realm is deactivated fields.
Lauryn Menardb4b44e555811
diff --git a/templates/analytics/remote_realm_details.html b/templates/analytics/remote_realm_details.htmlindex f719658d0eb..ceb14dd04b5 100644--- a/templates/analytics/remote_realm_details.html+++ b/templates/analytics/remote_realm_details.html@@ -1,6 +1,15 @@<div class="remote-realm-information"><span class="label">remote realm</span><h3>{{ remote_realm.name }}</h3>+ {% if remote_realm.realm_locally_deleted %}+ <h4>Remote realm is locally deleted π</h4>+ {% endif %}+ {% if remote_realm.registration_deactivated %}+ <h4>Remote realm registration deactivated π</h4>+ {% endif %}+ {% if remote_realm.realm_deactivated %}+ <h4>Remote realm is deactivated on remote server π</h4>+ {% endif %}{% if remote_realm.plan_type == SPONSORED_PLAN_TYPE %}<h4>On 100% sponsored Zulip Community plan π</h4>{% endif %}diff --git a/zilencer/management/commands/populate_billing_realms.py b/zilencer/management/commands/populate_billing_realms.pyindex 2caadf3bdd4..27fd31a2df6 100644--- a/zilencer/management/commands/populate_billing_realms.py+++ b/zilencer/management/commands/populate_billing_realms.py@@ -497,9 +497,7 @@ def populate_remote_realms(customer_profile: CustomerProfile) -> Dict[str, str]:if remote_server is None:raise AssertionError("Remote server not found! Please run manage.py register_server")- update_remote_realm_data_for_server(- remote_server, get_realms_info_for_push_bouncer(local_realm.id)- )+ update_remote_realm_data_for_server(remote_server, get_realms_info_for_push_bouncer())remote_realm = RemoteRealm.objects.get(uuid=local_realm.uuid)user = UserProfile.objects.filter(realm=local_realm).first()