From 9eff3337ee5c407d4156eccb7bdea4d666e492fc Mon Sep 17 00:00:00 2001 From: Cheng-Min Chiang Date: Wed, 2 Sep 2020 17:23:49 -0700 Subject: dashboard/app: send machine information to dashboard - Change syz-manager so that it will send machine info the first time a crash occurs. - Add a field in entities.Crash to store machine info. - Add a field in dashapi.BugReport to store machine info. - Change the HTML template and struct uiCrash to display machine info. - Add a test to make sure that the link to machine info appears on the webpage. Update #466 --- dashboard/app/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dashboard/app/api.go') diff --git a/dashboard/app/api.go b/dashboard/app/api.go index f30c87174..12f3c7e1c 100644 --- a/dashboard/app/api.go +++ b/dashboard/app/api.go @@ -810,6 +810,9 @@ func saveCrash(c context.Context, ns string, req *dashapi.Crash, bugKey *db.Key, if crash.ReproC, err = putText(c, ns, textReproC, req.ReproC, false); err != nil { return err } + if crash.MachineInfo, err = putText(c, ns, textMachineInfo, req.MachineInfo, false); err != nil { + return err + } crashKey := db.NewIncompleteKey(c, "Crash", bugKey) if _, err = db.Put(c, crashKey, crash); err != nil { return fmt.Errorf("failed to put crash: %v", err) -- cgit mrf-deployment