-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Improve error UI #174143
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
The "View details" action button is only available for elasticsearch errors. In the example with the pagination, the errors are configuration errors and a query is never is sent to elasicsearch. Therefore the pagination errors are still required for lens configuration errors. |
Thanks for that clarification, @nreese! After a closer review of the original PR, it looks we may be able to avoid issue that causes the error in your example altogether with a small behavior change. In Lens, we try to do everything we can to avoid obstructing users with errors, if there is any way they can be prevented. By manually deleting the field selection value for the cumulative sum function, as per your steps, it seems you're able to circumvent the checks we've put in place to prevent users from applying a configuration with no field selected.
I'm thinking we should treat this situation similar to how Lens treats other instances of a configuration being applied without a field (i.e. revert the configuration to its last known good state). @stratoula, would we have the ability to revert to the last known good state when the user closes a configuration flyout after manually deleting the field selection? Doing so would make this error message unnecessary. For example, the below screenshots show how Lens currently falls back to the last known good configuration when the user closes the configuration flyout without having selected a field: Otherwise, if we're not able to prevent this error as we do with similar situations in Lens, then I'd recommend that we make a few changes to how the error presented across the Lens UI. Example mockups below.
Single error exampleMultiple error exampleAs for the other examples provided in the original PR, here are some quick mockups with my suggested changes, for the sake of consistency: Lens shard errorDashboard shard error@stratoula: As an additional note, it unfortunately appears that Lens isn't very consistent with how it present its error messages currently. Error messages can be displayed in varying ways, as shown below. If we can adopt the same patterns as suggested above (and first proposed within this old errors/warnings design document that @drewdaemon and I collaborated on a while back), that would be a nice win for error and warning consistency in Lens. Let me know if that needs to be a separate issue. |
Yes @MichaelMarcialis I agree, let's see this issue holistically and try to apply a common error strategy and UI.
Yes I think we can, especially in this scenario it makes sense to me |
Describe the feature:
Currently in Lens we have a paginated results UI to show the errors:
According to Michael's comments here we could improve it to be inline with the ccs errors #172971 (comment)
Something like that
The text was updated successfully, but these errors were encountered: