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

[Search] debounce error/warning toasts #116686

Closed
Dosant opened this issue Oct 28, 2021 · 17 comments
Closed

[Search] debounce error/warning toasts #116686

Dosant opened this issue Oct 28, 2021 · 17 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@Dosant
Copy link
Contributor

Dosant commented Oct 28, 2021

There was a general issue about spamming error/warning toast. We were hoping it will be solved in a generic way inside toast service, but the conclusion is that teams should handle this in their code.

We should prioritize handling this inside the search service because most of the feedback on this is coming from warnings generated by the search.

@lukeelmers: we are discussing potential enhancements to the toasts api (#67270) to give apps more tools to help with this, but for now, our recommendation is still for the data plugin to debounce these errors as that’s going to be the quickest solution (e.g. #62649). pretty much all of the complaints we have seen around noisy toasts are something that’s being initiated by the search service.
@Dosant: should we wait for toast api improvements
@lukeelmers: Could you still do some naive deduplication using toasts.get$()? i.e. get the current list of toasts, and only have search service create a new one if it has a unique error message?
This is logic you’d need in place anyway even if we did have an edit API, as you’ll need to know whether to edit or create a new one, so I think this could still be solved iteratively in absence of a new API

cc @sixstringcode @lukasolson

@Dosant Dosant added bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana Team:AppServicesSv labels Oct 28, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort and removed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Oct 28, 2021
@lukeelmers
Copy link
Member

@Dosant was this intentionally closed?

@Dosant
Copy link
Contributor Author

Dosant commented Nov 22, 2021

@lukasolson, this issue was closed from Jira, I assume this is expected as not really needed anymore because we removed warnings altogether for now? #117252

@lukasolson
Copy link
Member

Re-opening, as we have received feedback that even the "shards failed" messages can build up and prevent the user from being able to interact with Kibana.

@teresaalvarezsoler
Copy link

Re-opening, as we have received feedback that even the "shards failed" messages can build up and prevent the user from being able to interact with Kibana.

I confirm this is still the case, at least for version 7.16.

@ghudgins
Copy link
Contributor

++ a customer brought this up unprompted in a roadmap presentation today.

@lukasolson
Copy link
Member

Related: #106516

@ghudgins
Copy link
Contributor

ghudgins commented May 4, 2022

from a slack DM with a customer -

Since you seem sincerely interested, remind the [team working on this] that when the "SAVE" button is blocked by these messages I can't use ANYTHING ELSE in the entire system. This sounds like overstated hyperbole, but if I click the "hamburger menu" on the left, and navigate away, I LOSE ALL THE WORK THAT I CANNOT SAVE. So I truly am stuck. This simply isn't acceptable.

image

@sixstringcode
Copy link

Is there a need for a history view so we can make these toasts much less aggressive and point someone to the full list if they need it?

@mattkime
Copy link
Contributor

mattkime commented May 4, 2022

I'm hoping to make an impact on this problem in 8.3. I see a couple different ways of approaching this -

  1. Shard failure messages. These could likely be collapsed independent of the number of shards hit or the number of failures. This should be relatively easy.

  2. Deduping messages with the same title and message. A bit more generic than the item above but still a simple case. Perhaps for most purposes this is the same item as above.

  3. Some sort of close all button.

  4. If you have more that 3 toasts then we display a single toast that provides a way to open a toast viewer. This covers the worst case scenario - a bunch of disparate apps are sending toasts without a way to dedupe them BUT the UI remains manageable.


For this release I'd like to focus on 1 & 2. It would be nice to come to a quick conclusion on this and get shit done.

@sixstringcode
Copy link

I am on board but want to understand a little more about the de-duping experience. My main concern is that it's obvious to me when I had many duplicate errors vs. a few errors of the same type. I am completely on board with improving the experience here, but want to make sure that will still give enough context that a user knows when there are a few errors vs. an avalanche we deduped.

@mattkime
Copy link
Contributor

mattkime commented May 5, 2022

We should probably have a list of the error types since user response will vary based on the specific error.

  • Shard failure messages - I think one is enough, as user action wouldn't change based on multiple errors.
  • Failure to load data view - same
  • Request timeout - same
  • Search session errors - Have these been a problem?
  • Script errors - I need to see how these are display. This is a case where one failure vs many may mean different actions would be taken by the user

@petrklapka petrklapka added the papercut Small "burr" in the product that we should fix. label Aug 24, 2022
@kertal kertal added the Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. label Nov 21, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@thomasneirynck
Copy link
Contributor

thomasneirynck commented Apr 10, 2023

Would recent improvements to toast-storms already improve on this? (e.g. #149488)

Might help to add some clarity what exactly been addressed and what is still open.

@davismcphee
Copy link
Contributor

davismcphee commented Apr 11, 2023

@thomasneirynck #149488 improves this to some extent, but only in the context of Discover, we didn't make any changes to the search service. We've also made a couple of other improvements that are unrelated to the search service but which improve this issue in certain circumstances:

@kertal
Copy link
Member

kertal commented Apr 19, 2023

Adding one issue to improve shard error warnings in Discover / Saved searches on a Dashboard
#155216
Such warnings are debounced in the search service, however having x saved searches with different shard errors causes , x toasts. this will be resolved with #155216. Don't know if it's worth to keep the issue open after that.

@kertal
Copy link
Member

kertal commented May 2, 2023

@thomasneirynck you're fine with closing this? The remaining related work is tracked in this issues:

@thomasneirynck
Copy link
Contributor

wrt #116686 (comment)

+1 on closing, thx @kertal !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

No branches or pull requests