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

Fix: clear pending autosync on close #4504

Merged
merged 2 commits into from Jul 12, 2023

Conversation

max-nextcloud
Copy link
Collaborator

📝 Summary

This would normally happen in the save call before closing.
However if that call fails
(for example due to a conflict)
we still clear the pending autosync calls to prevent 403s.

Fixes #4080.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • This was discovered due to 403 responses during test runs. However we do not have a test explicitly covering this. I think that's fine.
  • Documentation is not required

@max-nextcloud max-nextcloud requested a review from mejo- July 12, 2023 13:49
@cypress
Copy link

cypress bot commented Jul 12, 2023

2 failed and 1 flaky tests on run #11026 ↗︎

2 144 2 2 Flakiness 1

Details:

Fix: clear pending autosync on close
Project: Text Commit: fe2adf4691
Status: Failed Duration: 03:54 💡
Started: Jul 12, 2023 10:28 PM Ended: Jul 12, 2023 10:32 PM
Failed  sync.spec.js • 1 failed test

View Output Video

Test Artifacts
Sync > recovers from a lost connection Output Screenshots
Failed  MenuBar.spec.js • 1 failed test

View Output Video

Test Artifacts
Test the rich text editor menu bar > word count > empty file Output Screenshots
Flakiness  cypress/e2e/api/UsersApi.spec.js • 1 flaky test

View Output Video

Test Artifacts
The user mention API > fetches users with valid session Output Screenshots

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

This would normally happen in the save call before closing.
However if that call fails
(for example due to a conflict)
we still clear the pending autosync calls to prevent 403s.

Fixes #4080.

Signed-off-by: Max <max@nextcloud.com>
@juliushaertl juliushaertl force-pushed the fix/clear-pending-autosync-on-close branch from 5741cdc to 14d29b1 Compare July 12, 2023 22:16
@juliushaertl
Copy link
Member

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@juliushaertl juliushaertl merged commit 53aadf3 into main Jul 12, 2023
28 of 31 checks passed
@juliushaertl juliushaertl deleted the fix/clear-pending-autosync-on-close branch July 12, 2023 22:41
@juliushaertl
Copy link
Member

Let's backport for 27.1

@juliushaertl
Copy link
Member

/backport to stable27

1 similar comment
@mejo-
Copy link
Member

mejo- commented Nov 6, 2023

/backport to stable27

@mejo-
Copy link
Member

mejo- commented Nov 6, 2023

/backport 14d29b1 to stable27

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.

Stop autosave when session is closed
4 participants