Commit 0b0409d4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'sy-grafana-embeds-cleanup' into 'master'

Add comment clarifying cache behavior of `GrafanaMetricsEmbedService`

Closes #34526

See merge request gitlab-org/gitlab!18881
parents 7754808a 2d42d889
......@@ -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