streams: Rename can_remove_subscribers_group_id parameter.

Earlier the API endpoints related to streams accepts and returns a
field `can_remove_subscribers_group_id` which represents the ID
of user_group whose members can remove subscribers from stream.

This commit renames this field to `can_remove_subscribers_group`.
This commit is contained in:
Ujjawal Modi
2023-07-12 16:27:57 +05:30
committed by Tim Abbott
parent 5ccb408f19
commit c8bcb422f5
22 changed files with 118 additions and 85 deletions

View File

@@ -50,7 +50,7 @@ from zerver.models import Realm, RealmUserDefault, Stream, UserProfile
# These fields are used for "stream" events, and are included in the
# larger "subscription" events that also contain personal settings.
basic_stream_fields = [
("can_remove_subscribers_group_id", int),
("can_remove_subscribers_group", int),
("date_created", int),
("description", str),
("first_message_id", OptionalType(int)),
@@ -1282,7 +1282,7 @@ def check_stream_update(
elif prop == "stream_post_policy":
assert extra_keys == set()
assert value in Stream.STREAM_POST_POLICY_TYPES
elif prop == "can_remove_subscribers_group_id":
elif prop == "can_remove_subscribers_group":
assert extra_keys == set()
assert isinstance(value, int)
else: