Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
auth: Ensure stable group order in process_social_auth_group_sync_info.
Mateusz Manderaaa732b2a2c5b
diff --git a/zproject/backends.py b/zproject/backends.pyindex 6f5d1ebd78c..c19965e1f20 100644--- a/zproject/backends.py+++ b/zproject/backends.py@@ -2109,7 +2109,7 @@ def process_social_auth_group_sync_info(# should be passed in zulip_groups.all_realm_groups = NamedUserGroup.objects.filter(realm=realm, deactivated=False, is_system_group=False- )+ ).order_by("name")external_group_name_to_zulip_group_name = ({g.name: g.name for g in all_realm_groups}# If a group name is included in the user's zulip_groups, in sync-all-groups mode