nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Initial default appointments still show even after deleting the appointments file #3942

Open nus-pe-bot opened 4 months ago

nus-pe-bot commented 4 months ago

Steps to reproduce

Step 1: Delete the appointmentList JSON file

image.png

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 image.png


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

tankh99 commented 4 months ago

Team's Response

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

Duplicate status (if any):

--