1.31
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T11968 Reduce use of global and public variables | |||
Open | None | T159283 Deprecate non-configuration globals | |||
Open | DannyS712 | T159299 Deprecate and remove $wgUser | |||
Resolved | DannyS712 | T267861 [GOAL] Emit deprecation warnings reading from $wgUser | |||
Open | DannyS712 | T243708 Mediawiki core needs uses of global $wgUser removed | |||
Resolved | DannyS712 | T246284 Hard deprecate the Revision class | |||
Resolved | DannyS712 | T249434 Replace hooks using Revision objects with RevisionRecord | |||
Open | None | T232867 Hooks listed as deprecated in MediaWiki should actually be deprecated (and vice versa) | |||
Resolved | DannyS712 | T232877 The "RevisionInsertComplete" hook is listed in documentation as deprecated but doesn't emit deprecation warnings yet |
Event Timeline
@Jdforrester-WMF In https://codesearch.wmflabs.org/search/?q=RevisionInsertComplete&i=nope&files=&repos= I found to hard deprecation is scheduled for 1.32 but we are already on 1.33 and 1.34 will be soon released. Should I add wfDeprecated( METHOD, '1.xx' ); in https://gerrit.wikimedia.org/g/mediawiki/core/+/dafe226e8c06f4e69ff6da63fad72a59342f4552/includes/Revision/RevisionStore.php#541 or what?
Have you looked at the code for Hooks.php?
https://github.com/wikimedia/mediawiki/blob/master/includes/Hooks.php#L190-L200
Change 584096 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/WikimediaEvents@master] Replace RevisionInsertComplete hook with RevisionRecordInserted
One remaining use needs to be removed before hard deprecation
Should the hook deprecation version be 1.31 or 1.35?
1.31, but it helps to add a comment in the code next to it saying when it was hard-deprecated (1.35), to assist with later clean-up.
Change 584096 merged by jenkins-bot:
[mediawiki/extensions/WikimediaEvents@master] Replace RevisionInsertComplete hook with RevisionRecordInserted
See also https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/EventBus/+/584762 for a documentation-only reference removal.
Change 584969 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Hard deprecate the RevisionInsertComplete hook
Change 584969 merged by jenkins-bot:
[mediawiki/core@master] Hard deprecate the RevisionInsertComplete hook
No problem. I have nothing to do tomorrow, so I should be able to action the other hooks