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
Problems with revisions / versions #2197
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
I'd hate to see this get closed by a bot that only makes a decision based on timeframe. |
For feature requests please open a discussion about it on the forum. |
This is not a feature request. My first post clearly underlines problems with the revision/version system. |
It's not entirely clear to me if it's a bug or a feature. The note revision service saves revision according to various rules, so what might look like a bug could actually be expected. There's info about these rules in the original pull request and blog post. |
Environment
Joplin version: Windows 1.0.175, Android 1.0.312
Platform: Windows, Android
OS specifics: Windows 8.1(.1), Android 9
Steps To Reproduce
= There's only one revision/version which shows only "A" character in the note text! There seems to be, at least, 2 problems with the "revision worker/version system(/auto-save+auto-upload-sync)":
The "auto-save" feature on mobile seems to be triggering an immediate save & sync (only upload, it's not fetching changes) & revision creation when it first time (after "revision worker" idle period has ended. or first revision hasn't been made yet after opening Joplin) auto saves the note when the user is writing it. There have been many requests to remove/disable this "auto-save" feature for many reasons, e.g. it effectively prevents discarding modifications to note if the user makes an error editing the note. This case with creating a version/revision too quickly is another reason why the feature should be removed/modified. And more so because of the next problem:
Subsequent modifications within the "revision worker" idle period (15min?) are lost.
Breakdown of what happened during the above steps to reproduce:
What versions / revisions were made:
What versions / revisions should have been made in an ideal situation:
I have not tested extensively how revisions/versions work in the desktop but I guess it's the same situation there, there's a "revision worker" there too and it has an idle period too. The only difference to mobile seems to be that desktop doesn't have immidiate "auto-save+upload sync", it triggers after 30 seconds of inactivity after the last note modification (this feature can't be turned off, and the auto-sync interval in settings doesn't apply to this).
There have been reports about some last character(s) missing sometimes after a sync. There might be a chance that the desktop "30 sec auto-save + auto upload sync" is the culprit. I haven't been able to reproduce the problem consistently yet. I believe it has something to do with timing, i.e. when the auto-save/auto-upload-sync starts or during its procedure and editing the note at the same time. I don't know if I have understood the system correctly, but I think that when the auto-save/auto-upload-sync starts or during it, Joplin makes a "snapshot" of the note text and upload syncs that, but in the same time user has added something to the note and the note view is not updated after the upload-sync. Only after "regular/full" sync happens (upload+download), then the note text is fetched that Joplin only upload-synced, and the note view is updated, and the late modification that happened during the auto-save/auto-sync is removed from the view. I'm not sure about this but I think that this hypothesis would be worth checking out.
In summary IMO:
The revision system should be revised. I know, it's a hard suggestion, "how to do it then?". Maybe:
Auto-save+auto-upload-sync on mobile while editing should be removed/enhanced. Maybe an option to auto-save/sync or a prompt to save when exiting the note editing view. And making the option to auto-save/sync to activate later than 1 second of inactivity.
Making sure that user modifications during auto-saving/sync (if that's really the culprit of missing texts/chars) are not discarded. (sorry that I don't have reproducible steps for this, I have tried for long now)
The text was updated successfully, but these errors were encountered: