Skip to content

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 <[email protected]>
@juliusknorr juliusknorr force-pushed the fix/clear-pending-autosync-on-close branch from 5741cdc to 14d29b1 Compare July 12, 2023 22:16
@juliusknorr
Copy link
Member

/compile

Signed-off-by: nextcloud-command <[email protected]>
@juliusknorr juliusknorr merged commit 53aadf3 into main Jul 12, 2023
@juliusknorr juliusknorr deleted the fix/clear-pending-autosync-on-close branch July 12, 2023 22:41
@juliusknorr
Copy link
Member

Let's backport for 27.1

@juliusknorr
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

5 participants