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

Side by Side Diff: Tools/GardeningServer/scripts/controllers.js

Issue 173133003: Convert garden-o-matic guts over to promises where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update to ToT Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 { 287 {
288 failure.pinToCommitData(commitData); 288 failure.pinToCommitData(commitData);
289 $('.action', failure).each(function() { 289 $('.action', failure).each(function() {
290 // FIXME: This isn't the right way of finding and disabling this act ion. 290 // FIXME: This isn't the right way of finding and disabling this act ion.
291 if (this.textContent == 'Blame') 291 if (this.textContent == 'Blame')
292 this.disabled = true; 292 this.disabled = true;
293 }); 293 });
294 }, 294 },
295 onRollout: function(revision, testNameList) 295 onRollout: function(revision, testNameList)
296 { 296 {
297 checkout.rollout(revision, ui.rolloutReasonForTestNameList(testNameList) , $.noop, function() { 297 checkout.rollout(revision, ui.rolloutReasonForTestNameList(testNameList) ).then($.noop, function() {
298 // FIXME: We should have a better error UI. 298 // FIXME: We should have a better error UI.
299 alert(kCheckoutUnavailableMessage); 299 alert(kCheckoutUnavailableMessage);
300 }); 300 });
301 } 301 }
302 }); 302 });
303 303
304 controllers.Failures = base.extends(FailureStreamController, { 304 controllers.Failures = base.extends(FailureStreamController, {
305 _resultsFilter: results.expectedFailuresByTest, 305 _resultsFilter: results.expectedFailuresByTest,
306 306
307 _keyFor: function(failureAnalysis) 307 _keyFor: function(failureAnalysis)
(...skipping 30 matching lines...) Expand all
338 this._notification = new ui.notifications.BuildersFailing(this._mess age); 338 this._notification = new ui.notifications.BuildersFailing(this._mess age);
339 this._view.add(this._notification); 339 this._view.add(this._notification);
340 } 340 }
341 // FIXME: We should provide regression ranges for the failing builders. 341 // FIXME: We should provide regression ranges for the failing builders.
342 // This doesn't seem to happen often enough to worry too much about that , however. 342 // This doesn't seem to happen often enough to worry too much about that , however.
343 this._notification.setFailingBuilders(failuresList); 343 this._notification.setFailingBuilders(failuresList);
344 } 344 }
345 }); 345 });
346 346
347 })(); 347 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/checkout_unittests.js ('k') | Tools/GardeningServer/scripts/garden-o-matic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698