Open nus-se-script opened 2 months ago
We are not showing the difference between AddCommand and EditCommand, but rather we are just showing the sequence diagram for edit and add individually and separately
And the two lines you included: model.setPerson(personToEdit, editedPerson); model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);
are not meant to be in the sequence diagram.
--
Note from the teaching team: This bug was reported during the Part II (Evaluating Documents) stage of the PE. You may reject this bug if it is not related to the quality of documentation.
Both Add command sequence diagram and Edit command sequence diagram are very identical to each other, with only the difference of the command input.
Edit:![image.png](https://raw.githubusercontent.com/nus-cs2103-AY2324S2/pe/master/files/cc3527ec-efe4-4c6e-b92a-449ab16ebf2a.png)
Add:![image.png](https://raw.githubusercontent.com/nus-cs2103-AY2324S2/pe/master/files/56211380-2e03-4e2f-84eb-6429840c8555.png)
However, there are some difference in the implementation of add command and edit command in the codes.
For example, edit command would call
in the EditCommand.java.
I think this is what sets a part edit command from add command and should be reflected in the sequence diagram.
[original: nus-cs2103-AY2324S2/pe-interim#594] [original labels: severity.Low type.DocumentationBug]