Open larainezo opened 4 months ago
This is the intended behaviour, because the application uses the default appointment list if the system detects there is no corresponding JSON file. If the user wants to delete all appointments, they should delete all data inside the JSON file instead
Team chose [response.Rejected
]
Reason for disagreement: Thanks for explaining. However, I feel that users may not know to delete the data inside the JSON file instead. In fact, I believe that this is the danger of having 2 separate files as well. Instead, the appointments and patients lists could have been placed in the same JSON file.
Additionally, there should be a warning somewhere to let the user know of the risks of deleting the appointment file when there is still a patient file.
Steps to reproduce
Step 1: Delete the appointmentList JSON file
Step 2: Run java -jar "[CS2103-F08-2][CogniCare].jar"
I gave this bug a medium severity level because we can still delete the appointments manually in CogniCare, but I was wondering that some users may opt to delete the entire JSON file for efficiency.
Expected There should not be any appointments shown in CogniCare when it is launched.
Actual Default appointments added when CogniCare was launched again were shown.
Screenshots