From 1ca5f3c5b78be371da6d6ea06015416eece7e16a Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 9 Jun 2022 07:09:54 -0600 Subject: [PATCH] Updating migration docs to include most relevant breaking changes (#50356) (#50514) (cherry picked from commit cd01eb541a83fc0a1f222dbb917ff1dc25c44c46) Co-authored-by: Timur Olzhabayev --- docs/sources/whatsnew/whats-new-in-v9-0.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/sources/whatsnew/whats-new-in-v9-0.md b/docs/sources/whatsnew/whats-new-in-v9-0.md index cdf3a8cddaf..74c7d2f8661 100644 --- a/docs/sources/whatsnew/whats-new-in-v9-0.md +++ b/docs/sources/whatsnew/whats-new-in-v9-0.md @@ -216,6 +216,25 @@ In the InfluxDB data source, browser access mode was deprecated in grafana 8.0.0 The rename by regex transformation has been improved to allow global patterns of the form `//g`. Depending on the regex match used, this may cause some transformations to behave slightly differently. You can guarantee the same behavior as before by wrapping the match string in forward slashes (/), for example, (._) would become /(._)/. ([Github Issue #48179](https://github.com/grafana/grafana/pull/48179)) +### Clock Panel + +We have updated [clock panel](https://grafana.com/grafana/plugins/grafana-clock-panel/) to version `2.0.0` to make it Compatible with Grafana 9. The previous version `1.3.1` will cause the Grafana 9 to [crash](https://github.com/grafana/clock-panel/issues/106) when being used in a dashboard, we encourage you to update the panel before migrating to Grafana 9. + +### Plugins: Most relevant breaking changes + +- `getColorForTheme` was removed, use `theme.visualization.getColorByName` instead [PR #49519](https://github.com/grafana/grafana/pull/49519) +- `TextDisplayOptions` was removed, use `VizTextDisplayOptions` instead [PR #49705](https://github.com/grafana/grafana/pull/49705) +- We have changed the internals of `backendSrv.fetch()` to throw an error when the response is an incorrect JSON. Make sure to handle possible errors on the callsite where using `backendSrv.fetch()` (or any other `backendSrv` methods) [PR #47493](https://github.com/grafana/grafana/pull/47493) +- We have removed the deprecated `getFormStyles` function from [grafana-ui](https://www.npmjs.com/package/@grafana/ui). Use `GrafanaTheme2` and the `useStyles2` hook instead [PR #49945](https://github.com/grafana/grafana/pull/49945) +- We have removed the deprecated `/api/tsdb/query` metrics endpoint. Use `/api/ds/query` instead [PR #49916](https://github.com/grafana/grafana/pull/49916) + +You can find the complete list of breaking changes in the links below. Please check them out for more details and see if there is anything affecting your plugin + +- https://grafana.com/docs/grafana/next/release-notes/release-notes-9-0-0-beta1/ +- https://grafana.com/docs/grafana/next/release-notes/release-notes-9-0-0-beta2/ +- https://grafana.com/docs/grafana/next/release-notes/release-notes-9-0-0-beta3/ +- https://grafana.com/docs/grafana/next/release-notes/release-notes-9-0-0 + ## A note on Grafana Enterprise licensing When we release Grafana 9.0 on June 14th, Grafana will no longer enforce viewers and editor-admins differently. That means that regardless of whether your Grafana Enterprise license is tiered or combined, instead of seeing this on the Stats & Licensing page: