Closed
Bug 1342734
Opened 7 years ago
Closed 7 years ago
Remove legacy generator from calendar/providers/gdata/.
Categories
(Calendar :: Provider: GData, defect, P3)
Calendar
Provider: GData
Tracking
(Not tracked)
RESOLVED
FIXED
5.9
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file, 1 obsolete file)
20.92 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
Now gdata can use ES6 generator.
Assignee | ||
Comment 1•7 years ago
|
||
changed legacy generator to ES6 generator, and also replaced `throw new Task.Result(x)` to `return x`.
Attachment #8841300 -
Flags: review?(philipp)
Comment 2•7 years ago
|
||
Comment on attachment 8841300 [details] [diff] [review] Remove legacy generator from calendar/providers/gdata/. Review of attachment 8841300 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch, looks good! ::: calendar/providers/gdata/modules/gdataSession.jsm @@ +373,5 @@ > } > }, > > asyncPaginatedRequest: function(aRequest, onFirst, onEach, onLast) { > + return Task.spawn(function*() { Maybe you can turn some of these into using Task.async() instead?
Attachment #8841300 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Thank you for reviewing :) (In reply to Philipp Kewisch [:Fallen] from comment #2) > Comment on attachment 8841300 [details] [diff] [review] > Remove legacy generator from calendar/providers/gdata/. > > Review of attachment 8841300 [details] [diff] [review]: > ----------------------------------------------------------------- > > Thanks for the patch, looks good! > > ::: calendar/providers/gdata/modules/gdataSession.jsm > @@ +373,5 @@ > > } > > }, > > > > asyncPaginatedRequest: function(aRequest, onFirst, onEach, onLast) { > > + return Task.spawn(function*() { > > Maybe you can turn some of these into using Task.async() instead? yes, it would also work (while the diff becomes bigger, to reduce indentation)
Comment 4•7 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #3) > Thank you for reviewing :) > yes, it would also work (while the diff becomes bigger, to reduce > indentation) I don't mind this, if you want you could also attach a patch with the -w option. arai, are you still interested in making this change or should we push what you have (both is fine with me) ?
Flags: needinfo?(arai.unmht)
Assignee | ||
Comment 5•7 years ago
|
||
sorry, I forgot to update depending bug field. I was about to continue working on this (and bug 1340947) after bug 1342828 fixed, since I couldn't verify this patch without that (In reply to Philipp Kewisch [:Fallen] from comment #4) > (In reply to Tooru Fujisawa [:arai] from comment #3) > > Thank you for reviewing :) > > yes, it would also work (while the diff becomes bigger, to reduce > > indentation) > > I don't mind this, if you want you could also attach a patch with the -w > option. arai, are you still interested in making this change or should we > push what you have (both is fine with me) ? I'm going to apply the change.
Depends on: 1342828
Flags: needinfo?(arai.unmht)
Comment 7•7 years ago
|
||
All tests should run in a (try)build again, so do you plan to continue work on this issue?
Flags: needinfo?(arai.unmht)
Assignee | ||
Comment 8•7 years ago
|
||
thanks. I'm a bit busy now, I think I can continue from next week.
Assignee | ||
Comment 9•7 years ago
|
||
try run with updated patch: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=dd72badcd03f179b3b44cac65e0636cc1437ccf8 result on trunk for comparison: https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=6b0c4e39b0d680dee1cfa688bbf92b1ab8907566&filter-searchStr=linux%2064
Flags: needinfo?(arai.unmht)
Comment 10•7 years ago
|
||
Philipp asked three months ago if you want to use Task.async() in some places (comment#2) which you agreed to (comment#5). Is the try run with the patch attached to this bug or with an updated patch? We can also simply check in the existing patch and open a new bug for the remaining work.
Flags: needinfo?(arai.unmht)
Assignee | ||
Comment 11•7 years ago
|
||
here's the updated patch that uses Task.async, and this is for the try run.
Attachment #8841300 -
Attachment is obsolete: true
Flags: needinfo?(arai.unmht)
Attachment #8895034 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 12•7 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/7953ac6987eb Remove legacy generator from calendar/providers/gdata/. r=philipp
Updated•7 years ago
|
Target Milestone: --- → 5.9
You need to log in
before you can comment on or make changes to this bug.
Description
•