-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gaugePanel
reduceOptions
undefined.
#575
Comments
tiansu-yu-idealo
changed the title
Mar 16, 2023
guagePanel
reductionOptions
undefined.guagePanel
reduceOptions
undefined.
cPu1
changed the title
Mar 20, 2023
guagePanel
reduceOptions
undefined.gaugePanel
reduceOptions
undefined.
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you expected to happen?
After I set
GaugePanel.calcs
to be one of the options, e.g.GAUGE_CALC_MEAN = 'mean'
it should return me a correct GaugePanel json.What happened?
The GaugePanel is mal-formatted. I got the error message from frontend that
TypeError: undefined is not an object (evaluating 'e.reduceOptions.values')
. After I compare the differences between the code-generated Json and the json generated from UI editor, I notice the following schema difference:The reduce function in the code-genereted json (grafanalib) one is
and the one generated from UI (my grafana cluster) is
You can clearly see a shift where the
calcs
are located between these two are different.And one more thing I noticed that the param
reduceCalc
inStat
behaves correctly, which filescalcs
underoptions.reduceOptions
instead offieldConfig
. So I suspect this to be a bug (un-synced components).The text was updated successfully, but these errors were encountered: