zulip/zerver
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
..
data_import python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
lib typing: Accept only user_ids in typing endpoint. 2020-06-10 17:50:32 -07:00
management python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
migrations python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
openapi typing: Accept only user_ids in typing endpoint. 2020-06-10 17:50:32 -07:00
templatetags python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
tests typing: Accept only user_ids in typing endpoint. 2020-06-10 17:50:32 -07:00
tornado python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
views typing: Accept only user_ids in typing endpoint. 2020-06-10 17:50:32 -07:00
webhooks python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
worker python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
__init__.py
apps.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
context_processors.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
decorator.py realm: Allow only organization owners to deactivate a realm. 2020-06-10 17:33:02 -07:00
filters.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
forms.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
logging_handlers.py error logging: Inline add_deployment_metadata. 2020-05-06 16:29:53 -07:00
middleware.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
models.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
signals.py python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00