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

Canvas: Data links are only supported through field driven text #84143

Closed
nmarrs opened this issue Mar 11, 2024 · 0 comments · Fixed by #84142
Closed

Canvas: Data links are only supported through field driven text #84143

nmarrs opened this issue Mar 11, 2024 · 0 comments · Fixed by #84142
Assignees
Labels

Comments

@nmarrs
Copy link
Contributor

nmarrs commented Mar 11, 2024

Canvas: Data links not working for metric-elements with fields assigned to options other than fields text

What happened?
Data links do not work for metric-elements that have a static text instead of field value even if the field value is associated with background.

It seems that for data links to work appropriately, the first thing is to select a field for text option for metric-value element – this is not expected. After doing so, users can switch text to static one and use field for background color option, and the data links related to the field will work.
In addition, clicking on such metric-value element with field added as an option (other than text, for example as background) and configured data link will break data links for other elements. See minute 2:34 in the screen cast (data links stop working for all elements).
https://github.com/grafana/grafana/assets/141744/bd11c2c0-fb9b-476d-9bdf-1559b725d182

What did you expect to happen?
Expected behaviour is that a metric-value element will display data link for fields that are associated with the element no matter the option (text or background).

Did it work before?
No. This is a new problem discovered after fixing another issue

How do we reproduce it?

  1. Add a new element (metric-value).
  2. Assing field for background option. Set the text option to static text.
  3. Add override with data link for the field.
  4. Hovering over such metric-value element will not show data link.
  5. Clicking on the element will break previously working data links for any other elements on the canvas already.

Is the bug inside a dashboard panel?
Yes

Environment (with version)?
Grafana: Grafana v11.0.0-pre ([1352072338](tel:1352072338))
OS: macOS 14.3.1 (23D60)
Browser: ersion 122.0.6261.94 (Official Build) (arm64)

@nmarrs nmarrs added area/dashboard/data-links area/panel/canvas Issues related to canvas panel labels Mar 11, 2024
@nmarrs nmarrs self-assigned this Mar 11, 2024
@nmarrs nmarrs added this to the 11.0.x milestone Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants