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 double fetch errors #54701
Fix double fetch errors #54701
Conversation
@lizozom Is the filter problem something we should solve in that PR or do you want me to open a separate issue? |
@flash1293 just create an issue and assign to me. |
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.
Scary, but works :-D
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
Fixes #54526
Additionally to the problem described in the ticket this also fixes the double fetch problem when adding/removing filter pills.There are multiple ways fetch calls can reach the discover app:
This PR attempts to fix those by only triggering a fetch if the time range doesn't change.
TODO:
src/plugins/data/public/query/filter_manager/lib/mappers/map_phrase.ts
mapping a new formatter function into the filter object which causes the object to be non-equal to the current one on each update. Not sure what's the best way to fix this, plus we should have some way of testing this as I remember that we had a similar case in the past. cc @lizozom