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

Movie view page #31

Merged
merged 10 commits into from
Jul 10, 2021
Merged

Movie view page #31

merged 10 commits into from
Jul 10, 2021

Conversation

mkrumholz
Copy link
Owner

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Rubocop has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

No movie view page exists.

Issue Number: #8

What is the new behavior?

  • Added Movie show page
  • Called movie details API along with cast(credits) and reviews
  • Created a MovieDbService to begin refactoring API calls out of the Movies controller
  • Created a Movie PORO to store movie information to be used in the view

Does this introduce a breaking change?

  • Yes
  • No

Other information

Please take a look at my design decisions and see if you agree with them! I'm not so sure about the Movie PORO but it does make the view look a lot nice. Definitely something I'm planning to ask Brian about on Monday.

@mkrumholz mkrumholz requested a review from EmmyMorris July 10, 2021 16:28
@mkrumholz mkrumholz self-assigned this Jul 10, 2021
movie_details = JSON.parse(response.body, symbolize_names: true)
Movie.new(movie_details)
end
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Great Job!! This looks awesome!

<h4>Author: <%= review[:author] %></h4>
<p><%= review[:content] %></p>
<% end %>
</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This also looks really good!

Copy link
Collaborator

@EmmyMorris EmmyMorris left a comment

Choose a reason for hiding this comment

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

This all looks great! Great job!

@EmmyMorris EmmyMorris merged commit ee31165 into main Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants