Commit 4979bd15 authored by Tamir Duberstein's avatar Tamir Duberstein Committed by Brad Fitzpatrick

analysis/app: add "commit" tooltip to trend

This makes the graphs produced by /trend much more useful by exposing
the actual commit SHA in addition to the index.

Change-Id: Ia8b11278752bcd95322740afb5c17783db74e944
Reviewed-on: https://go-review.googlesource.com/47510Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent ae5bfa61
......@@ -151,7 +151,10 @@ func (a *App) trendQuery(ctx context.Context, q string, opt plotOptions) *trendD
tables := data.Tables()
infof(ctx, "tables: %v", tables)
columns := []column{{Name: "commit-index"}}
columns := []column{
{Name: "commit-index"},
{Name: "commit", Role: "tooltip"},
}
for _, prefix := range ar.Prefixes {
if len(ar.Prefixes) == 1 {
columns = append(columns,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment