-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
List of users is not populated for super admin #2221
Comments
I think the frontend just needs
|
No @spwoodcock. The |
Well that makes sense then. I just assumed that was the fix based on the error. So you are suggesting we might need separate endpoints for both?
|
I assume the manage users page was the top priority as we discussed in the meeting last month 🤔 |
We will be using the user API in many places as well as in the user tagging feature in comments. But I didn't understand why project_id is needed to pass in the user's API. |
Oh my bad then, if Ramya and Manjita agree its priority then ignore me, sorry! However, that said, if we could reuse this component for managing users at a project level too (for project admins), then its a great idea 👍 |
My main concern is not writing a load of additional code specifically for the admin user. On the backend we need to pass the project id generally, to determine the user roles. However in this case we can adapt the logic probably to make passing project id optional.
|
Describe the bug
When admin user tries to view the list of users from manage section, the list of user is not populated and upon inspection there is 400 bad request error message on network panel
To Reproduce
Steps to reproduce the behavior:
Make sure you have an admin role
Expected behavior
The list of users should be populated
Screenshots
Additional context
the error message is as below:
"errors": [
{
"loc": [
"query",
"project_id"
],
"msg": "Field required",
"error": "Field required['query', 'project_id']"
}
]
}
for
https://api.stage.fmtm.hotosm.org/users?results_per_page=13&page=1&search=
The text was updated successfully, but these errors were encountered: