You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a preparatory refactor, we'll move PerAccountStore.users (which is a Map<int, User>, indexed by user ID) to live on a new type UserStore. This will closely follow the example of streams and StreamStore.
Then the user groups will be added as an additional data structure on UserStore.
This is a prerequisite for features involving user groups, in particular:
The text was updated successfully, but these errors were encountered:
gnprice
added
a-api
Implementing specific parts of the Zulip server API
a-model
Implementing our data model (PerAccountStore, etc.)
labels
May 13, 2024
So when implementing this part of the API, we should start sending that client capability.
(In general, we should always be sending all client capabilities that have been defined so far. That way we get the latest version of the API, rather than an API that's been adapted for older clients.)
For current servers since zulip/zulip#29498 (server-10, ZFL 303), correctly maintaining user groups will also involve acting on RealmUserUpdateEvent.isActive. See the API docs for that property.
We should store the list of user groups in the realm, with their metadata and their memberships, and keep the data up to date.
This data originates as
realm_user_groups
in the initial snapshot at https://zulip.com/api/register-queue#response , and is updated by events.As a preparatory refactor, we'll move
PerAccountStore.users
(which is aMap<int, User>
, indexed by user ID) to live on a new typeUserStore
. This will closely follow the example ofstreams
andStreamStore
.Then the user groups will be added as an additional data structure on
UserStore
.This is a prerequisite for features involving user groups, in particular:
The text was updated successfully, but these errors were encountered: