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

Allow bcc and adding search feature #40

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

Conversation

ankurjhawar
Copy link

No description provided.

Copy link
Owner

@gessnerfl gessnerfl left a 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)
Copy link
Owner

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) {
Copy link
Owner

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,
Copy link
Owner

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) {
Copy link
Owner

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

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.

None yet

2 participants