Page MenuHomePhabricator

Use expression builder instead of raw SQL in ContentTranslation
Closed, ResolvedPublic

Description

Now that T210206: Deprecate raw SQL conditions for IDatabase methods (select, insert, etc.) is done, this extension should migrate away from building and passing around raw SQL to expression builders.

It improves readability and security of the code and is more aligned with industry practices easing onboarding.

For more information check T210206 and T350075.

Calls to Database::addQuotes(), ::buildLike(), ::makeList() indicate that raw SQL is being built and passed around.

Event Timeline

Change #1032879 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/ContentTranslation@master] Store: Inline conditions into SelectQueryBuilder call

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

Change #1032879 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Store: Inline conditions into SelectQueryBuilder call

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

Change #1037447 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/ContentTranslation@master] Use expression builder to replace addQuotes

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

Change #1037447 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Use expression builder to build where conditions

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

Change #1055586 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/ContentTranslation@master] Use expression builder to avoid IDatabase::makeList

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

Change #1055615 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/ContentTranslation@master] Use expression builder for sql escaping in RecentSignificantEditStore

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

Change #1055615 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Use expression builder for sql escaping in RecentSignificantEditStore

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

Change #1055586 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Use expression builder to avoid IDatabase::makeList

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