zulip/zerver
Steve Howell 40b18094ec alert words: Refactor alert word detection.
The bugdown parser no longer has a concept of which users need which
alert words, since it can't really do anything actionable with that info
from a rendering standpoint.

Instead, our calling code passes in a set of search words to the parser.
The parser returns the list of words it finds in the message.
Then the model method builds up the list of user ids that should be
flagged as having alert words in the message.

This refactoring is a little more involved than I'd like, but there are
still some circular dependency issues with rendering code, so I need to
pass in the rather complicated realm_alert_words data structure all the way
from the action through the model to the renderer.

This change shouldn't change the overall behavior of the system, except
that it does remove some duplicate regex checks that were occurring when
multiple users may have had the same alert word.
2016-09-23 15:21:17 -07:00
..
fixtures Add Librato integration. 2016-09-13 21:55:25 -07:00
lib alert words: Refactor alert word detection. 2016-09-23 15:21:17 -07:00
management Annotate zerver/management/commands/realm_emoji.py. 2016-09-12 08:10:50 -07:00
migrations Terms of Service: Fix corner cases around new users being created. 2016-08-13 00:19:54 -07:00
templatetags Annotate zerver/templatetags/minified_js.py. 2016-09-12 08:10:50 -07:00
tests alert words: Refactor alert word detection. 2016-09-23 15:21:17 -07:00
views rendering: Consolidate code to render new messages. 2016-09-23 15:21:17 -07:00
worker socket: Switch localhost to 127.0.0.1. 2016-09-13 10:01:57 -07:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py portico: Add options to disable login and about links. 2016-09-13 22:59:09 -07:00
decorator.py decorator: Add missing annotation. 2016-08-04 15:57:03 -07:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
forms.py zmirror: Fix hardcoding of zulip.com support email address. 2016-08-18 18:36:07 -07:00
logging_handlers.py settings: Extract settings.STAGING_ERROR_NOTIFICATIONS. 2016-07-19 15:28:41 -07:00
middleware.py slow queries: Include full log line in slow query log. 2016-07-12 19:12:49 -07:00
models.py alert words: Refactor alert word detection. 2016-09-23 15:21:17 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py Annotate zerver/storage.py. 2016-08-08 15:12:12 -07:00
tornadoviews.py zerver/tornado.py: Convert queue_id to str. 2016-07-04 02:58:57 +05:30