From 2585d209c070ad42d3f6d46d28d6ae81aab40211 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 10 Sep 2024 16:49:33 -0700 Subject: [PATCH] user_groups: Rename misleadingly named view function. --- zerver/views/user_groups.py | 2 +- zproject/urls.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/views/user_groups.py b/zerver/views/user_groups.py index 84862f64bb..5e11d211ee 100644 --- a/zerver/views/user_groups.py +++ b/zerver/views/user_groups.py @@ -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, *, diff --git a/zproject/urls.py b/zproject/urls.py index c65c2faefa..cd82588bd5 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -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//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/", PATCH=edit_user_group, DELETE=delete_user_group), rest_path(