Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong error message for invalid index for edit instruction #1

Open
yu-ming-chen opened this issue Nov 13, 2020 · 1 comment
Open

Wrong error message for invalid index for edit instruction #1

yu-ming-chen opened this issue Nov 13, 2020 · 1 comment

Comments

@yu-ming-chen
Copy link
Owner

yu-ming-chen commented Nov 13, 2020

When "edit 1.2 d/baked beans e/1-1-2020" is entered with a invalid decimal index, the error shown is invalid format instead of invalid index.
Screenshot 2020-11-13 at 4.20.15 PM.png

It should be.
Screenshot 2020-11-13 at 4.21.54 PM.png

@nus-se-bot
Copy link

nus-se-bot commented Nov 18, 2020

Team's Response

This is not a bug, as stated in the User Guide, the index has to be an integer. In the example command used above, the provided index is a double value hence it is an invalid command format as the type is different from integer. The second error message shown above is when a valid command such as "edit 100 d/baked beans" but the index exceeds the number of food items is entered. In this case, the value "100" is an integer thus it is a valid command format but invalid index value. The error message is intended by us and aligns with the requirement stated in the UG, thus it is not a functionality bug. Furthermore, this does not affect the usage of the app as user will still be informed of the error. Hence, it is downgraded and rejected.

image.png

Items for the Tester to Verify

❓ Issue response

Team chose [response.Rejected]

  • I disagree

Reason for disagreement: I feel that using the info in the userguide is avoiding the problem. In this case, there is a contrast in what the app is telling the user what is wrong and what the userguide is saying. For example lets say a user keyed in "1.0" by accident as the index. The app will be saying that the format is wrong and this will result in users refering to the format of the command and try to locate if there are missing parameters and format. However, this is clearly a case where the index should be a positive integer stated in the user guide. A clearer error message will be this one below that is used in other command errors. Therefore, wrong index error is implemented but not used in this case.
Screenshot 2020-11-19 at 2.54.30 PM.png


❓ Issue severity

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

  • I disagree

Reason for disagreement: [replace this with your explanation]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants