[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:
grafana-delivery-bot[bot]
2024-01-25 09:11:00 +01:00
committed by GitHub
co-authored by Piotr Jamróz
parent 8ce96414b0
commit 8abe04662b
2 changed files with 3 additions and 3 deletions
@@ -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,
+1 -1
View File
@@ -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',
};