Commit da972617 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Move has_trace? to CommitStatus than GenericCommitStatus

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762721
parent a2fb6361
...@@ -135,15 +135,19 @@ class CommitStatus < ActiveRecord::Base ...@@ -135,15 +135,19 @@ class CommitStatus < ActiveRecord::Base
allow_failure? && (failed? || canceled?) allow_failure? && (failed? || canceled?)
end end
def duration
calculate_duration
end
def playable? def playable?
false false
end end
def duration def stuck?
calculate_duration false
end end
def stuck? def has_trace?
false false
end end
end end
...@@ -12,8 +12,4 @@ class GenericCommitStatus < CommitStatus ...@@ -12,8 +12,4 @@ class GenericCommitStatus < CommitStatus
def tags def tags
[:external] [:external]
end end
def has_trace?
false
end
end 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