-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(caldav): fixed initial sync and double processing #46623
Conversation
d86d377
to
bf6bb68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Always use prepared statements with parameters
- Add a test to
\OCA\DAV\Tests\unit\CalDAV\CalDavBackendTest
250f3a6
to
e450139
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also a (minor) performance optimization as we do $qb->func()->max('operation')
instead of a busy loop now 👍
I'm gonna give this a test but looks good so far.
069959f
to
c5796d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Refactoring of the incremental sync case is a (minor) performance improvement. Additional unit tests are always welcome.
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
0eb6cda
to
a56d0db
Compare
Summary