-
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
[stable27] Refactor document and session handling #5543
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-
force-pushed
the
backport/5541/stable27
branch
from
March 21, 2024 10:37
ed4ce31
to
5fab1fc
Compare
mejo-
changed the title
[stable27] [stable28] Refactor document and session handling
[stable27] Refactor document and session handling
Mar 21, 2024
mejo-
force-pushed
the
backport/5541/stable27
branch
from
March 21, 2024 10:50
5fab1fc
to
e9cc009
Compare
Let's wait for next months releases with this, so this gets tested a bit on Nextcloud 29 first. |
mejo-
force-pushed
the
backport/5541/stable27
branch
from
March 27, 2024 13:40
e9cc009
to
6c50404
Compare
Signed-off-by: Jonas <jonas@freesources.org>
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 <jonas@freesources.org>
…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 <jonas@freesources.org>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
`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 <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
mejo-
force-pushed
the
backport/5541/stable27
branch
from
April 2, 2024 13:45
6c50404
to
cd524da
Compare
Fixes: #4905 Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
…eanup Signed-off-by: Jonas <jonas@freesources.org>
Wrap error messages into an array when responding with `JSONResponse`. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
mejo-
force-pushed
the
backport/5541/stable27
branch
from
April 2, 2024 16:09
cd524da
to
f89a498
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
mejo-
force-pushed
the
backport/5541/stable27
branch
from
April 2, 2024 16:13
f89a498
to
4dabf75
Compare
mejo-
approved these changes
Apr 3, 2024
juliusknorr
approved these changes
Apr 3, 2024
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Closed
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.
Backport of #5541
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.