From d1ccbf920609fd21d211a3db5290d1d14875dd9f Mon Sep 17 00:00:00 2001 From: Arnout Boks Date: Wed, 18 Dec 2024 11:55:11 +0100 Subject: [PATCH 1/3] Add substatus data Makes the `substatus` field available. This allows distinguishing between new, ongoing and regressed issues. --- pkg/sentry/issues.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sentry/issues.go b/pkg/sentry/issues.go index 6cabf36..5dca117 100644 --- a/pkg/sentry/issues.go +++ b/pkg/sentry/issues.go @@ -14,6 +14,7 @@ type SentryIssue struct { Count string `json:"count"` UserCount int64 `json:"userCount"` Status string `json:"status"` + Substatus string `json:"substatus"` Level string `json:"level"` Type string `json:"type"` Platform string `json:"platform"` From c501ecf73e46033be9441cfcaa9482a73252a948 Mon Sep 17 00:00:00 2001 From: Arnout Boks Date: Tue, 14 Jan 2025 14:47:20 +0100 Subject: [PATCH 2/3] Add 'substatus' to spelling word list --- cspell.config.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cspell.config.json b/cspell.config.json index 024c090..3957da5 100644 --- a/cspell.config.json +++ b/cspell.config.json @@ -28,6 +28,8 @@ "oblador", "peterhellberg", "proxying", + "Substatus", + "substatus", "testdata", "testid", "typecheck", From 9793a9c8d9774138497d06276806534daf696a67 Mon Sep 17 00:00:00 2001 From: Arnout Boks Date: Wed, 15 Jan 2025 13:41:30 +0100 Subject: [PATCH 3/3] Increase expected number of fields for addition of substatus --- pkg/handlers/handlers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handlers/handlers_test.go b/pkg/handlers/handlers_test.go index 161e47a..3e91d97 100644 --- a/pkg/handlers/handlers_test.go +++ b/pkg/handlers/handlers_test.go @@ -26,7 +26,7 @@ func TestSentryDatasource_Issues(t *testing.T) { assert.Nil(t, res.Responses["A"].Error) require.Equal(t, 1, len(res.Responses["A"].Frames)) assert.Equal(t, "Issues (A)", res.Responses["A"].Frames[0].Name) - require.Equal(t, 32, len(res.Responses["A"].Frames[0].Fields)) + require.Equal(t, 33, len(res.Responses["A"].Frames[0].Fields)) require.Equal(t, 3, res.Responses["A"].Frames[0].Fields[0].Len()) }) }