zulip/zerver/openapi
Steve Howell 7ff3859136 subscriber events: Change schema for peer_add/peer_remove.
We now can send an implied matrix of user/stream tuples
for peer_add and peer_remove events.

The client code basically does this:

    for stream_id in event['stream_ids']:
        for user_id in event['user_ids']:
            update_sub(stream_id, user_id)

We used to send individual events, which gets real
expensive when you are creating new streams. For
the case of copy-to-stream case, we should see
events go from U to 1, where U is the number of users
added.

Note that we don't yet fully optimize the potential
of this schema.  For adding a new user with lots
of default streams, we still send S peer_add events.

And if you subscribe a bunch of users to a bunch of
private streams, we only go from U * S to S; we can't
optimize it down to one event easily.
2020-10-22 11:19:53 -07:00
..
curl_param_value_generators.py api docs: Removing order dependency of deactivate user test. 2020-09-14 22:31:40 -07:00
javascript_examples.js eslint: Fix unicorn/{new-for-builtins,throw-new-error,error-message}. 2020-10-07 16:00:33 -07:00
javascript_examples.py openapi: Add comments on top of various OpenAPI doc files. 2020-09-14 15:25:46 -07:00
markdown_extension.py markdown: Migrate off deprecated extension registration interface. 2020-10-19 18:31:12 -07:00
openapi.py openapi: Remove yamole. 2020-09-29 16:47:10 -07:00
python_examples.py openapi: Add comments on top of various OpenAPI doc files. 2020-09-14 15:25:46 -07:00
test_curl_examples.py api docs: Removing order dependency of deactivate user test. 2020-09-14 22:31:40 -07:00
testing.yaml openapi: Add missing object types. 2020-08-12 16:11:29 -07:00
zulip.yaml subscriber events: Change schema for peer_add/peer_remove. 2020-10-22 11:19:53 -07:00