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

Unified Diff: dashboard/dashboard/alerts.py

Issue 2557743004: Adding in abs delta column to the alerts table (Closed)
Patch Set: adding in tests Created 4 years 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
« no previous file with comments | « no previous file | dashboard/dashboard/elements/alerts-page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/alerts.py
diff --git a/dashboard/dashboard/alerts.py b/dashboard/dashboard/alerts.py
index bd59e1d9163e0d476e2f88d23540645c92e2a147..684113c4d75a84f20490fb3e857e1ba5ee49d8bc 100644
--- a/dashboard/dashboard/alerts.py
+++ b/dashboard/dashboard/alerts.py
@@ -155,14 +155,17 @@ def GetAnomalyDict(anomaly_entity, bisect_status=None):
Returns:
A dictionary which is safe to be encoded as JSON.
"""
+ print anomaly_entity
alert_dict = _AlertDict(anomaly_entity)
alert_dict.update({
'median_after_anomaly': anomaly_entity.median_after_anomaly,
'median_before_anomaly': anomaly_entity.median_before_anomaly,
'percent_changed': '%s' % anomaly_entity.GetDisplayPercentChanged(),
+ 'absolute_delta': '%s' % anomaly_entity.GetDisplayAbsoluteChanged(),
'improvement': anomaly_entity.is_improvement,
'bisect_status': bisect_status,
'recovered': anomaly_entity.recovered,
+ 'units': anomaly_entity.units
})
return alert_dict
« no previous file with comments | « no previous file | dashboard/dashboard/elements/alerts-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698