Wikimedia

Replace deprecated "WikiPage::doEdit()" + "WikiPage::getText()" calls in 3 MediaWiki extensions

This task might be a bit boring, but boring stuff is also part of a developer's job. :)

In MediaWiki Core's ContentHandler "module", a lot of hooks+functions were deprecated in MediaWiki version 1.21 (1.21 is unsupported since 2014).

Many of these deprecated hooks+functions are still used in code of MediaWiki extensions (that's "technical debt") and should be replaced. These extensions need cleaning up so that the deprecated functions can finally be removed from the MediaWiki core codebase in the end!

You will have to look at the deprecated function in the MediaWiki Core code repository. It will have a "@deprecated since 1.XX use foobar" comment which tells you what to replace it with. You have to look up the correct use + parameters of the replacement. Note that the "new" function is likely not a "direct" replacement so you will have to change more than just one single line. You could check for code in MediaWiki Core that has already been ported to the new function for examples how to use the new function.

Then you could search for "->doEdit(" and "->getText(" in the following repositories + provide patches in Gerrit (each repository requires a separate patch):

  • mediawiki/extensions/SubPageList
  • mediawiki/extensions/WikiLexicalData/OmegaWiki
  • mediawiki/extensions/PerPageLicense

The commit message of your Gerrit patch(es) must include the line "Bug: T151973".

Task tags

  • php
  • technical debt

Students who completed this task

Lukas A

Task type

  • code Code
close

2016