-
Notifications
You must be signed in to change notification settings - Fork 5
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
Email Command #57
Email Command #57
Conversation
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
============================================
- Coverage 70.80% 70.41% -0.39%
- Complexity 397 400 +3
============================================
Files 74 75 +1
Lines 1298 1315 +17
Branches 129 130 +1
============================================
+ Hits 919 926 +7
- Misses 337 346 +9
- Partials 42 43 +1
Continue to review full report at Codecov.
|
StringBuilder concatenatedEmails = new StringBuilder(); | ||
List<Student> studentList = model.getFilteredStudentList(); | ||
|
||
for (Student stu : studentList) { |
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.
I think maybe we can use student
instead of stu
to improve readability
} | ||
|
||
// third layer: check final message returned to user | ||
String intendedMessage = Arrays.stream(emails).reduce("", (acc, el) -> acc + el + ";"); |
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.
Possibly change the use of `acc' and 'el' here too
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.
Some small changes for readibility. Otherwise, LGTM! 🥇
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.
Yeap looks good! I would agree with choon wei that using student instead of stu would be better in this case. Other than that, looks good.
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.
LGTM
Made changes mentioned by @YungWeezy @enhao25, merged! 🎉 |
Resolves #15 - get all emails command via
emails
To all:
Let me know if the command
emails
is suitable, i was consideringlist_emails
, but seems to be too long andemails
might be faster to type.This command also incorporates the copy to clipboard feature when they click on the result textarea/textbox. It will also copy when the user clicks for other commands, not sure if it'll be disruptive to the user in the future. If so, perhaps we can change it to double click? or other kind of available actions in javaFX. Think it's okay if we don't want this "copy to clipboard" feature as well since there's the default copy alr.
Let me know what y'all think! 📈