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

Wish list #13

Merged
merged 43 commits into from
Nov 3, 2018
Merged

Wish list #13

merged 43 commits into from
Nov 3, 2018

Conversation

kmeyerhofer
Copy link
Collaborator

@kmeyerhofer kmeyerhofer commented Oct 2, 2018

This PR's base is based on PR #12
This PR adds the following features:

Groups

  1. When creating a group, the owning user has a wish list created with their id and the group's id.
  2. Groups hold the nested resources of lists and items within the config/routes.rb file.

Lists

  1. A list references a group and a user.
  2. A list is visible on the group page, next to each user. Wish list in group #4
  3. A list can be referenced by many items.

Items #3

  1. An item references a list.
  2. An item has full CRUD functionality, editable by its owner only, but viewable by anyone.

Tests

  1. Some tests about logging in and users have been updated. (More testing to continue.)

@meyerhoferc meyerhoferc self-requested a review October 28, 2018 18:45
@meyerhoferc
Copy link
Owner

Why is this PR against user-groups instead of master?

@kmeyerhofer kmeyerhofer changed the base branch from user-groups to master October 28, 2018 19:14
@kmeyerhofer kmeyerhofer mentioned this pull request Oct 28, 2018
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.

Hi @kmeyerhofer, thank you for all of your work on this! I have some inline comments and questions. Overall looks well done. This is just code review. I plan to do some functional testing as well and will make separate comments on this PR for that.

I couldn't make an inline comment for this: Why is there an empty file for app/views/items/destroy.html.erb?

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/groups_controller.rb Show resolved Hide resolved
app/controllers/lists_controller.rb Outdated Show resolved Hide resolved
app/controllers/users_controller.rb Show resolved Hide resolved
app/controllers/groups_controller.rb Outdated Show resolved Hide resolved
app/models/group.rb Outdated Show resolved Hide resolved
app/models/item.rb Outdated Show resolved Hide resolved
app/views/groups/show.html.erb Outdated Show resolved Hide resolved
@meyerhoferc
Copy link
Owner

meyerhoferc commented Oct 29, 2018

Functional review: ( I will add in GH issues for each of these )

  • Missing: displaying error messages in forms #15
  • should any user be able to see any group? #16
  • should any user be able to see any user? #16
  • redirect to root if not logged in #17
  • users can add items to each other’s lists... #18

…d update, preventing unauthorized modification.
@kmeyerhofer
Copy link
Collaborator Author

The recent commits address all the comments made above.

Issues #17 and #18 has been fixed and addressed. application_controller.rb has helper methods to check if a user is logged in, and if a user is allowed to modify an Item or Group.

@meyerhoferc meyerhoferc merged commit 7968ac4 into master Nov 3, 2018
@meyerhoferc meyerhoferc deleted the wish-list 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