zulip/zerver/views
Yago González 0e135b69f9 alert words: Return the updated list when adding/removing words.
POST and DELETE operations in /users/me/alert_words may leave the
user's list of alert words in an unknown state: POSTing adds words to a
list that the client may not know from the begining, and the same with
DELETE.

Replying with the current status of the alert words list is the best way
of letting the client alter the list and knowing its contents after
being updated with a single query.

This is especially useful taking into account that POSTing words that
were already present and DELETing non-existing words both produce a
successful response.

An extra test has been added to avoid leaving GET /users/me/alert_words
too untested.
2018-07-13 01:01:00 +05:30
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py alert words: Return the updated list when adding/removing words. 2018-07-13 01:01:00 +05:30
archive.py views/archive.py: Make 'StreamDoesNotExist' return a error msg page. 2018-05-02 15:23:33 -07:00
attachments.py attachments: Send events for attachment updates. 2018-05-04 16:22:27 -07:00
auth.py auth: Fix bug with subdomains and GitHub auth causing apparent logouts. 2018-07-10 16:49:00 +05:30
compatibility.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
custom_profile_fields.py custom fields: Allow list of users in user type of custom fields. 2018-06-16 09:37:49 -07:00
email_log.py zerver: Migrate away from six. 2018-05-09 18:38:25 +00:00
email_mirror.py mypy: Use Python 3 type syntax in zerver/views/email_mirror.py. 2017-12-28 07:26:44 -05:00
events_register.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
home.py invite: Make inviting new users inaccessible for guest users. 2018-06-16 06:33:13 -07:00
hotspots.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
integrations.py templates: Make zulip_default_context available in API endpoints. 2018-06-01 11:32:18 -07:00
invite.py invite: Make inviting new users inaccessible for guest users. 2018-06-16 06:33:13 -07:00
messages.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
muting.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
pointer.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
presence.py presence: Extract and use get_active_user helper. 2018-05-20 19:07:29 -07:00
push_notifications.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
reactions.py reactions: Allow using emoji_name for removing reactions. 2018-07-11 19:41:43 +05:30
realm.py org setting: Add time limits for message deleting. 2018-04-27 19:22:28 -07:00
realm_domains.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
realm_emoji.py emoji: Make uploading new realm emoji inaccessible for guest users. 2018-06-16 06:33:14 -07:00
realm_filters.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
realm_icon.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
registration.py signup: Prevent users from signing up with email containing +. 2018-06-23 12:03:30 -07:00
report.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
storage.py mypy: Migrate views/storage.py to python3.5 type annotations. 2018-03-12 11:23:30 -07:00
streams.py API: Add stream email notification setting plumbing. 2018-07-12 13:39:14 +05:30
submessage.py submessages: Just send content for submessage events. 2018-05-30 13:53:11 -07:00
tutorial.py mypy: Use Python 3 syntax for typing in views/tutorial.py. 2017-12-08 18:34:26 -08:00
typing.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
unsubscribe.py requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
upload.py upload: Remove unnecessary use of has_request_variables. 2018-07-01 01:47:03 -07:00
user_groups.py guest: Restrict guest access to user group creation and updation. 2018-06-19 11:04:14 -07:00
user_settings.py user_settings: Prevent LDAP users from setting a Zulip password. 2018-05-28 22:47:47 -07:00
users.py bots settings: Improve API for editing bot owners to refer to users by ID. 2018-06-23 12:47:50 -07:00
zephyr.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00