Skip to content

Commit 8fb7f1f

Browse files
committed
Display tag on the timeline tooltip
1 parent d298663 commit 8fb7f1f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

codespeed/static/js/timeline.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ function getHighlighterConfig(median) {
8282
return {
8383
show: true,
8484
tooltipLocation: 'nw',
85-
yvalues: 7,
86-
formatString:'<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>median:</td><td>%s</td></tr> <tr><td>max:</td><td>%s</td></tr> <tr><td>Q3:</td><td>%s</td></tr> <tr><td>Q1:</td><td>%s</td></tr> <tr><td>min:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr></table>'
85+
yvalues: 8,
86+
formatString:'<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>median:</td><td>%s</td></tr> <tr><td>max:</td><td>%s</td></tr> <tr><td>Q3:</td><td>%s</td></tr> <tr><td>Q1:</td><td>%s</td></tr> <tr><td>min:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr><tr><td>tag:</td><td>%s</td></tr></table>'
8787
};
8888
} else {
8989
return {
9090
show: true,
9191
tooltipLocation: 'nw',
92-
yvalues: 4,
93-
formatString:'<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>result:</td><td>%s</td></tr> <tr><td>std dev:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr></table>'
92+
yvalues: 5,
93+
formatString:'<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>result:</td><td>%s</td></tr> <tr><td>std dev:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr><tr><td>tag:</td><td>%s</td></tr></table>'
9494
};
9595
}
9696
}

codespeed/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def gettimelinedata(request):
306306
[
307307
res.revision.date.strftime('%Y/%m/%d %H:%M:%S %z'),
308308
res.value, val_max, q3, q1, val_min,
309-
res.revision.get_short_commitid(), branch
309+
res.revision.get_short_commitid(), res.revision.tag, branch
310310
]
311311
)
312312
else:
@@ -317,7 +317,7 @@ def gettimelinedata(request):
317317
[
318318
res.revision.date.strftime('%Y/%m/%d %H:%M:%S %z'),
319319
res.value, std_dev,
320-
res.revision.get_short_commitid(), branch
320+
res.revision.get_short_commitid(), res.revision.tag, branch
321321
]
322322
)
323323
timeline['branches'][branch][executable] = results

0 commit comments

Comments
 (0)