Open songivan00 opened 1 year ago
Inside the UG, we already specified that we cannot have multiple applicants with the same email address AND Job ID. It's AND not OR
Hence, from the example you mentioned add n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 c/3.50/4.00 g/male u/Nanyang Polytechnic gd/05-2024 m/Computer Science ji/173296 jt/Software Engineer Intern t/rejected t/KIV
add n/John Doe p/98765432 e/johnd@exampl.com a/311, Clementi Ave 2, #02-25 c/3.50/4.00 g/male u/Nanyang Polytechnic gd/05-2024 m/Computer Science ji/173296 jt/Software Engineer Intern t/rejected t/KIV
The first one has email johnd@example.com and the second one has email johnd@exampl.com, so from the definition of duplicate applicants. The 2 applicants are not duplicate as they have different email
Team chose [response.Rejected
]
Reason for disagreement: I believe that since it is completely impossible to have the same email address or job id, the app should not allow the same email address or the same job id to be added.
If the app is not allowing the adding of the same job id and email address because it is impossible for two contacts to have the same identity fields, then with the same logic, it should not allow the adding of contacts with either the same email address or same job id since it is impossible.
The app accepts contacts to have the exact same email address OR the exact same Job ID. However in reality, this cannot be true as two separate people cannot have the same email address or job ID, hence an error should be thrown.
Steps to reproduce: add n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 c/3.50/4.00 g/male u/Nanyang Polytechnic gd/05-2024 m/Computer Science ji/173296 jt/Software Engineer Intern t/rejected t/KIV add n/John Doe p/98765432 e/johnd@exampl.com a/311, Clementi Ave 2, #02-25 c/3.50/4.00 g/male u/Nanyang Polytechnic gd/05-2024 m/Computer Science ji/173296 jt/Software Engineer Intern t/rejected t/KIV
Expected: Error as a duplicate is added
Actual: Contact added since the email is different