-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[stable21] Add repair job to delete calendar subscriptions that were orphaned when deleting an user #30006
Conversation
This comment has been minimized.
This comment has been minimized.
a008686
to
43d9936
Compare
43d9936
to
a4245ef
Compare
still waiting for a second review |
$qb = $this->connection->getQueryBuilder(); | ||
$qb->delete('calendarsubscriptions') | ||
->where($qb->expr()->eq('id', $qb->createNamedParameter($orphanSubscriptionID))) | ||
->executeStatement(); |
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.
only available from NC 22
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.
->executeStatement(); | |
->execute(); |
$qb->method('createNamedParameter')->willReturn($this->createMock(IParameter::class)); | ||
$qb->method('where')->willReturn($qb); | ||
// Only when user exists | ||
$qb->expects($this->exactly($deletions))->method('executeStatement'); |
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.
$qb->expects($this->exactly($deletions))->method('executeStatement'); | |
$qb->expects($this->exactly($deletions))->method('execute'); |
deleteding an user Follow-up to #28419 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
0038a69
to
3e7b3ce
Compare
We decided it isn't worth the risk backporting this change. |
backport of #28716