Remove courier and search poller and move to time filter service#48301
Remove courier and search poller and move to time filter service#48301lukasolson merged 2 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
💚 Build Succeeded
|
There was a problem hiding this comment.
Can you please remove this method and just trigger the observable from setRefreshInterval?
There was a problem hiding this comment.
I could remove it, yes, but I'd still need to declare it as a TimerHandler otherwise Typescript complains.
There was a problem hiding this comment.
Turns out if I added window.setInterval then Typescript appropriately associates the types.
There was a problem hiding this comment.
Thank you for making this PR! I was planning to do this in the near future.
I Tested this in multiple applications and there are quite a few oddities (I'm not sure which of them are a result of this PR, and which are are already in master).
- Data Visualizations (tested TSVB and gauge), Dashboard and APM - don't fetch data when you start auto refresh (only after 1 interval)
- Discover - fetches data immediately 2 times when you start auto refresh
- Maps seems to fetch data twice every time auto refresh update is triggered
walterra
left a comment
There was a problem hiding this comment.
ML changes LGTM (I didn't see any double-loading with the ML and transform plugin during refreshs).
88b71ab to
8989f41
Compare
Confirmed happening on master as well.
Confirmed happening on master as well.
I couldn't reproduce this, are you talking about the maps app or a region/coordinate map? If the app, then do you have multiple layers causing separate requests? |
💚 Build Succeeded |
…stic#48301) * Remove courier and search poller and move to time filter service * Remove notifyShouldFetch function
|
7.x (7.6.0): eca81ec |
Summary
This PR removes the search poller and courier Angular services and moves the associated auto-refresh logic directly into the time filter service.
This means that applications no longer need to require or rely on the
courierservice for enabling auto-refresh capabilities.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For testers
This PR shouldn't have any functionality changes to test, but I've tried to focus on testing all functionality related to auto-refresh.