zulip/zerver
Prakhar Pratyush 25630f316b push_notification: Improve logged message when apns_context is None.
Earlier, while sending notification if `apns_context=None` - we logged:
"APNs: Dropping a notification because nothing configured. Set
ZULIP_SERVICES_URL (or APNS_CERT_FILE)." which is not accurate for E2EE
case.

For the non-E2EE case it is correct because configuring
ZULIP_SERVICES_URL results in transfering the responsbility to
make API call to APNs to the bouncer. Or they can configure
APNS_CERT_FILE if they want to send directly.

In E2EE case, the `send_e2ee_push_notification_apple` is part of
bouncer so configuring `ZULIP_SERVICES_URL` doesn't help. One needs
to configure either `APNS_TOKEN_KEY_FILE` or `APNS_CERT_FILE`.

Message to log is updated accordingly + severity increased from
DEBUG to ERROR.

Signed-off-by: Prakhar Pratyush <prakhar@zulip.com>
2025-11-03 15:45:22 -08:00
..
actions slack_import: Ask importer for default email address visibility. 2025-11-02 14:36:20 -08:00
data_import rocketchat: Emoji can have an ObjectID as an _id. 2025-11-03 13:55:47 -08:00
lib notification_data: Fix a typo. 2025-11-03 15:45:22 -08:00
management custom_emails: Prevent duplicate emails from send_custom_email command. 2025-11-02 11:17:09 -08:00
migrations push_notifications: Clear push notifications on message deletion. 2025-10-31 16:05:21 -07:00
models custom_emails: Prevent duplicate emails from send_custom_email command. 2025-11-02 11:17:09 -08:00
openapi openapi: Link server_thumbnail_formats to image formatting docs. 2025-10-20 10:10:24 -07:00
tests push_notification: Improve logged message when apns_context is None. 2025-11-03 15:45:22 -08:00
tornado event_queue: Add compatibility code for push_device_registered_user_ids. 2025-09-19 09:19:36 -07:00
transaction_tests test_user_groups: Add durable=True to the independent transaction. 2024-11-21 14:55:15 -08:00
views slack_import: Ask importer for default email address visibility. 2025-11-02 14:36:20 -08:00
webhooks webhooks_gitea: Add tests and fixture for correct actor on PR close. 2025-10-21 13:23:31 -07:00
worker thumbnail: Avoid BytesIO.getbuffer. 2025-08-13 14:11:05 -07:00
__init__.py
apps.py forms: Use monkey-patched SetPasswordForm generic. 2025-07-15 07:32:44 -07:00
context_processors.py realm_creation_form: Capture import_from if realm import enabled. 2025-04-30 00:06:43 -07:00
decorator.py zephyr: Remove Zephyr mirroring support. 2025-09-16 11:18:18 -07:00
filters.py filters: Do not report AVATAR_SALT, or other salts. 2025-03-13 09:36:07 -07:00
forms.py new_registration: Move human verification from popup to inline style. 2025-11-03 12:19:57 -08:00
logging_handlers.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py zephyr: Remove Zephyr mirroring support. 2025-09-16 11:18:18 -07:00
signals.py signals: Extract function to convert datetime to readable string. 2025-10-01 11:25:00 -07:00