-
-
Notifications
You must be signed in to change notification settings - Fork 451
Attachments can be manipulated via hints - Extra for attachment methods directly on Hints #2049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Attachments can be manipulated via hints - Extra for attachment methods directly on Hints ([#2049](https://github.com/getsentry/sentry-java/pull/2049)) If none of the above apply, you can opt out of this check by adding |
Codecov Report
@@ Coverage Diff @@
## feat/allow-attachment-manipulation-via-hints #2049 +/- ##
===============================================================================
Coverage ? 80.96%
Complexity ? 3177
===============================================================================
Files ? 229
Lines ? 11707
Branches ? 1556
===============================================================================
Hits ? 9479
Misses ? 1646
Partials ? 582 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having a List<> instead of relying on the Map<String, Object> is ideal.
Other than that, LGTM
} | ||
|
||
public void clearAttachments() { | ||
internalStorage.put(SENTRY_ATTACHMENTS, new CopyOnWriteArrayList<Attachment>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be a list instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update
Decided to go with list property in |
📜 Description
Extra for #2046 with attachment methods directly in
Hints
instead of a separateAttachments
object.💡 Motivation and Context
💚 How did you test it?
📝 Checklist
🔮 Next steps