-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
Goal:
- As a user, when a error happens communicating to the API, then the request-id is printed out.
Acceptance Criteria:
- For every API error operation, an error message is printed out in the console, indicating the request-id.
- For notifications related with API operations, the notification print out the request-id (TODO ask UXD mates about this).
Additional Information:
- This link is about redux, but wondering if something similar could be made on top of axios.
- Curently high uncertainty.
- Is it possible to write a middleware with the current generated client API code? how? (it would provide a cleaner code) How to create unit test for it? this would centralize the operation, and would avoid boilerplate.
- simple approach => add console.error traces on error scenarios when dealing with the client API, and print out the request-id there; for the notificacion, update builders to support request-id field, and print out the information on the notification.