-
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
Refactor AddressBook to AgentAssist #138
Refactor AddressBook to AgentAssist #138
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.
Overall LGTM! Code changes are all really comprehensive, I guess my main consideration is the few instances of comments where address book (the noun, not the class name) is still being used, and whether we should stick with that or update to AgentAssist
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.
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.
Couple more comments in this file use the name ab3 as well, so if the change is made those comment would have to be updated 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.
(´ཀ`」 ∠)
@@ -23,27 +23,27 @@ | |||
public class ModelManager implements Model { | |||
private static final Logger logger = LogsCenter.getLogger(ModelManager.class); | |||
|
|||
private final AddressBook addressBook; | |||
private final AgentAssist agentAssist; | |||
private final UserPrefs userPrefs; | |||
private final FilteredList<Person> filteredPersons; | |||
private final SimpleObjectProperty<Person> selectedPerson = new SimpleObjectProperty<>(); | |||
|
|||
/** | |||
* Initializes a ModelManager with the given addressBook and userPrefs. |
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.
Agent Assist is still an address book, so the comment makes sense but wondering if maybe we should change "given addressbook" to "given agentAssist"? What do y'all think, but it would mean we have to comb through for other comment references
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.
Thanks for catching that
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! Thanks for the refactor!
Just some changes regarding the use of ab3 in the .puml
files.
docs/diagrams/UndoRedoState5.puml
Outdated
class State1 as "<u>ab0:AgentAssist</u>" | ||
class State2 as "<u>ab1:AgentAssist</u>" | ||
class State3 as "<u>ab3:AgentAssist</u>" |
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.
Might want to refactor this part 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.
Thanks for catching that
Closes #137