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

Add num_member_entities and num_parent_groups to key_info in group listing #4648

Merged
merged 3 commits into from
May 29, 2018

Conversation

jefferai
Copy link
Member

No description provided.

@jefferai jefferai added this to the 0.10.2 milestone May 29, 2018
@@ -347,7 +347,9 @@ func (i *IdentityStore) pathGroupIDList() framework.OperationFunc {
group := raw.(*identity.Group)
groupIDs = append(groupIDs, group.ID)
groupInfoEntry := map[string]interface{}{
"name": group.Name,
"name": group.Name,
"num_member_entities": len(group.MemberEntityIDs),
Copy link
Member

Choose a reason for hiding this comment

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

How about s/num_member_entities/num_member_entity_ids and s/num_member_groups/num_parent_group_ids?

Copy link
Member Author

@jefferai jefferai May 29, 2018

Choose a reason for hiding this comment

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

The IDs aren't members, the entities are members. :-)

Copy link
Member

Choose a reason for hiding this comment

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

I see what you mean :-) But my thought was to be consistent with the input parameters of the group creation API.

Copy link
Member Author

Choose a reason for hiding this comment

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

When doing group creation, you have to provide the IDs because that's how you're referencing the entities. But the entities themselves become members, not the entity IDs.

Copy link
Member

Choose a reason for hiding this comment

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

Okay 👍

vishalnayak
vishalnayak previously approved these changes May 29, 2018
@jefferai jefferai merged commit 5829f7e into master May 29, 2018
@jefferai jefferai deleted the key-info-num-entities-groups branch May 29, 2018 18:58
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.

3 participants