user_groups: Add add_can_members_group to user group.

The default value for this field that we wanted to have was that group
itlself. But we are deferring that to later in order to reach the point
of switching over to the groups system sooner. Till then, we will use
`group_creator` as the default. See
https://chat.zulip.org/#narrow/stream/101-design/topic/Group.20add.20members.20dropdown/near/1952904
for more details.

For migration plan details, see
https://chat.zulip.org/#narrow/stream/101-design/topic/Group.20add.20members.20dropdown/near/1952902

The increase in query count from 7 to 9 in the query count test for
creating a user group is because of group_creator being the default for
the new field.
This commit is contained in:
Shubham Padia
2024-10-07 17:00:15 +00:00
committed by Tim Abbott
parent 553409c1ca
commit b305ca14dd
15 changed files with 334 additions and 7 deletions

View File

@@ -20,6 +20,18 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 10.0
**Feature level 305**
* [`POST /register`](/api/register-queue), [`GET /events`](/api/get-events),
[`GET /user_groups`](/api/get-user-groups): Add `can_add_members_group` to
user group objects.
* [`POST /user_groups/create`](/api/create-user-group): Added `can_add_members_group`
parameter to support setting the user group which can add members to the user
group.
* [`PATCH /user_groups/{user_group_id}`](/api/update-user-group): Added
`can_add_members_group` parameter to support changing the user group which
can add members to the specified user group.
**Feature level 304**
* [`GET /export/realm`](/api/get-realm-exports),