r49790 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49789‎ | r49790 | r49791 >
Date:01:31, 24 April 2009
Author:werdna
Status:resolved (Comments)
Tags:
Comment:
Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia).
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuth.i18n.php (modified) (history)
  • /trunk/extensions/CentralAuth/CentralAuth.php (modified) (history)
  • /trunk/extensions/CentralAuth/CentralAuthHooks.php (modified) (history)
  • /trunk/extensions/CentralAuth/CentralAuthUser.php (modified) (history)
  • /trunk/extensions/CentralAuth/central-auth.sql (modified) (history)
  • /trunk/extensions/CentralAuth/db_patches/patch-global_properties.sql (added) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php (modified) (history)
  • /trunk/extensions/Gadgets/Gadgets.i18n.php (modified) (history)
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)
  • /trunk/phase3/includes/HTMLForm.php (added) (history)
  • /trunk/phase3/includes/Preferences.php (added) (history)
  • /trunk/phase3/includes/SearchEngine.php (modified) (history)
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)
  • /trunk/phase3/includes/User.php (modified) (history)
  • /trunk/phase3/includes/Xml.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialPreferences.php (replaced) (history)
  • /trunk/phase3/languages/messages/MessagesAf.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAm.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAng.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesArn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesArz.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAst.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAvk.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesAz.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBar.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBat_smg.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBcc.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBcl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBe_tarask.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBg.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBm.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesBug.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCdo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCkb_arab.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCrh_cyrl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCrh_latn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCsb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesCy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDiq.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDsb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesExt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFrp.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFur.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGan_hans.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGan_hant.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGd.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGot.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGrc.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGsw.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHak.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHif_latn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHsb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesId.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIlo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesJa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesJbo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesJv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKaa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKab.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKk_arab.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKk_cyrl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKk_latn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKm.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKsh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKu_latn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKw.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLfn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLij.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLmo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLoz.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLzh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMdf.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMg.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMhr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMk.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMwl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMyv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNah.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNan.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNds.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNds_nl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNew.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNso.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesOc.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesOs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPag.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPam.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPms.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPnb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPnt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPt_br.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesQqq.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesQu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesRm.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesRmy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesRo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesRoa_tara.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesRu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSah.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSc.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesScn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSco.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSd.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSdc.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSei.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSk.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSq.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSr_ec.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSr_el.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSrn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesStq.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSw.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSzl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTet.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTg_cyrl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTt_cyrl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTt_latn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTy.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTyv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesUk.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesUr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesUz.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesVec.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesVep.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesVi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesVo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesVro.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesWa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesWar.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesWo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesWuu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesYi.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesYo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesYue.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesZea.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesZh_hans.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesZh_hant.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesZh_tw.php (modified) (history)
  • /trunk/phase3/maintenance/archives/patch-user_properties.sql (added) (history)
  • /trunk/phase3/maintenance/convertUserOptions.php (added) (history)
  • /trunk/phase3/maintenance/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)
  • /trunk/phase3/skins/common/htmlform.js (added) (history)
  • /trunk/phase3/skins/common/prefs.js (modified) (history)
  • /trunk/phase3/skins/common/shared.css (modified) (history)
  • /trunk/phase3/skins/monobook/main.css (modified) (history)
  • /trunk/phase3/skins/simple/main.css (modified) (history)

Follow-up revisions

RevisionCommit summaryAuthorDate
r49803Follow-up r49790: update the PostgreSQL schemaialex08:49, 24 April 2009
r49820Updates preferences handling to work with r49790 and upsiebrand17:16, 24 April 2009
r49825Updates preferences handling to work with r49790 and up. Needs review, as the...siebrand18:06, 24 April 2009
r49826Updates preferences handling to work with r49790 and up. Please review...siebrand18:26, 24 April 2009
r49873Follow-up r49790: remove from docs/hooks.txt hooks that were removed from codeialex13:50, 25 April 2009
r49905Follow up on r49790. Fixed a bug on variant select.philip14:51, 26 April 2009
r49913Follow up on r49790. 'prefsreset' is no longer used.siebrand21:35, 26 April 2009
r49916Follow-up on r49790, r49898, r49899, r49900, r49901, r49902, r49904, r49907, ...siebrand22:00, 26 April 2009
r49932Partial revert of r49790 (global preferences) at Brion's request to ease revi...werdna06:15, 27 April 2009
r49955Fix regression in r49790, weird spacing for Gadgets and Skin tab.werdna14:18, 27 April 2009
r51340Fix fatal error in r49790, remaining usage of User::encodeOptions()werdna12:42, 2 June 2009

