Merge branch '36061-mr-ref' into 'master'

Instrument MergeRequest#ensure_ref_fetched

See merge request !13876
This commit is contained in:
Sean McGivern 2017-08-28 14:35:05 +00:00
commit 7ccef75a26
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
title: Instrument MergeRequest#ensure_ref_fetched
merge_request:
author:
type: other

View file

@ -119,6 +119,9 @@ def instrument_classes(instrumentation)
# Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159
instrumentation.instrument_instance_method(MergeRequestDiff, :load_commits)
# Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/36061
instrumentation.instrument_instance_method(MergeRequest, :ensure_ref_fetched)
end
# rubocop:enable Metrics/AbcSize