deletecheese is allowed when user is not listing cheeses. When the app is not showing cheeses, the user is still able to deletecheese, I thought that this should not be allowed as deleting is permanent and the information will be lost. When the app is not showing cheeses, the user is basically deleting at random
This is a feature to provide convenience for the users.
The users might want to switch views to check something else before actually entering the deletecheese command.
The following is a realistic example:
User wants to delete a Gouda at index number 5.
Before deleting the Gouda, the user wants to check if there are any unfulfilled Gouda orders. If there are any, then the user may want to assign the Gouda instead of deleting it.
The user switches view by entering "listorders".
The user confirms there is no unfulfilled Gouda orders.
The user enters "deletecheese 5" to delete the Gouda, without having to switch back to the cheese view.
deletecheese is allowed when user is not listing cheeses. When the app is not showing cheeses, the user is still able to deletecheese, I thought that this should not be allowed as deleting is permanent and the information will be lost. When the app is not showing cheeses, the user is basically deleting at random
[original: nus-cs2103-AY2021S2/pe-interim#2967] [original labels: severity.Medium type.FeatureFlaw]