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/issue.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/issue.rb')
-rw-r--r-- | app/models/issue.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 0332bfa9371..57787815fae 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -59,6 +59,7 @@ class Issue < ActiveRecord::Base scope :public_only, -> { where(confidential: false) } after_save :expire_etag_cache + after_save :ensure_metrics, unless: :imported? attr_spammable :title, spam_title: true attr_spammable :description, spam_description: true |