-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SF-3089 Show message when draft could not be added to the chapter #3014
base: master
Are you sure you want to change the base?
Conversation
await this.draftHandlingService.applyChapterDraftAsync(this.textDocId!, this.draftDelta); | ||
this.isDraftApplied = true; | ||
this.userAppliedDraft = true; | ||
} catch { |
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.
What if it isn't a network error? Can we make sure to handle those differently, so we still get reports in Bugsnag, and shown to the user?
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.
Or just log everything to Bugsnag, even though network connection issues aren't really bugs. It would be nice to have something to refer to, just in case.
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.
Thanks, I have updated this to report errors to bugsnag silently unless it is a network related issue.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3014 +/- ##
=======================================
Coverage 82.65% 82.65%
=======================================
Files 553 553
Lines 32010 32016 +6
Branches 5186 5187 +1
=======================================
+ Hits 26458 26464 +6
Misses 4795 4795
Partials 757 757 ☔ View full report in Codecov by Sentry. |
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.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Nateowami)
await this.draftHandlingService.applyChapterDraftAsync(this.textDocId!, this.draftDelta); | ||
this.isDraftApplied = true; | ||
this.userAppliedDraft = true; | ||
} catch { |
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.
Or just log everything to Bugsnag, even though network connection issues aren't really bugs. It would be nice to have something to refer to, just in case.
d0cd9c6
to
6f25dcf
Compare
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.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @josephmyers and @Nateowami)
await this.draftHandlingService.applyChapterDraftAsync(this.textDocId!, this.draftDelta); | ||
this.isDraftApplied = true; | ||
this.userAppliedDraft = true; | ||
} catch { |
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.
Thanks, I have updated this to report errors to bugsnag silently unless it is a network related issue.
I am good with this is if @Nateowami is |
If the user tries to add a draft to a chapter, it can fail if the internet connectivity is poor. This change notifies the user if a draft fails to be applied.
This change is