Open erohsikivar opened 11 months ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
No warning when adding people with same phone number and address
Description: Only duplicate names are checked for, and people with the same phone number and address can be added as long as they have a different name.
To reproduce: Use the add command with a different name from all the other contact entries, but match the phone number, email address and address you supply with one of the pre-existing contact entries.
Expected: display error message saying "user already exists" or something to that effect. Either that, or a warning to warn the user in case it was a typo of the name.
Actual: No error message is displayed and the person is added to the contact list.
The current behaviour of the app is problematic because in the real world, it is expected for two different students to have two different address and phone number. If the user accidentally enters bad data (for example, two people with the same phone and address), then they would not be notified. Also, there are many common names in the world, and identifying a person solely by their name is therefore insufficient.
An error message, or at least a warning, would be nice!
[original: nus-cs2103-AY2324S1/pe-interim#4625] [original labels: severity.Low type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
We have clearly stated in our UG that contact number and address
Need not be unique
. For example, siblings may share the same address, and wish to put their mom's contact number.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]
It allows me add to a contact number of one person to the person I want to edit.
For example if I try to edit the contact details of person at index 1, and if I put the contact number of student at index 2. It does not throw any error.
Now student 1 and 2 have same contact number which should not be the expected behaviour. Instead, duplicate phone numbers should be avoided.