Instrument MergeRequest#ensure_ref_fetched

This commit is contained in:
Jarka Kadlecova 2017-08-28 15:21:05 +02:00
parent 04c092b58d
commit 7ba19ab620
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 # Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159
instrumentation.instrument_instance_method(MergeRequestDiff, :load_commits) 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 end
# rubocop:enable Metrics/AbcSize # rubocop:enable Metrics/AbcSize