zulip/zerver
ishanrai05 4105fb683b notifications: Optimize push notifications code path in tests.
This checks if push_notification_enabled() is set to false in
handle_push_notification and adds an early return statement.

This is a significant performance optimization for our unit tests
because the push notifications code path does a number of database
queries, and this migration means we don't end up doing those queries
the hundreds of times we send PMs or mentions in our tests where we're
not trying to test the push notifications functionality.

This should also have a small message sending scalability improvement
for any Zulip servers without push notifications enabled.

Tweaked by tabbott to fix a few small issues.

Fixes #10895.
2018-12-15 11:12:43 -08:00
..
data_import slack import: Fix all messages being imported to one channel. 2018-12-12 17:54:37 -08:00
lib notifications: Optimize push notifications code path in tests. 2018-12-15 11:12:43 -08:00
management send_email: Fix migration code path for ScheduledEmail. 2018-12-14 12:46:31 -08:00
migrations message: Store the value of first_visible_message_id in Realm table. 2018-12-12 15:11:17 -08:00
openapi api docs: Document the custom emoji upload endpoint. 2018-12-14 14:19:28 -08:00
templatetags api docs: Rename webhook-walkthrough to incoming-webhooks-walkthrough. 2018-10-16 21:07:00 -07:00
tests notifications: Optimize push notifications code path in tests. 2018-12-15 11:12:43 -08:00
tornado tornado: Require non-negative lifespan_secs. 2018-12-05 14:50:37 -08:00
views digest_email: Add endpoint for rendering digest to the web. 2018-12-11 13:38:30 -08:00
webhooks stripe: Fix exception handler for suppressed events. 2018-12-13 10:22:19 -08:00
worker send_email: Extract handle_email_format_changes and use. 2018-12-04 16:08:18 -08:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py hello: Add link and label for latest Zulip release. 2018-11-19 12:00:40 -08:00
decorator.py rate_limiter: Improve handling of deadlocks. 2018-12-12 12:19:01 -08:00
filters.py error reports: Ensure we filter API keys from query strings. 2018-10-19 15:03:14 -07:00
forms.py email: Convert accounts code to use delivery_email. 2018-12-06 16:21:38 -08:00
logging_handlers.py bugdown: Improve exception handler for BugdownRenderingException. 2018-07-26 09:27:55 -07:00
middleware.py sessions: Resync session middleware from Django upstream. 2018-11-14 15:16:12 -08:00
models.py realm filters: Expand set of characters allowed in prefixes. 2018-12-14 11:33:13 -08:00
signals.py send_email: Add support for multiple recipients. 2018-12-03 15:12:11 -08:00
static_header.txt