Problem: The UI doesn't provide an error message when the admin tries to create a user but it is unsuccessful.
When the admin tries to create a user and there is an error, the admin should see a UI error message that says the user was not created, or the user creation was unsuccessful. Currently they receive no UI error message but the server fails to create a new user.
Steps to reproduce:
1. PUT /api/users with body
helpful message need to be added for key.
messages were fixed for
endpoint and body from description
GET /api/searchByScheduleAndDate without processingScheduleId param
create role without a right POST /api/roles e.g.
create role with rights that have different types e.g.
Moving this to “Done” given that the UI displays a useful error when an attempt to create a user fails, and because the backend now returns the following response-body for the request-body specified in the ticket:
I noticed in Slack Ben said you felt this error message is not user-friendly enough. This ticket is already moved to Done, the code has been Reviewed and everything is finished here. So I suggest you open a new ticket that we can slot for future work (after 3.2.1 release) if you want to suggest a different message. When you open the ticket please include a suggestion.
Update: Sam says this message is acceptable, because it is a message the API sends but the end users will never see it in the UI.