Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

fix(users): Incorrect UsersService injection #1283

Merged
merged 3 commits into from
Apr 29, 2016

Conversation

t-jennings
Copy link
Contributor

Updated edit profile controller to use the users service correctly. Edit profile now working. Closes #1282.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 70.615% when pulling 48db454 on t-jennings:fix-users-edit-profile-controller into 8da3725 on meanjs:master.

@lirantal
Copy link
Member

I can confirm that this is indeed a bug in latest master, thanks @t-jennings
Fix works ok.

@lirantal lirantal self-assigned this Mar 28, 2016
@lirantal lirantal added this to the 0.5.0 milestone Mar 28, 2016
@mleanos
Copy link
Member

mleanos commented Mar 28, 2016

LGTM. Other than the commit message. @t-jennings Could you change it to something like fix(users): Incorrect UsersService injection?

Also, it doesn't look like we have coverage here for the Edit Profile route. Would it be possible to add something to this PR? I'm fine with merging this in as is, since it's a small change & fixes a bug. However, we should start building out our test coverage in these area's.

@ilanbiala
Copy link
Member

@mleanos it would be nice to get a test for that to increase our coverage.

@t-jennings t-jennings changed the title fix(bug in edit profile controller) fix(users): Incorrect UsersService injection Mar 28, 2016
@t-jennings
Copy link
Contributor Author

Updated title to follow convention. I won't be able to provide a test unfortunately, not familiar enough with testing yet.

This is my first PR so it would be awesome if this got merged.

@mleanos
Copy link
Member

mleanos commented Mar 28, 2016

@t-jennings That's understandable about the test. I think it's ok for this to be merged without an accommodating test. @ilanbiala I'm also not opposed to submitting a test myself to this branch. @t-jennings If I submitted a pull request to this branch, would you be able to merge it in?

Also, we're looking for the actual git commit message to be updated. Not the title of the PR.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 70.615% when pulling 69108aa on t-jennings:fix-users-edit-profile-controller into 8da3725 on meanjs:master.

@t-jennings
Copy link
Contributor Author

Added commit with correct format for commit message. @mleanos , if you want to submit a PR to add testing I can merge it in.

@ilanbiala
Copy link
Member

@mleanos adding a test to this via PR sounds good.

@mleanos
Copy link
Member

mleanos commented Apr 9, 2016

@ilanbiala @t-jennings I've submitted a PR to this PR's branch.

Another thing I noticed about the Edit Profile Controller, is that it's injecting the $location service, but not using it. We can probably get rid of it. @t-jennings Could you remove it?

@ilanbiala
Copy link
Member

Any movement on this?

@mleanos
Copy link
Member

mleanos commented Apr 28, 2016

@ilanbiala @t-jennings We can merge this in as is, and I'll add my test in a separate PR. This is a pretty simple PR, and fixes a bug. So it might be best to just get it merged. WDYT?

See t-jennings#1 for the suggested test coverage.

@ilanbiala ilanbiala assigned mleanos and unassigned lirantal Apr 29, 2016
@ilanbiala
Copy link
Member

SGTM.

@mleanos mleanos merged commit 5137214 into meanjs:master Apr 29, 2016
mleanos added a commit to mleanos/mean that referenced this pull request May 2, 2016
Adds client-side tests for the Users Edit Profile client controller.

1) should have user context
2) should update the user profile
3) should set vm.error if error

Related meanjs#1283
mleanos added a commit that referenced this pull request Jun 25, 2016
Adds client-side tests for the Users Edit Profile client controller.

1) should have user context
2) should update the user profile
3) should set vm.error if error

Related #1283
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants