Skip to content

Commit

Permalink
fix: Rename frame drop issue title (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
phacops authored Sep 20, 2023
1 parent bad0bd5 commit 1cdbf56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

**Internal**

- Rename the frame drop issue title. ([#315](https://github.com/getsentry/vroom/pull/315))

## 23.9.1

**Internal**
Expand Down
20 changes: 5 additions & 15 deletions internal/occurrence/frame_drop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,10 @@ func TestFindFrameDrop(t *testing.T) {
{Name: "Suspect function", Value: "child2", Important: true},
{Name: "Package", Value: "package"},
},
Fingerprint: []string{"8f2e4eaab20fd0a0acb48bb9bdd11b21"},
IssueTitle: issueTitles[FrameDrop].IssueTitle,
Level: "info",
Subtitle: "child2",
Type: issueTitles[FrameDrop].Type,
IssueTitle: issueTitles[FrameDrop].IssueTitle,
Level: "info",
Subtitle: "child2",
Type: issueTitles[FrameDrop].Type,
},
},
},
Expand Down Expand Up @@ -384,9 +383,6 @@ func TestFindFrameDrop(t *testing.T) {
},
{Name: "Package", Value: "package"},
},
Fingerprint: []string{
"5f5584b142aab31b5f33b26884cdec56",
},
IssueTitle: issueTitles[FrameDrop].IssueTitle,
Level: "info",
Subtitle: "child2-1-1",
Expand Down Expand Up @@ -588,9 +584,6 @@ func TestFindFrameDrop(t *testing.T) {
},
{Name: "Package", Value: "package"},
},
Fingerprint: []string{
"1247dbde8be089556f3ae631f81e73c2",
},
IssueTitle: issueTitles[FrameDrop].IssueTitle,
Level: "info",
Subtitle: "child2-1",
Expand Down Expand Up @@ -759,9 +752,6 @@ func TestFindFrameDrop(t *testing.T) {
},
{Name: "Package", Value: "package"},
},
Fingerprint: []string{
"1247dbde8be089556f3ae631f81e73c2",
},
IssueTitle: issueTitles[FrameDrop].IssueTitle,
Level: "info",
Subtitle: "child2-1",
Expand All @@ -773,7 +763,7 @@ func TestFindFrameDrop(t *testing.T) {

options := cmp.Options{
cmpopts.IgnoreFields(Event{}, "ID"),
cmpopts.IgnoreFields(Occurrence{}, "DetectionTime", "ID"),
cmpopts.IgnoreFields(Occurrence{}, "DetectionTime", "ID", "Fingerprint"),
cmpopts.IgnoreUnexported(Occurrence{}),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/occurrence/occurrence.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var issueTitles = map[Category]CategoryMetadata{
Decompression: {IssueTitle: "Decompression on Main Thread"},
FileRead: {IssueTitle: "File I/O on Main Thread"},
FileWrite: {IssueTitle: "File I/O on Main Thread"},
FrameDrop: {IssueTitle: "A Frame Drop Occurred", Type: FrameDropType},
FrameDrop: {IssueTitle: "Frame Drop", Type: FrameDropType},
HTTP: {IssueTitle: "Network I/O on Main Thread"},
ImageDecode: {IssueTitle: "Image Decoding on Main Thread", Type: ImageDecodeType},
ImageEncode: {IssueTitle: "Image Encoding on Main Thread"},
Expand Down

0 comments on commit 1cdbf56

Please sign in to comment.