user_groups: Rename misleadingly named view function.

This commit is contained in:
Tim Abbott 2024-09-10 16:49:33 -07:00
parent 688c5ad0af
commit 2585d209c0
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ def add_user_group(
@require_member_or_admin
@typed_endpoint
def get_user_group(
def get_user_groups(
request: HttpRequest,
user_profile: UserProfile,
*,

View File

@ -193,8 +193,8 @@ from zerver.views.user_groups import (
edit_user_group,
get_is_user_group_member,
get_subgroups_of_user_group,
get_user_group,
get_user_group_members,
get_user_groups,
update_subgroups_of_user_group,
update_user_group_backend,
)
@ -398,7 +398,7 @@ v1_api_and_json_patterns = [
rest_path("users/me/status", POST=update_user_status_backend),
rest_path("users/<int:user_id>/status", GET=get_status_backend),
# user_groups -> zerver.views.user_groups
rest_path("user_groups", GET=get_user_group),
rest_path("user_groups", GET=get_user_groups),
rest_path("user_groups/create", POST=add_user_group),
rest_path("user_groups/<int:user_group_id>", PATCH=edit_user_group, DELETE=delete_user_group),
rest_path(