-
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
Standardise command input and parsing structure #120
Standardise command input and parsing structure #120
Conversation
AddressBook was chosen as it is largely a separate implementation from ReadOnlyAddressBook unlike Model. As such, changing the underlying functionality does not significantly affect the rest of the program, especially other stubs that have been implemented.
As the commands only interact with the Model class, Model must contain the method getPersonsWithTag(Tag).
When a Tag does not exist in the TagManager, an empty Set will be returned instead of null. To complement this, when removing Person objects from a Tag in TagManagerImpl, if the Set becomes empty, the key is deleted.
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
============================================
+ Coverage 56.88% 58.11% +1.22%
- Complexity 457 494 +37
============================================
Files 93 97 +4
Lines 1751 1874 +123
Branches 205 214 +9
============================================
+ Hits 996 1089 +93
- Misses 705 730 +25
- Partials 50 55 +5
Continue to review full report at Codecov.
|
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.
looks good, thanks for doing them up.
…into update-Input-Structure
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.
Looks good for the most part. Would be nice to hear your opinions on my suggestions.
src/main/java/seedu/address/logic/commands/AddContactCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/seedu/address/logic/parser/AddressBookParser.java
Outdated
Show resolved
Hide resolved
Enumerations added (see conversation with @chan-j-d above for more details). |
Standardised references to contact-related commands and updated the input and parsing structure by changing
AddressBookParser
's regex parsing structure. Many test cases were changed to adopt this new parsing structure. Resolves #99