nus-cs2103-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Using name to differentiate between two students might not be ideal #3941

Open nus-se-script opened 5 days ago

nus-se-script commented 5 days ago

Screenshot 2024-11-15 at 4.30.50 PM.png

Using solely Name parameter to differientiate between two students might not be ideal, especially in a tuition context where multiple students can have the same name, for example, if I have two students with the name Ryan, I would not be able to add both students into the system, even if they are two distinct students.

Maybe a better way is to check if the name AND phone number are the same, then you can considered it them as the same person. The implementation is also relatively simple, as you can just add a check at equals() method in your Peron class to differentiate them. Since this can most likely cause occasional incovenience to users, especially if they have the student with the same name, so i categorised it as Severity.Medium


[original: nus-cs2103-AY2425S1/pe-interim#3852] [original labels: severity.Medium type.FeatureFlaw]

waihin26 commented 5 days ago

Team's Response

Thanks for the report. This has been a major point of contention for our team, and we decided to preserve AB3's duplicate handling by Name after much thought:

Therefore, we believe the issue raised here is valid, but is more appropriate as a feature request for EduTuTu, and would require a lot of effort to get duplicity checking working with blank fields if we were to define duplicity by another field. Hence it is not in scope.

As duplicate persons by duplicate names is very easily circumvented, along with the lax input validation for Name which allows special characters, and the rarity of a private tutor teaching 2 students with the exact same name, we believe it is low severity.

image.png ^ from our UG

Duplicate status (if any):

--