VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

Wrong variable reading when the panel is repeated inside a row #159

Closed andrea-tomassi closed 1 year ago

andrea-tomassi commented 1 year ago

The variable MyVar is set to ValueA + ValueB + ValueC

If I use that variable into the panel title it is shown correctly both outside a repetition (see single row) and in repeated Rows.

If I use the same variable within the HTML textfield with the following snippet:

`

MyVar:

{{variable "MyVar"}}
` it looks like the row context is not evaluated. In fact in that case we get a list of all values from the variable. ![image](https://user-images.githubusercontent.com/4680279/223705447-d8313eaa-b5c1-41bd-a71e-523d483755b3.png) This is very simple to spot, because, on the other hand, the title form the same dynamic-text panel shows the expected value: a single value for each row. ![image](https://user-images.githubusercontent.com/4680279/223704007-66e24988-745c-4e01-b92f-c4bc0a8f893b.png)
mikhail-vl commented 1 year ago

@andrea-tomassi Interesting, thank you for opening the issue.

I will look into it.

mikhail-vl commented 1 year ago

@andrea-tomassi New version of the Dynamic Text panel was released today and submitted to Grafana team for review.

Please let us know if there is anything else.

centenico commented 1 year ago

@mikhail-vl confirming that it's now working correctly, thank you very much for your extremely fast support, it was much appreciated.

andrea-tomassi commented 1 year ago

@andrea-tomassi New version of the Dynamic Text panel was released today and submitted to Grafana team for review.

Please let us know if there is anything else.

Ty @mikhail-vl,

We consider this component very useful and we're going to use in a variety of Dashboards, so thanks a lot for your help!

mikhail-vl commented 1 year ago

@centenico @andrea-tomassi Thank you for confirming.

Let us know if there is anything else.