simPod/GrafanaJsonDatasource

Unknown Payload only shows values of strings

KrisztianKaszas opened this issue · 2 comments

If the metric options value is of type object, e.g. boolean:

  • it gets correctly displayed in the metric Builder Mode
  • it gets correctly assigned from the code mode to the respective payload option

BUT:

  • it does not correctly display the value of the option in the unkown objects:

Example:
I have following Code:
image
Here I intentionally set one boolan type with a string value ("exactInterval": "true")

The options are all correctly assigned to their lists:
image

But in the unknown payload the boolean options show empty value:
image
Note the "exactInterval" was set to a string value "true".

It would be nice, if payloads got stringified when showing in the unknown payloads?

The options list in Fiddler:
image

Can you review the test #383?

In my opinion the test covers what I was looking for: strings, booleans, integers. The more complex object {…}, is also good to have.