nus-cs2103-AY2223S2 / pe-dev-response

1 stars 0 forks source link

App crashes upon duplicate manual entry in data/fitbook.json file #4133

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago

How to reproduce test: Duplicate a data entry manually in the fitbook.json file.

image.png

Expected outcome: Upon app launch, app informs that there is a duplicate entry, and deletes the duplicate entry.

Actual outcome: Upon app launch, all data is wiped from the data file.

image.png


[original: nus-cs2103-AY2223S2/pe-interim#3813] [original labels: type.FunctionalityBug severity.Medium]

jundatan commented 1 year ago

Team's Response

As stated in our UG, any manual changes that is invalid to our program will cause it to create a new fresh set of data.

image.png

FitBook does not allow duplicate names hence this is an error.

image.png

Duplicate status (if any):

--