-
Notifications
You must be signed in to change notification settings - Fork 316
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
|
||
return self.store.submitDraft(self, params).then(self.onDraftSaved); | ||
return self.store.submitDraft(self, params).then((res) => { | ||
self.onDraftSaved(res); |
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.
Do any other callers of saveDraft require that the onDraftSaved callback be the return of the function promise? I noticed we are changing to use the raw result instead so that we can get access to this information, I'm wondering if that might break other usages. Do we know for certain the usages expectation of this return?
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.
I'm going to approve this with the caveat that we may have to consider this depending on whether any integration tests fail (and subsequently answer this question for us 😅).
/git merge master
|
PR fulfills these requirements
[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made
ex.fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors
Change has impacts in these area(s)
(check all that apply)
Describe the reason for change
lost drafts during timeout, no user feedback
What does this fix?
(if this is a bug fix)
What is the new behavior?
saved drafts when user navigates away from annotation page, gives toast feedback
What is the current behavior?
lost drafts during timeout, no user feedback
What libraries were added/updated?
(list all with version changes)
Does this change affect performance?
(if so describe the impacts positive or negative)
Does this change affect security?
(if so describe the impacts positive or negative)
What alternative approaches were there?
(briefly list any if applicable)
What feature flags were used to cover this change?
(briefly list any if applicable)
Does this PR introduce a breaking change?
(check only one)
What level of testing was included in the change?
(check all that apply)
Which logical domain(s) does this change affect?
(for bug fixes/features, be as precise as possible. ex. Authentication, Annotation History, Review Stream etc.)