Open yokester98 opened 2 years ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Undo function undoes multiple actions even when not in command chain
After adding a person to the app, I used the
pay
command, followed by theundo
command. This resulted in both theadd
andpay
command being undone, when it should only have undone thepay
command.Steps to reproduce bug:
add n/balakrishnan p/123123 e/123@nus.edu a/NUS
pay 1
undo
[original: nus-cs2103-AY2122S2/pe-interim#351] [original labels: type.FunctionalityBug severity.High]
[This is the team's response to the above 'original' bug]
No details provided by team.
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: Whilst this two issues are on the same undo
command, how certain is the team that by fixing 1 issue, the other issue is automatically fixed?
These are two different cases where different commands are executed first before using the undo
command. For example, in this issue, the addMembership
command was tested and deemed to be faulty. However, in the other issue, the add
and the pay
commands were tested and deemed to be faulty. Furthermore, I have realised that not every command faced this undo
issue. Hence, it may not be accurate to deem that these are duplicates as they are caused by independent commands (addMembership vs add and pay).
Team chose [severity.Medium
]
Originally [severity.High
]
Reason for disagreement: [replace this with your explanation]
According to the UG, the undo function does the following:
I attempted to use multiple
addMembership
command in separate commands (not command chain), followed by a singleundo
, which resulted in all of the previousaddMembership
being undone as well. This does not follow what the function is supposed to do, which is to undo last modification made to the clients list.Steps to reproduce the bug:
addMembership 1 m/gold d/2022-02-03
addMembership 2 m/gold d/2022-02-03
addMembership 3 m/gold d/2022-02-03
undo