Chore: Fix times in schemas (#64906)

* Fix times in schemas

* Fix frontend lints
This commit is contained in:
Selene
2023-03-21 10:42:19 +01:00
committed by GitHub
parent 9ca01cc070
commit 1328a32a31
16 changed files with 57 additions and 36 deletions

View File

@@ -1,6 +1,9 @@
package kind
import "strings"
import (
"strings"
"time"
)
name: "LibraryPanel"
maturity: "experimental"
@@ -52,8 +55,8 @@ lineage: seqs: [
folderUid: string @grafanamaturity(ToMetadata="sys")
connectedDashboards: int64
created: string @grafanamaturity(ToMetadata="sys") // time.Time in golang
updated: string @grafanamaturity(ToMetadata="sys") // time.Time in golang
created: string & time.Time
updated: string & time.Time
createdBy: #LibraryElementDTOMetaUser @grafanamaturity(ToMetadata="sys")
updatedBy: #LibraryElementDTOMetaUser @grafanamaturity(ToMetadata="sys")

View File

@@ -1,5 +1,7 @@
package kind
import "time"
name: "ServiceAccount"
maturity: "merged"
description: "system account"
@@ -35,9 +37,9 @@ lineage: seqs: [
// Teams is a list of teams the service account belongs to.
teams?: [...string] @grafanamaturity(ToMetadata="sys")
// Created indicates when the service account was created.
created?: int64 @grafanamaturity(ToMetadata="sys")
created?: string & time.Time
// Updated indicates when the service account was updated.
updated?: int64 @grafanamaturity(ToMetadata="sys")
updated?: string & time.Time
// OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'.
#OrgRole: "Admin" | "Editor" | "Viewer" @cuetsy(kind="type")

View File

@@ -1,5 +1,7 @@
package kind
import "time"
name: "Team"
maturity: "merged"
description: "A team is a named grouping of Grafana users to which access control rules may be assigned."
@@ -26,9 +28,9 @@ lineage: seqs: [
[string]: bool @grafanamaturity(ToMetadata="sys")
}
// Created indicates when the team was created.
created: int64 @grafanamaturity(ToMetadata="sys")
created: string & time.Time
// Updated indicates when the team was updated.
updated: int64 @grafanamaturity(ToMetadata="sys")
updated: string & time.Time
#Permission: 0 | 1 | 2 | 4 @cuetsy(kind="enum",memberNames="Member|Viewer|Editor|Admin")
},