nus-cs2103-AY2021S1 / pe-dev-response

0 stars 0 forks source link

Duplicates Person #989

Open nus-se-bot opened 3 years ago

nus-se-bot commented 3 years ago

Duplicate person with the same value in each field can be added, which doesn't make sense for me for a hotel booking app.

image.png


[original: nus-cs2103-AY2021S1/pe-interim#893]

iamgenechua commented 3 years ago

Team's Response

The userflow is stated in our addBooking UG. Before the user wants to make a new booking, he is expected to run findPerson command first to see if the guest exists in the personBook already. If the person exists, then the user will not create a new guest profile. Hence this is a rare situation. Moreover, we have the ID that can be used to differentiate between the two Person in the worse case, which is uniquely assigned to each Person.

Screenshot 2020-11-14 at 10.01.50 PM.png

Duplicate status (if any):

--