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

commands: filter get users by project and permissions #232

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

joe-prosser
Copy link
Contributor

Allows you to filter get users by a project and permissions

@joe-prosser joe-prosser self-assigned this Oct 23, 2023
Copy link
Collaborator

@tommilligan tommilligan left a comment

Choose a reason for hiding this comment

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

Looks good to me

Comment on lines +29 to +31
if project_name_filter.is_none() && project_permission_filter.is_some() {
bail!("You cannot filter on `permission` without a `project`")
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would argue you could implement this such that if you didn't pass in a project, you got back all users with that permission in any project.

But if that's not the behaviour you want, happy with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good shout - will save that for a future PR. Thanks

@joe-prosser joe-prosser merged commit 9dcf515 into master Oct 23, 2023
2 checks passed
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