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:
Chongsun Ahn
November 2, 2017, 9:56 PM

Thanks.

Paweł Albecki
November 6, 2017, 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.

Ben Leibert
November 6, 2017, 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:

Brandon Bowersox-Johnson
November 7, 2017, 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.

Brandon Bowersox-Johnson
November 7, 2017, 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.

Assignee

Paweł Albecki

Reporter

Paweł Albecki

Story Points

2

Time tracking

0m

Time remaining

4h

Components

Sprint

None

Fix versions

Priority

Blocker
Configure