-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
fix(slo): search bar #166945
fix(slo): search bar #166945
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only code review LGTM! I will check locally as well
I tested it and what you describe works fine. But look what happens when I detele the search query. I would expect to get back the list of all slos. Is it something we control? This behaviour is also on main, so I guess we can create a separate issue for this. Screen.Recording.2023-09-21.at.17.49.44.mov |
@mgiota Yes i've noticed that before. Indeed this is not related to this fix. In that case, the problem is the QueryStringInput component does not trigger the onSubmit callback when clicking on the "clear" icon. |
I've improved the fix. search.mov |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @kdelemme |
Looks great! |
Resolves #166689
Resolves #166683
🍒 Summary
This PR fixes two bugs:
refetch
but doing so was using the previous state of the query. Instead, we only update the query state, and let react react hook query trigger a refetch based on the state update.