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

Unified Diff: dashboard/dashboard/elements/chart-container.html

Issue 3013743002: Dashboard - Populate bug_id with uri parameter if available. (Closed)
Patch Set: Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/elements/chart-container-test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/chart-container.html
diff --git a/dashboard/dashboard/elements/chart-container.html b/dashboard/dashboard/elements/chart-container.html
index 2823367f669d35d2c893ca91866310a73da44255..20ab56b2f589738b4102f64e3f8d63b07345f85f 100644
--- a/dashboard/dashboard/elements/chart-container.html
+++ b/dashboard/dashboard/elements/chart-container.html
@@ -2246,6 +2246,9 @@ triaging functionality in the chart.
opt_triaged = null;
}
this.$.tooltip.triagedAlerts = opt_triaged;
+
+ const uriBugId = uri.getParameter('bug_id');
+
if (annotation.g_anomaly) {
if (annotation.g_anomaly.bug_id) {
this.$.tooltip.bugId = annotation.g_anomaly.bug_id;
@@ -2254,6 +2257,8 @@ triaging functionality in the chart.
this.$.tooltip.alertKey = annotation.g_anomaly.key;
}
this.$.tooltip.recovered = annotation.g_anomaly.recovered;
+ } else if (uriBugId !== null) {
+ this.$.tooltip.bugId = uriBugId;
}
this.$.tooltip.bisectInfo = {
« no previous file with comments | « no previous file | dashboard/dashboard/elements/chart-container-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698