Queues - Cara and Allison - VideoStoreAPI#7
Open
Allison-Northrop wants to merge 41 commits intoAda-C7:masterfrom
Open
Queues - Cara and Allison - VideoStoreAPI#7Allison-Northrop wants to merge 41 commits intoAda-C7:masterfrom
Allison-Northrop wants to merge 41 commits intoAda-C7:masterfrom
Conversation
…to DRY up controller
…ler error handling
…eck a move in and out
…me movies multiple times
Video StoreWhat We're Looking For
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Video Store API
Congratulations! You're submitting your assignment!
If you didn't get to the functionality the question is asking about, reply with what you would have done if you had completed it.
Comprehension Questions
|
| Describe a set of positive and negative test cases you implemented for a model. | Positive case: a movie could be created with all the required attributes. Negative case: It can't be created without a title. |
| Describe a set of positive and negative test cases you implemented for a controller. |Movie Controller: Positive case: For the show method it responded positively when given an existing movie title. Negative case: it responded with not found when given a movie title that didn't exist. |
| How does your API respond when bad data is sent to it? | It renders a bad request or not found and provides details within the json error message. |
| Describe one of your custom model methods and why you chose to wrap that functionality into a method. | Movie.available_inventory: We chose to create this method so that when someone checked out a movie, the actual inventory wouldn't go down in the database, but the available inventory that someone could potentially check out decreased. |
| Do you have any recommendations on how we could improve this project for the next cohort? | |
| Link to Trello | ...our in person communication was on point 😇 |
| Link to ERD | on whiteboard |