diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-02-22 12:53:31 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-02-22 13:08:34 +0100 |
| commit | 7daaa06d53f0f496aa1a87656d16c81ebff37f73 (patch) | |
| tree | 6648bf4e9b95724e61010fa9e3294e341773f4af /dashboard/app/api.go | |
| parent | 04cbdbd1ae105f4d9f11fda99b588168cec2b3a8 (diff) | |
dashboard/app: restrict patch testing result CC list
Currently dashboard sends patch testing result to full bug CC list
(which includes kernel mailing lists). This is unnecessary and causes
problems with patchwork.
Reply only to people in the testing request CC list
(adding our mailing list if it was missing).
Fixes #526
Diffstat (limited to 'dashboard/app/api.go')
| -rw-r--r-- | dashboard/app/api.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dashboard/app/api.go b/dashboard/app/api.go index 571812d89..335d7ad2f 100644 --- a/dashboard/app/api.go +++ b/dashboard/app/api.go @@ -412,6 +412,15 @@ func stringInList(list []string, str string) bool { return false } +func stringsInList(list, str []string) bool { + for _, s := range str { + if !stringInList(list, s) { + return false + } + } + return true +} + func apiReportBuildError(c context.Context, ns string, r *http.Request) (interface{}, error) { req := new(dashapi.BuildErrorReq) if err := json.NewDecoder(r.Body).Decode(req); err != nil { |
