Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix excessive use of JSON stringification #107

Merged
merged 2 commits into from
Oct 23, 2021
Merged

Conversation

dracorpg
Copy link
Contributor

@dracorpg dracorpg commented Jun 6, 2021

This fixes internal and on-disk file format issues mentioned in #106 and bumps the version to 2.1.0 so previous PTree versions will show a warning when opening new .ptree files (their code is unable to extract any useful data from this 'newly fixed' format)

@dracorpg
Copy link
Contributor Author

dracorpg commented Jun 6, 2021

Although the number of changed lines of code isn't massive, the risk of regression is real. I have done a fair bit of manual testing (including opening a v2.0.1 file with the new code) and am reasonably confident that there is no gross overlook...
However I did manage to trigger at least one bug (likely due to playing with undo/redo) which led to a wiped save file upon exiting - but I do not think the present PR is responsible (such a wipe already happened to me at least once when using v2.0.1). But I could understand that you want this investigated further before merging :)

@dracorpg dracorpg changed the title Cleanup Fix excessive use of JSON stringification Jun 6, 2021
@smariel smariel merged commit 45a1014 into smariel:master Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants