kibana/x-pack/platform
Dario Gieselaar 16f6ecf9c2
[Streams] Consolidate time handling (#217910)
Consolidate time handling by:

- making sure the useTimefilter hook exposed from the data plugin
materializes both absolute and relative time ranges on a time range
update, and a refresh
- signal the type of refresh: no refresh (ie, date range change),
time-shift (refresh pressed, but for a materialized time range that is
different than the previous one), override (refresh on an absolute time
range)
- expose TimeState - the original time range, the absolute version of
it, and start/end epoch ms
- use global time ranges in Streams where possible
- move time refresh logic into `useStreamsAppFetch` (opt-in)

---------

Co-authored-by: Joe Reuter <email@johannes-reuter.de>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-04-17 06:44:07 +02:00
..
packages [chore] Bundle fp-ts into the shared bundle (#217034) 2025-04-16 18:01:41 +02:00
plugins [Streams] Consolidate time handling (#217910) 2025-04-17 06:44:07 +02:00