Last modified: 2011-02-02 22:11:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29041, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27041 - Update any calls of deprecated (and the method calls wfDeprecated()) methods in extensions pre 1.17 branch
Update any calls of deprecated (and the method calls wfDeprecated()) methods ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-30 08:23 UTC by Sam Reed (reedy)
Modified: 2011-02-02 22:11 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2011-01-30 08:23:13 UTC
Per r81204 and r81205, it wouldn't be nice releasing extensions (and even more so on WMF used ones), to be having deprecated warnings everywhere in the 1.17 release
Comment 1 Sam Reed (reedy) 2011-01-30 08:31:37 UTC
http://toolserver.org/~krinkle/wikimedia-svn-search/do-live.php?path=%2Ftrunk%2Fphase3&recursive=on&searchphrase=wfDeprecated&timestamp=1296376151

All the wfDeprecated() calls in phase3, seems to be 39 methods that need exploring/checking for this and bug 27042
Comment 2 Sam Reed (reedy) 2011-01-30 17:03:41 UTC
Database::newFromParams - 2 usages
Database->escapeLike - 13 usages
Database->immediateBegin - 2 usages in DSMW

Being kicked off my computer, my little sister wants to play games ;) Will carry on later
Comment 3 Sam Reed (reedy) 2011-01-30 18:31:19 UTC
Image::__construct - 5 usages
SiteStats::admin - SMW
wfEncryptPassword - 3 usages in auth

wfLoadExtensionMessages - Doesn't warn in 1.17

userMailer - NewUserNotif

LogReader::__construct - MetavidWiki
LogViewer::__construct - MetavidWiki

WikiError::__construct - SemanticForms
WikiError::isError - 19 usages
WikiErrorMsg::__construct - SemanticForms

SpecialPage::addPage - 18 usages


And that concludes the list. Obviously, this doesn't include any called via vodoo, or other unobvious ways, but gives us a reasonable idea of what's going on.

A couple of them will be only warning in 1.18, so that needs paying attention to, but if it was set to start warning in 1.17, they need tidying up. (I know some people do tidy them up when they mark them as deprecated with a warning)
Comment 4 Sam Reed (reedy) 2011-01-30 22:35:19 UTC
escapeLike done in r81220
Comment 5 Sam Reed (reedy) 2011-01-31 12:27:30 UTC
wfEncryptPassword in r81240

userMailer in r81241

Database->immediateBegin in r81242

SiteStats::admin in r81243

TODO:

Database::newFromParams - 2 usages

Image::__construct - 5 usages

wfLoadExtensionMessages - Doesn't warn in 1.17

LogReader::__construct - MetavidWiki
LogViewer::__construct - MetavidWiki

WikiError::__construct - SemanticForms
WikiError::isError - 19 usages
WikiErrorMsg::__construct - SemanticForms

SpecialPage::addPage - 18 usages
Comment 6 Sam Reed (reedy) 2011-01-31 12:50:01 UTC
Database::newFromParams in r81244

Image::__construct in r81245

TODO:
LogReader::__construct - MetavidWiki
LogViewer::__construct - MetavidWiki

SpecialPage::addPage - 18 usages

Nothing TODO:
wfLoadExtensionMessages - Doesn't warn in 1.17

Backed out in r78094 from 1.17
WikiError::__construct - SemanticForms
WikiError::isError - 19 usages
WikiErrorMsg::__construct - SemanticForms
Comment 7 Sam Reed (reedy) 2011-01-31 13:43:10 UTC
TODO:
What are these replaced with?
LogReader::__construct - MetavidWiki
LogViewer::__construct - MetavidWiki

SpecialPage::addPage - 18 usages
r81248

uniwiki and Wikidata can go to hell.

Nothing TODO:
wfLoadExtensionMessages - Doesn't warn in 1.17

Backed out in r78094 from 1.17. Logged bug 27066 for the SF components
WikiError::__construct - SemanticForms
WikiError::isError - 19 usages
WikiErrorMsg::__construct - SemanticForms
Comment 8 Sam Reed (reedy) 2011-01-31 14:42:35 UTC
I'm guessing the LogReader/LogViewer stuff isn't a blocker for release... They were marked deprecated before 1.14 was branched.

bug 27071 logged for that one.
Comment 9 Mark A. Hershberger 2011-02-02 19:51:04 UTC
What remains isn't really a blocker for release.  Certainly not for deployment.
Comment 10 Sam Reed (reedy) 2011-02-02 22:11:15 UTC
Marking RESOLVED FIXED as I look to have tidied everything up, and marked for backport where appropriate

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links