Rename skip_metrics to imported on the importable concern

parent 0b7d10fb
......@@ -4,6 +4,6 @@ module Importable
attr_accessor :importing
alias_method :importing?, :importing
attr_accessor :skip_metrics
alias_method :skip_metrics?, :skip_metrics
attr_accessor :imported
alias_method :imported?, :imported
end
......@@ -100,7 +100,7 @@ module Issuable
acts_as_paranoid
after_save :update_assignee_cache_counts, if: :assignee_id_changed?
after_save :record_metrics, unless: :skip_metrics?
after_save :record_metrics, unless: :imported?
def update_assignee_cache_counts
# make sure we flush the cache for both the old *and* new assignees(if they exist)
......
......@@ -21,7 +21,7 @@ module Gitlab
assignee_id: assignee_id,
created_at: raw_data.created_at,
updated_at: raw_data.updated_at,
skip_metrics: true
imported: true
}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment