Closed Bug 1103192 Opened 10 years ago Closed 10 years ago

[Messages] replace Utils.extend by Object.assign

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g-v2.2 fixed)

RESOLVED FIXED
2.2 S2 (19dec)
Tracking Status
b2g-v2.2 --- fixed

People

(Reporter: julienw, Assigned: cvfergus, Mentored)

References

Details

(Whiteboard: [lang=js][good first bug])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
azasypkin
: review+
Details | Review
see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign

We can now use Object.assign directly instead of implementing a custom function.
I'd like to be assigned to this bug, could someone assign me please.
Hey William,

I'm glad you asked :)

You can find some startup information in https://github.com/julienw/gaia/blob/1082618-sms-readme/apps/sms/README.md, feel free to connect on IRC #gaia-messaging if you need anything!
Assignee: nobody → wjlawson6
Hello Julien and William,

I ran across this and thought it looked interesting and within my skill set (hopefully). Since the last comment here is three weeks old, I spent some time today getting set up and testing this patch as well as I'm able. I hope that's okay, I've never done any open source work before so I'm unsure of the etiquette.

Charley
Attached file Patch, attempt 1.
Attachment #8536913 - Flags: review?(felash)
(In reply to cvfergus from comment #3)
> Hello Julien and William,
> 
> I ran across this and thought it looked interesting and within my skill set
> (hopefully). Since the last comment here is three weeks old, I spent some
> time today getting set up and testing this patch as well as I'm able. I hope
> that's okay, I've never done any open source work before so I'm unsure of
> the etiquette.
> 
> Charley

Hey Charely,

I think you can take this one, need to improve my coding skills a little more before I can progress onto contributing even to bugs such as this. Thanks for the message.
Assignee: wjlawson6 → nobody
Thanks for the notice William; I don't know where you live, but it's probably easier to start as a beginner if you can join a Firefox OS hackathon somewhere :)
Assignee: nobody → cvfergus
Mentor: felash → azasypkin
Comment on attachment 8536913 [details] [review]
Patch, attempt 1.

I did a first look but didn't really look more than that, and I didn't test on the phone.

Oleg, can you take over this review? Especially if you can find other places where it could be appropriate to use Object.assign, please suggest :) I looked a EventDispatcher.mixin but I didn't find it was appropriate (because we're checking if the target exists).
Attachment #8536913 - Flags: review?(felash) → review?(azasypkin)
Comment on attachment 8536913 [details] [review]
Patch, attempt 1.

(In reply to Julien Wajsberg [:julienw] from comment #7)
> Comment on attachment 8536913 [details] [review]
> Patch, attempt 1.
> 
> I did a first look but didn't really look more than that, and I didn't test
> on the phone.
Looks good to me, and works on device as well.

> Oleg, can you take over this review? Especially if you can find other places
> where it could be appropriate to use Object.assign, please suggest :) I
> looked a EventDispatcher.mixin but I didn't find it was appropriate (because
> we're checking if the target exists).

Sure, but I don't see any other places where we can use Object.assign right away, without any refactoring :)

Hey Charley, nice job! To land the patch please do the following:

* Squash your commits into one;
* Append "r=azasypkin, julien" to the commit message;
* Update your PR with this squashed commit and wait until all test pass(try-server-hook should automatically add comment with link to the test results once you update PR);
* Add "checkin-needed" to the bug "Keywords:" section.

Thanks!
Attachment #8536913 - Flags: review?(azasypkin) → review+
Oleg,

Thanks for the directions, they were very helpful. I've done all of those things and "try-server-hook" posted a comment on the pull request with a "Results" link. Clicking on that link shows that there were no tests run which seems odd.

Charley
Keywords: checkin-needed
(In reply to cvfergus from comment #9)
> Oleg,
> 
> Thanks for the directions, they were very helpful. I've done all of those
> things and "try-server-hook" posted a comment on the pull request with a
> "Results" link. Clicking on that link shows that there were no tests run
> which seems odd.
> 
> Charley

No worries, you just need to wait a bit for them to appear :)
Removing checkin-needed for now, let's add it back once tests pass
Keywords: checkin-needed
Tests completed with 1 failure that I suspect (hope) is unrelated to the work I did. What should I do from here?
Yep, it's unrelated.

Thanks !
Keywords: checkin-needed
Master: https://github.com/mozilla-b2g/gaia/commit/47f570e11a26d75f37c6f86f703d66fdbc603275
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S2 (19dec)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: