Page MenuHomePhabricator

Remove runtime handling for "legacy" rows and codepaths
Closed, ResolvedPublic

Description

As seen in the revert in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/OATHAuth/+/772464, there is quite a lot of code that depends on things like property_exists and checking for SQL columns that may or may not exist.

We don't need to do this at runtime (ie during a normal MW request/OATHAuth auth flow). There are updaters (run via update.php) that should be taking care of that migration, and WMF production has been migrated a long time ago.

The Update scripts and any code they directly call would need to stay, other usages do not.

Event Timeline

Reedy renamed this task from Remove handling for "legacy" rows to Remove runtime handling for "legacy" rows.Mar 21 2022, 9:56 PM
Reedy updated the task description. (Show Details)
Reedy updated the task description. (Show Details)

Change 772530 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/OATHAuth@master] OATHUserRepository: Remove some legacy handling

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

Change 772530 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] OATHUserRepository: Remove some legacy handling

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

Change 773914 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/OATHAuth@master] OATHUserRepository: Stop handling legacy single-key

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

Change 773918 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/OATHAuth@master] ApiOATHValidate: Remove deprecated totp parameter

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

Need to see if people are still using action=oathvalidate&user=Example&totp=

Was deprecated in June 2019 in rEOATea984e5c2b2e: Refactor the extension to support multiple auth modules

Change 773914 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] OATHUserRepository: Stop handling legacy single-key

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

Reedy renamed this task from Remove runtime handling for "legacy" rows to Remove runtime handling for "legacy" rows and codepaths.Mar 28 2022, 5:08 PM

Change 773918 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] ApiOATHValidate: Remove deprecated totp parameter

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

Reedy claimed this task.