Open nus-se-script opened 7 months ago
Adding a person with the same fields but different names as another existing person is allowed in the application. But realistically, there should not exist two people with the same phone number, email etc.
add n/Person 1 p/98765432 e/johnd@example.com m/Computer Science
add n/Person 2 p/98765432 e/johnd@example.com m/Computer Science
The application should have multi-criteria checking to ensure that Person 2 cannot be added after adding Person 1.
Person 2 is added successfully after Person 1.
[original: nus-cs2103-AY2324S2/pe-interim#2203] [original labels: type.FunctionalityBug severity.Medium]
On page 44.
We have stated within our planned enhancements that we will be doing the said validations.
--
Description
Adding a person with the same fields but different names as another existing person is allowed in the application. But realistically, there should not exist two people with the same phone number, email etc.
Steps to reproduce
add n/Person 1 p/98765432 e/johnd@example.com m/Computer Science
add n/Person 2 p/98765432 e/johnd@example.com m/Computer Science
Expected
The application should have multi-criteria checking to ensure that Person 2 cannot be added after adding Person 1.
Actual
Person 2 is added successfully after Person 1.
Screenshots
[original: nus-cs2103-AY2324S2/pe-interim#2203] [original labels: type.FunctionalityBug severity.Medium]