Core: Remove thema and kindsys dependencies (#84499)
* Move some thema code inside grafana * Use new codegen instead of thema for core kinds * Replace TS generator * Use new generator for go types * Remove thema from oapi generator * Remove thema from generators * Don't use kindsys/thema for core kinds * Remove kindsys/thema from plugins * Remove last thema related * Remove most of cuectx and move utils_ts into codegen. It also deletes wire dependency * Merge plugins generators * Delete thema dependency 🎉 * Fix CODEOWNERS * Fix package name * Fix TS output names * More path fixes * Fix mod codeowners * Use original plugin's name * Remove kindsys dependency 🎉 * Modify oapi schema and create an apply function to fix elasticsearch errors * cue.mod was deleted by mistake * Fix TS panels * sort imports * Fixing elasticsearch output * Downgrade oapi-codegen library * Update output ts files * More fixes * Restore old elasticsearch generated file and skip its generation. Remove core imports into plugins * More lint fixes * Add codeowners * restore embed.go file * Fix embed.go
This commit is contained in:
+3
-17
@@ -1,18 +1,16 @@
|
||||
package pfs
|
||||
|
||||
import (
|
||||
"cuelang.org/go/cue"
|
||||
"cuelang.org/go/cue/ast"
|
||||
"github.com/grafana/kindsys"
|
||||
"github.com/grafana/thema"
|
||||
)
|
||||
|
||||
type PluginDecl struct {
|
||||
SchemaInterface *SchemaInterface
|
||||
Lineage thema.Lineage
|
||||
SchemaInterface SchemaInterface
|
||||
CueFile cue.Value
|
||||
Imports []*ast.ImportSpec
|
||||
PluginPath string
|
||||
PluginMeta Metadata
|
||||
KindDecl kindsys.Def[kindsys.ComposableProperties]
|
||||
}
|
||||
|
||||
type SchemaInterface struct {
|
||||
@@ -26,15 +24,3 @@ type Metadata struct {
|
||||
Backend *bool
|
||||
Version *string
|
||||
}
|
||||
|
||||
func EmptyPluginDecl(path string, meta Metadata) *PluginDecl {
|
||||
return &PluginDecl{
|
||||
PluginPath: path,
|
||||
PluginMeta: meta,
|
||||
Imports: make([]*ast.ImportSpec, 0),
|
||||
}
|
||||
}
|
||||
|
||||
func (decl *PluginDecl) HasSchema() bool {
|
||||
return decl.Lineage != nil && decl.SchemaInterface != nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user