Chromium Code Reviews| Index: Tools/GardeningServer/model/ct-failure-group.html |
| diff --git a/Tools/GardeningServer/model/ct-failure-group.html b/Tools/GardeningServer/model/ct-failure-group.html |
| index 84d01dc9177f9b3b34157482aece5da39e030ff7..6ad9487f2fe1cc5029106efa853ad063e290c5f5 100644 |
| --- a/Tools/GardeningServer/model/ct-failure-group.html |
| +++ b/Tools/GardeningServer/model/ct-failure-group.html |
| @@ -24,8 +24,15 @@ CTFailureGroup.prototype.unsnooze = function() { |
| }); |
| }; |
| +CTFailureGroup.prototype.setBug = function(bug) { |
| + return this._annotate({ |
| + bugNumber: bug, |
|
ojan
2014/08/15 04:53:39
Can we s/bugNumber/bug and have the value actually
cbiesinger
2014/08/16 00:46:15
Done.
|
| + }); |
| +}; |
| + |
| CTFailureGroup.prototype._computeProperties = function() { |
| this.isSnoozed = Date.now() < this.annotation.snoozeTime; |
| + this.hasBug = this.annotation.bugNumber !== undefined; |
|
ojan
2014/08/15 04:53:39
Lets just set this.bug.
Also, we should make ann
cbiesinger
2014/08/16 00:46:15
Done.
|
| }; |
| CTFailureGroup.prototype._annotate = function(newAnnotation) { |