Description
Kibana version: 6.6+
Elasticsearch version: 6.6+
Server OS version: N/A
Browser version: All
Browser OS version: All
Original install method (e.g. download page, yum, from source, etc.): N/A
Describe the bug:
For every angular based page in ML, we replace window.Promise
with $q
, this allows us to share Promise
based util functions between angular and react code without needing to explicitly call $applyAsync
when a resolving promise has to update the page.
This happens in a resolver, added to the routing stage of each page, and so happens before the page has fully loaded.
A recent change in core kibana undoes this change, reverting Promise
back to a non-angular version after these resolvers have been run.
#25711
This causes angular based pages to not update correctly when actions are performed or data has been loaded via a Promise
Steps to reproduce:
- Open the Single Metric Job creation page
- Refresh the page (F5/cmd-R)
- Attempt to create a new job. The chart loading spinner doesn't disappear.
Expected behavior:
Page should work as expected
**Screenshots (if relevant):**N/A
**Errors in browser console (if relevant):**N/A
**Provide logs and/or server output (if relevant):**N/A
**Any additional context:**N/A
PRs
- Anomaly Explorer, Time Series Viewer, Job Selector [ML] Fix missing $applyAsync() in AnomalyExplorer and Time Series Viewer #28237
- Data Visualizer [ML] Adds applyAsync to updates in the Data Visualizer #28241
- Job Config Wizards [ML] Adds $applyAsync calls to angular based new jobs pages #28325
- Removing last remaining references to
initPromise
function [ML] Removing promise override function #28360