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

SD/feat#64 Added book search #65

Merged
merged 1 commit into from
Aug 20, 2023
Merged

SD/feat#64 Added book search #65

merged 1 commit into from
Aug 20, 2023

Conversation

sarajaned
Copy link
Collaborator

  • by title and author initially
  • used JPA Specification

@sarajaned sarajaned requested a review from JaafarF August 19, 2023 21:00
Copy link
Collaborator

@JaafarF JaafarF left a comment

Choose a reason for hiding this comment

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

Globally good job, I will accept the PR, well done.

I have couple of points that can be dealt with in a separate Fix Branch:

  • Search feature: the query term is case sensitive, if I have a book of author 'Smith', and I make a search with the query 'smith', no results are returned. Also the tests don't detect this bug.

  • In BookService: this String literal is duplicated "Book with id [%s] not found." , we can put it in a constant.

  • In BookController: ResponseEntity<?> Generic wildcard (question mark) types should not be used

@JaafarF JaafarF merged commit 2ed162d into main Aug 20, 2023
1 check passed
@sarajaned sarajaned linked an issue Aug 20, 2023 that may be closed by this pull request
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.

Admin / Customer: Search books
2 participants