From 172189e9551b768d48c6d5c038fbf3d5cd88aa8e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 17 Aug 2017 19:09:07 +0200 Subject: dashboard/app: heavylifting of email reporting - save Message-ID and use In-Reply-To in subsequent messages - remember additional CC entries added manually - don't mail to maintainers if maintainers list is empty - improve mail formatting and add a footer - implement upstream/fix/dup/invalid commands over email - add tests --- dashboard/dashapi/dashapi.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 4871f97ad..ddc20ebe4 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -136,9 +136,11 @@ func (dash *Dashboard) LogError(name, msg string, args ...interface{}) { type BugReport struct { Config []byte ID string - First bool // Set for first report for this bug. + ExtID string // arbitrary reporting ID forwarded from BugUpdate.ExtID + First bool // Set for first report for this bug. Title string Maintainers []string + CC []string // additional CC emails CompilerID string KernelRepo string KernelBranch string @@ -152,11 +154,13 @@ type BugReport struct { type BugUpdate struct { ID string + ExtID string Link string Status BugStatus ReproLevel ReproLevel DupOf string FixCommits []string // Titles of commits that fix this bug. + CC []string // Additional emails to add to CC list in future emails. } type BugUpdateReply struct { @@ -182,6 +186,7 @@ const ( BugStatusUpstream BugStatusInvalid BugStatusDup + BugStatusUpdate // aux info update (i.e. ExtID/Link/CC) ) const ( -- cgit mrf-deployment