-
Notifications
You must be signed in to change notification settings - Fork 94
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
[stable28] Refactor document and session handling #5541
Merged
Merged
Conversation
This file contains 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
mejo-
changed the title
[stable28] Reset document session on filesystem change
[stable28] Refactor document and session handling
Mar 20, 2024
6 tasks
mejo-
force-pushed
the
backport/5481/stable28
branch
from
March 21, 2024 10:04
51ea17a
to
e7a5a5d
Compare
/backport! to stable27 |
mejo-
approved these changes
Mar 21, 2024
Let's wait for next months releases with this, so this gets tested a bit on Nextcloud 29 first. |
mejo-
force-pushed
the
backport/5481/stable28
branch
from
March 27, 2024 10:04
e7a5a5d
to
28dd585
Compare
Signed-off-by: Jonas <[email protected]>
When a text file is updated via other means than from the editor (e.g. when uploaded/synced via webdav) and there is no unsaved steps in the document session, reset the document session This will prevent conflict resolution dialogs in this case. Client frontends will have to reload the document afterwards though. Signed-off-by: Jonas <[email protected]>
…ession Instead of just deleting the newest steps, always remove all session data: document, sessions and steps from the database as well as the yjs (document state) file. Without the `--force` option, don't reset document sessions with unsaved steps. Signed-off-by: Jonas <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
`baseVersionEtag` changes when a new document session got initialized, e.g. after an old document session without session clients got cleaned up, or because the markdown file got changed via webdav. Detect this in the client and ask the user to reload the page for resetting the session. Signed-off-by: Jonas <[email protected]>
Signed-off-by: Jonas <[email protected]>
Fixes: #4905 Signed-off-by: Jonas <[email protected]>
Signed-off-by: Jonas <[email protected]>
…eanup Signed-off-by: Jonas <[email protected]>
Wrap error messages into an array when responding with `JSONResponse`. Signed-off-by: Jonas <[email protected]>
mejo-
force-pushed
the
backport/5481/stable28
branch
from
April 2, 2024 13:35
28dd585
to
67258a9
Compare
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
mejo-
force-pushed
the
backport/5481/stable28
branch
from
April 2, 2024 13:39
67258a9
to
499a54f
Compare
juliusknorr
approved these changes
Apr 3, 2024
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.
Combined backport of PRs to fix issues with empty session content and duplicated content.
baseVersionEtag
changed, reset frontend #5523