add context and fix latest version

This commit is contained in:
Haris Rozajac 2025-10-06 13:17:12 -06:00
parent 17a4fff786
commit 8dc86f30b7
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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{})