Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Add basic edit/update functionality to Profiles #43

Merged
merged 7 commits into from Dec 9, 2016

Conversation

CGA1123
Copy link
Owner

@CGA1123 CGA1123 commented Nov 28, 2016

Adds both html and js responses allowing the editting/updating of
first_name, last_name, & location on a users profile.

Introduces the profile.edit & profile.edit.others permissions.

Removes the Rail/HttpPositionalArguments Cop from rubocop, this is
due to the fact that we're using rails-4.2.7.1 and that cop is
intended to catch behaviour that was deprecated in this PR
however that deprecation does not affect our current rails version.

Closes #13

Adds both `html` and `js` responses allowing the editting/updating of
`first_name`, `last_name`, & `location` on a users profile.

Introduces the `profile.edit` & `profile.edit.others` permissions.

Removes the `Rail/HttpPositionalArguments` Cop from `rubocop`, this is
due to the fact that we're using `rails-4.2.7.1` and that cop is
intended to catch behaviour that was deprecated in this [PR](rails/rails#18323)
however that deprecation does not affect our current `rails` version.
@CGA1123
Copy link
Owner Author

CGA1123 commented Nov 28, 2016

Still need to add some tests before this can be merged.

@CGA1123 CGA1123 added this to the Sprint 2 milestone Nov 30, 2016
@CGA1123
Copy link
Owner Author

CGA1123 commented Nov 30, 2016

NOTE: The specs for ProfilesController#edit do not currently test the AJAX response of the form, only the HTTP response.

@CGA1123
Copy link
Owner Author

CGA1123 commented Dec 1, 2016

Need to DRY up the tests probably, a lot of duplications...

EDIT: b69fd0c fbe9cad tried to do this, still a lot of duplication tho :/

@CGA1123 CGA1123 merged commit f41dc17 into develop Dec 9, 2016
@CGA1123 CGA1123 deleted the feature/edit-profiles branch December 9, 2016 16:43
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.

None yet

2 participants