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
Textbox variable: Option to supply value when set to empty #13751
Comments
Adding additional screenshots of functionality: |
@davewat v5.4.0-beta1 is already out. Unfortunately this will have to wait until we have time to review it properly. |
I think this is still a valid feature request that shouldn't be very hard to add. |
For me as a user it’s very critical.. It’s breaks the panel. are you planing to |
+1 |
@pkolyvas adding you to this as well |
This is very useful feature that would increase usability for textbox variable. |
current possible workaround: if |
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! |
Please include this information:
What Grafana version are you using? 5.3.1
What datasource are you using? Elasticsearch
What OS are you running grafana on? CentOS 7.4
What did you do? Empty Textbox for Lucene query
What was the expected result? Returns all results
What happened instead? Returns nothing
We are using the new Textbox template variable to create Lucene queries for Elasticsearch. We supply a default value, however, if a user then deletes the value, the query submitted will be an empty query. Would be useful if there was an option to supply an "on empty" value, that will be the default query if the user clears the text box, as the average user may not know the result of the empty set query (zero results). Would also be useful to have an option to show or hide the "on empty" value to the user, based on preference of the dashboard creator. This may have uses outside of Textbox and Elasticsearch/ Lucene as well.
The text was updated successfully, but these errors were encountered: