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

Update the review #244

Merged

Conversation

HCY123902
Copy link

@HCY123902 HCY123902 commented Nov 3, 2020

Update the review command, use case, and documentation.

Resolves #243

Comment on lines +569 to +653
* 1b1. The application shows that the stocking information of the book in some locations is not available.

Use case ends.

**Use case: UC06 - add the review for a book**

**MSS**

1. User requests to add a review record of a certain book.

2. The application adds the review to the review list of the book, and shows the new review list.

Use case ends.

**Extensions**

* 1a. The book specified by the user is not found in the current shown book list.

* 1a1. The application shows an error message that the book specified is not valid.

Use case ends.

* 1b. The review given by the user has an invalid format, with the rating or review content missing or having incorrect format or value.

* 1b1. The application shows an error message that the review given by the user is invalid and gives the suggestion on valid review.

Use case ends.

**Use case: UC07 - delete the review for a book**

**MSS**

1. User requests to delete a review record of a certain book.

2. The application deletes the review to the review list of the book, and shows the updated review list.

Use case ends.

**Extensions**

* 1a. The book specified by the user is not found in the current shown book list.

* 1a1. The application shows an error message that the book specified is not valid.

Use case ends.

* 1b. The book review specified by the user is not found in the review list of the book.

* 1a1. The application shows an error message that the review specified is not valid.

Use case ends.

**Use case: UC08 - edit the review for a book**

**MSS**

1. User requests to edit a review record of a certain book.

2. The application edits the review to the review list of the book, and shows the updated review list.

Use case ends.

**Extensions**

* 1a. The book specified by the user is not found in the current shown book list.

* 1a1. The application shows an error message that the book specified is not valid.

Use case ends.

* 1b. The book review specified by the user is not found in the review list of the book.

* 1a1. The application shows an error message that the review specified is not valid.

Use case ends.

* 1c. The new review given by the user has an invalid format, with the rating or review content missing or having incorrect format or value.

* 1c1. The application shows an error message that the review given by the user is invalid and gives the suggestion on valid review.

Use case ends.

* 1c. The new review given by the user is equivalent to the original review.

* 1c1. The application shows an error message that the review given by the user does not make changes to the original review and the value of the edited review needs to be different.
Copy link

Choose a reason for hiding this comment

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

LGTM

@davidsqf davidsqf merged commit 9f22274 into AY2021S1-CS2103-F09-3:master Nov 3, 2020
Copy link

@richardcom richardcom left a comment

Choose a reason for hiding this comment

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

The update of the reivew LGTM!

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.

Update the review content
3 participants