[URL Drilldown] Range selection over date x-axis timestamp range instead of iso range #90923
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Drilldowns
Embeddable panel Drilldowns
Kibana version: master, 7.x
Describe the bug:
In 7.11 and prior when building a URL drilldown using range selection trigger would provide selection range in ISO format.
In master and 7.x this has changed to timestamps and this is a breaking change.
Steps to reproduce:
{{event.from}}
{{event.to}}
from the URL. For example, use to navigate to discover:Save the drilldown
{{event.from}}
{{event.to}}
substituted with timestamps instead of ISO strings like in 7.11 and prior. In the example URL case navigation to discover is incorrect because it doesn't support timestamps in time range.Expected behavior:
{{event.from}}
{{event.to}}
substituted with ISO strings datesAny additional context:
We refactored
tabify
which could have caused this changed.There is a functional test that should have caught this regression:
https://github.com/elastic/kibana/blob/master/x-pack/test/functional/apps/dashboard/drilldowns/dashboard_to_url_drilldown.ts#L76
But because of not very strict assertion and the fact, the discover just swallowed not supported time range without any error, we missed the regression.
As part of the fix, we should also adjust that functional test.
Please note: if we decide we want/must to with timestamps instead of ISO string, then there is a way to workaround example drilldown. Just using
date
helper in a template would force an ISO string:{{date event.from}}
The text was updated successfully, but these errors were encountered: