VolkovLabs / business-variable

The Business Variable panel builds on top of the regular dashboard variables. It allows you to have dashboard filters in a separate panel, which you can place anywhere on the dashboard.
https://docs.volkovlabs.io
Apache License 2.0
32 stars 0 forks source link

Selected variable value isn't being displayed immediately #191

Closed maxgaponov closed 1 month ago

maxgaponov commented 2 months ago

On a Variable panel when you select a value for a variable (e.g. from a drop-down) it displays the selected value only after it fetches available options for this variable and all other depending variables. It makes it confusing for users since it continues displaying the previous value especially when it takes long to fetch available options.

This is not the case for vanilla Grafana variables (it shows the selected value immediately and makes queries only after that).

Also it's not clear to me why it needs to fetch available options for the variable you are selecting. Again, it seems not to be the case for vanilla variables in Grafana.

vitPinchuk commented 2 months ago

@maxgaponov Thank you for your question.

You're right, the behavior of the panel with Business Variable plugin and vanilla Grafana is a bit different.

Business Variable tracks all dependent variables along with ours and then changes the view. Business Variable re-render often and at various other changes, for example, refresh the dashboard, so the current implementation has features and functionality that allow for flexibility and different ways to manage variables and customize that management.