Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Fix an issue on catalogue APIs when looking for Public Groups IDs #3356

Merged
merged 2 commits into from Oct 24, 2017

Conversation

afabiani
Copy link
Member

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 38.321% when pulling eea1cbb on CATALOG_API_PUB_GROUPS into 3804b44 on master.

@@ -108,9 +108,13 @@ def csw_global_dispatch(request):
for group in request.user.groups.all():
groups_ids.append(group.id)

public_groups = GroupProfile.objects.exclude(access="private").values('group')
public_groups = GroupProfile.objects.exclude(access="private").values('group').distinct()
for group in public_groups:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which is the case when we have more than one group per GroupProfile?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no case, you are right. It is a refuse. Removing. Thanks @simod

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 38.321% when pulling 032e8cb on CATALOG_API_PUB_GROUPS into 3804b44 on master.

@simod simod merged commit df45056 into master Oct 24, 2017
@afabiani afabiani deleted the CATALOG_API_PUB_GROUPS branch October 25, 2017 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants