Skip to content

[ML] Single Metric Viewer: zoom settings in URL are not restored if URL specifies a forecast ID #168583

@peteharverson

Description

@peteharverson

When restoring the Single Metric Viewer from a bookmarked URL for a view that was showing forecast data and where the slider was set to show a specific zoomed time range, the zoom settings (to / from) are not respected when the page is opened.

Current behavior if the URL contains forecastId is that the slider is positioned to ensure the start of the forecast range is shown in the main chart, and then show as much before / after the start of the forecast with the chart aggregation interval at bucket span granularity.

So for example currently restoring a bookmarked URL that was saved for this view:

https://localhost:5601/abc/app/ml/timeseriesexplorer?_g=%28ml%3A%28jobIds%3A%21%28gallery_sum_bytes_method%29%29%2CrefreshInterval%3A%28display%3AOff%2Cpause%3A%21t%2Cvalue%3A0%29%2Ctime%3A%28from%3A%272021-04-01T00%3A01%3A52.000Z%27%2Cto%3A%272022-04-07T16%3A00%3A00.000Z%27%29%29&_a=%28query%3A%28query_string%3A%28analyze_wildcard%3A%21t%2Cquery%3A%27%2A%27%29%29%2Ctimeseriesexplorer%3A%28mlTimeSeriesExplorer%3A%28entities%3A%28method%3APOST%29%2CforecastId%3ASlThHYsBNeLIniM5NzwS%2Czoom%3A%28from%3A%272022-03-21T12%3A23%3A18.191Z%27%2Cto%3A%272022-04-04T10%3A02%3A58.133Z%27%29%29%29%29
image

The view will be restored to show a different zoom range:

image

The behavior should be altered so that if the URL contains forecastId and zoom parameters, then the zoom range is restored according to the settings in the URL.

Metadata

Metadata

Assignees

Labels

:mlFeature:Anomaly DetectionML anomaly detectionbugFixes for quality problems that affect the customer experiencev8.13.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions