-
Notifications
You must be signed in to change notification settings - Fork 92
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
Allow bcc and adding search feature #40
base: main
Are you sure you want to change the base?
Allow bcc and adding search feature #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please check my comments
@@ -24,6 +24,10 @@ | |||
@Basic(optional = false) | |||
private String toAddress; | |||
|
|||
@Column(name = "bcc_address", length = 255, nullable = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it make sense not only to add BCC but also CC address field?
|
||
public class EmailSpecification { | ||
|
||
public static Specification<Email> textInAllColumns(String text, Set<String> fields) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test is missing
@@ -38,6 +44,37 @@ public String getAll(@RequestParam(value = "page", defaultValue = "0") int page, | |||
return getAllEmailsPaged(page, size, model); | |||
} | |||
|
|||
@GetMapping({ "/search" }) | |||
public String search(@RequestParam(value = "page", defaultValue = "0") int page, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit and integration test is missing
return searchedEmailsPaged(page, size, searchQuery, model); | ||
} | ||
|
||
private String searchedEmailsPaged(int page, int size, String searchQuery, Model model) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method is only used in search and could be embedded into search
No description provided.