Skip to content

armgit / zulip

Public Imported from GitHub
0

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.html
index 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.py
index 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()