Open PresleyChew opened 1 week ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Wrong format for optional paths for sequence diagram
This is the sequence diagram shown for AddCommandParser:
The arrow to model states "add if not duplicate", signifying an optional path which is only taken if user does not add a duplicate. However, this does not follow the correct notation for optional paths, which is shown below:
This makes it possibly confusing for the reader.
Perhaps we could follow this format instead?
[original: nus-cs2103-AY2425S1/pe-interim#1662] [original labels: severity.Low type.DocumentationBug]
[This is the team's response to the above 'original' bug]
We reject this for the following reason(s):
- It is mentioned here that using pseudocode for conditional statements does not violate any notational rules.
- We omitted low-level details to make our diagrams easy to understand for the reader, which warrants our use of pseudocode. Moreover, using the
opt
block will bring in low-level implementation details such as exception handling (for duplicates) which we do not intend to show as it may further confuse the reader. The omitting of these details also does not cause the reader to miss out on any important information.Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
Background
While the forward arrow can be used for Operation invoked and the mention of
Informal operation descriptions such as those given in the example below can be used, if more precise details are not required for the task at hand.
, it is not used for if conditions. Here the forward arrow showsadd if it is not a duplicate
. We should follow the notation taught in lecture if there is an optional path instead of trying to cram it into forward arrow meant for operation invoked.To further support, this cramming if conditions into forward arrow for operation invoked is incorrect as the return arrow may or may not return as the call may or may not happen.
Screenshot 2024-11-15 at 5.11.13 PM
Screenshot 2024-11-15 at 5.09.21 PM
Reason for Severity
Standard UML error severity as per lecture notes
Possible fix
Use proper optional path convention or consider using reference frame if it is too big.