diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-19 13:00:21 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-19 13:12:06 +0530 |
commit | 2cddd02ec5dd9d27fc9e9b6ac5e0748fe92e1cff (patch) | |
tree | 229e8f558d9619612e4f58ad0f333cc0db74a991 /app/models/merge_request | |
parent | 8f6208513a98b33d7edd6ecf1ae6062f266c279f (diff) | |
download | gitlab-ce-2cddd02ec5dd9d27fc9e9b6ac5e0748fe92e1cff.tar.gz |
Remove unused merge request metrics.
- These are not being used anymore.
- Consolidate all issue metrics into a single migration.
- Consolidate all merge request metrics into a single migration.
Diffstat (limited to 'app/models/merge_request')
-rw-r--r-- | app/models/merge_request/metrics.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/merge_request/metrics.rb b/app/models/merge_request/metrics.rb index 18b1e7c5bf3..8c42c830fac 100644 --- a/app/models/merge_request/metrics.rb +++ b/app/models/merge_request/metrics.rb @@ -2,22 +2,10 @@ class MergeRequest::Metrics < ActiveRecord::Base belongs_to :merge_request def record! - if !merge_request.work_in_progress? && self.wip_flag_first_removed_at.blank? - self.wip_flag_first_removed_at = Time.now - end - - if merge_request.author_id != merge_request.assignee_id && self.first_assigned_to_user_other_than_author.blank? - self.first_assigned_to_user_other_than_author = Time.now - end - if merge_request.merged? && self.merged_at.blank? self.merged_at = Time.now end - if merge_request.closed? && self.first_closed_at.blank? - self.first_closed_at = Time.now - end - self.save if self.changed? end |