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

Add Reviews to Subjects #597

Open
wants to merge 7 commits into
base: add-shoulda-matchers-gem
Choose a base branch
from

Conversation

PaoloCappelli
Copy link
Contributor

@PaoloCappelli PaoloCappelli commented Nov 19, 2024

Purpose

Add the ability to submit 1-5 stars reviews to a Subject.

Summary

  • Create new Review model that for each User and Subject will store a rating
  • Add average_rating column to Subject to store the average of all the reviews associated with it
  • Add logic to update the Subject's average_rating every time a Review associated with it changes
  • Add ReviewsController
  • Update the Subjects view to show and submit reviews for a particular subject

Guidance 👀

Before adding any system specs to test the new UI. I would like to know your thoughts on the current approach, what's missing and what's not necessary
##Demo

Screen.Recording.2024-11-20.at.6.57.59.PM.mov

@PaoloCappelli PaoloCappelli force-pushed the add-reviews-to-subjects branch 5 times, most recently from 7436f62 to fdd05ad Compare November 20, 2024 02:15
@PaoloCappelli PaoloCappelli marked this pull request as draft November 20, 2024 02:17
@PaoloCappelli PaoloCappelli force-pushed the add-reviews-to-subjects branch 2 times, most recently from dfc5c9b to d4cb4f7 Compare November 20, 2024 14:49
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.

1 participant