Open hcwong opened 5 years ago
Intended behaviour:
According to our UG:
5.2.3. Delete a customer: delete-c
Deletes a customer in SML. Note that deleting a customer will also delete the orders and schedules associated with the customer.
Format: delete-c INDEX
Deletes the customer at the specified INDEX.
The index refers to the index number shown in the displayed customer list.
We wanted to allow the user to delete whatever that was displayed on the list. To us, it doesn't make sense to delete something that you cannot see as it is not intuitive for the user to do so.
Team chose [response.Rejected
]
Reason for disagreement: [replace this with your reason]
To reproduce this bug, try using find on any of the list
The index is not no longer the index it was without the filter caused by find.
This also means that after find, you can no longer edit any objects which have not been found by find, which can be quite confusing
The user docs alludes to this, but it quite confusing that you the numbers suddenly change after find
This works
Now this does not because the index is no longer 9 after find