-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: filter users by account_status
, user_role
#335
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1b318a4
add functionality
toph-allen 5b6bac4
integration tests
toph-allen 2189156
better test failure messages hopefully
toph-allen 127a063
update integration tests, write news
toph-allen 5d95daf
update docs
toph-allen 30c3303
too soon
toph-allen 6ac0380
update .gitignore
toph-allen bf8d435
cleanup
toph-allen 5e27e9e
tests
toph-allen 959c5e6
ok this’ll fix it
toph-allen 8c03fad
add unit tests
toph-allen 0a3c04f
revert small changes
toph-allen 01db8d0
Merge branch 'main' into toph/finding-licensed-users
toph-allen 6e1db52
update documentation
toph-allen 93ea4b3
fix lint failure
toph-allen 923494e
Update NEWS.md
toph-allen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to take or leave this suggestion, but is this true? That not filtered == all results? I believe yes for sure for
user_role
, but not sure aboutaccount_status
are locked/inactive accounts included if you don't specify anything?As for the suggestion of "all results" vs "results not filtered" either is fine, the first seems slightly more approachable to me, but I don't super strongly hold that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is true! The default for
account_status
is to not filter by status when nothing's passed in — this was my understanding from reading the API docs, and I just confirmed it experimentally (by filtering for all types, which uses boolean OR, and comparing that to unfiltered results).I agree that the current wording isn't a paragon of accessibility, but to my ear the suggested change sounds almost tautological, in the sense that "result" reads to me as meaning "the set of accounts returned by the function/API call. I wonder if this sentence is even needed — to me, the "Optionally" at the start of the parameter definition says everything that this sentence is trying to say (i.e. this is an optional parameter, and if you don't pass anything, the filtering operation described doesn't happen).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I can see arguments for both ways. I do think we should mention the default, it's not good to not say what the default is. Like I said, feel free to reject the suggestion — maybe leaning heavily on
filter
and what that means is enough here.