# Migration Context: Grafana v7 -> v8 # Generated by Changelogs.us: 2026-11-30T03:04:35.985849+00:00 # Target Version: v8.5.27 # Upgrade Command: N/A # Breaking Changes: 6 # Security Fixes: 0 ## Executive Summary Upgrading Grafana from 7 to 8 involves 72 releases with risk rating High. ## Breaking Changes List: - [vv8.5.4] Breaking changes : - [vv9.0.0] Breaking changes The `@grafana/ui` package helper function `selectOptionInTest` used in frontend tests has been removed as it caused testing libraries to be bundled in the production code of Grafana. If you were using this helper function in your tests please update your code accordingly:: - [vv9.1.0] Breaking changes : - [vv9.2.2] Breaking changes : - [vv9.5.0] Breaking changes `default` named retention policies won't be used to query. Users who have a `default` named retention policy in their `influxdb` database, have to rename it to something else. Having `default` named retention policy is not breaking anything. We will make sure to use the actual default retention policy under the hood. To change the hardcoded retention policy in the `dashboard.json`, users must they select the right retention policy from dropdown and save the panel/dashboard. Issue [#66466](https://github.com/grafana/grafana/issues/66466): - [vv9.5.0] `default` named retention policies won't be used to query. Users who have a `default` named retention policy in their `influxdb` database, have to rename it to something else. Having `default` named retention policy is not breaking anything. We will make sure to use the actual default retention policy under the hood. To change the hardcoded retention policy in the `dashboard.json`, users must they select the right retention policy from dropdown and save the panel/dashboard. Issue [#66466](https://github.com/grafana/grafana/issues/66466): ## Instructions for AI Assistant: When migrating user code from Grafana 7 to 8, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv8.5.27 idioms.