-
-
Notifications
You must be signed in to change notification settings - Fork 276
Feat: Support for UserFeedback #506
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
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3d3d635
Attachment support
ueman 9ecad73
fix pr id
ueman 901f3b4
wip
ueman f6db8f1
More examples
ueman 6468814
Update dart/lib/src/sentry_envelope_item_header.dart
ueman 5e0cde0
WIP
ueman 6cca701
WIP
ueman 5445b83
more tests
ueman 32ee66b
use list unmodifiable
ueman 664617e
transport can return null
ueman 75a7b60
fix test
ueman 887adda
wip
ueman 0e41503
test
ueman 661116b
fix file system transport
ueman 3a12ed7
skip attachment if it throws
ueman 9dae6ab
fix sentry id
ueman 313d407
WIP
ueman cd6aae6
rename test file to be identified as test
ueman 20af837
fix
ueman 5727ef1
test fixture
ueman d921cb1
Attachment support
ueman 588a63d
fix pr id
ueman d8fb07a
User Feedback
ueman 31e4224
wip
ueman 78c1779
wip
ueman bfce6d6
tests
ueman 39558bb
teeests
ueman 5f5a793
wip
ueman 605f814
wip
ueman c667ac7
more tests
ueman 2b85f76
fix changelog
ueman a4811ca
Move UI to example app
ueman f9652e8
Do not send with empty id
ueman fd5ef07
Merge branch 'main' into feat/user-feedback
ueman cb459f4
fix merge
ueman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| import 'protocol.dart'; | ||
|
|
||
| class SentryUserFeedback { | ||
| SentryUserFeedback({ | ||
| required this.eventId, | ||
| this.name, | ||
| this.email, | ||
| this.comments, | ||
| }) : assert(eventId != SentryId.empty()); | ||
|
|
||
| factory SentryUserFeedback.fromJson(Map<String, dynamic> json) { | ||
| return SentryUserFeedback( | ||
| eventId: SentryId.fromId(json['event_id']), | ||
| name: json['name'], | ||
| email: json['email'], | ||
| comments: json['comments'], | ||
| ); | ||
| } | ||
|
|
||
| /// The eventId of the event to which the user feedback is associated. | ||
| final SentryId eventId; | ||
|
|
||
| /// Recommended: The name of the user. | ||
| final String? name; | ||
|
|
||
| /// Recommended: The name of the user. | ||
| final String? email; | ||
|
|
||
| /// Recommended: Comments of the user about what happened. | ||
| final String? comments; | ||
|
|
||
| Map<String, dynamic> toJson() { | ||
| return <String, dynamic>{ | ||
| 'event_id': eventId.toString(), | ||
| if (name != null) 'name': name, | ||
| if (email != null) 'email': email, | ||
| if (comments != null) 'comments': comments, | ||
| }; | ||
| } | ||
|
|
||
| SentryUserFeedback copyWith({ | ||
| SentryId? eventId, | ||
| String? name, | ||
| String? email, | ||
| String? comments, | ||
| }) { | ||
| return SentryUserFeedback( | ||
| eventId: eventId ?? this.eventId, | ||
| name: name ?? this.name, | ||
| email: email ?? this.email, | ||
| comments: comments ?? this.comments, | ||
| ); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.