Browse files

Kill notification generation in the client.

  • Loading branch information...
1 parent e1f64c4 commit 303d739eefab8e1c49fea4476d79dc145ce8a724 @cmeiklejohn cmeiklejohn committed Jan 10, 2013
Showing with 1 addition and 32 deletions.
  1. +1 −32 assets/javascripts/app/models.js
View
33 assets/javascripts/app/models.js
@@ -70,38 +70,7 @@ GiddyUp.TestResult = DS.Model.extend({
log_url: DS.attr('string'),
created_at: DS.attr('date'),
- long_version: DS.attr('string'),
-
- notification: function() {
- var status = this.get('status') === true ? "pass" : "fail";
- var instance = this.get('test_instance');
- var scorecard = instance.get('scorecard');
- var project = scorecard.get('project');
- var backend = instance.get('backend') || "undefined";
-
- return {
- title: "GiddyUp: New " + status + " on " +
- project.get('name') + " " +
- scorecard.get('name'),
- message: instance.get('name') + " | " +
- backend + " | " +
- instance.get('platform')
- };
- }.property()
-});
-
-GiddyUp.TestResult.reopenClass({
- /** Load record, immediately materialize, and force listening array
- ** proxies to reference object. */
- loadRawTestResult: function(rawTestResult) {
- var newTestResult = GiddyUp.store.load(GiddyUp.TestResult,
- rawTestResult);
- var testResult = GiddyUp.TestResult.find(newTestResult.id);
-
- testResult.get('test_instance.test_results').pushObject(testResult);
-
- return testResult;
- }
+ long_version: DS.attr('string')
});
GiddyUp.Log = DS.Model.extend({

0 comments on commit 303d739

Please sign in to comment.