Skip to content
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

feat(UI): forward Zeebe client exceptions to the web UI #353

Merged

Conversation

nitram509
Copy link
Collaborator

Motivation

Using Simple Monitor during development is somehow awkward because e.g. BPMN errors during deployment,
or actions like "resolve incident" do not show underlying Zeebe errors.
This PR attempts to improve this by a) enabling multiple errors shown at once and b) actively pushing ZeebeClientException messages to the UI.

Change Summary

  • add: forwarding/pushing ZeebeClient errors to the web UI
  • add: allow multiple errors, info, and success messages displayed at once in the UI
  • add: Test for ProcessInstanceResource
  • add: extended ExceptionHandler to push ZeebeClientExceptions to the UI
  • change: introduce abstract test class for ViewController and Resource tests
  • change: when during incident resolving the job can't be changed, there's still an attempt to resolve the incident
  • fix: closing error panel also closes info panel (now each panel must be closed individually)

example screenshot, how multiple errors are visualized...
Screenshot 2022-01-12 at 15 08 40

PS: there's one related change, I hope this is OK to be in here as well...
when clicking "resolve incident" in the backend two commands are sent to Zeebe. that's not obvious and slightly differs from e.g. using the CLI. So I adopted the implementation, that the second command is always fired, no matter if "update retries" fails, the resolve command is fired too. (I hope this helps hunt down the issue when Zeebe's housekeeping kicks in and Simple Monitor's data is no more in synch.)

new: allow multiple errors, info and success messages displayed at once
fix: closing error panel also closes info panel (now each panel must be closed individually)
change: when during incident resolving the job can't be changed, there's still an attempt to resolve the incident
@nitram509 nitram509 changed the title feat(UI) feat(UI): forward Zeebe client exceptions to the web UI Jan 12, 2022
@nitram509
Copy link
Collaborator Author

Hi @saig0, without raising any pressure, may I ask for a brief reflection/feedback on this PR, please?

@saig0 saig0 self-requested a review January 17, 2022 08:59
Copy link
Contributor

@saig0 saig0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitram509 great contribution 🎉 Thank you 👍

It looks good. I just have two minor comments. Please have a look.

src/main/resources/public/js/app.js Show resolved Hide resolved
@nitram509
Copy link
Collaborator Author

@saig0 I've pushed changes according to your feedback. thanks for that.
Please, feel free to review.

@saig0 saig0 self-requested a review January 18, 2022 04:42
Copy link
Contributor

@saig0 saig0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitram509 looks good 🚀

@saig0 saig0 merged commit f338b9e into camunda-community-hub:master Jan 18, 2022
@saig0
Copy link
Contributor

saig0 commented Jan 18, 2022

@nitram509 should I build a new version? Or, do you have more changes planned?

@nitram509
Copy link
Collaborator Author

@nitram509 should I build a new version? Or, do you have more changes planned?

@saig0 there's one more ... during performance testing of zeebe, I run into the issue, that the process instance details page was too large and crashed chrome & also some timing-related issues in Spring/Async/Response let to HTML source in my browser looks messed up (= html head/title at the bottom, very weird). I plan to introduce pagination in the details view, since my best guess is, that 1000+ table rows for audit logs are simply too large to handle.

@nitram509 nitram509 deleted the feature-improved-error-handling branch January 18, 2022 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants