opendevstack / ods-provisioning-app

Provisioning app, which triggers project and component provisions (including Jira / Confluence / BitBucket and OCP resource creation)
Apache License 2.0
15 stars 20 forks source link

Refactor SPA Error Handling #634

Closed netzartist closed 3 years ago

netzartist commented 3 years ago

(Followup to #527)

Improved error handling and preparation for error logging to be added in a next step:

Logging should happen like this:

  1. Send logs to a backend logging endpoint
  2. Based on env settings passed to the Angular build script by an prov-app admin:
    • Print client errors to the browser console and / or
    • allow that the users see them "nice" in the app (e.g. via additional icon next to message which displays a modal dialog)

The current behaviour from a user's perspective is to see a meaningful message (without any tech info) while still being able to use the app. For example when for whatever reason the list of quickstarters cannot be loaded, then editing of a project is not possible and the user sees an information about this problem, but is still able to view all project details.

In a next step I'd prepare the possibility to configure an remote logging endpoint and create an Angular service which "fire & forgets" the logs to such an URL.

What do you think? Or do you have other ideas? /cc @stitakis @michaelsauter