ruoyann / pe

0 stars 0 forks source link

Error message is not specific to error made in delete and edit command (invalid index error message) #5

Open ruoyann opened 3 years ago

ruoyann commented 3 years ago

The error message displayed when user tries to delete a goal out of the current index range: image.png

Similarly when user tries to delete a very large index image.png

The error messages for the above two invalid commands should be exactly the same. And that is "The specified index is invalid" because the second invalid input is in fact using the correct format.

This applies to the other commands that uses index as well (e.g. edit command, delete in todo)

nus-pe-bot commented 3 years ago

Team's Response

  1. The first screenshot shows the error message for an expected wrong input (of a reasonable but non-existent index), whereas the second screenshot shows the error message when there is integer overflow, i.e. the index is greater than Integer.MAX_VALUE. The use case exemplified in the second screenshot is arguably a case of intentional sabotage because:
  1. Even so, the error messages have essentially the same meaning, and get the same point across to the user. Hence the user's usage of the app is not hindered. Hence, this inconsistency is a mere cosmetic issue and should only be of veryLow severity, if it were to count as a legitimate bug and not intentional sabotage.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: Prof's example for intentional sabotage is entering a 30 digit phone number, which can never exist.

image.png

However when using this app, users may have a large amount of information, especially under schedule if they have recurring events. I still believe the team should consider large numbers, or at least specify in the UG about limitations of the app (currently not stated). Hence I still think this should be at least a veryLow severity bug.


:question: Issue severity

Team chose [severity.VeryLow] Originally [severity.Low]

Reason for disagreement: [replace this with your explanation]