diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index 537b2a1b..2adc1330 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -214,6 +214,7 @@ func createBugReport(c context.Context, bug *Bug, crash *Crash, bugReporting *Bu } rep := &dashapi.BugReport{ + Namespace: bug.Namespace, Config: reportingConfig, ID: bugReporting.ID, ExtID: bugReporting.ExtID, diff --git a/dashboard/app/reporting_test.go b/dashboard/app/reporting_test.go index d09f874a..b0b0c908 100644 --- a/dashboard/app/reporting_test.go +++ b/dashboard/app/reporting_test.go @@ -46,6 +46,7 @@ func TestReportBug(t *testing.T) { t.Fatalf("empty report ID") } want := &dashapi.BugReport{ + Namespace: "test1", Config: []byte(`{"Index":1}`), ID: rep.ID, First: true, @@ -183,6 +184,7 @@ func TestInvalidBug(t *testing.T) { t.Fatalf("empty report ID") } want := &dashapi.BugReport{ + Namespace: "test1", Config: []byte(`{"Index":1}`), ID: rep.ID, First: true, diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index ef51f4f5..28a4f7bf 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -137,6 +137,7 @@ func (dash *Dashboard) LogError(name, msg string, args ...interface{}) { // BugReport describes a single bug. // Used by dashboard external reporting. type BugReport struct { + Namespace string Config []byte ID string ExtID string // arbitrary reporting ID forwarded from BugUpdate.ExtID