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: Clarify what missing data caused MissingDataError.

Lauryn Menardf3d0ec15ca0f
diff --git a/analytics/tests/test_support_views.py b/analytics/tests/test_support_views.py
index 73b159b3d03..c57a93946ab 100644
--- a/analytics/tests/test_support_views.py
+++ b/analytics/tests/test_support_views.py
@@ -285,7 +285,7 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):
"/activity/remote/support", {"q": f"zulip-{server}.example.com"}
)
self.assert_in_success_response(
- ["<b>Max monthly messages</b>: Recent data missing"], result
+ ["<b>Max monthly messages</b>: Recent analytics data missing"], result
)
assert_server_details_in_response(result, f"zulip-{server}.example.com")
assert_realm_details_in_response(result, f"realm-name-{server}", f"realm-host-{server}")
diff --git a/analytics/views/support.py b/analytics/views/support.py
index 4cf9fcb1015..207ed36d4f9 100644
--- a/analytics/views/support.py
+++ b/analytics/views/support.py
@@ -528,7 +528,9 @@ def remote_servers_support(
remote_server
)
except MissingDataError:
- remote_server_to_max_monthly_messages[remote_server.id] = "Recent data missing"
+ remote_server_to_max_monthly_messages[
+ remote_server.id
+ ] = "Recent analytics data missing"
context["remote_servers"] = remote_servers
context["remote_servers_support_data"] = server_support_data
diff --git a/corporate/lib/support.py b/corporate/lib/support.py
index 8565060e85e..e92e71b9b50 100644
--- a/corporate/lib/support.py
+++ b/corporate/lib/support.py
@@ -150,7 +150,9 @@ def get_current_plan_data_for_support_view(billing_session: BillingSession) -> P
try:
plan_data.licenses_used = billing_session.current_count_for_billed_licenses()
except MissingDataError: # nocoverage
- plan_data.warning = "Recent data missing: No information for used licenses"
+ plan_data.warning = (
+ "Recent audit log data missing: No information for used licenses"
+ )
assert plan_data.current_plan is not None # for mypy