Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User groups #12

Merged
merged 16 commits into from
Oct 28, 2018
Merged

User groups #12

merged 16 commits into from
Oct 28, 2018

Conversation

kmeyerhofer
Copy link
Collaborator

Adds the following functionality:

Groups

  1. A user can create a group.
  2. A user can view the group page.
  3. A user can edit the group information.
  4. A user can delete the group.
  5. A user can view the users belonging to a group.

Users

  1. A user can view their profile.
  2. A user can edit their First and Last name, Email, or Password, from either the /profile or /profile/:id paths.
  3. A user can edit their Email.
  4. A user can edit their Password.
  5. A user can view another user's profile (url: /profile/:id)

Dashboard

  1. Once a user is logged in, their default page is /dashboard which shows their groups they belong to and a link to create a new group

Copy link
Owner

@meyerhoferc meyerhoferc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kmeyerhofer Overall looks great. I had a few suggestions below. Please let me know if you wish to discuss further.

A couple of optional items:

  • adding group and user group records to seeds would be convenient for other devs
  • missing specs -- need these for every model and major feature items (e.g. creating a group and authorization around viewing user show pages)

app/controllers/dashboard_controller.rb Outdated Show resolved Hide resolved
app/controllers/groups_controller.rb Show resolved Hide resolved
app/controllers/groups_controller.rb Show resolved Hide resolved
app/controllers/groups_controller.rb Outdated Show resolved Hide resolved
app/controllers/users_controller.rb Show resolved Hide resolved
app/controllers/users_controller.rb Outdated Show resolved Hide resolved
app/views/groups/index.html.erb Outdated Show resolved Hide resolved
app/views/groups/show.html.erb Show resolved Hide resolved
app/views/users/index.html.erb Outdated Show resolved Hide resolved
config/routes.rb Show resolved Hide resolved
@meyerhoferc
Copy link
Owner

meyerhoferc commented Oct 23, 2018

Also forgot to mention -- accurate commit logs 👍

@kmeyerhofer
Copy link
Collaborator Author

The requested changes have been addressed and corrected.

@meyerhoferc
Copy link
Owner

Note on commit messages: the message generally should explain what the code change does, not the implementation or how the code makes that change.

e.g. "Adds a check for authorized user before displaying XYZ page." instead of "Adds a before_action for the XYZController show page to check for authorized user."

@meyerhoferc
Copy link
Owner

@kmeyerhofer Thank you for all of your work on this!

Documenting that the seeds file runs into a uniqueness validation error when running for me locally. Creating fewer user records seems to do the trick. I don't think you need to change it for this PR -- just making note of it.

I'm also getting a spec failure on spec/features/users/user_can_signup_spec.rb. Is this expected on this branch?

@kmeyerhofer
Copy link
Collaborator Author

I've made a note of the commit messages, thanks.

The seeds are fixed in branch #14 , the uniquness is definitely addressed there.

I just fixed the failing tests for spec/features/users/user_can_signup_spec.rb

@meyerhoferc meyerhoferc merged commit ae745f3 into master Oct 28, 2018
@kmeyerhofer kmeyerhofer mentioned this pull request Oct 28, 2018
@meyerhoferc meyerhoferc deleted the user-groups branch November 3, 2018 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants