-
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
Add reassign command #107
Add reassign command #107
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.
Looks good other than a suggestion that I think can be implemented.
@@ -14,6 +14,7 @@ | |||
import seedu.address.logic.commands.exceptions.CommandException; | |||
import seedu.address.model.Model; | |||
import seedu.address.model.assignment.Assignment; | |||
//import seedu.address.model.assignment.exceptions.AssignmentNotFoundException; |
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.
Maybe this can be removed if it's not needed.
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.
Good catch, will delete!
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Reassigns a worker to a new shift in the " | ||
+ "McScheduler by the index numbers used in the last worker and shift listings. " | ||
+ "\nParameters: " | ||
+ PREFIX_WORKER + "WORKER_INDEX (must be a positive integer) " |
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.
Would it be possible to allow the editing of the worker as well?
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.
Good point, will make the change!
Codecov Report
@@ Coverage Diff @@
## master #107 +/- ##
============================================
+ Coverage 59.26% 65.89% +6.63%
- Complexity 580 651 +71
============================================
Files 119 119
Lines 2251 2290 +39
Branches 264 276 +12
============================================
+ Hits 1334 1509 +175
+ Misses 846 703 -143
- Partials 71 78 +7
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.
LGTM!
The
reassign
command acts as an 'assignment edit'. Callingreassign
edits the Worker, Shift and Role of an Assignment.Testing will be added in separate PR
Resolves #92