zulip/zerver
Arpith Siromoney 001847ac5b Add backend support for emoji reactions.
This commit adds the following:

1. A reaction model that consists of a user, a message and an emoji that
are unique together (a user cannot react to a particular message more
than once with the same emoji)
2. A reaction event that looks like:
    {
        'type': 'reaction',
	'op': 'add',
	'message_id': 3,
	'emoji_name': 'doge',
	'user': {
	    'user_id': 1,
            'email': 'hamlet@zulip.com',
            'full_name': 'King Hamlet'
	}
    }
3. A new API endpoint, /reactions, that accepts POST requests to add a
reaction to a message
4. A migration to add the new model to the database
5. Tests that check that
   (a) Invalid requests cannot be made
   (b) The reaction event body contains all the info
   (c) The reaction event is sent to the appropriate users
   (d) Reacting more than once fails

It is still missing important features like removing emoji and
fetching them alongside messages.
2016-11-26 18:10:21 -08:00
..
fixtures Add github webhook integration. 2016-11-15 10:48:12 -08:00
lib Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
management Django 1.10: Use new app discovery system. 2016-11-26 15:04:20 -08:00
migrations Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
templatetags render_markdown_path: Add fenced code and codehilite support. 2016-11-09 21:39:55 -08:00
tests Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
views Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
worker lint: Fix E703 pep8 violations. 2016-11-09 15:18:35 -08:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
context_processors.py context_processors: use a common context for emails. 2016-11-08 11:37:16 -08:00
decorator.py Fix trello integration by adding handling HEAD confirmation request. 2016-11-18 16:27:16 -08: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 models.py: Rename split_email_to_domain to email_to_domain. 2016-11-11 15:26:51 -08:00
logging_handlers.py settings: Extract settings.STAGING_ERROR_NOTIFICATIONS. 2016-07-19 15:28:41 -07:00
middleware.py models.py: Replace resolve_subdomain_to_realm with get_realm_by_string_id. 2016-11-03 13:59:11 -07:00
models.py Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py storage: Fix build-release-tarball py3 compatibility. 2016-10-10 09:54:51 -07:00
tornadoviews.py Remove now-unused /json/get_events endpoint. 2016-10-27 21:34:58 -07:00