Mailing List Archive

Removal of the Revision class
Hi everyone.

My patch[1] to remove the legacy `Revision` class from core was just
merged, and this may have broken some extensions. Extensions deployed on
WMF wikis had already been updated, but others may no longer work on
MediaWiki 1.37.

All code using Revision objects had been emitting deprecation warnings
since at least 1.35. I've also created a basic guide[2] to help migrate
extensions that were not updated. This includes how to migrate code relying
on hooks that passed Revision objects - all such hooks have been removed.

You can check out the phabricator task[3] for more info on what
specifically was removed.

Special thanks to the Platform Engineering team, and specifically Petr
Pchelko, for helping out and reviewing a whole bunch of patches.

Thanks,
-DannyS712

[1] https://gerrit.wikimedia.org/r/c/mediawiki/core/+/684071
[2] https://www.mediawiki.org/wiki/Manual:Revision.php/Migration
[3] https://phabricator.wikimedia.org/T247143