Page MenuHomePhabricator

rdbms: Find a way to use IDatabase::unionConditionPermutations without raw SQL
Closed, ResolvedPublic

Description

The use of IDatabase::unionConditionPermutations results in use of raw sql via IDatabase::query and needs a replacement.

Maybe the new UnionQueryBuilder (T333690) can take care of this permutation condition.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

It's only used in Special:ShortPages, I honestly think we probably should get rid of it. From a glance it should be possible to refactor it to avoid it but maybe I'm missing something

It was added to SpecialShortPages with T168010 / 3a10ab5

I read it and honestly it doesn't justify a dedicated and complex method like this. Specially given the fact that we are moving away from arrays as "query"s

Change 926570 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] Completely get rid of Database::unionConditionPermutations()

https://gerrit.wikimedia.org/r/926570

Change 927258 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/core@master] SpecialShortPages: Document reason for "reallyDoQuery" override

https://gerrit.wikimedia.org/r/927258

Change 926570 merged by jenkins-bot:

[mediawiki/core@master] rdbms: Remove Database::unionConditionPermutations() and callers

https://gerrit.wikimedia.org/r/926570

Ladsgroup claimed this task.
Ladsgroup edited projects, added DBA; removed Patch-For-Review.
Ladsgroup moved this task from Triage to Done on the DBA board.

Change 927258 merged by jenkins-bot:

[mediawiki/core@master] SpecialShortPages: Document reason for "reallyDoQuery" override

https://gerrit.wikimedia.org/r/927258