Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from schemaVersion 36 to 39+? #196

Closed
consideRatio opened this issue Apr 14, 2024 · 2 comments · Fixed by #199
Closed

Update from schemaVersion 36 to 39+? #196

consideRatio opened this issue Apr 14, 2024 · 2 comments · Fixed by #199
Assignees
Labels
bug Something isn't working

Comments

@consideRatio
Copy link
Contributor

I looked at the schemaVersion in grafonnet generated dashboard and then compared it to what I exported from my grafana instance after using it there - then the schema was version 39 instead of the version 36 it was initially generated with.

I think maybe this suggests some maintenance actions in this repo, but I'm not sure.

I care because when I tried to upload a dashboard generated with grafonnet 10.4.0 to https://grafana.com/grafana/dashboards, it said:

image


This is where the value is currently set:

'#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: ['integer'] }], help: 'Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.' } },
withSchemaVersion(value=36): {
schemaVersion: value,
},

@consideRatio
Copy link
Contributor Author

I've not found a better reference to what the schema versions are about except for this:

https://github.com/grafana/grafana/blob/53d2714a1802907c81de613a70f1271bf003c40c/public/app/features/dashboard/state/DashboardMigrator.ts#L817-L899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants