* 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
Name |
Last commit
|
Last Update |
---|---|---|
.circleci | Loading commit data... | |
.github | Loading commit data... | |
conf | Loading commit data... | |
contribute | Loading commit data... | |
devenv | Loading commit data... | |
docs | Loading commit data... | |
e2e | Loading commit data... | |
emails | Loading commit data... | |
packages | Loading commit data... | |
packaging | Loading commit data... | |
pkg | Loading commit data... | |
plugins-bundled | Loading commit data... | |
public | Loading commit data... | |
scripts | Loading commit data... | |
tools | Loading commit data... | |
.babelrc | Loading commit data... | |
.bra.toml | Loading commit data... | |
.browserslistrc | Loading commit data... | |
.dockerignore | Loading commit data... | |
.editorconfig | Loading commit data... | |
.eslintrc | Loading commit data... | |
.gitignore | Loading commit data... | |
.prettierignore | Loading commit data... | |
.prettierrc.js | Loading commit data... | |
CHANGELOG.md | Loading commit data... | |
CODE_OF_CONDUCT.md | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
Dockerfile | Loading commit data... | |
Dockerfile.ubuntu | Loading commit data... | |
GOVERNANCE.md | Loading commit data... | |
Gruntfile.js | Loading commit data... | |
ISSUE_TRIAGE.md | Loading commit data... | |
LICENSE | Loading commit data... | |
MAINTAINERS.md | Loading commit data... | |
Makefile | Loading commit data... | |
NOTICE.md | Loading commit data... | |
PLUGIN_DEV.md | Loading commit data... | |
README.md | Loading commit data... | |
ROADMAP.md | Loading commit data... | |
SECURITY.md | Loading commit data... | |
SUPPORT.md | Loading commit data... | |
UPGRADING_DEPENDENCIES.md | Loading commit data... | |
api-extractor.json | Loading commit data... | |
build.go | Loading commit data... | |
go.mod | Loading commit data... | |
go.sum | Loading commit data... | |
jest.config.js | Loading commit data... | |
latest.json | Loading commit data... | |
lerna.json | Loading commit data... | |
package.json | Loading commit data... | |
tsconfig.json | Loading commit data... | |
yarn.lock | Loading commit data... |