-
-
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(userstatus): catch unique constraint violation #42805
fix(userstatus): catch unique constraint violation #42805
Conversation
/backport to stable28 |
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.
nitpicks, otherwise 👍
ec04660
to
020c8bf
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.
😎
Failing test is OCA\Files_External\Tests\Storage\SmbTest::testNotifyGetChanges (unrelated). @blizzz can I haz force merge possibly? |
Signed-off-by: Anna Larch <anna@nextcloud.com>
020c8bf
to
02d077b
Compare
Summary
Due to how we have our read/write commit set up, sometimes a different process writes to the DB but we don't read it when running a SELECT. We can therefore ignore the Unique Constraint Violation and drop the insert completely.
TODO
Checklist
Screenshots before/after for front-end changesDocumentation (manuals or wiki) has been updated or is not required