-
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
[stable28] Refactor document and session handling #5541
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 85795d6 - Browse repository at this point
Copy the full SHA 85795d6View 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 8e741de - Browse repository at this point
Copy the full SHA 8e741deView 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 8e1ad16 - Browse repository at this point
Copy the full SHA 8e1ad16View 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 cc2e6c3 - Browse repository at this point
Copy the full SHA cc2e6c3View 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 aa236cf - Browse repository at this point
Copy the full SHA aa236cfView 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 c2798f2 - Browse repository at this point
Copy the full SHA c2798f2View 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 ae78252 - Browse repository at this point
Copy the full SHA ae78252View 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 f72fb5b - Browse repository at this point
Copy the full SHA f72fb5bView 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 af37fe4 - Browse repository at this point
Copy the full SHA af37fe4View 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 25ad80e - Browse repository at this point
Copy the full SHA 25ad80eView 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 628e463 - Browse repository at this point
Copy the full SHA 628e463View 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 907d2d4 - Browse repository at this point
Copy the full SHA 907d2d4View 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 261051c - Browse repository at this point
Copy the full SHA 261051cView 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 134106f - Browse repository at this point
Copy the full SHA 134106fView 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 64a6252 - Browse repository at this point
Copy the full SHA 64a6252View 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 d464338 - Browse repository at this point
Copy the full SHA d464338View 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 ddabaf0 - Browse repository at this point
Copy the full SHA ddabaf0View commit details -
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Configuration menu - View commit details
-
Copy full SHA for 499a54f - Browse repository at this point
Copy the full SHA 499a54fView commit details