diff options
author | Sarah Yasonik <syasonik@gitlab.com> | 2019-07-31 06:32:47 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-07-31 06:32:47 +0000 |
commit | 74563593b9c6e87bd5f1f5e85b1c68d78ee0296e (patch) | |
tree | 94785d0dc7185f7bea154e2c5e4d41effcb0f349 /app/services/metrics | |
parent | af9b1ffa75c8bb4e6e80d9d5cd2ad34487c0446c (diff) | |
download | gitlab-ce-74563593b9c6e87bd5f1f5e85b1c68d78ee0296e.tar.gz |
Ensure default metrics embed is cached
Diffstat (limited to 'app/services/metrics')
-rw-r--r-- | app/services/metrics/dashboard/default_embed_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/metrics/dashboard/default_embed_service.rb b/app/services/metrics/dashboard/default_embed_service.rb index 0967c5bcfeb..8b01b44fc98 100644 --- a/app/services/metrics/dashboard/default_embed_service.rb +++ b/app/services/metrics/dashboard/default_embed_service.rb @@ -23,7 +23,7 @@ module Metrics # Returns a new dashboard with only the matching # metrics from the system dashboard, stripped of groups. # @return [Hash] - def raw_dashboard + def get_raw_dashboard panels = panel_groups.each_with_object([]) do |group, panels| matched_panels = group['panels'].select { |panel| matching_panel?(panel) } |