Open Tsenrae opened 7 months ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Bug with unarchiving a person at the specified index
Steps to reproduce:
unarchive +1
Expected: Person is unarchived as
+1
is a positive integerActual: Error message saying that person can't be unarchived
[original: nus-cs2103-AY2324S2/pe-interim#1935] [original labels: type.FunctionalityBug severity.Low]
[This is the team's response to the above 'original' bug]
In the UG, we have stated that the input must be a positive integer, and provided correct examples of valid indexes.
+
is not a number, but a symbol, and the input+1
is clearly not a valid input. Thus, the error message displayed is the expected behavior of our app.Furthermore, preventing the input
+1
does not cause any additional inconvenience for the user, as there exists an even more convenient input1
which allows the user to achieve the same outcome.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: This is not a duplicate of the bug about unarchiving a person at the specified index, as they are two totally different commands. This command is about deleting a person, and the other is about unarchiving a person. For this bug, you would have to change the execute
method in the DeleteCommand
class to account for inputs like +1
, and you would also have to change the Index
constructor to account for inputs like +1
. However, for the bug about unarchiving a person at the specified index, you would have to change the execute
method in the UnarchiveCommand
class to account for inputs like +1
, hence the changes cannot be fixed independently. Below are screenshots showing snippets of the classes:
Index Class
DeleteCommand Class
UnarchiveCommand Class
If you are talking about the other way to fix it, which is changing the error message to say must be a unsigned positive integer
, in this case, it also cannot be counted as a duplicate as you would have to change different error messages, for deleting a person, you would have to change the MESSAGE_USAGE
in the DeleteCommand
class, while for unarchiving a person, you would have to change the MESSAGE_USAGE
in the UnarchiveCommand
class. Below are screenshots showing snippets of the classes:
DeleteCommand Class
UnarchiveCommand Class
Thus, since the bugs cannot be fixed independently, they cannot be considered duplicates of each other.
Steps to reproduce:
delete +1
Expected: Person is deleted as
+1
is a positive integerActual: Error message saying that person can't be deleted