-
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
Global time range in URL overwritten in certain situations. #21326
Comments
Pinging @elastic/ml-ui |
Sorry for causing this with my PR. I thought that the fix would bring the logic back to where it was prior to June 26th, when angular was removed from the time picker. Sounds like ML jobs and dashboards stored with time work similarly - when you open them, they should adjust the time, both in the UI and in the URL. That broke for dashboards when angular was removed from the time picker (the URL and the UI got out of sync). My change to fix that was to sync the URL with the UI state. The problem was that it wasn't being initialized on page load. I'm technically off today but can help more on Monday, and spend some time investigating (or if I find time later today). |
Assuming we start out with timefilter set to Time A. Opening a job URL set to Time B goes through this flow:
Why does this work for dashboards?Assuming we start out with timefilter set to Time A and we open a dashboard with time stored as Time B. Dashboards soft refresh goes like this:
Step 2 stops this bug from appearing because dashboard manually syncs the timefilter to the saved time. What about when we edit the URL directly, how come the bug doesn't appear then? In that case kbnGlobalTimePicker is not initialized so we don't hit the bug. I can actually reproduce this bug now excluding ML completely:
You'll get a soft refresh that causes the |
Not sure of a fix yet, but I think this is not related to ML so I edited the title and labels. It's really a platform/discover team thing, but the de-angularization of time picker was taken on by the Sharing team, as was the fix that caused this additional blocker, so I supposed it's up to us to find a short term solution for 6.4. Long term, I think this is yet another example of how the tech debt in this area is causing us lost productivity. |
@nreese can confirm that this fixes the issue for me, great! |
Found in version
master
onwards since38dcda0e6bc7719aab94be3d28a0e56c6acef623
Browser
Steps to reproduce
Expected result
Actual result
Additional information
The text was updated successfully, but these errors were encountered: