Open awhb opened 10 months ago
This feature flaw was identified in the PE dry run, but because of the feature freeze it was unable to be changed. The feature flaw is mentioned in the UG, which states how an invalid prefix is allowed but ignored and the sort command is still executed. In this case, bsort t/a
does the default sort bsort
, ignoring the invalid prefix. The 'planned enhancements' section of the DG also mentions about better error handling of invalid prefix inputs like these in future iterations of the product, to amend this feature flaw.
[The team marked this bug as a duplicate of the following bug]
bsort
,ssort
commands accept invalid argumentsThere is no general argument validation for the commands
bsort
andssort
, only if a prefix is matched.Steps to reproduce
- Enter the command
bsort n/d
and press Enter- The list is sorted using default order with no errors reported
Expected behaviour
- Error of "invalid argument" is reported
Why is this a bug?
- This could lead to behaviour where I typo
n/d
to bem/d
- I don't see my command reflected, so I can't tell if I typed
n/d
orm/d
- Command reports that it successfully sorted, but the order isn't what I expect
[original: nus-cs2103-AY2324S1/pe-interim#2397] [original labels: type.FunctionalityBug severity.Medium]
[This is the team's response to the above 'original' bug]
This feature flaw was identified in the PE dry run, but because of the feature freeze it was unable to be changed. The feature flaw is mentioned in the UG, which states how an invalid prefix is allowed but ignored and the
sort
command is still executed. In this case,bsort m/d
does the default sortbsort
, ignoring the invalid prefix. The 'planned enhancements' section of the DG also mentions about better error handling of invalid prefix inputs like these in future iterations of the product, to amend this feature flaw.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]
UG flags prefixes outside the 4 listed ones as invalid.
Command run:
bsort t/a
output:
Got it. I've sorted the buyer list!
Misleading success message of bsort will inconvenience users who misstype the sort command