No error message when create user fails

Description

Problem: The UI doesn't provide an error message when the admin tries to create a user but it is unsuccessful.

Expected Results:
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

Error response:

Acceptance Criteria:

  • helpful message need to be added for key.

Environment

None

Activity

Show:
Brandon Bowersox-Johnson
November 7, 2017 at 12:41 AM

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.

Brandon Bowersox-Johnson
November 7, 2017 at 12:12 AM

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.

Ben Leibert
November 6, 2017 at 9:09 PM
(edited)

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:

Paweł Albecki
November 6, 2017 at 4:29 PM
(edited)

What changed:
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.

Chongsun Ahn
November 2, 2017 at 9:56 PM

Thanks.

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Original estimate

Time tracking

4h logged4h remaining

Components

Sprint

None

Fix versions

Priority

Time Assistant

Created November 2, 2017 at 12:21 PM
Updated November 20, 2020 at 7:51 PM
Resolved November 6, 2017 at 9:09 PM