-
Notifications
You must be signed in to change notification settings - Fork 4
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 delete_timing
#68
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.
Validation should be added for the delete. I feel like validation is a feature as it changes the behaviour. Otherwise lgtm
// TODO: check if validation is needed | ||
// if (model.doesStudentModuleTimingClash(studentToModify, moduleTiming)) { | ||
// throw new CommandException(MESSAGE_MODULE_TIMING_CLASH); | ||
// } |
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.
I believe this should be a validation to check if the module timing exists in the Student
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.
Added this in, thanks Brandon!
public static final String MESSAGE_MODULE_TIMING_CLASH = | ||
"There is a clash in module timings"; |
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.
This can be removed/changed to smth else
60e3e95
to
1213415
Compare
Fixes #54.
Uses the same command format as
add_timing
.