Repository navigation
Conversation
Results are stored only in the model files the user saves. Recording an .rbdz version stores its model and manifest without results/, and versions an older release stored with results are slimmed the first time their history is read, keeping ids, labels, times and descriptions. The History dialog says so once, and no longer labels archive versions with results.
An optional top-level results object holds the same entries as an .rbdz's results/ folder (.json entries as JSON values, the rest as text), written and read through one shared module, result_entries. save_results is stored only when on and not implied by results; the .rbdz manifest gains the same flag. A file without results is written byte for byte as before.
One setting, "Save results in this file", decides whether Save writes the results on screen into an .rbds or .rbdz. It is off for a new model and a file without results, on for a file that holds results, and stored in the file only when on. One checkable command, results.save_in_file, shows and changes it from the Results tab, the File view and a new status-bar indicator (Results: saved in file / not yet saved / not saved in file); Save As starts from it for .rbds and .rbdz. An .rbds that holds results reopens with them on screen, like an .rbdz. Saving more than 5 MB of results into an .rbds asks first and offers Save as .rbdz, Save without results or Save anyway. File > Remove Results from File removes the saved results (now, or at the next Save when there are other unsaved changes) and leaves the results on screen.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #398.
Results are now stored only in model files the user saves.
.rbdscan hold results: it uses the same entries as.rbdz. A file without results saves byte for byte as before..rbdsover 5 MB offers Save as.rbdz, Save without results, Cancel, or Save anyway.Docs: RBDS_FORMAT.md, RBDZ_FORMAT.md and the manual.