Commit 2d42d889 authored by Sarah Yasonik's avatar Sarah Yasonik Committed by Dmitriy Zaporozhets

Add comment clarifying cache behavior of `GrafanaMetricsEmbedService`

parent 7754808a
......@@ -44,6 +44,9 @@ module Metrics
# Inherits the primary logic from the parent class and
# maintains the service's API while including ReactiveCache
def calculate_reactive_cache(*)
# This is called with explicit parentheses to prevent
# the params passed to #calculate_reactive_cache from
# being passed to #get_dashboard (which accepts none)
::Metrics::Dashboard::BaseService
.instance_method(:get_dashboard)
.bind(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment