Dashboard Migrations: V6 pulldowns to annotations; variables (#112221)
* migrate to v19 * migrate to v18 * Migration to be verified: v17 Convert minSpan to maxPerRow in panels * Migration to be verified: 16 Grid layout migration * Refactor v17 and v19 migrations to use shared helper functions * Migration to be verified: 15 No-op migration for schema consistency * Migration to be verified: 14 Shared crosshair to graph tooltip migration * cleanup * wip * complete migration * fix lint issues * refactor and test with minimal graph config * update tests * migrate to v12 * extract defaults outside the func * lint * lint * add missing showValues prop * migrate to v11 * migrate to v10 * add test files * update * migrate to v9 * migrate to v8 * add context and fix latest version * add context * add context * generate snapshots * v13 should be no-op * clean up * fix tests * add context * snapshots * generate snapshots * update * snapshots * wip * fix test * remove nav when cleaning up defaults * migrate to v6 * update comments * remove v28 * remove singlestat migraiton from frontend migrator because this is an automigration * remove unused function * Remove v24 table plugin logic * cleanup * remove plugin version for automigrate as it was used only in v24 and v28 that have been removed * cleanup * update snapshot * update snapshot * update snapshot * update snapshot * remove test --------- Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
co-authored by
Dominik Prokop
parent
8a827b5b05
commit
394922c4c8
@@ -305,23 +305,6 @@ func TestConversionMetrics(t *testing.T) {
|
||||
expectedSourceSchema: "v2alpha1",
|
||||
expectedTargetSchema: "v2beta1",
|
||||
},
|
||||
{
|
||||
name: "v0 to v1 conversion with minimum version error (succeeds but marks failed)",
|
||||
source: &dashv0.Dashboard{
|
||||
ObjectMeta: metav1.ObjectMeta{UID: "test-uid-4"},
|
||||
Spec: common.Unstructured{Object: map[string]any{
|
||||
"title": "old dashboard",
|
||||
"schemaVersion": 5, // Below minimum version (13)
|
||||
}},
|
||||
},
|
||||
target: &dashv1.Dashboard{},
|
||||
expectAPISuccess: true, // Conversion succeeds but status indicates failure
|
||||
expectMetricsSuccess: false,
|
||||
expectedSourceAPI: dashv0.APIVERSION,
|
||||
expectedTargetAPI: dashv1.APIVERSION,
|
||||
expectedSourceSchema: "5",
|
||||
expectedTargetSchema: fmt.Sprintf("%d", 41), // LATEST_VERSION
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user