mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Set default time range to now-1h (#81135)
Update default time range in Explore back to now-1h
This commit is contained in:
parent
5e88d29814
commit
ebe8c005ce
@ -20,8 +20,8 @@ export const v0Migrator: MigrationHandler<never, ExploreURLV0> = {
|
|||||||
datasource: null,
|
datasource: null,
|
||||||
queries: [],
|
queries: [],
|
||||||
range: {
|
range: {
|
||||||
from: 'now-6h',
|
from: DEFAULT_RANGE.from,
|
||||||
to: 'now',
|
to: DEFAULT_RANGE.to,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
schemaVersion: 0,
|
schemaVersion: 0,
|
||||||
|
@ -32,7 +32,7 @@ import { getDatasourceSrv } from '../../plugins/datasource_srv';
|
|||||||
import { loadSupplementaryQueries } from '../utils/supplementaryQueries';
|
import { loadSupplementaryQueries } from '../utils/supplementaryQueries';
|
||||||
|
|
||||||
export const DEFAULT_RANGE = {
|
export const DEFAULT_RANGE = {
|
||||||
from: 'now-6h',
|
from: 'now-1h',
|
||||||
to: 'now',
|
to: 'now',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user