Plugins: Remove dataFormats key and add skipDataQuery (#16984)

This commit is contained in:
Ryan McKinley
2019-05-09 22:46:14 -07:00
committed by Torkel Ödegaard
parent 4a9aff0b00
commit 56702902a1
21 changed files with 21 additions and 53 deletions

View File

@ -4,7 +4,7 @@ import "encoding/json"
type PanelPlugin struct {
FrontendPluginBase
DataFormats []string `json:"dataFormats"`
SkipDataQuery bool `json:"skipDataQuery"`
}
func (p *PanelPlugin) Load(decoder *json.Decoder, pluginDir string) error {
@ -16,10 +16,6 @@ func (p *PanelPlugin) Load(decoder *json.Decoder, pluginDir string) error {
return err
}
if p.DataFormats == nil {
p.DataFormats = []string{"time_series", "table"}
}
Panels[p.Id] = p
return nil
}