-
Notifications
You must be signed in to change notification settings - Fork 656
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 more Crowd functions #1277
Add more Crowd functions #1277
Conversation
- Add a new function `user_groups` used to get specify user's all group info - Introduce new dependencies `jmespath` which is used for search string in json, for more info, read: [JMESPath Tutorial — JMESPath](https://jmespath.org/tutorial.html)
- Using universal request to get user's group, controled by `kind` param - Using universal request to get group's member, controled by `kind` param - Add a new function to determine whether the user is a member of a group
- Add a parameter `max_results` has prevented insufficient results from being returned, the server default is `1000`
- Sync latest requirements
- Add a config parameter: `build.os` try to fix RTD docs build error
- Add build config to fix RTD doc build error
Add 2 more commits to fix RTD doc build error. Like official sample: build:
os: ubuntu-22.04
tools:
python: "3" |
- Add `jmespath` into it.
I carefully checked |
- Add new functions' doc
Add doc |
@ChowRex thank you for your PR and fix docs Let's start from that usage. |
@gonchik Thanks for reply, I'm trying to fix the QA testing errors. If time permits, I'd be happy to submit more PRs. |
Close the PR for the time being, and I will resubmit it after repair. |
- Introduce a new dependency package: `jmespath`
- Using black to format code, replace pylint.
Reopen this PR. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1277 +/- ##
==========================================
- Coverage 34.51% 34.50% -0.02%
==========================================
Files 45 45
Lines 8184 8196 +12
Branches 1134 1134
==========================================
+ Hits 2825 2828 +3
- Misses 5245 5254 +9
Partials 114 114 ☔ View full report in Codecov by Sentry. |
user_groups
used to get specify user's all group infojmespath
which is used for search string in json, for more info, read: JMESPath Tutorial — JMESPathkind
paramkind
parammax_results
has prevented insufficient results from being returned, the server default is1000