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.

billing: Make push notifications error message more clear.

Alya Abbott4f1659fe8fc8
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index c667fe62842..384b46130f1 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -4924,7 +4924,7 @@ def get_push_status_for_remote_request(
return PushNotificationsEnabledStatus(
can_push=False,
expected_end_timestamp=None,
- message="No plan many users",
+ message="Push notifications access with 10+ users requires signing up for a plan. https://zulip.com/plans/",
)
return PushNotificationsEnabledStatus(
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index 935ad4cc633..651125bdc12 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -859,7 +859,7 @@ class PushBouncerNotificationTest(BouncerTestCase):
)
self.assert_json_error(
result,
- "Your plan doesn't allow sending push notifications. Reason provided by the server: No plan many users",
+ "Your plan doesn't allow sending push notifications. Reason provided by the server: Push notifications access with 10+ users requires signing up for a plan. https://zulip.com/plans/",
)
self.assertEqual(orjson.loads(result.content)["code"], "PUSH_NOTIFICATIONS_DISALLOWED")
@@ -2781,7 +2781,7 @@ class HandlePushNotificationTest(PushNotificationTest):
pn_logger.output,
[
f"INFO:zerver.lib.push_notifications:Sending push notifications to mobile clients for user {self.user_profile.id}",
- "WARNING:zerver.lib.push_notifications:Bouncer refused to send push notification: Your plan doesn't allow sending push notifications. Reason provided by the server: No plan many users",
+ "WARNING:zerver.lib.push_notifications:Bouncer refused to send push notification: Your plan doesn't allow sending push notifications. Reason provided by the server: Push notifications access with 10+ users requires signing up for a plan. https://zulip.com/plans/",
],
)
realm.refresh_from_db()