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

Fix mark and unmark commands #216

Merged
merged 18 commits into from
Nov 5, 2021
Merged

Fix mark and unmark commands #216

merged 18 commits into from
Nov 5, 2021

Conversation

Gordon25
Copy link
Collaborator

@Gordon25 Gordon25 commented Nov 2, 2021

  • fix bug in mark/unmark parser (unable to parser index > 9)
  • fix order at which contacts / events are marked
  • fix bugs in cunmark, enumark command test
  • make mark/unmark compatible with undo/redo
  • make esort compatible with mark events
  • fix bug with multiple marking of a single contact/ event
  • fix bug in mark and unmark parser that allows empty argument

@Gordon25 Gordon25 added type.Bug Something isn't working priority.High Should be resolved first, failing which, the project will not work type.Test More test cases is needed severity.High A flaw that affects most users and causes major problems for users labels Nov 2, 2021
@Gordon25 Gordon25 added this to the v1.4 milestone Nov 2, 2021
@Gordon25 Gordon25 added this to In progress in tP Project Dashboard via automation Nov 2, 2021
@Gordon25 Gordon25 self-assigned this Nov 3, 2021
Fix ordering operation of unmark and mark commands
@codecov
Copy link

codecov bot commented Nov 4, 2021

Codecov Report

Merging #216 (49d922b) into master (976076d) will increase coverage by 1.41%.
The diff coverage is 96.80%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #216      +/-   ##
============================================
+ Coverage     69.41%   70.83%   +1.41%     
- Complexity     1029     1064      +35     
============================================
  Files           129      129              
  Lines          3404     3442      +38     
  Branches        450      448       -2     
============================================
+ Hits           2363     2438      +75     
+ Misses          849      816      -33     
+ Partials        192      188       -4     
Impacted Files Coverage Δ
src/main/java/seedu/address/model/Model.java 100.00% <ø> (ø)
src/main/java/seedu/address/ui/ContactCard.java 0.00% <0.00%> (ø)
...n/java/seedu/address/ui/ContactCommandSummary.java 0.00% <ø> (ø)
src/main/java/seedu/address/ui/EventCard.java 0.00% <0.00%> (ø)
...ain/java/seedu/address/ui/EventCommandSummary.java 0.00% <ø> (ø)
...seedu/address/model/contact/UniqueContactList.java 93.84% <93.33%> (-1.24%) ⬇️
...ava/seedu/address/model/event/UniqueEventList.java 86.30% <93.75%> (+6.57%) ⬆️
src/main/java/seedu/address/model/event/Event.java 81.48% <94.11%> (+1.88%) ⬆️
...main/java/seedu/address/model/contact/Contact.java 89.90% <94.44%> (+1.01%) ⬆️
...u/address/logic/commands/contact/CEditCommand.java 94.87% <100.00%> (ø)
... and 19 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 976076d...49d922b. Read the comment docs.

# Conflicts:
#	src/main/java/seedu/address/model/Model.java
#	src/main/java/seedu/address/model/contact/Contact.java
#	src/main/java/seedu/address/model/event/Event.java
#	src/main/java/seedu/address/ui/ContactCard.java
#	src/test/java/seedu/address/logic/commands/contact/CAddCommandTest.java
#	src/test/java/seedu/address/logic/commands/contact/CMarkCommandTest.java
#	src/test/java/seedu/address/logic/commands/contact/CUnmarkCommandTest.java
#	src/test/java/seedu/address/logic/commands/event/EAddCommandTest.java
#	src/test/java/seedu/address/testutil/ContactBuilder.java
Gordon25 and others added 6 commits November 5, 2021 00:36
Add test cases for markparser
# Conflicts:
#	src/main/java/seedu/address/logic/commands/contact/CMarkCommand.java
#	src/main/java/seedu/address/logic/commands/event/EMarkCommand.java
#	src/main/java/seedu/address/model/ModelManager.java
#	src/test/java/seedu/address/logic/commands/ModelStub.java
# Conflicts:
#	src/main/java/seedu/address/model/ModelManager.java
#	src/main/java/seedu/address/model/event/UniqueEventList.java
#	src/test/java/seedu/address/logic/commands/ModelStub.java
@Gordon25 Gordon25 marked this pull request as ready for review November 5, 2021 05:15
@Gordon25 Gordon25 linked an issue Nov 5, 2021 that may be closed by this pull request
2 tasks
@Gordon25 Gordon25 removed a link to an issue Nov 5, 2021
2 tasks
@Gordon25 Gordon25 linked an issue Nov 5, 2021 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@chunweii chunweii left a comment

Choose a reason for hiding this comment

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

LGTM, except for a few issues:

  1. Remove the UG changes, since we are going to change it in the ug branch.
  2. There is a bug which will still mark an event/contact if there is an invalid index. cmark 100 1 will mark 1.
  3. If I enter emark or eunmark or cmark or cunmark by itself, nothing happens.
  4. See other comments

tP Project Dashboard automation moved this from In progress to Review in progress Nov 5, 2021
@chunweii chunweii self-requested a review November 5, 2021 07:30
Copy link
Collaborator

@chunweii chunweii left a comment

Choose a reason for hiding this comment

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

Some typo errors. There is another bug (See previous review point 3):

  1. If I enter emark or eunmark or cmark or cunmark by itself, nothing happens.

@Gordon25 Gordon25 changed the title Fix mark command and add tests Fix mark and unmark commands Nov 5, 2021
Copy link
Collaborator

@chunweii chunweii left a comment

Choose a reason for hiding this comment

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

LGTM

tP Project Dashboard automation moved this from Review in progress to Reviewer approved Nov 5, 2021
@chunweii chunweii merged commit 188d2f6 into master Nov 5, 2021
tP Project Dashboard automation moved this from Reviewer approved to Done Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment