Done
Details
Assignee
Nancy EspinozaNancy EspinozaReporter
jaime.tocajaime.tocaInternal feature
General interestFix versions
Components
Priority
Medium
Details
Details
Assignee
Nancy Espinoza
Nancy EspinozaReporter
jaime.toca
jaime.tocaInternal feature
General interest
Fix versions
Components
Priority
Sentry
Sentry
Sentry
Created August 11, 2020 at 10:52 AM
Updated September 15, 2020 at 2:42 PM
Resolved September 15, 2020 at 2:42 PM
Description
If there is a tracker import conflict related to an attribute/dataElement, show the asociated error in the form field.
Requirements
Show error message in the field related to the tracker import conflict
Do not delete the value, the user should be the one editing it
Develop
For each field, check if there is a tracker import conflict linked to the attribute/dataElement and set the error in the FieldViewModel class.
Test
Server to tests : 2.34
Program : TB Program
Note: You may need to remove "Ignore validation of required fields..." in the superuser role.
Tests cases :
The sdk is prepare to parse only two types of errors
Mandatory attributes
Invalid value type in dataelements
NOTE: Currently the tracker import conflict related to valueTypes in events can't be tested without a change in the code due to a data validation check that it is perform when retrieving values to show in the form. Other conflicts will render as expected once their are ready in the SDK.
Create or open and tei's event, Save the event with a field with a wrong value type. lick the granular sync botton of the tei, and error sould appear. Open the tei's event and an error show appear in the field that has the invalid value.