Skip to content
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

polygon titles incorrect #309

Closed
simonc6372 opened this issue Sep 21, 2023 · 1 comment · Fixed by #308
Closed

polygon titles incorrect #309

simonc6372 opened this issue Sep 21, 2023 · 1 comment · Fixed by #308
Assignees
Labels
type/bug Something isn't working

Comments

@simonc6372
Copy link

I recently updated polystat plugin from 2.0.5 to 2.1.2 and the behaviour in how polygons are titled has changed.

I have a dashboard that uses is to display 4 vaules form a SQL query.

"severity","count"
medium,3
critical,0
high,0
low,0

With 2.0.5, the 4 boxes has the titles of the first column, and the value of the 2nd column.
Now with 2.1.2, the title for each box is "count medium"
So, it's including the name of the 2nd column in the title, and it's also repeating the first value of the first column across every box.

image

The expected behaviour is that column 1 is used as the title, and column 2 as the value (this is how it worked in 2.0.5

@briangann
Copy link
Collaborator

This was a side-effect of a couple of changes. The performance issue with a deep clone on circular frame data plus a method setting values in a "get" call.

The fix returns the plugin to the previous behavior and includes a new test to check for it in the future.

@github-project-automation github-project-automation bot moved this from 🧑‍💻 In development to 🚀 Shipped in Plugins Platform / Grafana Community Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants