You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2016/02/19 21:01:22 UTC

ambari git commit: AMBARI-15113. UI does not update alert state (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk d207bef25 -> 997749f73


AMBARI-15113. UI does not update alert state (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/997749f7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/997749f7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/997749f7

Branch: refs/heads/trunk
Commit: 997749f73d2403a634c7543e1a6d16eb3d6950e4
Parents: d207bef
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri Feb 19 19:00:25 2016 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Feb 19 22:01:24 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/models/alerts/alert_definition.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/997749f7/ambari-web/app/models/alerts/alert_definition.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/alerts/alert_definition.js b/ambari-web/app/models/alerts/alert_definition.js
index e91bd4f..6c25f7e 100644
--- a/ambari-web/app/models/alerts/alert_definition.js
+++ b/ambari-web/app/models/alerts/alert_definition.js
@@ -41,8 +41,8 @@ App.AlertDefinition = DS.Model.extend({
   groups: DS.hasMany('App.AlertGroup'),
   reporting: DS.hasMany('App.AlertReportDefinition'),
   parameters: DS.hasMany('App.AlertDefinitionParameter'),
-  lastTriggered: DS.attr('number'),
-  lastTriggeredRaw: DS.attr('number'),
+  lastTriggered: 0,
+  lastTriggeredRaw: 0,
 
   //relates only to SCRIPT-type alert definition
   location: DS.attr('string'),