From 0d9181eeec1e80722aca2e710b0a1a9d3c7de073 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 24 Jan 2023 16:28:45 +0100 Subject: dashboard: introduce the update_report API call The update_report API can be used to re-fill the missing report details after a crash has already been sent to syzbot. --- dashboard/dashapi/dashapi.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dashboard/dashapi') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 17cd8df91..49f586250 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -685,6 +685,16 @@ func (dash *Dashboard) LoadFullBug(req *LoadFullBugReq) (*FullBugInfo, error) { return resp, err } +type UpdateReportReq struct { + BugID string + CrashID int64 + GuiltyFiles *[]string +} + +func (dash *Dashboard) UpdateReport(req *UpdateReportReq) error { + return dash.Query("update_report", req, nil) +} + type ( BugStatus int BugStatusReason string -- cgit mrf-deployment