Skip to content

Commit

Permalink
Merge pull request #158 from AY2324S2-CS2103T-W12-2/delete-timing-dg
Browse files Browse the repository at this point in the history
Add `delete_timing` implementation and sequence diag
  • Loading branch information
blaukc authored Apr 15, 2024
2 parents 0fe64f3 + e3639a0 commit 1d292b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ The following is the sequence diagram for this example.

<img src="images/AddModuleTimingSequenceDiagram.png" />

### Deleting a ModuleTiming from a Student

Deleting a class from a student in ModContacts is done using the command `delete_timing i/1 m/CS2103T d/Mon st/0800 et/1200`

The entry point for this command is when the `LogicManager` parses the command, gets a `DeleteStudentModuleTimingCommand`,
and then executes it.

`DeleteStudentModuleTimingCommand` performs validations for valid Timings, and whether a student takes the module; then deletes the `ModuleTiming` from the designated
`Student` in the `FilteredStudentList` via `Model#deleteModuleTimingFromStudent`.

The following is the sequence diagram for this example.

<img src="images/DeleteModuleTimingSequenceDiagram.png" />


### \[Proposed\] Undo/redo feature

Expand Down
Binary file added docs/images/DeleteModuleTimingSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d292b0

Please sign in to comment.