-
Notifications
You must be signed in to change notification settings - Fork 16
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
Ports - Kasey, Shamira, Alex, Angela #75
base: master
Are you sure you want to change the base?
Conversation
This reverts commit d15f648.
Created homepage (root)
Fixed logout working on OAuth testing.
Order controller - basic controller and homepage stuff
homepage css
fixed prev and next arrows
bEtsyWhat We're Looking ForManual testing
Code Review
Overall FeedbackGreat work overall! You've built a fully functional web store from top to bottom. This represents a huge amount of work, and you should be proud of yourselves!. I am particularly impressed by the way that you had some nice styling (good front page), and had good test coverage. You also seemed as a team to work really well together. You also had a pretty smooth checkout process. I do see some room for improvement around more security as I was able to "hack"your site. Spending some time playing gremlin user would be a good idea. You also didn't get to categories or reviews, except for viewing categories. Your Heroku also won't let me log in (local works). Lastly you do need more through model testing and moving more business logic into the model. I suggest creating an add-to-order method as a model method to either product or order. bEtsy is a huge project on a very short timeline, and this feedback should not at all diminish the magnitude of what you've accomplished. Keep up the hard work! Only the person who submitted the PR will get an email about this feedback. Please let the rest of your team know about it. |
resources :products, except: [:show] | ||
end | ||
|
||
resources :categories, only: [:show] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No way to create a category?
|
||
resources :categories, only: [:show] | ||
|
||
get "/products", to: "products#index", as: "products" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not do resources for products
|
||
get "/products", to: "products#index", as: "products" | ||
get "/products/:id", to: "products#show", as: "product" | ||
patch "/users/:user_id/products/:id/retire", to: "products#retire", as: "product_retire" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have unnecessary route parameters for this route.
<% @items.each_with_index do |item, i| %> | ||
<div class="item-info"> | ||
<img src= <%= Product.find_by(id: item.product_id).photo_url %> > | ||
<p><%= i + 1 %>. <%= link_to Product.find_by(id: item.product_id).name, product_path(item.product_id) %> </p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could just do:
<%= image_tag item.product.photo_url, "alt": item.product.name %>
<%= i + 1 %> <%= link_to item.product.name, product_path(item.product_id) %>
it "creates new order and holds associated order_items if order doesnt not already exist" do | ||
get cart_path | ||
|
||
expect(session[:order_id]).must_equal Order.last.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be clear, the new order can't be guaranteed to be the last one.
end | ||
|
||
it "updates the quantity for correct orderitem when an existing orderitem is added to (via product#show)" do | ||
post add_item_path(product.id), params: {quantity: 1} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this test is working given your running instance in Heroku.
bEtsy
Congratulations! You're submitting your assignment! These comprehension questions should be answered by all members of your team, not by a single teammate.
Comprehension Questions