AY2425S1-CS2103-F11-2 / tp

MIT License
0 stars 4 forks source link

[PE-D][Tester C] Data Erasure After Editing Name in `lessonschedule.json` with Valid Format #300

Closed soc-se-bot closed 6 days ago

soc-se-bot commented 1 week ago

In the User Guide, it states that the lessonschedule.json file can be updated using the correct format: image.png

However, when I change the name to one that does not currently exist in TutorEase but still uses a valid format, all data is erased upon starting TutorEase everything gets erased.

Steps to recreate: 1) Starting with a fresh run of TutorEase.jar (no data folder currently present) 2) Add a lesson: lesson add sid/1 f/10 d/08-11-2024 17:52 h/1 3) Open the lessonschedule.json file, edit the name of the person to Test Name and save the file.

image.png

4) OpenTutorEase, and it will display a blank screen.

image.png

If this behavior is intentional, I believe the User Guide should be updated to clarify what constitutes a "valid format." I interpreted "valid format" as any format that fits the field's structure, so I assumed that Test Name would be a valid name in TutorEase


Labels: type.FunctionalityBug severity.Medium original: sheenkerr/ped#12

Chronoxy commented 6 days ago

User updated the file incorrectly image