Open drewdaemon opened 2 years ago
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)
With the right (wrong?) data view, pre-ingest integration dashboards can still look awful, even after https://github.com/elastic/kibana/pull/149262. This issue should fix this because it will prevent invalid configurations from making it to the renderer.
https://github.com/elastic/kibana/pull/149262 was basically a "let-it-fail" solution. Works okay in many scenarios, but just how many was never tracked or studied.
The following dashboard contains many visualizations using the same data view. They are all (but one) failing for lack of field data while the renderer builds the elasticsearch request (esaggs has its own set of validation checks).
Describe the feature
Today in many cases Lens will not render a chart because of a single invalid dimension or layer. The rest of the chart configuration may be perfectly valid and if the problematic portion of the configuration were ignored, we could still show the user a partial chart while still signaling the problem with this dimension-local pattern we use for reference lines:
This would make for a better user experience than we have today since
We could also make the error icon mutually exclusive with the existing swatch/collapsed/palette dimension icon.
Specific use cases
Questions
Related questions
Technical thinking
This change would involve allowing the visualization class to mark certain dimensions as invalid for all purposes (including data fetching) except display to the user.
One idea from @dej611 could be creating a validation pipeline that is applied to the datasource and/or visualization state before that state is used for anything but displaying the dimension configurations.