zulip/zproject
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
..
jinja2 Annotate zproject/jinja2/backends.py 2016-08-09 09:19:24 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py Prevent code from using email domain to determine realm when subdomains. 2016-11-11 15:26:51 -08:00
dev_settings.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
dev_urls.py Django 1.10: Upgrade urls of dev_urls.py. 2016-11-10 16:20:02 +05:00
legacy_urls.py Django 1.10: Upgrade legacy urls. 2016-11-10 16:20:02 +05:00
local_settings.py Remove humbug-user-uploads and related code. 2016-09-19 10:52:05 -07:00
prod_settings_template.py bugdown: Add option to support "file:///" as hyperlink. 2016-11-06 22:30:05 -08:00
settings.py subdomains: Add option to make subdomains homepage not a login form. 2016-11-15 19:05:06 -08:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py bugdown: Add option to support "file:///" as hyperlink. 2016-11-06 22:30:05 -08:00
urls.py Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
wsgi.py Activate virtualenv in production Python code. 2016-06-27 19:55:35 -07:00