Skip to content
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

[stable29] Keep base version etag during reload #5987

Merged
merged 7 commits into from
Jul 3, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jul 3, 2024

Backport of #5941

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Signed-off-by: Max <max@nextcloud.com>
`this.$syncService` is cleared during the `close` method.

However we need the `baseVersionEtag` to ensure the editing session
on the server
is still in sync with our local ydoc.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
@backportbot backportbot bot added bug Something isn't working 3. to review labels Jul 3, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.4 milestone Jul 3, 2024
* `close` is for closing the editor.
  It tries to save the document and clean everything up.
* `disconnect` is for cleaning up the current collaboration sessions.
  It will not save the document and asumes the editing will be resumed
  after a reconnect.

Move `sendRemainingSteps` out to the sync service.
Also make close in the websocket polyfill sync.
Just clean up the polyfills state.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the backport/5941/stable29 branch from a2674d6 to 2200c96 Compare July 3, 2024 11:21
@max-nextcloud max-nextcloud marked this pull request as ready for review July 3, 2024 11:21
@max-nextcloud max-nextcloud merged commit 45a1b6d into stable29 Jul 3, 2024
61 checks passed
@max-nextcloud max-nextcloud deleted the backport/5941/stable29 branch July 3, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant