nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Manual edit of the addressbook.json will cause it to be deleted upon running the application again #645

Open nus-se-script opened 3 months ago

nus-se-script commented 3 months ago

Before Data Edit, I open the application with a fresh addressbook.json

image.png

image.png

Editing the data to add '[ "Food Bank", "Teaching" ]' to the tag for Charlotte. image.png

After data edit and reopening the application, the application deletes all the data and when I exit the application, the addressbook.json is shown to be empty. image.png

image.png

Note: It also happens when I try to edit the email, name, phone number or availability.

The data is not deleted when I manually edit the assignments, only deletes when I manually edit the person.


[original: nus-cs2103-AY2324S2/pe-interim#826] [original labels: type.FunctionalityBug severity.High]

SimKianSeng commented 3 months ago

Team's Response

Hi it is mentioned in our user guide that any modifications of the json file with invalid data will wipe the data within it. Please refer to the screenshot below.

image.png

To edit the json, you need to edit BOTH "Person" AND "Assignment" details as follow:

image.png

image.png

The above changes result in successful updates in the app:

image.png

Duplicate status (if any):

--