summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-05-30 12:14:56 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-05-30 12:14:56 -0300
commitdb926729660d66098db717ae9f64fab0cd2f601f (patch)
tree137642f8faa77a62301c6cf3612093b497e39f46 /app/models/issue.rb
parent54ad5fb8a2b9e90a83cd5714d935b8ea0664eb03 (diff)
downloadgitlab-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.rb1
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