[ML] Anomaly Detection: Fix jobs list default refresh.#57086
[ML] Anomaly Detection: Fix jobs list default refresh.#57086jgowdyelastic merged 6 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/ml-ui (:ml) |
💔 Build FailedTest FailuresKibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/anomaly_detection/single_metric_job·ts.machine learning anomaly detection single metric job creation displays the created job in the job listStandard OutStack TraceKibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/anomaly_detection/single_metric_job·ts.machine learning anomaly detection single metric job creation displays the created job in the job listStandard OutStack TraceTo update your PR or re-run it, just comment with: |
| } else { | ||
| this.setRefreshInterval(value); | ||
| componentDidUpdate(prevProps) { | ||
| if (prevProps.lastRefresh !== this.props.lastRefresh && this.props.blockRefresh === false) { |
There was a problem hiding this comment.
as blockRefresh is optional, should this check be for !== true?
do we want to treat a non-existing blockRefresh as being a false condition? if that makes sense.
|
If I open the page with a refresh interval set in the URL, such as |
…eshInterval when loading jobs list.
|
@peteharverson Hopefully fixed with 4212c9e. We were retaining the |
alvarezmelissa87
left a comment
There was a problem hiding this comment.
Tested and LGTM ⚡️
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
peteharverson
left a comment
There was a problem hiding this comment.
Tested latest edits and LGTM.
* [ML] Fix anomaly detection jobs list default refresh. * [ML] Fix initial load of jobs list. * [ML] Fix blockRefresh check. * [ML] Fix blockRefresh check. * [ML] Fix passing globalState between main tabs and retain custom refreshInterval when loading jobs list.
* [ML] Fix anomaly detection jobs list default refresh. * [ML] Fix initial load of jobs list. * [ML] Fix blockRefresh check. * [ML] Fix blockRefresh check. * [ML] Fix passing globalState between main tabs and retain custom refreshInterval when loading jobs list. Co-authored-by: Walter Rafelsberger <walter@rafelsberger.at>
* [ML] Fix anomaly detection jobs list default refresh. * [ML] Fix initial load of jobs list. * [ML] Fix blockRefresh check. * [ML] Fix blockRefresh check. * [ML] Fix passing globalState between main tabs and retain custom refreshInterval when loading jobs list.
* [ML] Fix anomaly detection jobs list default refresh. * [ML] Fix initial load of jobs list. * [ML] Fix blockRefresh check. * [ML] Fix blockRefresh check. * [ML] Fix passing globalState between main tabs and retain custom refreshInterval when loading jobs list. Co-authored-by: Walter Rafelsberger <walter@rafelsberger.at> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Fixes #56499.
Regression introduced by #52986.
30srefresh for the anomaly detection jobs list if no other refresh is already set.lastRefreshpattern we use on other pages: The route level component subscribes to date picker updates and passes on thelastRefreshtimestamp.blockRefreshis now also managed on the router level and passed on as a prop.Checklist
Delete any items that are not applicable to this PR.
For maintainers