| Index: go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| diff --git a/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html b/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| index cc0dbb39ccbefa106e0baf2d738860af737ef73e..86353b255f750706fbebd6b139e5e59ce859bbf2 100644
|
| --- a/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| +++ b/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| @@ -454,7 +454,7 @@
|
| },
|
|
|
| _computeAnnotation: function(annotations, alert) {
|
| - let key = this._keyForAlert(alert);
|
| + let key = alert.key;
|
|
|
| let ann = annotations[key];
|
| return {
|
| @@ -466,7 +466,7 @@
|
|
|
| _handleAnnotation: function(evt) {
|
| this._sendAnnotation(
|
| - this._keyForAlert(evt.model.alert), evt.detail.type,
|
| + evt.model.alert.key, evt.detail.type,
|
| evt.detail.change);
|
| },
|
|
|
| @@ -487,18 +487,6 @@
|
| this.$.annotationPost.generateRequest();
|
| },
|
|
|
| - _keyForAlert: function(alert) {
|
| - if (alert.extension && alert.extension.reasons &&
|
| - alert.extension.builders) {
|
| - return alert.extension.reasons.map(function(reason) {
|
| - return reason.step;
|
| - }).concat(alert.extension.builders.map(function(builder) {
|
| - return builder.name;
|
| - })).join('::');
|
| - }
|
| - return null;
|
| - },
|
| -
|
| ////////////////////// Bugs ///////////////////////////
|
|
|
| _handleLinkBug: function(evt) {
|
| @@ -518,7 +506,7 @@
|
|
|
| _saveBug: function() {
|
| this._sendAnnotation(
|
| - this._keyForAlert(this._bugModel), 'add', {
|
| + this._bugModel.key, 'add', {
|
| bugs: [this.$.bug.value]
|
| });
|
| },
|
| @@ -537,7 +525,7 @@
|
|
|
| _snooze: function() {
|
| this._sendAnnotation(
|
| - this._keyForAlert(this._snoozeModel), 'add', {
|
| + this._snoozeModel.key, 'add', {
|
| snoozeTime: Date.now() + ONE_MIN_MS * this.$.snoozeTime.value
|
| });
|
| },
|
|
|