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

Refactor AddressBook to AgentAssist #138

Merged
merged 5 commits into from
Oct 26, 2024

Conversation

FionaQY
Copy link

@FionaQY FionaQY commented Oct 25, 2024

Closes #137

@FionaQY FionaQY added this to the v1.5 milestone Oct 25, 2024
@FionaQY FionaQY self-assigned this Oct 25, 2024
Copy link

@colinhia colinhia left a 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
Wondering if the name of the logger should be updated to be perhaps AA

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

Copy link
Author

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.

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that

itsme-zeix
itsme-zeix approved these changes Oct 25, 2024
Copy link

@itsme-zeix itsme-zeix left a 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.

Comment on lines 10 to 12
class State1 as "<u>ab0:AgentAssist</u>"
class State2 as "<u>ab1:AgentAssist</u>"
class State3 as "<u>ab3:AgentAssist</u>"

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that

@FionaQY FionaQY merged commit 9973876 into AY2425S1-CS2103T-T14-4:master Oct 26, 2024
3 checks passed
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.

Refactor AddressBook to AgentAssist
3 participants