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

[stable28] fix(sync): push local changes on reconnect #5284

Merged
merged 6 commits into from Jan 22, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jan 19, 2024

Backport of PR #5279

@backportbot backportbot bot added bug Something isn't working 3. to review labels Jan 19, 2024
@backportbot backportbot bot added this to the Nextcloud 28.0.2 milestone Jan 19, 2024
When an editing session is interrupted
steps that were already pushed to the server
may be cleared alongside the sync service session.

Make sure to push all local state
that is not part of the document state
when (re-)connecting.

Tests

Yjs relies on a browser environment.
Therefore we test it in a cypress test.
Move these tests into component tests
to separate them from 'normal' e2e tests.

Signed-off-by: Max <max@nextcloud.com>
Even if all sessions have expired and been removed
there may still be disconnected clients
that hold state from the last editing session.

When they reconnect they will send their yjs updates
based on the old state they had.
Preserve the yjs state accross editing sessions
so updates send after a reconnect can still be processed.

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>
Remove duplicate encoding for updateMessage

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud
Copy link
Collaborator

Cypress test failing earlier was the issue fixed in #5302

@juliushaertl juliushaertl merged commit 61f83dd into stable28 Jan 22, 2024
56 of 57 checks passed
@juliushaertl juliushaertl deleted the backport/5279/stable28 branch January 22, 2024 07:33
This was referenced Jan 22, 2024
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.

None yet

2 participants