-
Notifications
You must be signed in to change notification settings - Fork 43
Conversation
- upgrade @grafana SDK to version *~8.2.5*
Thank you for this PR! DataFrames support is a long-awaited feature. I've got some findings about data frames and Grafana versions (not precise, sorry):
How these facts affect your PR?
Do you have time to make these changes? |
Yes, I'd like to be of help to make this panel plugin better. |
- replace all self-defined system events with @grafana/data PanelEvents - remove all prior v6.7 event polyfill - prefix graphHover & graphHoverClear event name with *statusmap* - update README.md & plugin.json, require grafana v6.7+
submit changes according your suggestion, the same plugin build are verified on v6.7.1/v7.4.2/v8.2.5 1. convert DataFrame to series list
2. remove string-based events polyfill
Grafana v6.* has built-in 3. move renderComplete to
4. fix prettier warnings
5. README.md
6. plugin.json
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, my eyes see no critical issues. I change README to something more user-friendly. I want to run some tests on different versions before merging.
console.log('Grafana buildInfo:', config.buildInfo); | ||
|
||
const majorVersion = parseInt(config.buildInfo.version.split('.', 2)[0], 10); | ||
if (majorVersion <= 6) { | ||
// data will fall into onDataReceived() with series data format | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grafana 6.7 doesn't work if plugin sets this.useDataFrames = true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- also append refId attribute to TimeSeries
…feng/grafana-statusmap into fix-v8-tableresult-empty
Overview
~8.2.5
What this PR does / why we need it
To fix issue #227 Empty results in status map panel post grafana version upgrade from v7.4 to v8.1. #227
Special notes for your reviewer
1. auto-convert data format according Grafana version
on v7 keep existing data format, no conversion.
on v8 made changes below:
I have verified the same plugin package build on both Grafana v8.0.6 and v7.4.2, it works fine.
2. SDK 8.3.0 report fail
@grafana SDK 8.3.0 report error, so i use 8.2.5 instead
Does this PR introduce a user-facing change?