Open larainezo opened 6 months ago
This is the intended functionality. Also note that this will only occur when you manually delete patients from the patientList.json file. If you delete patients normally, their associated appointments will also be deleted.
There are a few reasons why we are rejecting this
Team chose [response.Rejected
]
Reason for disagreement: While I agree that this is a good way to enforce data protection, I feel that allowing it to remain in the application hinders the usability of the application. In such cases, it seems that the user will need to manually delete all the appointments, which I foresee to be a scalability issue. Therefore, one suggestion I have would be to automatically delete the appointments that a deleted patient is in.
Steps to reproduce Step 1: Empty patient list Step 2: Run java -jar "[CS2103-F08-2][CogniCare].jar"
The output shows appointments with names "deleted patient". This becomes unusable for the user because we cannot recover or identify who the appointments initially belonged to. Therefore, I feel that this bug has a high severity level.
Expected All appointments should be deleted as well.
Actual Appointments have the name "deleted patient".
Screenshots