Skip to content

Commit

Permalink
Disable unitScale and fieldMinMax standard panel options (#286)
Browse files Browse the repository at this point in the history
* Disable unitScale and fieldMinMax standard panel options

* Update CHANGELOG.md

* Requires Grafana 9.2 and Grafana 10

---------

Co-authored-by: Mikhail Volkov <mikhail@volkovlabs.io>
  • Loading branch information
asimonok and mikhail-vl authored Mar 7, 2024
1 parent 9811626 commit 9deb5ff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

Expand Down
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const plugin = new PanelPlugin<PanelOptions>(TextPanel)
FieldConfigProperty.NoValue,
FieldConfigProperty.Links,
FieldConfigProperty.Mappings,
'unitScale' as never,
'fieldMinMax' as never,
],
})
.setPanelOptions((builder) => {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9deb5ff

Please sign in to comment.