Skip to content

Conversation

@rgeyer
Copy link
Contributor

@rgeyer rgeyer commented Feb 4, 2022

As of Grafana 8.3.0, the dashboard schema permits a datasource to be a map, defining the uid, and type of the datasource.

The upstream grafana-tools/sdk, (which is used in the analyse dashboard command) still expects the previous behavior, and will fail to unmarshal a dashboard which uses this new schema.

This PR replaces the dependency with a branch which fixes the problem, but is not yet accepted into the upstream grafana-tools/sdk main branch.

See grafana-tools/sdk#190 for details.

This PR could languish until that PR is merged, however this fix is needed for some downstream projects which depend upon cortextool, so I'm mocking up the interim workaround for anyone else who finds themselves in the same situation.

@rgeyer rgeyer requested review from gouthamve and hjet February 4, 2022 19:38
@rgeyer rgeyer requested a review from a team as a code owner February 4, 2022 19:38
@rgeyer rgeyer changed the title Update grafana-tools/sdk dependency to suppor datasources as a map Update grafana-tools/sdk dependency to support datasources as a map Feb 4, 2022
@hjet
Copy link
Contributor

hjet commented Mar 24, 2022

Closing in favor of #248

@hjet hjet closed this Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants