From 9deb5fffa4c8e765eed43df70fcfe3c42efc4384 Mon Sep 17 00:00:00 2001 From: Alex Simonok Date: Thu, 7 Mar 2024 05:36:15 +0300 Subject: [PATCH] Disable unitScale and fieldMinMax standard panel options (#286) * Disable unitScale and fieldMinMax standard panel options * Update CHANGELOG.md * Requires Grafana 9.2 and Grafana 10 --------- Co-authored-by: Mikhail Volkov --- CHANGELOG.md | 7 ++++++- README.md | 2 +- src/module.ts | 2 ++ src/plugin.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56b3fa5..7b9aed5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -## 4.4.0 (IN PROGRESS) +## 4.4.0 (2024-03-06) + +### Breaking changes + +- Requires Grafana 9.2 and Grafana 10 ### Features / Enhancements @@ -10,6 +14,7 @@ - Replace custom code parameters with Code Parameters Builder (#285) - Update CSS class for the Panel instead of a Row (#272) - Update Editor auto height from fixed value (#278) +- Disable unitScale and fieldMinMax standard panel options (#286) ### Bug fixes diff --git a/README.md b/README.md index f0e670b..2bfd908 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The Dynamic Text Panel plugin allows you to construct a text visualization templ ## Requirements -- Dynamic Text Panel 4.X requires **Grafana 9** or **Grafana 10**. +- Dynamic Text Panel 4.X requires **Grafana 9.2** or **Grafana 10**. - Dynamic Text Panel 2.X and 3.X require **Grafana 8.5** or **Grafana 9**. - Dynamic Text Panel 1.X requires **Grafana 7**. diff --git a/src/module.ts b/src/module.ts index 8b7e41f..e6578aa 100644 --- a/src/module.ts +++ b/src/module.ts @@ -30,6 +30,8 @@ export const plugin = new PanelPlugin(TextPanel) FieldConfigProperty.NoValue, FieldConfigProperty.Links, FieldConfigProperty.Mappings, + 'unitScale' as never, + 'fieldMinMax' as never, ], }) .setPanelOptions((builder) => { diff --git a/src/plugin.json b/src/plugin.json index 2e41a86..8ec9bf5 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://github.com/grafana/grafana/raw/main/docs/sources/developers/plugins/plugin.schema.json", "dependencies": { - "grafanaDependency": ">=9.0.0", + "grafanaDependency": ">=9.2.0", "plugins": [] }, "id": "marcusolsson-dynamictext-panel",