zulip/zerver/views
Steve Howell d5cc29755e typing: Accept only user_ids in typing endpoint.
The only clients that should use the typing
indicators endpoint are our internal clients,
and they should send a JSON-formatted list
of user_ids.

We now enforce this, which removes some
complexity surrounding legacy ways of sending
users, such as emails and comma-delimited
strings of user_ids.

There may be a very tiny number of mobile
clients that still use the old emails API.

This won't have any user-facing effect on
the mobile users themselves, but if you type
a message to your friend on an old mobile
app, the friend will no longer see typing
indicators.

Also, the mobile team may see some errors
in their Sentry logs from the server rejecting
posts from the old mobile clients.

The error messages we report here are a bit
more generic, since we now just use REQ
to do validation with this code:

    validator=check_list(check_int)

This also allows us to remove a test hack
related to the API documentation.  (We changed
the docs to reflect the modern API in an
earlier commit, but the tests couldn't be
fixed while we still had the more complex
semantics for the "to" parameter.)
2020-06-10 17:50:32 -07:00
..
development python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
__init__.py
alert_words.py alert words: Limit alert word length to 100. 2020-04-17 11:32:16 -07:00
archive.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
attachments.py uploads: Show used upload space in attachments UI. 2019-03-07 20:18:00 -08:00
auth.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
camo.py camo: Clean up type ignores. 2019-08-09 16:39:16 -07:00
compatibility.py browser_support: Drop support for Internet Explorer. 2020-04-23 17:50:28 -07:00
custom_profile_fields.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
digest.py digest: Fix the styling of /digest page. 2019-01-07 13:09:29 -08:00
documentation.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
email_mirror.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
events_register.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
home.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
hotspots.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
invite.py invitation: Make Member to see invitations sent by him/her. 2020-05-01 17:42:49 -07:00
messages.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
muting.py muting: Record DateTime when a Topic is muted. 2020-02-02 20:49:53 -08:00
pointer.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
portico.py docs: Update URLs to use https://zulip.com. 2020-06-08 18:10:45 -07:00
presence.py settings: Offer hiding presence info from other users. 2020-05-02 15:09:05 -07:00
push_notifications.py push_notifications: Declare token of type str, not bytes. 2019-11-12 23:21:20 -08:00
reactions.py api: Guess emoji_type when adding a reaction. 2020-04-28 20:49:39 -07:00
realm.py realm: Allow only organization owners to deactivate a realm. 2020-06-10 17:33:02 -07:00
realm_domains.py lint: Fix calls to _() on computed strings. 2019-04-23 15:23:03 -07:00
realm_emoji.py openapi: Fix handling of parameters passed via the URL/path. 2019-08-19 15:06:08 -07:00
realm_export.py data exports: Handle pending and failed exports. 2020-04-30 13:00:59 -07:00
realm_filters.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
realm_icon.py redirects: Refactor redirect code to use central helper function. 2020-03-25 16:39:17 -07:00
realm_logo.py models: Create ensure_not_on_limited_plan instance method. 2020-05-19 14:48:59 -07:00
registration.py users: Modify do_create_user and create_user to accept role. 2020-06-02 16:11:36 -07:00
report.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
storage.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
streams.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
submessage.py views: Remove unused imports. 2019-02-02 17:23:43 -08:00
thumbnail.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
tutorial.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
typing.py typing: Accept only user_ids in typing endpoint. 2020-06-10 17:50:32 -07:00
unsubscribe.py emails: Move clear_scheduled_*emails to send_email.py. 2019-03-15 11:02:17 -07:00
upload.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
user_groups.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
user_settings.py settings: Offer hiding presence info from other users. 2020-05-02 15:09:05 -07:00
users.py users: Owners can only be deactivated by other organization owners. 2020-06-10 17:33:02 -07:00
video_calls.py compose: Rewrite Zoom video call integration to use OAuth. 2020-06-03 16:39:12 -07:00
zephyr.py zephyr: Add strict assertion about username format. 2020-03-17 05:37:25 -07:00