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

Grafana UI: Inserts incorrect comment markers in influxdb2 query input fields #87021

Open
ishanjain28 opened this issue Apr 29, 2024 · 0 comments

Comments

@ishanjain28
Copy link

ishanjain28 commented Apr 29, 2024

What happened?

I have a query which uses InfluxDB. When I press Ctrl+/, It should add // prefix to the line because comments in this language start with 2 forward slashes, Instead it adds two hyphens(--) which turns it into a query with a syntax error!

grafana.ui.broken.comment.markers.mp4

What did you expect to happen?

It adds two hyphens instead of forward slashes.

Did this work before?

No

How do we reproduce it?

  1. Open any panel using influxdb2 as the data source
  2. Press Ctrl + /

Is the bug inside a dashboard panel?

No

Environment (with versions)?

Grafana: v10.2.3 (1e84fed)
OS: Arch linux(Linux emerald 6.8.7-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 19 Apr 2024 09:51:31 +0000 x86_64 GNU/Linux )
Browser: Firefox 125

Grafana platform?

A package manager (APT, YUM, BREW, etc.)

Datasource(s)?

Influxdb v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant