Export: save all dashboards to git (#48233)

This commit is contained in:
Ryan McKinley
2022-07-05 10:54:07 -07:00
committed by GitHub
parent 4a00c7ebde
commit 4fa606c600
17 changed files with 1365 additions and 23 deletions
+5 -5
View File
@@ -31,9 +31,9 @@ const (
type DsAccess string
type DataSource struct {
Id int64 `json:"id"`
OrgId int64 `json:"orgId"`
Version int `json:"version"`
Id int64 `json:"id,omitempty"`
OrgId int64 `json:"orgId,omitempty"`
Version int `json:"version,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
@@ -54,8 +54,8 @@ type DataSource struct {
ReadOnly bool `json:"readOnly"`
Uid string `json:"uid"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
}
// AllowedCookies parses the jsondata.keepCookies and returns a list of