mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	user_groups: rename create_user_group to create_user_group_in_database.
To avoid people calling "create_user_group" instead of "check_add_user_group", we rename it to make its purpose clearer. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							e331c356e4
						
					
				
				
					commit
					cf9b95b95a
				
			@@ -26,7 +26,7 @@ class MemberGroupUserDict(TypedDict):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@transaction.atomic
 | 
			
		||||
def create_user_group(
 | 
			
		||||
def create_user_group_in_database(
 | 
			
		||||
    name: str,
 | 
			
		||||
    members: List[UserProfile],
 | 
			
		||||
    realm: Realm,
 | 
			
		||||
@@ -144,7 +144,7 @@ def check_add_user_group(
 | 
			
		||||
    acting_user: Optional[UserProfile],
 | 
			
		||||
) -> UserGroup:
 | 
			
		||||
    try:
 | 
			
		||||
        user_group = create_user_group(
 | 
			
		||||
        user_group = create_user_group_in_database(
 | 
			
		||||
            name, initial_members, realm, description=description, acting_user=acting_user
 | 
			
		||||
        )
 | 
			
		||||
        do_send_create_user_group_event(user_group, initial_members)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user