Dashboards: Preserve schema version in /api (#104213)

---------

Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
This commit is contained in:
Artur Wierzbicki
2025-04-21 10:51:28 -05:00
committed by GitHub
co-authored by Stephanie Hingtgen
parent 820c338414
commit fd99b67205
6 changed files with 135 additions and 26 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ func TestIntegrationLegacySupport(t *testing.T) {
Path: "/api/dashboards/uid/test-v1",
}, &dtos.DashboardFullWithMeta{})
require.Equal(t, 200, rsp.Response.StatusCode)
require.Equal(t, "v1alpha1", rsp.Result.Meta.APIVersion)
require.Equal(t, "v0alpha1", rsp.Result.Meta.APIVersion) // v0alpha1 is used as the default version for /api
// V2 should send a not acceptable
rsp = apis.DoRequest(helper, apis.RequestParams{