mirror of https://github.com/grafana/grafana.git
add context and fix latest version
This commit is contained in:
parent
17a4fff786
commit
8dc86f30b7
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
const (
|
||||
MIN_VERSION = 12
|
||||
LATEST_VERSION = 41
|
||||
LATEST_VERSION = 42
|
||||
|
||||
// The pluginVersion to set after simulating auto-migrate for angular panels
|
||||
pluginVersionForAutoMigrate = "12.1.0"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package schemaversion
|
||||
|
||||
import "context"
|
||||
|
||||
// Default field config structure
|
||||
func getDefaultFieldConfig() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
|
@ -104,7 +106,7 @@ func getDefaultThresholdSteps() []interface{} {
|
|||
// - Complete field config conversion (y-axis, series overrides, thresholds, etc.)
|
||||
// - Options conversion (legend, tooltip, etc.)
|
||||
// - Time regions conversion to annotations
|
||||
func V13(dashboard map[string]interface{}) error {
|
||||
func V13(_ context.Context, dashboard map[string]interface{}) error {
|
||||
dashboard["schemaVersion"] = 13
|
||||
|
||||
panels, ok := dashboard["panels"].([]interface{})
|
||||
|
|
Loading…
Reference in New Issue