Open nus-se-script opened 3 months ago
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.
To edit the json, you need to edit BOTH "Person" AND "Assignment" details as follow:
The above changes result in successful updates in the app:
--
Before Data Edit, I open the application with a fresh addressbook.json
Editing the data to add '[ "Food Bank", "Teaching" ]' to the tag for Charlotte.![image.png](https://raw.githubusercontent.com/nus-cs2103-AY2324S2/pe/master/files/273b18e3-5582-4e53-b9a4-d5c9e759fe38.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](https://raw.githubusercontent.com/nus-cs2103-AY2324S2/pe/master/files/af313274-2daf-47c7-98b1-a6279d38dd67.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]