Comments

#Comment by Raymond (talk | contribs)   21:30, 24 April 2009

The skin tab shows link to "(Custom CSS) (Custom JS)" for every skin instead of the currently used skin.

#Comment by Werdna (talk | contribs)   02:00, 27 April 2009

Doesn't seem to be a regression.

#Comment by Raymond (talk | contribs)   08:41, 30 April 2009

Sorry, you are right, but I could swear ... *shrugs*

#Comment by Raymond (talk | contribs)   06:45, 26 April 2009

More FIXMEs:

At the edit tab: missing the message 'prefs-edit-boxsize'

At the watchlist tab: missing the messages 'prefs-watchlist-days-max', 'prefs-watchlist-edits-max'

At the recent changes tab: missing the message 'recentchangesdays-max'

#Comment by Werdna (talk | contribs)   01:41, 27 April 2009

I don't understand this comment.

#Comment by 😂 (talk | contribs)   14:37, 27 April 2009

The watchlist and RC tabs seem to be ok. However, on the edit tab, there's no indication of what "rows" and "columns" means.

#Comment by Raymond (talk | contribs)   10:07, 30 April 2009

I mean the red bordered messages. These are indications to the user for the maximum allowed values.

Preferences - watchlist
Preferences - recent changes
#Comment by Siebrand (talk | contribs)   12:37, 26 April 2009

bugzilla:18595: Quickbar has disappeared in Cologneblue and Standard skins

#Comment by Siebrand (talk | contribs)   12:38, 26 April 2009

bugzilla:18580: New preferences page does not contain e-mail confirmation data

#Comment by Siebrand (talk | contribs)   12:38, 26 April 2009

bugzilla:18581: Enable e-mail from other users setting not displayed correctly

#Comment by Siebrand (talk | contribs)   21:41, 26 April 2009

bugzilla:18603 Link to Special:ChangePassword has disappeared from Special:Preferences tab User Profile

#Comment by Werdna (talk | contribs)   00:26, 27 April 2009

WFM

#Comment by Werdna (talk | contribs)   02:17, 27 April 2009

All reported bugs fixed, except as noted above. Please report any other regressions or bugs.

#Comment by Werdna (talk | contribs)   06:08, 27 April 2009

TODO for discussion with Brion:

1/ Weird spacing on gadgets and skin 2/ Renaming properties to options 3/ Warning about changing mail 4/ Investigate centralauth not being able to save email 5/ we now have too many tabs, re-merge them (email status and options are no longer visible on same screen as email; need to be re-combined)

#Comment by Werdna (talk | contribs)   14:11, 27 April 2009

3, 4 and 5 fixed. Still need to look at 1 and 2.

#Comment by Werdna (talk | contribs)   14:38, 27 April 2009

Everything done except the rename. Remaining references to 'properties' are the DB tables, seems like a bad idea to rename them considering this will be live on some sites now. (Although it can probably be done with DB updates if it's really necessary)

#Comment by Werdna (talk | contribs)   06:17, 27 April 2009

06:25 < wikibugs> (NEW) Image and thumbsize reset to defaults in the new preferences - https://bugzilla.wikimedia.org/show_bug.cgi?id=18605 minor; Normal; MediaWiki: User preferences;

                 (niklas.laxstrom)
#Comment by Werdna (talk | contribs)   23:46, 27 April 2009
  • Reports that the email confirmation thing is coming up all the time.
  • Sectionise
  • Gray out email options
#Comment by Werdna (talk | contribs)   04:20, 30 April 2009

Nothing pending on this, please let me know if there is.

#Comment by Aaron Schulz (talk | contribs)   05:00, 30 May 2009

$user->encodeOptions() used but doesn't exist

#Comment by Werdna (talk | contribs)   12:43, 2 June 2009

That should be fixed in r51340.

#Comment by Shinjiman (talk | contribs)   16:09, 3 June 2009

And more fixmes:

  • bug 18870: The toggle defined in $extraUserToggles won't display in the user preferences
#Comment by 😂 (talk | contribs)   07:44, 8 February 2011

Preferences rewrite has been deployed for a long time :)

Status & tagging log