Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
remote-support: Use remote server or realm UUID in support URL.
Lauryn Menard8d60ca548b7d
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex ae324c2e92b..97e631b0a26 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -3781,7 +3781,7 @@ class RemoteRealmBillingSession(BillingSession):@overridedef support_url(self) -> str: # nocoverage- return build_support_url("remote_servers_support", self.remote_realm.server.hostname)+ return build_support_url("remote_servers_support", str(self.remote_realm.uuid))@overridedef get_customer(self) -> Optional[Customer]:@@ -4212,7 +4212,7 @@ class RemoteServerBillingSession(BillingSession):@overridedef support_url(self) -> str: # nocoverage- return build_support_url("remote_servers_support", self.remote_server.hostname)+ return build_support_url("remote_servers_support", str(self.remote_server.uuid))@overridedef get_customer(self) -> Optional[Customer]:diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 62bbd13ae16..8f6998f7d42 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -6985,7 +6985,7 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):self.assertEqual(self.email_envelope_from(message), settings.NOREPLY_EMAIL_ADDRESS)self.assertIn("Zulip sponsorship request <noreply-", self.email_display_from(message))self.assertIn(- "Support URL: http://zulip.testserver/activity/remote/support?q=demo.example.com",+ f"Support URL: http://zulip.testserver/activity/remote/support?q={remote_realm.uuid!s}",message.body,)self.assertIn("Website: https://infinispan.org", message.body)@@ -7596,7 +7596,7 @@ class TestRemoteServerBillingFlow(StripeTestCase, RemoteServerTestCase):self.assertEqual(self.email_envelope_from(message), settings.NOREPLY_EMAIL_ADDRESS)self.assertIn("Zulip sponsorship request <noreply-", self.email_display_from(message))self.assertIn(- "Support URL: http://zulip.testserver/activity/remote/support?q=demo.example.com",+ f"Support URL: http://zulip.testserver/activity/remote/support?q={self.remote_server.uuid!s}",message.body,)self.assertIn("Website: https://infinispan.org", message.body)diff --git a/templates/corporate/support/remote_realm_details.html b/templates/corporate/support/remote_realm_details.htmlindex bcc4cf7fb6a..92b45e45c34 100644--- a/templates/corporate/support/remote_realm_details.html+++ b/templates/corporate/support/remote_realm_details.html@@ -27,6 +27,8 @@{% endif %}<br /><b>Date created</b>: {{ support_data[remote_realm.id].date_created.strftime('%d %B %Y') }}<br />+ <b>UUID</b>: {{ remote_realm.uuid }}<br />+ <br /><b>Org type</b>: {{ get_org_type_display_name(remote_realm.org_type) }}<br /><b>Plan type</b>: {{ get_plan_type_name(remote_realm.plan_type) }}<br /><b>Non-guest user count</b>: {{ support_data[remote_realm.id].user_data.non_guest_user_count }}<br />