-
Notifications
You must be signed in to change notification settings - Fork 4
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
Modify existing feature: add member details (add) #46
Modify existing feature: add member details (add) #46
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.
Understandably, this renaming of address to telegram is rather problematic and I apologise for many repeated comments on the same issue (mostly just to mark and flag the issues so we can check if it has been resolved later on)
Here are some common issues I found:
- Wild card imports
- Address book accidentally refactored into telegram book
- Forgetting to rename address value to telegram handle value. e.g. there are still parts where telegram handles are filled with the String value
"4th street"
- Error messages not renamed and the value not changed
- address.png not updated to telegram.png (also change the picture to updated ui)
- Several methods name are still not updated and the parameters of certain methods are not updated as well. e.g. setAddress
There might be more things I missed out that I didn't flag out in the review, please be careful and meticulous when refactoring. Once again, I understand this thing is quite a pain and there are many things to change and hard to catch, so it would be best if we all tried to catch the loose ends (5 pairs of eyes are better than 1 pair 👀 👀 👀 👀 👀 )
Please build and run tests before pushing into the master to ensure that you pass the CI. Note the team repo only does checkstyle and tests and doesn't track codecov in the ci.
 | ||
 |
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 don't think you renamed the address.png
to telegram.png
Since you're on this, perhaps you can change the address.png
file to telegram.png
and use this image that has the updated ui mockup
docs/tutorials/RemovingFields.md
Outdated
"address": "4th street" | ||
"telegram": "4th street" |
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.
Needs update
docs/tutorials/TracingCode.md
Outdated
3. Save the address book in the CSV format instead | ||
3. Save the telegram book in the CSV format instead |
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.
Be careful not to accidentally refactor address book into telegram book. We should probably rename address book to ForYourInterest some time soon.
docs/tutorials/TracingCode.md
Outdated
6. Add a new entity to the address book | ||
6. Add a new entity to the telegram book |
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.
Be careful not to accidentally refactor address book into telegram book
public void setAddress(Telegram telegram) { | ||
this.telegram = telegram; |
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.
Please refactor the name of this method as well to something like setTelegram
import seedu.address.model.person.*; | ||
import seedu.address.model.person.Telegram; |
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.
Wild card import
import seedu.address.model.person.*; | ||
import seedu.address.model.person.Telegram; |
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.
Wild card
address = new Address(DEFAULT_ADDRESS); | ||
telegram = new Telegram(DEFAULT_ADDRESS); |
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.
DEFAULT_ADDRESS to DEFAULT_TELEGRAM
@@ -45,7 +42,7 @@ public PersonBuilder(Person personToCopy) { | |||
name = personToCopy.getName(); | |||
phone = personToCopy.getPhone(); | |||
email = personToCopy.getEmail(); | |||
address = personToCopy.getAddress(); | |||
telegram = personToCopy.getAddress(); |
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.
getTelegram()
public PersonBuilder withAddress(String address) { | ||
this.address = new Address(address); | ||
this.telegram = new Telegram(address); |
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.
Update the method name and parameter name. withTelegram
, String telegram
, this.telegram = new Telegram(telegram)
@yongxiangng |
Fix issue for refactoring address -> telegram
add
command to take telegram handles instead of addressCloses #33