[stable21] Fix Oracle query limit compliance in Comments#27203
[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.
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.
You're right. Do you want me to make a new PR?
There was a problem hiding this comment.
We can fix it here and do a new PR for master only
There was a problem hiding this comment.
Ok, let me know if I can do anything.
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