In the UG it is noted that "For every change you make to the application, it will be added to the version history of the application."
However, manually editing the data file (eg: data/addressbook.json and assuming edit is valid) does not do this and as a result, it is possible to lose this data from the manual edit.
Steps to reproduce:
With a fresh instance of the app (only the jar), open app and then run a simple command that changes the data (eg: edit_s i/1 sn/Test Name)
Exit the app to save the data.
Edit data/addressbook.json with a valid edit that is not the same as the simple command in step 1.
Reopen the app. The app should show the data from the manually edited data.
Run undo and then redo. The resulting data is from before manually editing the data and after exiting, the manually edited data is loss.
In the UG it is noted that "For every change you make to the application, it will be added to the version history of the application."
However, manually editing the data file (eg:
data/addressbook.json
and assuming edit is valid) does not do this and as a result, it is possible to lose this data from the manual edit.Steps to reproduce:
edit_s i/1 sn/Test Name
)data/addressbook.json
with a valid edit that is not the same as the simple command in step 1.undo
and thenredo
. The resulting data is from before manually editing the data and after exiting, the manually edited data is loss.