mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 12:22:15 +08:00
PluginExtensions: Added support for sharing functions (#98888)
* feat: add generic plugin extension functions * updated betterer. * Fixed type issues after sync with main. * Remved extensions from datasource and panel. * Added validation for extension function registry. * Added tests and validation logic for function extensions registry. * removed prop already existing on base. * fixed lint error. --------- Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
This commit is contained in:
@ -167,6 +167,10 @@ func ReadPluginJSON(reader io.Reader) (JSONData, error) {
|
||||
plugin.Extensions.AddedComponents = []AddedComponent{}
|
||||
}
|
||||
|
||||
if plugin.Extensions.AddedFunctions == nil {
|
||||
plugin.Extensions.AddedFunctions = []AddedFunction{}
|
||||
}
|
||||
|
||||
if plugin.Extensions.ExposedComponents == nil {
|
||||
plugin.Extensions.ExposedComponents = []ExposedComponent{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user