Open marcus-ny opened 6 months ago
This comes under our planned enhancements. Our plans include:
Change the restrictions on the regex for the Name class to allow for more flexible names
Which will solve the issue mentioned here
[The team marked this bug as a duplicate of the following bug]
Names overly restrictive
Only allowing alpha numeric characters in names is overly restrictive, many legal names exist where '/' are needed. some non alphanumeric characters should be accepted.
Steps to reproduct:
- Run in CLI ' add n/John s/o Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 k/Joe s/o Doe d/Has a history of memory loss t/mentalIllness t/owesMoney'
Expected output: User added
Actual output: Error non alphanumeric names
[original: nus-cs2103-AY2324S2/pe-interim#1534] [original labels: type.FunctionalityBug severity.Low]
[This is the team's response to the above 'original' bug]
In our DG, we mentioned that this is a known issue and we are planning to implement this functionality in future iterations. Hence, we would like to reject this bug.
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
Description: The add command does not allow for duplicate names to be added into the contact book
Steps to reproduce:
add n/Blake p/88887777 email/blake@yahoo.com
add n/Blake p/00009999 email/blake2@yahoo.com
Expected behaviour: Both contacts should be added to the list since the emails and phone numbers are different.
Actual behaviour: The second Blake cannot be added to the contact.
Screenshots:
Notes: The unique name constraint is already mentioned in the UG. This is more of a minor feature flaw since in the real world, although quite rare, people can have identical names even though they are two different people. When managing many clients, such a scenario may happen and thus, the app should account for this behaviour and allow duplicate names to be accepted.