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

Support operating on entities and groups by their names #5355

Merged
merged 3 commits into from
Sep 25, 2018

Conversation

vishalnayak
Copy link
Member

@vishalnayak vishalnayak commented Sep 18, 2018

No description provided.

@vishalnayak vishalnayak changed the title [WIP] Support operating on entities by their names Support operating on entities and groups by their names Sep 19, 2018
briankassouf
briankassouf previously approved these changes Sep 21, 2018
return nil, err
}
if group.NamespaceID != ns.ID {
return nil, logical.ErrUnsupportedPath
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should return nil, nil here so it matches the case where there is no group

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

ns, err := namespace.FromContext(ctx)
if err != nil {
return nil, err
}
if entity.NamespaceID != ns.ID {
return nil, logical.ErrUnsupportedPath
Copy link
Contributor

Choose a reason for hiding this comment

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

Same we should return nil, nil here

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

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.

2 participants