zulip/zerver/openapi
Steve Howell a9356508ca events: Stop sending occupy/vacate events.
We used to send occupy/vacate events when
either the first person entered a stream
or the last person exited.

It appears that our two main apps have never
looked at these events.  Instead, it's
generally the case that clients handle
events related to stream creation/deactivation
and subscribe/unsubscribe.

Note that we removed the apply_events code
related to these events.  This doesn't affect
the webapp, because the webapp doesn't care
about the "streams" field in do_events_register.

There is a theoretical situation where a
third party client could be the victim of
a race where the "streams" data includes
a stream where the last subscriber has left.
I suspect in most of those situations it
will be harmless, or possibly even helpful
to the extent that they'll learn about
streams that are in a "quasi" state where
they're activated but not occupied.

We could try to patch apply_event to
detect when subscriptions get added
or removed. Or we could just make the
"streams" piece of do_events_register
not care about occupy/vacate semantics.
I favor the latter, since it might
actually be what users what, and it will
also simplify the code and improve
performance.
2020-10-14 10:53:10 -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 openapi: Add comments on top of various OpenAPI doc files. 2020-09-14 15:25:46 -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 events: Stop sending occupy/vacate events. 2020-10-14 10:53:10 -07:00