-
Notifications
You must be signed in to change notification settings - Fork 89
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
Commits on Apr 2, 2024
-
fix(backend): Reset document session and yjs file when file is deleted
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 98d01d5 - Browse repository at this point
Copy the full SHA 98d01d5View commit details -
fix(backend): Reset document session when updated from outside editor
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>
Configuration menu - View commit details
-
Copy full SHA for f00de1e - Browse repository at this point
Copy the full SHA f00de1eView commit details -
fix(backend): Remove yjs file and all steps when resetting document s…
…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>
Configuration menu - View commit details
-
Copy full SHA for 10938f4 - Browse repository at this point
Copy the full SHA 10938f4View commit details -
fix: catch expected exception in event handler
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for 9a98ec2 - Browse repository at this point
Copy the full SHA 9a98ec2View commit details -
fix: Clean up logic to return document state file or file content
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for da4bf9c - Browse repository at this point
Copy the full SHA da4bf9cView commit details -
fix: Set base version etag to a unique id per document creation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for d7c173d - Browse repository at this point
Copy the full SHA d7c173dView commit details -
fix(sync): If
baseVersionEtag
changed, reset frontend`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>
Configuration menu - View commit details
-
Copy full SHA for c26cb39 - Browse repository at this point
Copy the full SHA c26cb39View commit details -
fix(Middleware): Response with 412 if
baseVersionEtag
doesn't matchSigned-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 3978f12 - Browse repository at this point
Copy the full SHA 3978f12View commit details -
fix(DocumentStatus): Refactor and migrate to
NcNoteCard
Fixes: #4905 Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for a9c3b69 - Browse repository at this point
Copy the full SHA a9c3b69View commit details -
test(cypress): Add session API tests with non-matching baseVersionEtag
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 5c3fe47 - Browse repository at this point
Copy the full SHA 5c3fe47View commit details -
text(cypress): Test browser refresh warning after document session cl…
…eanup Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for cfa9ec8 - Browse repository at this point
Copy the full SHA cfa9ec8View commit details -
fix(response): Make sure JSONResponse returns valid data
Wrap error messages into an array when responding with `JSONResponse`. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 4a08af8 - Browse repository at this point
Copy the full SHA 4a08af8View commit details -
fix: Create idempotent y.js doc for initial content
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for cdc310f - Browse repository at this point
Copy the full SHA cdc310fView commit details -
tests: Add tests for loading documents from different preconditions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for 1a46a1b - Browse repository at this point
Copy the full SHA 1a46a1bView commit details -
fix: Always return initial content when needed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for 5f8484f - Browse repository at this point
Copy the full SHA 5f8484fView commit details -
tests: Adjust tests covering initial state
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for 16c9afd - Browse repository at this point
Copy the full SHA 16c9afdView commit details -
ci: Make cypress test more stable by closing connections
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for fbfba86 - Browse repository at this point
Copy the full SHA fbfba86View commit details -
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for 4dabf75 - Browse repository at this point
Copy the full SHA 4dabf75View commit details
Commits on Apr 3, 2024
-
chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 88f49a5 - Browse repository at this point
Copy the full SHA 88f49a5View commit details