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(notifications): service handles and displays all incoming WS messages #367

Merged
merged 6 commits into from
Feb 9, 2022

Conversation

andrewazores
Copy link
Member

Related to #349

This refactors the explicit notification handling in the NotificationChannel, extracting out some configuration objects into a Map to redefine the existing notifications handling for things like WebSocket client activity, or recording start/stop/archive/delete actions.

This is then further extended by adding handling for notifications that have a category not specified in the above configuration map. The client will still attempt to display these notifications, but the display will include the raw message category from the WebSocket notification message, and the notification body will simply be the body field of the notification message, without any further contextual information, and likely with JSON formatting tokens present. This is just a catch-all handler in case some backend message is emitted that no frontend support was specifically implemented for. Ideally, it should never actually be triggered, because all message types are accounted for with the customized configuration objects.

@andrewazores andrewazores added the feat New feature or request label Feb 4, 2022
…sages

customized display behaviour can and should be specified for all message event categories, but if an unexpected message is received, it will be displayed with some guess at the correct alert level
configure JVM discovery to not display alert
Copy link
Contributor

@jan-law jan-law left a comment

Choose a reason for hiding this comment

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

Looks good otherwise

@andrewazores andrewazores merged commit 45eb24e into cryostatio:main Feb 9, 2022
@andrewazores andrewazores deleted the notification-actions branch February 9, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants