Dashboard schema: Update default value for timezone (#62340)

This commit is contained in:
Dominik Prokop
2023-01-27 07:43:13 -08:00
committed by GitHub
parent 1865205d68
commit d4015602ca
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ title: Dashboard kind
| `templating` | [object](#templating) | No | TODO docs |
| `time` | [object](#time) | No | Time range for dashboard, e.g. last 6 hours, last 7 days, etc |
| `timepicker` | [object](#timepicker) | No | TODO docs<br/>TODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes |
| `timezone` | string | No | Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". Default: ``. |
| `timezone` | string | No | Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". Default: `browser`. |
| `title` | string | No | Title of dashboard. |
| `uid` | string | No | Unique dashboard identifier that can be generated by anyone. string (8-40) |
| `version` | integer | No | Version of the dashboard, incremented each time the dashboard is updated. |

View File

@@ -31,7 +31,7 @@ lineage: seqs: [
// Theme of dashboard.
style: "light" | *"dark" @grafanamaturity(NeedsExpertReview)
// Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".
timezone?: string | *""
timezone?: string | *"browser"
// Whether a dashboard is editable or not.
editable: bool | *true
// Configuration of dashboard cursor sync behavior.

View File

@@ -808,5 +808,5 @@ export const defaultDashboard: Partial<Dashboard> = {
schemaVersion: 36,
style: 'dark',
tags: [],
timezone: '',
timezone: 'browser',
};