mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
kindsys: Adapt to new flattened lineage syntax in Thema (#68034)
* Update all core kinds to flattened lineages
* Regen Go types, without any
* Regen Go types, s/interface{}/any/
* Update generated core typescript
* Update generate docs
* Fix defaults gen in veneer index jenny
* Flatten plugindef lineage
* Convert all plugin kinds to flattened form
* Switch back to interface{} for now
* Switch to fs.Sub in plugin DeclParser
* Mostly undesirable codegen changes, to be fixed
* Update mod and sum
* Update pfs tests to flattened lineages
* Update thema to latest, regen docs
This commit is contained in:
@@ -9,59 +9,55 @@ name: "LibraryPanel"
|
||||
maturity: "experimental"
|
||||
description: "A standalone panel"
|
||||
|
||||
lineage: seqs: [
|
||||
{
|
||||
schemas: [
|
||||
// 0.0
|
||||
{
|
||||
spec: {
|
||||
// Folder UID
|
||||
folderUid?: string @grafanamaturity(ToMetadata="sys")
|
||||
lineage: schemas: [{
|
||||
version: [0, 0]
|
||||
schema: {
|
||||
spec: {
|
||||
// Folder UID
|
||||
folderUid?: string @grafanamaturity(ToMetadata="sys")
|
||||
|
||||
// Library element UID
|
||||
uid: string
|
||||
// Library element UID
|
||||
uid: string
|
||||
|
||||
// Panel name (also saved in the model)
|
||||
name: string & strings.MinRunes(1)
|
||||
// Panel name (also saved in the model)
|
||||
name: string & strings.MinRunes(1)
|
||||
|
||||
// Panel description
|
||||
description?: string
|
||||
// Panel description
|
||||
description?: string
|
||||
|
||||
// The panel type (from inside the model)
|
||||
type: string & strings.MinRunes(1)
|
||||
// The panel type (from inside the model)
|
||||
type: string & strings.MinRunes(1)
|
||||
|
||||
// Dashboard version when this was saved (zero if unknown)
|
||||
schemaVersion?: uint16
|
||||
// Dashboard version when this was saved (zero if unknown)
|
||||
schemaVersion?: uint16
|
||||
|
||||
// panel version, incremented each time the dashboard is updated.
|
||||
version: int64 @grafanamaturity(NeedsExpertReview)
|
||||
// panel version, incremented each time the dashboard is updated.
|
||||
version: int64 @grafanamaturity(NeedsExpertReview)
|
||||
|
||||
// TODO: should be the same panel schema defined in dashboard
|
||||
// Typescript: Omit<Panel, 'gridPos' | 'id' | 'libraryPanel'>;
|
||||
model: {...}
|
||||
// TODO: should be the same panel schema defined in dashboard
|
||||
// Typescript: Omit<Panel, 'gridPos' | 'id' | 'libraryPanel'>;
|
||||
model: {...}
|
||||
|
||||
// Object storage metadata
|
||||
meta?: #LibraryElementDTOMeta @grafanamaturity(ToMetadata="sys")
|
||||
} @cuetsy(kind="interface") @grafana(TSVeneer="type")
|
||||
// Object storage metadata
|
||||
meta?: #LibraryElementDTOMeta @grafanamaturity(ToMetadata="sys")
|
||||
} @cuetsy(kind="interface") @grafana(TSVeneer="type")
|
||||
|
||||
#LibraryElementDTOMetaUser: {
|
||||
id: int64
|
||||
name: string
|
||||
avatarUrl: string
|
||||
} @cuetsy(kind="interface") @grafanamaturity(NeedsExpertReview)
|
||||
#LibraryElementDTOMetaUser: {
|
||||
id: int64
|
||||
name: string
|
||||
avatarUrl: string
|
||||
} @cuetsy(kind="interface") @grafanamaturity(NeedsExpertReview)
|
||||
|
||||
#LibraryElementDTOMeta: {
|
||||
folderName: string
|
||||
folderUid: string @grafanamaturity(ToMetadata="sys")
|
||||
connectedDashboards: int64
|
||||
#LibraryElementDTOMeta: {
|
||||
folderName: string
|
||||
folderUid: string @grafanamaturity(ToMetadata="sys")
|
||||
connectedDashboards: int64
|
||||
|
||||
created: string & time.Time
|
||||
updated: string & time.Time
|
||||
created: string & time.Time
|
||||
updated: string & time.Time
|
||||
|
||||
createdBy: #LibraryElementDTOMetaUser @grafanamaturity(ToMetadata="sys")
|
||||
updatedBy: #LibraryElementDTOMetaUser @grafanamaturity(ToMetadata="sys")
|
||||
} @cuetsy(kind="interface") @grafanamaturity(NeedsExpertReview)
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
createdBy: #LibraryElementDTOMetaUser @grafanamaturity(ToMetadata="sys")
|
||||
updatedBy: #LibraryElementDTOMetaUser @grafanamaturity(ToMetadata="sys")
|
||||
} @cuetsy(kind="interface") @grafanamaturity(NeedsExpertReview)
|
||||
}
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user