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

Update MarkTaskCommand when task already marked #231

Merged

Conversation

lwlshawn
Copy link
Collaborator

@lwlshawn lwlshawn commented Oct 30, 2021

  • If attempting to mark an task that is already done,
    a new message is given to the user.
  • Have changed the function from setIsDone() to markDone(),
    since we do not allow undo of completion. The function will return
    a boolean hasChanged informing the caller whether or not there
    was a change made to the task status.
  • Testcases were updated
  • Resolves [PE-D] marktask #206

* If attempting to mark an task that is already done,
a new message is given to the user.
* Have changed the function from setIsDone() to markDone(),
since we do not allow undo of completion. The function will return
a boolean hasChanged informing the caller whether or not there
was a change made to the task status.
* Testcases were updated
@codecov-commenter
Copy link

Codecov Report

Merging #231 (6cfe69d) into master (b1295db) will increase coverage by 0.13%.
The diff coverage is 61.53%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #231      +/-   ##
============================================
+ Coverage     58.94%   59.08%   +0.13%     
- Complexity      679      681       +2     
============================================
  Files           134      134              
  Lines          2609     2610       +1     
  Branches        300      301       +1     
============================================
+ Hits           1538     1542       +4     
+ Misses          981      978       -3     
  Partials         90       90              
Impacted Files Coverage Δ
src/main/java/seedu/address/model/Model.java 100.00% <ø> (ø)
...rc/main/java/seedu/address/model/ModelManager.java 61.47% <0.00%> (+0.49%) ⬆️
src/main/java/seedu/address/model/TaskBook.java 62.50% <0.00%> (+2.50%) ⬆️
...c/main/java/seedu/address/model/task/TaskList.java 43.58% <0.00%> (ø)
...in/java/seedu/address/storage/JsonAdaptedTask.java 0.00% <0.00%> (ø)
.../seedu/address/logic/commands/MarkTaskCommand.java 85.71% <100.00%> (+2.38%) ⬆️
src/main/java/seedu/address/model/task/Task.java 85.71% <100.00%> (+0.86%) ⬆️
... and 1 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 b1295db...6cfe69d. Read the comment docs.

@lwlshawn lwlshawn linked an issue Oct 30, 2021 that may be closed by this pull request
Copy link

@ngchisern ngchisern left a comment

Choose a reason for hiding this comment

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

LGTM

@ngchisern ngchisern merged commit 001213d into AY2122S1-CS2103T-W08-3:master Oct 31, 2021
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.

[PE-D] marktask [PE-D] Marking a masked task does not change
3 participants