We don't keep duration for jobs
We always just return finished at and started at for jobs, so just let travis always calculate duration from those fields.
This commit is contained in:
parent
90474edd8b
commit
a91657c128
|
@ -10,7 +10,6 @@ require 'travis/model'
|
|||
state: DS.attr('string')
|
||||
number: DS.attr('string')
|
||||
result: DS.attr('number')
|
||||
_duration: DS.attr('number', key: 'duration')
|
||||
startedAt: DS.attr('string')
|
||||
finishedAt: DS.attr('string')
|
||||
allowFailure: DS.attr('boolean', key: 'allow_failure')
|
||||
|
@ -57,7 +56,7 @@ require 'travis/model'
|
|||
).observes('state')
|
||||
|
||||
isAttributeLoaded: (key) ->
|
||||
if ['_duration', 'finishedAt', 'result'].contains(key) && !@get('finished')
|
||||
if ['finishedAt', 'result'].contains(key) && !@get('finished')
|
||||
return true
|
||||
else
|
||||
@_super(key)
|
||||
|
|
Loading…
Reference in New Issue
Block a user