Wikimedia

Replace deprecated "Article::doEdit()" calls in multiple MediaWiki extensions (I)

This task might be 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 version 1.21 (1.21 is unsupported since 2014).

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

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 need to change more than just one single line. You could check for code in MediaWiki Core that has already been replaced, for examples how to use the new function.

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

  • mediawiki/extensions/BlogPage
  • mediawiki/extensions/DynamicPageList
  • mediawiki/extensions/FanBoxes
  • mediawiki/extensions/LinkFilter

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

Task tags

  • php
  • technical debt

Students who completed this task

Justin Du

Task type

  • code Code
  • done_all Quality Assurance
close

2016