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

Standardise command input and parsing structure #120

Merged
merged 32 commits into from
Oct 18, 2020

Conversation

fyshhh
Copy link

@fyshhh fyshhh commented Oct 17, 2020

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

fyshhh and others added 16 commits October 15, 2020 19:32
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.
@fyshhh fyshhh added this to the v1.3 milestone Oct 17, 2020
@fyshhh fyshhh self-assigned this Oct 17, 2020
@codecov-io
Copy link

codecov-io commented Oct 17, 2020

Codecov Report

Merging #120 into master will increase coverage by 1.22%.
The diff coverage is 70.83%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ Complexity Δ
.../seedu/address/logic/commands/AddEventCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...edu/address/logic/commands/DeleteEventCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...seedu/address/logic/commands/EditEventCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...seedu/address/logic/commands/FindEventCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ava/seedu/address/logic/commands/IntroCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...seedu/address/logic/commands/ListEventCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...edu/address/logic/commands/SortContactCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...address/logic/parser/DeleteEventCommandParser.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...address/logic/parser/SortContactCommandParser.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
src/main/java/seedu/address/model/Model.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
... and 28 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f789747...697785c. Read the comment docs.

Copy link
Collaborator

@solkim-83 solkim-83 left a 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.

@fyshhh fyshhh added enhancement New feature or request priority.Medium Features of medium priority for development. labels Oct 17, 2020
Copy link
Collaborator

@chan-j-d chan-j-d left a 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.

@fyshhh
Copy link
Author

fyshhh commented Oct 18, 2020

Enumerations added (see conversation with @chan-j-d above for more details).

@fyshhh fyshhh merged commit 34e7397 into AY2021S1-CS2103T-W10-4:master Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority.Medium Features of medium priority for development.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardising command input and parsing structure across both contact and event functionalities
4 participants