Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4322

idmsvc-frontend: print request-id in the console on error

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Identity Management
    • 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.

       

            Unassigned Unassigned
            avisiedo@redhat.com Alejandro Visiedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: