diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-05-30 12:14:56 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-05-30 12:14:56 -0300 |
commit | db926729660d66098db717ae9f64fab0cd2f601f (patch) | |
tree | 137642f8faa77a62301c6cf3612093b497e39f46 /app/models/merge_request.rb | |
parent | 54ad5fb8a2b9e90a83cd5714d935b8ea0664eb03 (diff) | |
download | gitlab-ce-db926729660d66098db717ae9f64fab0cd2f601f.tar.gz |
Ensure metrics regardless of being imported on MRs41587-osw-mr-metrics-migration-take-two
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r-- | app/models/merge_request.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index bc97fc3a5d9..79fc155fd3c 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -58,6 +58,7 @@ class MergeRequest < ActiveRecord::Base after_create :ensure_merge_request_diff, unless: :importing? after_update :clear_memoized_shas after_update :reload_diff_if_branch_changed + after_save :ensure_metrics # When this attribute is true some MR validation is ignored # It allows us to close or modify broken merge requests |