Make UI error box display API error messages

Description

Please see MW-177. It seems as though a miscellany of error conditions can lead to the generic error message that OpenLMIS "Could not initiate LMIS Form." In the reference-distribution of OpenLMIS, the analogous message is something like "Could not initiate R&R."

In either event, it would be helpful to give users more specific information about what's wrong and why the R&R ("LMIS Form") can't be initiated.

Acceptance Criteria

  • Every time a back-end API error bubbles up to the UI into a red error message box, we should have part of that error box show the detailed API error string so users don't have to open the Dev Tools/Console to see the details.

Attachments

7

QAlity Plus - Test Management

Checklists

Activity

Paweł Albecki 
July 26, 2017 at 9:02 AM

Issue with unable to open modal one after another does not occur anymore. I tried to reproduce this by causing backend error -> modal is shown -> I close modal -> repeat -> modal is shown.

Paweł Gesek 
July 20, 2017 at 2:24 PM

can you give me the repro steps? I am not sure what "Displaying the same modal twice means". Should I do the same error twice? If that's the case it works, since I did this plenty of times in stock management today.

Nikodem Graczewski 
July 20, 2017 at 1:12 PM

The bug found during showcase was caused by changes made in (https://review.openlmis.org/cru/FEOLMIS-1713).

Nikodem Graczewski 
July 19, 2017 at 2:26 PM

, Displaying the same modal twice does not seem to work.

Lucyna Laska 
July 14, 2017 at 12:32 PM

Okay, now the error messages are displayed on the modals. Btw, the problem described in the ticket does not occur anymore.

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

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

4d 1h 30m logged

Components

Sprint

Fix versions

Priority

Time Assistant

Created May 19, 2017 at 7:45 AM
Updated August 2, 2017 at 8:52 PM
Resolved July 26, 2017 at 9:02 AM