Open nus-pe-bot opened 1 year ago
Thank you for bringing this to our attention.
However, I disagree with this issue. The undo command does not undo the list
and find
commands intentionally by design.
The undo
command was created to undo unintentional changes to the contact and session lists by the user.
Thus, undo
only undoes commands that directly modify the states of these lists. (e.g. add
, student-add
...)
list
and find
do not edit these lists whatsoever and only displays their contents.
There is no need to undo these commands as there are no mistakes made to undo.
--
Expected
The
undo
command should also undo thelist
andfind
commandsActual
The
undo
command does not undo them, which can lead to unexpected behaviour.Steps to Reproduce
list
commandundo
commandAn error is encountered.
[original: nus-cs2103-AY2223S2/pe-interim#4402] [original labels: severity.Low type.FunctionalityBug]