Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2262)

Unified Diff: Tools/GardeningServer/model/ct-failure-group.html

Issue 476903003: Add a "Link Bug" button to associate a bug with a failure (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698