Rename skip_metrics to imported on the importable concern

This commit is contained in:
Douglas Barbosa Alexandre 2017-04-03 14:31:48 -03:00
parent 0b7d10fb2d
commit a6affc66dc
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)

View File

@ -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