openmhealth / showcase.diabetes_patient_vis

This is a collection of DVUs for displaying diabetes patient data on a mobile device using HTML5 and JavaScript. We are calling it My Comparisons.
2 stars 4 forks source link

Errors for a comparison should be shown inside that comparison #2

Closed cketcham closed 11 years ago

cketcham commented 11 years ago

Instead of showing a popup, errors for a comparison should be shown inside the comparison itself instead of data.

Errors we should deal with are:

"{"result":"failure","errors":[{"text":"The user does not belong to the campaign: urn:campaign:org:openmhealth:pam","code":"0707"}]}"

"{"result":"failure","errors":[{"text":"The user's Entra username is missing: deleteme","code":"1711"}]}"

cketcham commented 11 years ago

errors aren't actually comparison specific since each comparison could have 0, 1 or 2 errors based on the streams which failed. A general error message is used instead.