Skip to content

Commit

Permalink
fix: duplicate entries returned by enterprise groups API
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-sarfraz committed Jan 16, 2025
1 parent 9eba450 commit 9de75f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Unreleased

=========================

[10.7.2] - 2025-01-16
---------------------
* Fixed duplicate entries for groups in enterprise groups API

[10.7.1] - 2025-01-07
---------------------
* feat: add group_membership table
Expand Down
2 changes: 1 addition & 1 deletion enterprise_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Enterprise data api application. This Django app exposes API endpoints used by enterprises.
"""

__version__ = "10.7.1"
__version__ = "10.7.2"
2 changes: 1 addition & 1 deletion enterprise_data/api/v1/views/enterprise_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def get(self, request, enterprise_uuid):
groups = EnterpriseGroupMembership.objects.filter(
enterprise_customer_id=enterprise_uuid,
group_type='flex',
)
).values('enterprise_group_uuid', 'enterprise_group_name').distinct()

serializer = serializers.EnterpriseGroupMembershipSerializer(groups, many=True)
return Response(serializer.data)

0 comments on commit 9de75f5

Please sign in to comment.