zulip/zerver
Steve Howell bc6da3717f Fix obscure bug with page_params.is_bot.
If a name change event arrived during the call to
fetch_initial_state_data(), we would call apply_events() to
update the data structure that eventually becomes page_params.
Our update code, instead of surgically updating the fields, was
just overwriting the record, which led to is_bot being taken
out of the record when only full_name was in the event.

Apart from fixing the "update" case to do the right thing,
this commit also does a bit of cleanup on the code handling
"realm_user" events to make it more generic in how it does
add/remove/update.  If we could standardize our events a bit
more, this could eventually lead to DRYing up some of the
apply_events() code.

(imported from commit 772e2fcd6a5605ccb6e8d1bc499b5f336934cf3c)
2014-01-23 13:01:04 -05:00
..
fixtures Improve Backend for Github integration 2014-01-22 16:44:34 -05:00
lib Fix obscure bug with page_params.is_bot. 2014-01-23 13:01:04 -05:00
management Have the "knight" command use actions.do_change_is_admin. 2014-01-22 14:43:28 -05:00
migrations [schema] Add an per-user option to disable notification on new streams 2014-01-16 20:13:34 -05:00
templatetags Add a custom template filter for formatting displaying lists of items in emails. 2013-10-25 19:11:40 -04:00
tests/frontend Add JS to for the inline subscribe button 2014-01-22 11:28:31 -05:00
views Improve Backend for Github integration 2014-01-22 16:44:34 -05:00
worker Queue worker for email mirror processing. 2014-01-15 16:07:18 -05:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py Fix documentation for email gateway on Zulip Enterprise. 2013-12-04 16:39:39 -05:00
decorator.py Improve Backend for Github integration 2014-01-22 16:44:34 -05:00
exceptions.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
filters.py Add api_key to filtered variables. 2013-12-12 10:31:03 -05:00
finders.py [manual] Move our deployment scripts to scripts/. 2013-10-28 10:54:48 -04:00
forms.py [manual] Allow signups for emails held by non-MIT mirror dummy accounts. 2014-01-10 21:38:59 -05:00
handlers.py Remove old email error reporting handler 2013-11-13 16:22:21 -05:00
middleware.py Blacklist a few more statsd paths 2014-01-22 10:49:49 -05:00
models.py [schema] Add an per-user option to disable notification on new streams 2014-01-16 20:13:34 -05:00
openid.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
retention_policy.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
static_header.txt Change Humbug => Zulip in text/comments. 2013-08-07 10:00:07 -04:00
storage.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
tests.py Fix obscure bug with page_params.is_bot. 2014-01-23 13:01:04 -05:00
tornado_callbacks.py Do not send duplicate email or push notifications in queue-expire corner case 2014-01-21 14:48:57 -05:00
tornadoviews.py Add support for event queues with an included narrow. 2013-12-12 17:36:39 -05:00