Allow refresh rate feature to be disabled via a feature flag

Merged Miguel Rincon requested to merge 229831-create--disable-refresh-rate-feature-flag into master

What does this MR do?

Allow refresh rate feature to be disabled

We should allow refresh rate feature to be disabled via feature flag.

Enabling refresh rate for all user might have impact in performance if too many of them enable it. We want to release this feature and monitor it's behavior.

Refs #229831 (closed)

Screenshots

disable_metric_dashboard_refresh_rate off disable_metric_dashboard_refresh_rate on
Screen_Shot_2020-07-17_at_7.28.13_PM image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Peter Leitzen