[Notifications] Add more error context to error toasts #81857
Labels
enhancement
New value added to drive a business result
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Describe the feature:
As a kibana user, if my UI interactions generate an elasticsearch error, I want as much contextual information about the error as possible in order to diagnose and resolve my issue.
Describe a specific use case for the feature:
While #70404 added additional error information to our existing notifications service, that information is situational and not always present. I previously created an elasticsearch issue to discuss the behavior that I was seeing: EQL validation errors resulted in error toasts without any useful error information, despite this context being contained in the response.
While documentation around these errors and their topography is sparse, I'd like to propose the following change based on the behavior that I've observed:
error.type
anderror.reason
fields, if presenterror.root_cause
fields and so I think we can ignoreerror.root_cause
; I've not seen anything to the contrary.However, I've not seen a situation whereconfirmed below that these top-level fields are meant to be presentational, and we should treat them accordingly.error.root_cause
has more than one element so a quick verification from an elasticsearch team member would be greatcaused_by
fields as such: a contributor to the top-level errorx_content_parse_exception
, but was caused more specifically by azone_rules_exception
The text was updated successfully, but these errors were encountered: