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

Add delete_timing #68

Merged
merged 8 commits into from
Apr 4, 2024
Merged

Add delete_timing #68

merged 8 commits into from
Apr 4, 2024

Conversation

AdityaB4
Copy link

@AdityaB4 AdityaB4 commented Apr 4, 2024

Fixes #54.

Uses the same command format as add_timing.

@AdityaB4 AdityaB4 added this to the v1.3 milestone Apr 4, 2024
Copy link

@blaukc blaukc left a 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

Comment on lines 67 to 70
// TODO: check if validation is needed
// if (model.doesStudentModuleTimingClash(studentToModify, moduleTiming)) {
// throw new CommandException(MESSAGE_MODULE_TIMING_CLASH);
// }
Copy link

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

Copy link
Author

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!

Comment on lines 37 to 38
public static final String MESSAGE_MODULE_TIMING_CLASH =
"There is a clash in module timings";
Copy link

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

@blaukc blaukc modified the milestones: v1.3, v1.3b Apr 4, 2024
@AdityaB4 AdityaB4 force-pushed the add-delete-timing branch from 60e3e95 to 1213415 Compare April 4, 2024 15:43
@AdityaB4 AdityaB4 merged commit 8a223f5 into master Apr 4, 2024
0 of 2 checks passed
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.

As a user, I can remove class timings of my friend's module
2 participants