Page MenuHomePhabricator

Deprecate WikiPage::prepareContentForEdit() fallback to $wgUser
Closed, ResolvedPublic

Description

The overall method is soft deprecated, but we should separate deprecate calling without a User object, since that falls back to $wgUser. Thankfully most deployed callers already provide a User object

Steps

Event Timeline

DannyS712 triaged this task as Medium priority.Jun 24 2021, 3:28 AM
DannyS712 created this task.
DannyS712 moved this task from Unsorted to In progress on the User-DannyS712 board.

Change 701198 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/extensions/SpamBlacklist@master] Pass a user to WikiPage::prepareContentForEdit()

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

Change 701199 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/extensions/ConfirmEdit@master] Pass a user to WikiPage::prepareContentForEdit()

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

Change 701200 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/extensions/AbuseFilter@master] Pass a user to WikiPage::prepareContentForEdit()

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

Change 701199 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] Pass a user to WikiPage::prepareContentForEdit()

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

Change 701198 merged by jenkins-bot:

[mediawiki/extensions/SpamBlacklist@master] Pass a user to WikiPage::prepareContentForEdit()

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

Change 701638 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/core@master] WikiImporter: Pass a user to WikiPage::prepareContentForEdit()

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

Change 701200 merged by jenkins-bot:

[mediawiki/extensions/AbuseFilter@master] Pass a user to WikiPage::prepareContentForEdit()

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

Change 701638 merged by jenkins-bot:

[mediawiki/core@master] WikiImporter: Pass a user to WikiPage::prepareContentForEdit()

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

Change 702006 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/core@master] Hard deprecate WikiPage::prepareContentForEdit() without a User

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

Change 702006 merged by jenkins-bot:

[mediawiki/core@master] Hard deprecate WikiPage::prepareContentForEdit() without a UserIdentity

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

Filled that the AbuseFilterConsequencesTest manually specifies parameters and doesn't always include the user that is needed, causing tests to fail

Filled that the AbuseFilterConsequencesTest manually specifies parameters and doesn't always include the user that is needed, causing tests to fail

No, sorry, ignore me - caused by the patch I was testing not being on top of the change to pass the user