Split sync of ApiService to sync and save#4424
Conversation
Passing run #11441 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
|||||||||||||||
| @@ -242,7 +242,7 @@ class SyncService { | |||
| async save({ force = false, manualSave = true } = {}) { | |||
There was a problem hiding this comment.
We may still want to trigger the autosave somehow regular. I think this is no longer the case as only sync is called in an interval. Might be something to check with @max-nextcloud next week on how to best achieve that.
There was a problem hiding this comment.
It's actually still being triggered regularly. At least yesterday it was 🙈
There was a problem hiding this comment.
And that's the 30s autosave:
text/src/services/SyncService.js
Line 88 in 0d088d6
This comment was marked as resolved.
This comment was marked as resolved.
max-nextcloud
left a comment
There was a problem hiding this comment.
Thanks a lot for tackling this!
I have only one small remark.
Just went over the code did not test locally or go through untouched code to see if further changes would be needed.
bdf34f6 to
76f9f33
Compare
|
squahsed and rebased |
80837f6 to
f7107a5
Compare
|
The remaining cypress errors about conflicts are rooted that this information was not transported on The handler we have, reacts to this status only on polling! Saves would be ignored, you could see the failures only on the console (before and after the changes). With the polling itself it's not a big deal. |
75bdd5c to
4ec598e
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2436346 to
ecb1932
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
ecb1932 to
0dd749b
Compare
|
The remaining issue with cypress conflicts tests was an accidentally inverted condition, so that the proper exception was not thrown. |
📝 Summary
As discussed with @juliushaertl when talking about #3899 it might be worthwhile to split the sync route into dedicated sync and save endpoints.
🚧 TODO
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)