grafana/public/app/features
David 57abf39f25
Logs: Use result range instead of timepicker range for log histogram (#25027)
* Logs: Use result range instead of timepicker range for log histogram

If a logs datasource does not send histogram data for the requested
time range, the logs model computes a timeseries based on the log row
counts, bucketed by an automcatically calculated time interval. Even
when this histogram time series did not span the whole requested time
range it was still rendered in the graph across the whole range, leaving
an empty area at its start. Users find this confusing and are lead to
believe their log data is missing.

This change fixes this by anchoring the start of the timeseries on the
first log row's timestamp from the result, and adds this smaller range
as `visibleRange` to the logs model and passes it through to the logs
component that optionally takes it into account to not render the empty
area.
The interval (bucket size) is also adjusted to account for a potentially
finer resolution on the shorter visible time interval.
The bucketsize multiplier was also changed from 10 to 20 to account for
the space between the chart's bars.

* Aligned visible range with buckets

* Extract bucket size calculation and add test
2020-05-29 15:39:13 +02:00
..
admin Orgs: Add future deprecation notice (#24502) 2020-05-14 12:16:26 +02:00
alerting Search: Safari UI fixes (#24567) 2020-05-12 17:10:48 +03:00
annotations Security: Fix annotation popup XSS vulnerability (#23813) 2020-04-23 11:35:43 +02:00
api-keys DateTime: adding support to select preferred timezone for presentation of date and time values. (#23586) 2020-04-27 15:28:06 +02:00
dashboard Transformations: Fixed transformation crash issue (#25152) 2020-05-28 08:06:24 +02:00
datasources Datasources: fixes async mount errors (#24579) 2020-05-14 14:25:52 +02:00
explore Logs: Use result range instead of timepicker range for log histogram (#25027) 2020-05-29 15:39:13 +02:00
expressions Form migrations: Final components to LegacyForms (#23707) 2020-04-21 11:42:21 +02:00
folders Search: migrate manage dashboards (#23530) 2020-04-17 15:29:20 +03:00
manage-dashboards Forms: Remove Forms namespace [BREAKING] (#24378) 2020-05-07 21:41:26 +02:00
org Migration: Select org (#24739) 2020-05-19 09:55:04 +02:00
panel PanelEditor: Overrides name matcher still show all original field names even after Field default display name is specified (#24933) 2020-05-25 14:05:43 +02:00
playlist FieldOverride: Support data links via field overrides (#23590) 2020-04-20 07:37:38 +02:00
plugins PluginsListPage: More plugins button should open in new window (#24635) 2020-05-26 09:33:10 +02:00
profile DateTime: adding support to select preferred timezone for presentation of date and time values. (#23586) 2020-04-27 15:28:06 +02:00
search Search: make anchor full-height (#24783) 2020-05-18 11:31:10 +03:00
teams Form migrations: Teams and alert list (#23810) 2020-04-24 09:26:09 +02:00
templating TemplateSrv: expose the replace function (#24353) 2020-05-06 11:15:31 -07:00
users OrgUsersTable: Fix width when there are long cells in table (#24533) 2020-05-12 16:47:38 +02:00
variables Templating: fixes filtering options with more than 1000 entries (#24614) 2020-05-14 08:09:21 +02:00
all.ts Migration: Select org (#24739) 2020-05-19 09:55:04 +02:00