Open JellyPenguinnn opened 2 weeks ago
Thank you for your bug report. As we feel that there are 2 different bugs in your report. We have decided to respond to “Student different name but same phone number, email and address are allowed”, which is a duplicate of #3102, another bug we have received as it is how we decided to differentiate duplicate persons.
[The team marked this bug as a duplicate of the following bug]
Weak duplicate Person check
So long as the name is different, it is treated as a different person. This check is rather weak as it is highly unlikely that two different contacts with the same email and number (and possibly address) are two different person.
The severity given is medium as there could be scenarios where the private tutor could be copying contacts into the program and might have misread and result in the program having two different names but with every other details being the same (such as email, phone number, etc). In instances like this, the tutor would only be able to reliably have contact to one.
[original: nus-cs2103-AY2425S1/pe-interim#1704] [original labels: severity.Medium type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
Thank you for your bug report. We decided that this issue is not in scope however if it was in scope, it should be
severity.Low
instead ofseverity.Medium
as users are able to edit the contact in case they misread, which rarely happens and at most causes a minor inconvenience and we believe it is atype.FeatureFlaw
instead of atype.FunctionalityBug
as this was what we have designed in the first place. You have reported a valid issue and we have considered this issue of duplicate person checking during our design and implementation phases, however we still decided to stick with our current implementation as we believe it is a form of overzealous input validation.One example that we have encountered in real life is that siblings living in the same address could share only 1 phone and 1 email address as this is a decision made by the parents. If we had restricted users such that each contact had to have different phone, address, or email addresses, the user would not be able to input a contact such as the example we have provided. We did not want to restrict users from inputting such inputs so that more users can find our app useful in their tutoring needs.
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: I think you have misunderstood my issue. As stated in the title, "Students with the same name cannot be added." Then, in the elaboration part, I mentioned that students with different names but the same phone number, email, and address are allowed. This is to explain the implementation of the program that not allowed students with the same name, but it allows students with the same phone number, email, and address. Next, I clarified that it is possible to have students with the same name (e.g. Alex Tan, John Lee), but it is unlikely for the same phone number and email. Hence, I suggest that differentiating students by phone number and email address would be more useful and reasonable. This is about preventing users from adding contacts with identical names even when other fields (phone number, email, address) differ. This restriction unnecessarily limits users' ability to manage their contacts effectively.
But the other issue refers to cases where two persons with the same phone number, email, or address but different names are allowed to exist in the system. This bug addresses overlapping data fields to check whether a person is duplicated.
Student different name but same phone number, email and address are allowed. It is possible to have two persons with exactly the same name and address but not for email or phone number.
Hence, can consider to differentiate person by phone number or email address.