Page MenuHomePhabricator

WikibaseRepo: Remove getDefaultInstance()
Closed, ResolvedPublic

Description

newInstance can possibly be removed as well.


Migration path: replace (for instance)

$wbRepo = Wikibase\Repo\WikibaseRepo::getDefaultInstance();
$entityIdLookup = $wbRepo->getEntityIdLookup();

by

$entityIdLookup = Wikibase\Repo\WikibaseRepo::getEntityIdLookup();

Event Timeline

Change 682195 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/Wikibase@master] Remove getDefaultInstance from WikibaseRepo

https://gerrit.wikimedia.org/r/682195

Change 682951 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/Wikibase@master] Remove getDefaultInstance and newInstance from WikibaseRepo

https://gerrit.wikimedia.org/r/682951

Change 682195 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Remove calls to getDefaultInstance from WikibaseRepo

https://gerrit.wikimedia.org/r/682195

Change 683261 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Remove WikibaseRepo::getDefaultInstance() calls from WikibaseLexeme

https://gerrit.wikimedia.org/r/683261

Change 683273 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/WikibaseMediaInfo@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683273

Change 683298 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/WikibaseQualityConstraints@master] Remove WikibaseRepo::getDefaultInstance() calls from

https://gerrit.wikimedia.org/r/683298

Change 683347 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/WikibaseCirrusSearch@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683347

Change 683368 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/WikibaseLexemeCirrusSearch@master] Remove WikibaseRepo::getDefaultInstance()

https://gerrit.wikimedia.org/r/683368

Change 683369 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/WikibaseManifest@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683369

Change 683298 merged by jenkins-bot:

[mediawiki/extensions/WikibaseQualityConstraints@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683298

Change 683374 had a related patch set uploaded (by Rosalie Perside (WMDE); author: Rosalie Perside (WMDE)):

[mediawiki/extensions/Math@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683374

Change 683261 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Remove WikibaseRepo::getDefaultInstance() calls from WikibaseLexeme

https://gerrit.wikimedia.org/r/683261

Change 683347 merged by jenkins-bot:

[mediawiki/extensions/WikibaseCirrusSearch@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683347

Change 683368 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexemeCirrusSearch@master] Remove WikibaseRepo::getDefaultInstance()

https://gerrit.wikimedia.org/r/683368

Change 683369 merged by jenkins-bot:

[mediawiki/extensions/WikibaseManifest@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683369

Change 683374 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Remove WikibaseRepo::getDefaultInstance() calls

https://gerrit.wikimedia.org/r/683374

Change 683273 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Remove WikibaseRepo::getDefaultInstance()

https://gerrit.wikimedia.org/r/683273

Change 682951 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Remove getDefaultInstance and newInstance from WikibaseRepo

https://gerrit.wikimedia.org/r/682951

Change 683652 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Citoid@master] Remove WikibaseRepo::getDefaultInstance() stub

https://gerrit.wikimedia.org/r/683652

Change 683652 merged by jenkins-bot:

[mediawiki/extensions/Citoid@master] Remove WikibaseRepo::getDefaultInstance() stub

https://gerrit.wikimedia.org/r/683652

I added the migration path in the description since I was wondering what it was when I tried to upgrade the extension RecordWizard for 1.37.