Skip to content

Store user groups #662

Open
Open
@gnprice

Description

@gnprice

We should store the list of user groups in the realm, with their metadata and their memberships, and keep the data up to date.

(Memberships will be a separate issue: #1687.)

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 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:

Metadata

Metadata

Assignees

Labels

a-apiImplementing specific parts of the Zulip server APIa-modelImplementing our data model (PerAccountStore, etc.)

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions