Page MenuHomePhabricator

Use expression builder instead of raw SQL in PageTriage
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.

Relevant codesearches:

Event Timeline

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

[mediawiki/extensions/PageTriage@master] Use IDatabase::expr for complex conditions

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

Change 994393 had a related patch set uploaded (by MPGuy2824; author: MPGuy2824):

[mediawiki/extensions/PageTriage@master] Use expression builder instead of raw SQL in PageTriage

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

Change 994393 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Replace addQuotes() with expression builder

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

Change 990038 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Use IDatabase::expr for complex conditions

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

Change 1004319 had a related patch set uploaded (by MPGuy2824; author: MPGuy2824):

[mediawiki/extensions/PageTriage@master] replace makeList() with expr()

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

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

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

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

Change #1055592 merged by jenkins-bot:

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

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

Umherirrender claimed this task.
Umherirrender removed a project: Patch-For-Review.