-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Return a UserList from /api/v1/admin/users #6629
Conversation
Signed-off-by: Andrew Thornton <[email protected]>
How about make a function |
Signed-off-by: Andrew Thornton <[email protected]>
And any test for this API is better! |
Codecov Report
@@ Coverage Diff @@
## master #6629 +/- ##
==========================================
+ Coverage 40.47% 40.52% +0.05%
==========================================
Files 406 406
Lines 54484 54492 +8
==========================================
+ Hits 22052 22084 +32
+ Misses 29395 29372 -23
+ Partials 3037 3036 -1
Continue to review full report at Codecov.
|
But CI build failed. |
Sigh sorry about that. |
@zeripath merged 😃 please backport. |
The new /api/v1/admin/users endpoint doesn't return a UserList as described on swagger and doesn't return
api.User
but rather an unsanitised form ofmodels.User
.This PR fixes this.