-
Notifications
You must be signed in to change notification settings - Fork 113
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
[W5][T12-1]Zhang Chenxi #168
base: master
Are you sure you want to change the base?
Conversation
add groupPerson method in UniquePersonList class
add groupPrepare method
add the description of highlight(group) function
The grouping feature can be really useful :)You just need to add some tests! |
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.
You also need to update test cases (the expected.txt
and another test method like GroupCommandTest.java
) and the help
command (so that group
shows up when you type help
)
@@ -37,6 +37,8 @@ protected DuplicatePersonException() { | |||
|
|||
private final List<Person> internalList = new ArrayList<>(); | |||
|
|||
private final List<Person> groupedPersonList = new ArrayList<>(); |
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.
Perhaps add comments to groupedPersonList
and explain what it does and why do we need this?
Really nice enhancement! We can maybe use this enhancement for group related activities that we have in our mind for the final project. |
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.
Is your PR ready for review yet? Because I don't think the changes are doing what they supposed are to do. Also, please add test cases for your new function as well :)
@@ -111,6 +111,26 @@ Deletes the 2nd person in the address book. | |||
`delete 1` + | |||
Deletes the 1st person in the results of the `find` command. | |||
|
|||
== Highlighting a person : `group` | |||
|
|||
Deletes the specified person from the address book. Irreversible. + |
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.
This is wrong?
public CommandResult execute() { | ||
try { | ||
final ReadOnlyPerson target = getTargetPerson(); | ||
addressBook.removePerson(target); |
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.
Uhm this will remove the target person from address book?
@@ -15,6 +15,7 @@ | |||
import seedu.addressbook.commands.ClearCommand; | |||
import seedu.addressbook.commands.Command; | |||
import seedu.addressbook.commands.DeleteCommand; | |||
import seedu.addressbook.commands.GroupCommand; |
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.
This import is in wrong order since import statements are sorted alphabetically :)
No description provided.