Closed drewdaemon closed 9 months ago
Pinging @elastic/kibana-visualizations (Team:Visualizations)
The time range is built into the (data source) expression when the expression is created.
In the editor, the expression is recreated from scratch every time the time range changes, leading to an updated value for time_range()
.
However, in the embeddable, we only generate the expression once at load time. Because of this, the original time range value persists no matter what the user does.
Kibana version: 8.11, maybe earlier
Describe the bug: The result of the
time_range
,now
, andinterval
formula functions should be updated according to the current time range as well as the current moment in time.For example, when the time range is changed, so should the result of
time_range
. This works in Lens, but not in Dashboard (embeddable).Steps to reproduce:
time_range()
Screenshots (if relevant):
https://github.com/elastic/kibana/assets/315764/75600154-9c0a-499c-b20a-af92bd1f6b5c