Replies: 2 comments
|
"Last saved by" is easy, cheap and should not have any side effects. I would be hesitant to add non-optional (ie with opt out option) snapshots in the xml file. Just some thoughts:
TLDR: not against it but different options and future extensions should be considered resulting in at least it being optional to avoid boxing us in. |
I"m very ok for that see Joshua note for https://qelectrotech.org/wiki_new/refonte_du_code_de_qelectrotech |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem: Once you save a diagram, there's no way from inside QElectroTech to see what changed, go back to how it was ten saves ago, or tell who on the team made an edit. Git can do this —
.qetfiles are plain XML, and #754 made saves reproducible so diffs are clean — but it means knowing Git, installing it, and thinking in commits. That's a big ask for someone who just wants their drawing back the way it was this morning.Proposal: Store a compressed snapshot of each saved diagram alongside the project, with the date and who saved it. Show a version history browser in QElectroTech where you can:
Example: Halfway through a job you realise something went wrong three saves ago. Instead of undoing and redoing by hand, you open the version list, pick the version from this morning, and you're back. What you had before that is kept too, so nothing is lost.
Trade-off: disk space, plus another dialog to maintain. Measured on the 24 example projects that ship with QElectroTech, a compressed snapshot is 6–9% of the project file for most of them, and about half the file size for projects with embedded images. So a 2 MB project costs roughly 150 KB per save, or around 1 MB if it's image-heavy.
Questions:
All reactions