Open Emberlynn-Loo opened 5 months ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Editing positive integer does not work
Steps to reproduce
- Input
edit +1 n/Alex Yeoh
Expected No error message to be shown because it doesn't state in the UG if it is unsigned or signed so both should be accepted
Actual Error message shown
[original: nus-cs2103-AY2324S2/pe-interim#3939] [original labels: type.FunctionalityBug severity.Low]
[This is the team's response to the above 'original' bug]
This is not a bug.
Furthermore, the UG had specified positive integers (1,2,3,...)
Reasonable users would not think of signed / unsigned when attempting to input an index.
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: The two bugs marked duplicates are completely separate in both command and features. I explicitly stated that this bug reports an issue for the index parameter in the addOrder command while the other bug marked duplicate has an issue in their index for the edit command. This bug is for the orders feature, while the other is for the contacts/persons feature.
Therefore, it is not the exact same bug. Furthermore, what is considered a duplicate as per the picture is if the bug cannot be fixed independently. 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: However, your code has the checks dependently:
The above is from your addOrderCommand class.
If you're talking about editing the error message, it also has to be done in different classes so it is not as simple as just changing the one in the Messages class.
Therefore, I disagree with your decision to mark these two bugs as duplicates, which by the way, you also did not explain.
Steps to reproduce
addorder +1 d/2020-01-01 r/100 chicken wings
Expected No error message to be shown, error message says positive integer not unsigned positive integer
Actual Error message shown