nus-cs2113-AY2021S2 / pe-dev-response

0 stars 0 forks source link

Does not delete the name that is added #1151

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

The UG did not specify any restriction for adding spaces or not under add member feature and delete feature. There is already member named Bob in the team. When using space in the name for example, Bob Sarah, it saves as Bob at the bottom of the list. However, when I delete Bob Sarah, it deletes the first Bob name which I think should not be the case.

featureFlaw.PNG


[original: nus-cs2113-AY2021S2/pe-interim#1151] [original labels: severity.Medium type.FeatureFlaw]

douglaslewpc commented 3 years ago

Team's Response

This has already been mentioned in the User Guide, people with the same name that are added to the team, upon deletion, the name that has been added first will be deleted. Additionally, the input "Bob Sarah" does not adhere to the prompts and the instruction provided in the User Guide or the program prompts, where the input is clearly specified to be a single input with no spaces as the program will only take in a single parameter for the name of the team member. As such, when "Bob Sarah" and "Bob" are inputted into the program, both are inputted as "Bob" since only the first parameter is inputted. The instructions in the program prompt clearly writes the input should have no spaces. Should a user want to input two different names, one alternative is to input "BobSarah" and "Bob" which will be registered as two different distinct inputs.

Duplicate status (if any):

Duplicate of #429