-
Notifications
You must be signed in to change notification settings - Fork 272
Removes unneeded transactions. #2909
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
base: main
Are you sure you want to change the base?
Conversation
eda63ec
to
73b1804
Compare
73b1804
to
f427290
Compare
14f4141
to
9284d1c
Compare
9284d1c
to
00f98e2
Compare
Just the first three transactions. But can be merged. Probably easiest to check commit-by-commit. |
@@ -910,37 +910,22 @@ public function internalErrorAction(Request $request): ?int | |||
*/ | |||
protected function giveBackJudging(int $judgingId, ?Judgehost $judgehost): void | |||
{ | |||
// Reset the judgings without using Doctrine, it has no support for update queries containing a join. |
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.
doctrine 🤯
->getArrayResult(); | ||
|
||
if ($rows == 0) { | ||
// TODO, handle this case. Nothing was updated. |
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.
Is there anything to be handled? If there is no outstanding that we would disable here, we don't have an issue, do we?
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.
Fair point, I'll remove.
Reading this back, this cannot be correct! I've had to create a manual query for updates with joins. 🤯
Apparently this case is never hit in the testsuite either.
Tried removing this transaction for the removal of all unneccesary transactions. It turns out that this is actually a valid usecase that should be kept.
No description provided.