diff options
author | Stan Hu <stanhu@gmail.com> | 2019-07-09 07:05:00 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-07-09 07:05:00 +0300 |
commit | 6b8ab70b4384d77f45d6c7fc291670da23568d93 (patch) | |
tree | 34d6bdd73ca761bf1e3d1f6a3571f10b35eea316 | |
parent | 8ca710668f64d535ef5f0a7751fcf8ef815def90 (diff) | |
parent | 9062c9f11b5ae06901b31dc7b169ad3b04c2c1b9 (diff) |
Merge branch 'add-ff-embedding-metrics' into 'master'
Push feature flag for embedding metrics
See merge request gitlab-org/gitlab-ce!30342
-rw-r--r-- | lib/gitlab/gon_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb index 92917028851..41ec8741eb1 100644 --- a/lib/gitlab/gon_helper.rb +++ b/lib/gitlab/gon_helper.rb @@ -38,6 +38,11 @@ module Gitlab gon.current_user_fullname = current_user.name gon.current_user_avatar_url = current_user.avatar_url end + + # Flag controls a GFM feature used across many routes. + # Pushing the flag from one place simplifies control + # and facilitates easy removal. + push_frontend_feature_flag(:gfm_embedded_metrics) end # Exposes the state of a feature flag to the frontend code. |