Instrument MergeRequest#ensure_ref_fetched
This commit is contained in:
parent
04c092b58d
commit
7ba19ab620
2 changed files with 8 additions and 0 deletions
5
changelogs/unreleased/36061-mr-ref.yml
Normal file
5
changelogs/unreleased/36061-mr-ref.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Instrument MergeRequest#ensure_ref_fetched
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: other
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue