-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Explore UI - updated PromQL / LogQL statement not being resolved correctly when 'Run Query' clicked #37099
Comments
Additional note: "Click 'Run Query' immediately after deleting the closing bracket ) - an error is returned" You need to hit 'Run Query' very quickly after deleting the closing bracket to reproduce this, in under a second. |
Possibly related to grafana/x-ray-datasource#24 and #33319 |
@ifrost yes it does sound like an issue with the
your idea with not-debouncing onblur sounds reasonable, though i wonder if it could cause problems in some corner cases @ivanahuckova any ideas? |
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions! |
Since the last message, we have significantly change the code and switched query editor library. Moreover, I was not able to reproduce this anymore. So closing the issue. |
What happened:
(Step 1) In Grafana Explore, run a PromQL or LogQL query, e.g.
Query1 - PromQL example
sum(count_over_time(container_network_transmit_errors_total{namespace="production"}[10m]))
Query2 - LogQL example
sum(count_over_time({error_level="ERROR"}[10m]))
Click 'Run Query' - the expected result is displayed.
(Step 2) Modify the query to remove the sum funciton
sum(
and)
Query1 modified -
count_over_time(container_network_transmit_errors_total{namespace="production"}[10m])
Query2 modified -
count_over_time({error_level="ERROR"}[10m])
Click 'Run Query' immediately after deleting the closing bracket
)
- an error is returned.Error Query 1 -
Error Query 2 -
Json Query 1 - note the 'expression' still contains the closing bracket
)
Json Query 2 - note the 'expression' still contains the closing bracket
)
What you expected to happen:
No error returned after clicking on 'Run Query'
How to reproduce it (as minimally and precisely as possible):
Follow the steps above
Anything else we need to know?:
n/a
Environment:
The text was updated successfully, but these errors were encountered: