-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[24.0] /api/users/
does not include deleted
#18300
Comments
What is the return type of My guess would be that the This might explain why galaxyproject/bioblend#487 returns only limited info (need to check if the test is done as admin and the query is for another user), but I noticed it in an application where the user was an admin. |
Hmmm now that I look, it might actually be because of this
If any of these options (expose_user_name or expose_user_email) are set to false the UserModel will fail validation because it expects |
I've just compared the admin response for 23.1[
{
"model_class": "User",
"id": "f2db41e1fa331b3e",
"email": "[email protected]",
"username": "admin",
"deleted": false,
"active": true,
"last_password_change": "2024-02-06T13:04:23.454162"
},
{
"model_class": "User",
"id": "1cd8e2f6b131e891",
"email": "[email protected]",
"username": "user02",
"deleted": false,
"active": true,
"last_password_change": "2024-02-06T13:04:23.638815"
},
{
"model_class": "User",
"id": "f597429621d6eb2b",
"email": "[email protected]",
"username": "user01",
"deleted": false,
"active": true,
"last_password_change": "2024-02-06T13:04:23.558743"
}
] 24.0[
{
"id": "ebfb8f50c6abde6d",
"username": "user03",
"email": "[email protected]"
},
{
"id": "f597429621d6eb2b",
"username": "user01",
"email": "[email protected]"
},
{
"id": "f2db41e1fa331b3e",
"username": "admin",
"email": "[email protected]"
}
] |
This should be fixed in #18329 |
Describe the bug
Apparently it did until 23.x galaxyproject/bioblend#487
Not sure if a bug, since
deleted
is a parameter and therefor the info is redundant.But the example in https://usegalaxy.eu/api/docs#/users/get_users_api_users_get
also shows it in the response.
Edit: The code suggests that only
id
(and maybeemail
andusername
) are included.Galaxy Version and/or server at which you observed the bug
Galaxy Version: 24.0
Expected behavior
Not sure if the key should be in the response. But at least the docs should be consistent.
The text was updated successfully, but these errors were encountered: