[v10.3.x] Explore: Set default time range to now-1h (#81227)
Explore: Set default time range to now-1h (#81135)
Update default time range in Explore back to now-1h
(cherry picked from commit ebe8c005ce)
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
This commit is contained in:
co-authored by
Piotr Jamróz
parent
8ce96414b0
commit
8abe04662b
@@ -20,8 +20,8 @@ export const v0Migrator: MigrationHandler<never, ExploreURLV0> = {
|
||||
datasource: null,
|
||||
queries: [],
|
||||
range: {
|
||||
from: 'now-6h',
|
||||
to: 'now',
|
||||
from: DEFAULT_RANGE.from,
|
||||
to: DEFAULT_RANGE.to,
|
||||
},
|
||||
},
|
||||
schemaVersion: 0,
|
||||
|
||||
@@ -30,7 +30,7 @@ import { getDatasourceSrv } from '../../plugins/datasource_srv';
|
||||
import { loadSupplementaryQueries } from '../utils/supplementaryQueries';
|
||||
|
||||
export const DEFAULT_RANGE = {
|
||||
from: 'now-6h',
|
||||
from: 'now-1h',
|
||||
to: 'now',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user