-
-
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
[stable21] Fix Oracle query limit compliance in Comments #27203
Conversation
lib/private/Comments/Manager.php
Outdated
$query->setParameter('ids', $chunk, IQueryBuilder::PARAM_INT_ARRAY); | ||
$result = $query->execute(); | ||
|
||
$unreadComments += array_fill_keys($objectIds, 0); |
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.
since this uses $objectIds
instead of $chunk
it would have been enough to do it once before the loop even starts?
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.
You're right. Do you want me to make a new PR?
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.
We can fix it here and do a new PR for master only
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.
Ok, let me know if I can do anything.
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.
Fixed it, master PR in #27316
128df0c
to
736898e
Compare
CI is still unhappy |
Looks like this has been fixed in NC22 but still an issue on 21.0.3 |
@Simounet what is the status here? |
@skjnldsv I would love to help you here. I didn't know that you were waiting for me. |
Still an issue in 21.0.4 |
/rebase |
736898e
to
1310025
Compare
CI unhappy |
/rebase |
Signed-off-by: Simounet <contact@simounet.net>
Signed-off-by: Joas Schilling <coding@schilljs.com>
0acdd65
to
81bdc4d
Compare
@artonge do you mind fixing dco for your commit? I think CI should otherwise be green now :) |
Use legacy execute method instead of executeQuery introduced in 22 Signed-off-by: Louis Chemineau <louis@chmn.me>
81bdc4d
to
1297b04
Compare
@artonge thanks! :) |
failure is unrelated as far as I can see @blizzz do you think that merging this now (after the RC) is feasible? |
Case by case. Since the original change was already shipped with 22 and because it is not a complex change, I think it's ok. |
backport of #27187