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

AdHocFiltersCombobox: Disable "pre-fill filter combobox value on edit" by default #987

Conversation

gtk-grafana
Copy link
Contributor

@gtk-grafana gtk-grafana commented Dec 2, 2024

Address UX regression introduced by #955.

Since I don't understand what value #955 brings to variables without regex operators or other variables that return results from getTagValuesProvider, I'm proposing we disable this behavior by default, and developers can set the populateInputOnEdit on variables where this behavior is desired.

Fixes: #986

This PR solves the short-term problem of #955 being forced on all users of the combobox by default.
As a follow-up it would be good to have some documentation added around what #955 is accomplishing, I assume that this is so users can more easily edit regex values, or other variables that don't return results from getTagValuesProvider. From there we might be able to come up with a better long-term solution (only drop into "edit" mode when there are no values returned by getTagValuesProvider, or only drop into edit mode when certain operators are selected, differentiate between edit and select a new value etc)

@gtk-grafana gtk-grafana added release Create a release when this pr is merged minor Increment the minor version when merged patch Increment the patch version when merged and removed minor Increment the minor version when merged patch Increment the patch version when merged labels Dec 2, 2024
@gtk-grafana gtk-grafana marked this pull request as ready for review December 2, 2024 18:41
@gtk-grafana gtk-grafana requested review from ashharrison90, Sergej-Vlasov and torkelo and removed request for ashharrison90 December 2, 2024 18:41
@gtk-grafana
Copy link
Contributor Author

Closing as #992 should fix #986

@gtk-grafana gtk-grafana closed this Dec 5, 2024
@Sergej-Vlasov
Copy link
Contributor

@gtk-grafana this was a request from one of the customers. Sorry it was not well thought out by me and experience should have been better. I am trying to address your concerns in this pr #992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged
Projects
None yet
2 participants