-
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
Filter manager improvements \ bug fixes #41999
Filter manager improvements \ bug fixes #41999
Conversation
- Avoid firing update \ fetch events twice from filter manager, by making filter state manager use getFilters rathre than storing its own previous filters. - Don't fire fetch event when only disabled filters were changed - Replaced onlyDisabledChanged implementation with a more readable one (karma tests pass!) - Exported onlyDisabledChanged from data - Deleted unused only_state_changed
Pinging @elastic/kibana-app-arch |
it seems it doesn't fix #41204, i can still replicate that bug (go to visualize, open visualization, open dev tools, go to network tab, click refresh. two msearch requests are fired. appart from that LGTM, tested on chrome linux |
@ppisljar, spoke with @lukasolson |
💔 Build Failed |
…plugin/restore-fetch-update-diff
💔 Build Failed |
retest |
💚 Build Succeeded |
@ppisljar, @lukasolson updated his PR, to depend on this one and fix the bug in #41204. |
src/legacy/core_plugins/data/public/filter/filter_manager/filter_state_manager.test.ts
Show resolved
Hide resolved
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.
Code LGTM
…plugin/restore-fetch-update-diff
💚 Build Succeeded |
* Filter manager improvements - Avoid firing update \ fetch events twice from filter manager, by making filter state manager use getFilters rathre than storing its own previous filters. - Don't fire fetch event when only disabled filters were changed - Replaced onlyDisabledChanged implementation with a more readable one (karma tests pass!) - Exported onlyDisabledChanged from data - Deleted unused only_state_changed * Delete empty afterEach
* Filter manager improvements - Avoid firing update \ fetch events twice from filter manager, by making filter state manager use getFilters rathre than storing its own previous filters. - Don't fire fetch event when only disabled filters were changed - Replaced onlyDisabledChanged implementation with a more readable one (karma tests pass!) - Exported onlyDisabledChanged from data - Deleted unused only_state_changed * Delete empty afterEach
Summary
Related to issues #41144 and #41204
Bugfix - Update and fetch events fired twice
Optimization - don't fetch data when changing disabled filters
onlyDisabledChanged implementation
onlyDisabledChanged
implementation to a more readable one (in TS).onlyDisabledChanged
tests to jest.onlyDisabledChanged
from data plugin, for any other plugin to useonlyStateChanged
helperSummarize your PR. If it involves visual changes include a screenshot or gif.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers