nus-cs2103-AY2021S1 / pe-dev-response

0 stars 0 forks source link

Inconsistent command logic. #4544

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

Build Number: Version1.4 Reported By: Eddy/Chu Yi-Ting Reported On: 2020/11/13 Environment: MacOS version 10.15.7 Reason: Feature that don’t fit well in the product Description: When removing the tags that do not exist, the system responds with "tag not exist", sorry, this is nitpicky, but your add tag automatically ignores the tag name that already exists. Intuitively, the user would assume the remove tag would do it as well.

Expected Result:

  1. Command still executed

Actual Result:

  1. Error response

Steps To Reproduce:

  1. Enter command edit -c [existing ID] rt/[existing tag]

[original: nus-cs2103-AY2021S1/pe-interim#4359]

chan-j-d commented 3 years ago

Team's Response

I am unsure of whether to classify this as "cannot replicate" or "rejected" as I am unable to understand or replicate the preface given. As such, I am not completely sure why you might expect "Command still executed" as the outcome. However, I can justify why that should not be the expected outcome and thus "rejected".

I am unsure of the issue here. The "add tag" command throwing an error message for a tag that already exists is expected behaviour as we would like to inform the user that such a tag already exists.

image.png

I do not quite understand what 'ignores the tag name' mean. I am taking it that you mean that the command goes through as it seems like that is what you expect of the remove tag case. However, I have not been able to replicate that.

Unless you're referring to any of the other commands capable of changing tag mapping. But all of them reject adding tags that already exist.

For the edit tag command:

edit tag existing friends.png

For the edit contact command:

edit contact existing friends.png

As such, for the case of removing a tag that does not exist on a contact, showing an error message is consistent behaviour with the rest of the product. We want to notify the user that this tag was never on the contact to begin with so they might have mistaken something.

Duplicate status (if any):

--