You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 4.1.0 added an auto-refresh interval option "Custom interval" (see #24449) which is useful in many situations, but sometimes one might want to remove this option.
A dashboard containing never-changing data does not need a refresh at all. In this case even the "Set auto-refresh interval" menu option could be disabled completely.
A dashboard of many charts - performing some expensive queries - needs to put limit on the user by only allowing a set of predefined intervals such as "1 hour", "6 hours", etc. This can be done by overriding the option DASHBOARD_AUTO_REFRESH_INTERVALS
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Version 4.1.0 added an auto-refresh interval option "Custom interval" (see #24449) which is useful in many situations, but sometimes one might want to remove this option.
A dashboard containing never-changing data does not need a refresh at all. In this case even the "Set auto-refresh interval" menu option could be disabled completely.
A dashboard of many charts - performing some expensive queries - needs to put limit on the user by only allowing a set of predefined intervals such as "1 hour", "6 hours", etc. This can be done by overriding the option
DASHBOARD_AUTO_REFRESH_INTERVALS
However, the option "Custom interval" is always present and cannot be removed as far as I know:
This means that the user is always able to set a refresh interval of 1 second⚠️
Suggestion
Add the option
[-1, "Custom interval"]
to the default config and remove the code that always pushes it to the list:This makes it possible to remove the option when overriding the config.
Additionally the "Set auto-refresh interval" menu option could be hidden if the
DASHBOARD_AUTO_REFRESH_INTERVALS
list is empty.Beta Was this translation helpful? Give feedback.
All reactions