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

added review feature #458

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added review feature #458

wants to merge 1 commit into from

Conversation

akshjswl
Copy link

Description

A clear and concise description of what the PR does.
Users can submit reviews for books they have read. This includes a star rating (1 to 5 stars) and a text review, allowing users to share their opinions and experiences.

Related Issues

Link any related issues using the format Fixes #issue_number.
This helps to automatically close related issues when the PR is merged.

Changes

List the detailed changes made in this PR.
Implemented a new API endpoint POST /api/reviews/review that allows users to submit reviews for books, including a rating and a text review.
Created a corresponding frontend form for users to enter their ratings and reviews.

test cases:
Test Review Submission:

Go to the book detail page of any book.
Enter a rating (1-5) and a review in the submission form.
Click the submit button.
Verify that:
A success message appears.
The review is displayed under the book's details.
Test Review Submission:
Go to the book detail page of any book.
Enter a rating (1-5) and a review in the submission form.
Click the submit button.
Verify that:
A success message appears.
The review is displayed under the book's details.
Test Review Retrieval:

After submitting a review, refresh the page.
Check that all submitted reviews for the book are displayed correctly.

Additional Context

Any additional context or information that reviewers should be aware of.

  • The implementation involves the creation of a new reviews table in the database to store review data. Each review links to the corresponding user and book through their IDs, ensuring that the reviews are associated correctly.

Checklist

Make sure to check off all the items before submitting. Mark with [x] if done.

  • [ x ] I have performed a self-review of my code
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [ x ] My changes generate no new warnings
  • [ x ] I am working on this issue under GSSOC

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Trisha-tech
Copy link
Owner

Description

A clear and concise description of what the PR does. Users can submit reviews for books they have read. This includes a star rating (1 to 5 stars) and a text review, allowing users to share their opinions and experiences.

Related Issues

Link any related issues using the format Fixes #issue_number. This helps to automatically close related issues when the PR is merged.

Changes

List the detailed changes made in this PR. Implemented a new API endpoint POST /api/reviews/review that allows users to submit reviews for books, including a rating and a text review. Created a corresponding frontend form for users to enter their ratings and reviews.

test cases: Test Review Submission:

Go to the book detail page of any book. Enter a rating (1-5) and a review in the submission form. Click the submit button. Verify that: A success message appears. The review is displayed under the book's details. Test Review Submission: Go to the book detail page of any book. Enter a rating (1-5) and a review in the submission form. Click the submit button. Verify that: A success message appears. The review is displayed under the book's details. Test Review Retrieval:

After submitting a review, refresh the page. Check that all submitted reviews for the book are displayed correctly.

Additional Context

Any additional context or information that reviewers should be aware of.

  • The implementation involves the creation of a new reviews table in the database to store review data. Each review links to the corresponding user and book through their IDs, ensuring that the reviews are associated correctly.

Checklist

Make sure to check off all the items before submitting. Mark with [x] if done.

  • [ x ] I have performed a self-review of my code
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [ x ] My changes generate no new warnings
  • [ x ] I am working on this issue under GSSOC

Kindly add some screenshot or screen recording of the features you have made and resolve the conflict @akshjswl
added Forgot Password Features by Mdraza78 · Pull Request #456 · Trisha-tech_OnlineBookSales - Google Chrome 10_13_2024 9_43_45 PM

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.

[Feature Request]: User Review
2 participants