SemanticMediaWiki / SemanticMediaWiki/SemanticSignup

Removal of deprecated SpecialPageFactory

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Please note that the old SpecialPageFactory, deprecated in mediawiki 1.32, will likely be removed in 1.36. Its methods still have calls from this extension.

The replacement is to use MediaWikiServices::getInstance()->getSpecialPageFactory(), and use the new factory's methods. However, since this extension supports versions of MediaWiki that predate the addition of the new factory in 1.32, you will likely need to add conditional logic based on if the MediaWiki\SpecialPage\SpecialPageFactory class exists.

See https://phabricator.wikimedia.org/T246142 for more.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating this extension's calls to the deprecated SpecialPageFactory and compare them with MediaWikiServices::getInstance()->getSpecialPageFactory(). Check the supported MediaWiki versions and the availability of MediaWiki\SpecialPage\SpecialPageFactory; the work is done when the old calls are compatible across those versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.