-
Notifications
You must be signed in to change notification settings - Fork 13
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
Queues - Allison, Sahana, Marisol, Tehut - Andy's Kloset #24
base: master
Are you sure you want to change the base?
Conversation
Internal PR #3
…litchy issues for still some unknown reason. sometimes it passes if the terminal is restarted.
bEtsyWhat We're Looking For
Routes This route appears to be unnecessary: How could this route be more restful? There's A LOT of routes, are you using all of them? Nix any not being used, even when using the resources helper. CRUD I've run into issues with editing a product - when I am presented with the form, it's another product Displaying Errors When submitting the form for an order, I did not have any errors reported to me when I tried to submit it - ended up being the limit of 4 on the CC. I did not have errors reported to me when saving a new product was unsuccessful. After looking in the code, I see a lot of flash messages being set after a render or redirect - that code will not be executed. It should be before calling render or redirect. Logic in Models Order view in merchant has logic that should be in a model method, to calculate revenue See Products#Create below. TESTS Controller Testing Merchants - Make sure to change title of blocks, ex: "displays a book that exists". NEW isn't redirecting, misleading test name. Redirecting to the new path only happens in create, when a resource does not save successfully. Should have more tests for create, to test that it will not save when specific fields are missing - instead of having one test that misses all of the required fields. order_products - CREATE, EDIT and UPDATE missing negative cases. DELETE not complete. orders - Summary, Destroy, edit, create, new, show and index are all missing negative cases. When creating or updating, have specific tests for each required field, to fail if they are missing. products - new, edit and destroy missing negative cases. reviews - new does not have negative case. HTML Some areas could use better tags, like in products index - the image isn't a section, should use div. Each product isn't an aside, often these items are still seen as a list and should be
Some content does not have tags around it, like in products show. The content in show (merchants and products) should have it's own tags, like Or an heading tag. The are not necessary if each of those bits of content were wrapped in an element. Check for rouge tags, like products show has a on line 3. Some pages missing sectioning tags all together, ex: reviews show, Be mindful of indentation (like in order_summary, categories index). Products CREATE: The iteration of the list of category ids could be done within the add_category method. You had the right idea with wrapping the functionality into the add_category method, but keep all the logic in the model method, including the iteration. DESTROY Does |
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