Skip to content

Add ClearAttachments to Scope#1104

Merged
lucas-zimerman merged 10 commits intomainfrom
feat/clear-attachments
Jul 8, 2021
Merged

Add ClearAttachments to Scope#1104
lucas-zimerman merged 10 commits intomainfrom
feat/clear-attachments

Conversation

@lucas-zimerman
Copy link
Collaborator

Allows the user to clear the attachments.

partially closes #1088 (PR for docs is required)

@codecov-commenter
Copy link

codecov-commenter commented Jul 2, 2021

Codecov Report

Merging #1104 (45d6a0a) into main (f7d6f84) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1104      +/-   ##
==========================================
- Coverage   80.72%   80.71%   -0.01%     
==========================================
  Files         194      194              
  Lines        6359     6363       +4     
  Branches     1411     1411              
==========================================
+ Hits         5133     5136       +3     
  Misses        764      764              
- Partials      462      463       +1     
Impacted Files Coverage Δ
src/Sentry/Scope.cs 93.84% <100.00%> (+0.19%) ⬆️
src/Sentry/Internal/BackgroundWorker.cs 84.24% <0.00%> (-0.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7d6f84...45d6a0a. Read the comment docs.

Simplified while loop
lucas-zimerman and others added 2 commits July 5, 2021 17:39
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Comment on lines +236 to +237
_ = scope.Attachments.Should().Contain(attachment, "Attachment was not found.");
_ = scope.Attachments.Should().Contain(attachment2, "Attachment2 was not found.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_ = scope.Attachments.Should().Contain(attachment, "Attachment was not found.");
_ = scope.Attachments.Should().Contain(attachment2, "Attachment2 was not found.");
scope.Attachments.Should().Contain(attachment, "Attachment was not found.");
scope.Attachments.Should().Contain(attachment2, "Attachment2 was not found.");

@lucas-zimerman lucas-zimerman merged commit 7d008a9 into main Jul 8, 2021
@lucas-zimerman lucas-zimerman deleted the feat/clear-attachments branch July 8, 2021 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ClearAttachments to Scope

4 participants