Open lavanyagarg112 opened 1 week ago
Thank you for your bug report! We have listed this bug to be a duplicate of #470 as changing a method in the Client class will fix both issue.
[The team marked this bug as a duplicate of the following bug]
Duplicate contact handling
If I add somebody named John, then proceed to add another person named John but with a different phone number and email and address from the previous john - it still raises an error just because the names are the same.
However, the specification in the UG was that " Clients are considered duplicates if NAME and PHONE match with another existing client"
But in this case only the name matches yet it is considered a duplicate contact so either the functionality is wrong or the UG must be updated.
[original: nus-cs2103-AY2425S1/pe-interim#665] [original labels: severity.Low type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
Thank you for your bug report! There certainly was an issue with the checks and we agree with the severity and type given by the tester.
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]
The UG specifies that the duplicates are checked based on Name and Phone
This is ambiguous as I was not sure if both had to be the same, or any one had to be the same
When I had put different name and same number, it did not give any error (see person 3 in the below image)
But when I put the same name, different phone, it gave an error:
Clients can often have the same name with different phone numbers, while having the same phone number is very rare unless they are using their family's contact.
Thus this form of validation will lead to errors
This will also result in users unable to add clients with same name, which is a major issue