mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix times in schemas (#64906)
* Fix times in schemas * Fix frontend lints
This commit is contained in:
@@ -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")
|
||||
|
@@ -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")
|
||||
|
@@ -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")
|
||||
},
|
||||
|
Reference in New Issue
Block a user