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 grafana-tools/sdk dependency to support datasources as a map #239

Closed
wants to merge 1 commit into from

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 hjet and gouthamve 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.

None yet

2 participants