AY2324S1-CS2103T-T08-1 / tp

MIT License
0 stars 5 forks source link

Unnecessary duplicate checks in add Patient/Doctor/Appointment commands #94

Closed derekjxtan closed 1 year ago

derekjxtan commented 1 year ago

All 3 commands calls has patient/doctor/appointment before adding, but duplicate checks are already handled by UniqueItemList. To be completed:

  1. Update UniqueItemList methods to throw the necessary exceptions
  2. Update the methods (in Database, NewModelManager, etc.) that calls UniqueItemList methods to catch/throw the exceptions
  3. Remove the unnecessary checks