-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Adds better error handling of workspace loading errors #1169
Conversation
3a6c749
to
e5474fb
Compare
So I found I was having issues with the workspace being empty (due to an unrelated error) and the console message that the workspace was empty was buried in the console. What was more obvious was the blank page when a connection was attempted. Therefore, the idea is to have a status plugin pop up that checks on the workspace. If it succeeds then the plugin never appears. However, if there is a failure then at least a single plugin is loaded and displayed giving the user some indication of the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the enhancement looks great, but there are a few considerations we'd like to take care of a bit.
* Adds a status plugin for displaying errors messages if the workspace failed to load. Such errors can get lost in the console log and a blank page is the result in the client. * workspace.ts * If an error occurs then add them to a collection in the workspace * Provides an api for quizzing the workspace on whether it has errored * console-status * Plugin that is only active if * there is a current connection (no point in displaying if nothing has been connected to yet) * there are no mbeans collected from the jolokia connection * Errors were flagged from the workspace * Assuming the plugin is active, offer a component that provides notification of the workspace *
e5474fb
to
f0a8cd6
Compare
Adds a status plugin for displaying errors messages if the workspace failed to load. Such errors can get lost in the console log and a blank page is the result in the client.
workspace.ts
app-status