View Issue Details

IDProjectCategoryView StatusLast Update
0007606Talerwallet (Android App)public2023-01-27 16:36
Reportergrote Assigned Toavalos  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version0.9.1 
Target Version0.9.2 
Summary0007606: TalerErrorInfo should get rendered with an option to expand the raw JSON
DescriptionTalerErrorInfo is a mixed bag and can include undefined fields. For debugging, in dev mode, when rendering it, there should be the option to show its JSON as an indented string to help with debugging.
TagsNo tags attached.

Activities

avalos

2023-01-24 17:37

developer   ~0019702

Where should we put the option, and how should we show the JSON? I think putting both things in the transaction list would take a lot of space. Even a button that shows the JSON in a dialog would take a lot of space, especially if shown below the existing action button. Putting both things in the transaction details pages would involve repeating them all over.

grote

2023-01-24 17:57

developer   ~0019703

I agree we should avoid showing this in the transaction list. if the error is related to one transaction, we could show it in the details page. Otherwise, for errors in response to things, we sometimes show a dismissable bottom sheet dialog and sometimes render it as the empty state message.

avalos

2023-01-26 20:54

developer   ~0019704

How do we get the full JSON of the error? Currently, we're serializing the error to TalerErrorCode. Fields not present in this class will get discarded by the serializer, so we can't show them to the user.

grote

2023-01-27 16:36

developer   ~0019705

Congratulations! You found the tricky part of this implementation request :)

I also don't know, but in the worst case we need a custom class wrapping TalerErrorInfo with a custom serializer storing the entire json.

Issue History

Date Modified Username Field Change
2023-01-24 15:07 grote New Issue
2023-01-24 15:07 grote Status new => assigned
2023-01-24 15:07 grote Assigned To => avalos
2023-01-24 17:37 avalos Note Added: 0019702
2023-01-24 17:57 grote Note Added: 0019703
2023-01-26 20:54 avalos Note Added: 0019704
2023-01-27 16:36 grote Note Added: 0019705