-
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
Timefilter - replace SimpleEmitter with observables #43748
Timefilter - replace SimpleEmitter with observables #43748
Conversation
…ilter/observables
…ilter/observables
…ilter/observables
…ilter/observables
Pinging @elastic/kibana-app-arch |
@chrisronline I fixed the error you saw when stopping auto refresh. |
💔 Build Failed |
💚 Build Succeeded |
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.
LGTM, and the changes wrt to Canvas seem very straightforward. Accepting for Canvas.
…ilter/observables
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.
Looks good overall, just added a question about a line that could possibly removed.
x-pack/legacy/plugins/ml/public/timeseriesexplorer/timeseriesexplorer.js
Outdated
Show resolved
Hide resolved
@lizozom, I added @jgowdyelastic as a reviewer too since he's more into the new anomaly job wizards code. |
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.
Latest changes LGTM
Thanks. @jgowdyelastic let me know if you have any questions. |
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.
LGTM
💚 Build Succeeded |
* Replaced 'timeUpdate' and 'enabledUpdated' timefilter events with observables. * Change enabledUpdated$ to a BehaviorSubject * refreshIntervalUpdate + fixes in monitoring * autoRefreshFetch * getFetch + delete listenAndDigestAsync * Removed SimpleEmitter parent * Updated timefilter tests * Post merge code updates in ML + type fixes * visual editor unsubscribe * removed unused import * timefilter mock * Import only from top level of timefilter * Fixed typo in discover * unsubscribe in monitoring * Deleted two tests relying on timefilter implementing EventEmitter * Renamed subscribtion var name * import path for fixing jest test ? * Removed unused row
* Replaced 'timeUpdate' and 'enabledUpdated' timefilter events with observables. * Change enabledUpdated$ to a BehaviorSubject * refreshIntervalUpdate + fixes in monitoring * autoRefreshFetch * getFetch + delete listenAndDigestAsync * Removed SimpleEmitter parent * Updated timefilter tests * Post merge code updates in ML + type fixes * visual editor unsubscribe * removed unused import * timefilter mock * Import only from top level of timefilter * Fixed typo in discover * unsubscribe in monitoring * Deleted two tests relying on timefilter implementing EventEmitter * Renamed subscribtion var name * import path for fixing jest test ? * Removed unused row
Summary
Part of [NP Migration Phase I/II]: de-angularize & shim timefilter
Replace SimpleEmitter with observables.
FYI checked each event bieng triggered in this PR one by one
DevDocs
Timefilter
exposes 5 events:getEnabledUpdated$
- Fired whenisTimeRangeSelectorEnabled
\isAutoRefreshSelectorEnabled
are toggled.getTimeUpdate$
- Fired when a user changes the timerange.getRefreshIntervalUpdate$
- Fired when a user changes the the autorefresh settings.getAutoRefreshFetch$
- Used when search_poll triggers an auto refresh.getFetch$
- Used when data is set, or the first time auto-refresh is enabled.Old subscription:
New subscription:
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers