Skip to content

Conversation

@max-nextcloud
Copy link
Collaborator

📝 Summary

When we recover a session the editor already exists. Start the syncing again as the polling backend is created from scratch. Do not attach further events to the editor and do not reset the content.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation is not required

@max-nextcloud max-nextcloud changed the title fix: only initialize editor once [stable26] fix: only initialize editor once Mar 6, 2023
@max-nextcloud max-nextcloud requested a review from mejo- March 6, 2023 08:00
@max-nextcloud max-nextcloud added this to the Nextcloud 26 milestone Mar 6, 2023
@max-nextcloud max-nextcloud added bug Something isn't working 3. to review backported successfully backported 26 feedback labels Mar 6, 2023
@cypress
Copy link

cypress bot commented Mar 6, 2023

1 flaky tests on run #8920 ↗︎

0 140 0 0 Flakiness 1

Details:

[stable26] fix: only initialize editor once
Project: Text Commit: ae80ee6e4b
Status: Passed Duration: 03:27 💡
Started: Mar 6, 2023 8:34 PM Ended: Mar 6, 2023 8:37 PM
Flakiness  cypress/e2e/share.spec.js • 1 flaky test

View Output Video

Test Artifacts
Open test.md in viewer > Share a file with download disabled shows an error Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@juliusknorr juliusknorr mentioned this pull request Mar 6, 2023
4 tasks
When we recover a session the editor already exists.
Start the syncing again as the polling backend is created from scratch.
Do not attach further events to the editor and do not reset the content.

Signed-off-by: Max <[email protected]>
@juliusknorr juliusknorr force-pushed the backport/stable26/3893-only-initialize-editor-once branch from c99e50e to f8bd87f Compare March 6, 2023 20:27
@juliusknorr
Copy link
Member

/compile

Signed-off-by: nextcloud-command <[email protected]>
@juliusknorr juliusknorr merged commit 327869b into stable26 Mar 6, 2023
@juliusknorr juliusknorr deleted the backport/stable26/3893-only-initialize-editor-once branch March 6, 2023 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 26 feedback backported successfully backported bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants