lhc/web/wiklou.git
8 years agoFix name of the 'PageViewUpdates' hook in docs
Ricordisamoa [Sat, 18 Jul 2015 07:57:13 +0000 (09:57 +0200)]
Fix name of the 'PageViewUpdates' hook in docs

Added with commit 12c370c68b8bb2388be1829968e48d73f3b8d2e9

Change-Id: I53e90c2185841da1b4e2245f96748a1830003967

8 years agoMerge "Defer user_newtalk updates in clearNotification() to post-send"
Aaron Schulz [Sat, 18 Jul 2015 03:17:06 +0000 (03:17 +0000)]
Merge "Defer user_newtalk updates in clearNotification() to post-send"

8 years agoMerge "Use Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers"
jenkins-bot [Fri, 17 Jul 2015 23:55:17 +0000 (23:55 +0000)]
Merge "Use Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers"

8 years agoMerge "Check for any content of MediaWiki namespace titles before passing it through...
jenkins-bot [Fri, 17 Jul 2015 23:54:47 +0000 (23:54 +0000)]
Merge "Check for any content of MediaWiki namespace titles before passing it through ContentHandler"

8 years agoCheck for any content of MediaWiki namespace titles before passing it through Content...
Alex Monk [Fri, 17 Jul 2015 23:25:24 +0000 (18:25 -0500)]
Check for any content of MediaWiki namespace titles before passing it through ContentHandler

Follows up I302d7915

Change-Id: I484bc45681d2a916aaa1e174e9235515aea62930

8 years agoDefer user_newtalk updates in clearNotification() to post-send
Aaron Schulz [Thu, 16 Jul 2015 23:06:13 +0000 (16:06 -0700)]
Defer user_newtalk updates in clearNotification() to post-send

* Also only issue DELETE if notifications exist. Previously,
  this would issue a DELETE for all self talk page views.

Bug: T92007
Change-Id: Ifef11c9e5175d68d9615e59e2ed7de2f2c57bde1

8 years agoAvoid using trigger_error() in addMissingMetadata()
Aaron Schulz [Fri, 17 Jul 2015 20:28:48 +0000 (13:28 -0700)]
Avoid using trigger_error() in addMissingMetadata()

* Just use the normal swift log instead

Bug: T105810
Change-Id: Ifa463e6298a1b57ab6a8d92f9defc744619d9fb6

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 17 Jul 2015 19:52:34 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia434298289d67f6bdb3147d4dd0cc24d6576fa8a

8 years agoMerge "Special:JavaScriptTest: Redirect to /qunit/plain by default"
jenkins-bot [Fri, 17 Jul 2015 19:35:19 +0000 (19:35 +0000)]
Merge "Special:JavaScriptTest: Redirect to /qunit/plain by default"

8 years agoMerge "Update Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani...
jenkins-bot [Fri, 17 Jul 2015 19:11:01 +0000 (19:11 +0000)]
Merge "Update Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani (azb)"

8 years agoMerge "Refine thumbnailing metrics"
jenkins-bot [Fri, 17 Jul 2015 19:03:52 +0000 (19:03 +0000)]
Merge "Refine thumbnailing metrics"

8 years agoSpecial:JavaScriptTest: Redirect to /qunit/plain by default
Kunal Mehta [Fri, 10 Jul 2015 03:40:27 +0000 (20:40 -0700)]
Special:JavaScriptTest: Redirect to /qunit/plain by default

Currently there's only one framework, so having an error landing page
when visiting Special:JavaScriptTest isn't helpful. DWIM and send the
user to Special:JavaScriptTest/qunit/plain if that is the only framework
that is configured.

Also add the testing help link to the "/plain" view.

Change-Id: Ifc473d080ecf6f0a9add0510480ba9dad76050e9

8 years agoMerge "Don't break installation when the local db root user has no password"
jenkins-bot [Fri, 17 Jul 2015 16:02:03 +0000 (16:02 +0000)]
Merge "Don't break installation when the local db root user has no password"

8 years agoDon't break installation when the local db root user has no password
Brion Vibber [Fri, 17 Jul 2015 13:42:37 +0000 (08:42 -0500)]
Don't break installation when the local db root user has no password

Reverts broken patch 0cf4e92d; it seems to have been intended to
validate the *to be created* db username/pass, but instead it
validates the *installation username/pass*. This made it impossible
to install if your db user had no password, as on many default dev
installations.

Bug: T85281
Change-Id: I0caaf8b9a244d6f4dad0cba32c566ea557f77fcc

8 years agoImplement NamespaceInputWidget
Bartosz Dziewoński [Tue, 14 Jul 2015 20:30:06 +0000 (22:30 +0200)]
Implement NamespaceInputWidget

* Add PHP version of NamespaceInputWidget, co-authored by Florian,
  which consists of a DropdownInputWidget offering a choice of
  namespaces and two CheckboxInputWidgets allowing to also match
  associated namespace (talk/content) or to invert the choice.
* Add an incomplete JS version of NamespaceInputWidget, which is only
  really functional when infused from the PHP version (it can't
  generate the dropdown by itself, for example). Implement some JS to
  improve the experience of selecting the "all namespaces" option in
  the dropdown (by disabling the checkboxes when this happens).
* Split off a 'mediawiki.widgets.styles' module, which has the basic
  styles for PHP widgets which are to be loaded in the head. Make
  OutputPage::enableOOUI() also add this module (which should stay
  reasonably small).
* Use the new widget in HTMLForm's HTMLSelectNamespace field. It can
  be seen in action on Special:LinkSearch, for example.

Co-Authored-By: Florian <florian.schmidt.welzow@t-online.de>
Co-Authored-By: Bartosz Dziewoński <matma.rex@gmail.com>
Change-Id: I5cbfa9d0f6a8641148ce476b7dbe65e9096b4485

8 years agoRefine thumbnailing metrics
Gilles Dubuc [Fri, 17 Jul 2015 11:48:56 +0000 (13:48 +0200)]
Refine thumbnailing metrics

Bug: T105681
Change-Id: Icf576a1718eb2e588af4c48c05362bbef3bb7942

8 years agoMerge "Namespace names for Western Punjabi (pnb)"
jenkins-bot [Fri, 17 Jul 2015 03:36:25 +0000 (03:36 +0000)]
Merge "Namespace names for Western Punjabi (pnb)"

8 years agoNamespace names for Western Punjabi (pnb)
Amir E. Aharoni [Thu, 16 Jul 2015 21:39:31 +0000 (16:39 -0500)]
Namespace names for Western Punjabi (pnb)

Written at the Wikimania Hackathon 2015 with Khalid Mahmood.

Change-Id: I8d349cc2aaf9e469afda5203b4c4bcbc7387af05

8 years agoMerge "Ignore some ScopedCallback IDE warnings"
jenkins-bot [Thu, 16 Jul 2015 23:32:22 +0000 (23:32 +0000)]
Merge "Ignore some ScopedCallback IDE warnings"

8 years agoMerge "Tweaked User::READ_LOCKING to use LOCK IN SHARE MODE"
jenkins-bot [Thu, 16 Jul 2015 22:26:32 +0000 (22:26 +0000)]
Merge "Tweaked User::READ_LOCKING to use LOCK IN SHARE MODE"

8 years agoMerge "TitleInputWidget: Correct links when 'relative' option used"
jenkins-bot [Thu, 16 Jul 2015 22:10:32 +0000 (22:10 +0000)]
Merge "TitleInputWidget: Correct links when 'relative' option used"

8 years agoMerge "This should fix T105373"
jenkins-bot [Thu, 16 Jul 2015 21:55:03 +0000 (21:55 +0000)]
Merge "This should fix T105373"

8 years agoMerge "InfoAction: Use watchlist query group for watchlist queries"
jenkins-bot [Thu, 16 Jul 2015 21:40:41 +0000 (21:40 +0000)]
Merge "InfoAction: Use watchlist query group for watchlist queries"

8 years agoInfoAction: Use watchlist query group for watchlist queries
Alex Monk [Thu, 16 Jul 2015 20:42:53 +0000 (15:42 -0500)]
InfoAction: Use watchlist query group for watchlist queries

Bug: T105852
Change-Id: I8fd38caf04e60f34f76077cd66e447f09fa2f487

8 years agoMerge "Use deferred updates in place of $wgActivityUpdatesUseJobQueue"
jenkins-bot [Thu, 16 Jul 2015 20:29:50 +0000 (20:29 +0000)]
Merge "Use deferred updates in place of $wgActivityUpdatesUseJobQueue"

8 years agoUpdate Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani (azb)
mjbmr [Thu, 16 Jul 2015 20:05:53 +0000 (20:05 +0000)]
Update Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani (azb)

* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-Namespaces/azb
* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-SpecialPageAliases/azb
* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-MagicWords/azb

Change-Id: Ibffd0e7a2d0d8e70b3433876641c0b562c2114e9

8 years agoMerge "Improve serialization of Message, Title"
jenkins-bot [Thu, 16 Jul 2015 19:52:16 +0000 (19:52 +0000)]
Merge "Improve serialization of Message, Title"

8 years agoMerge "mediawiki.page.ready: When infusing, infuse by id, not by element"
jenkins-bot [Thu, 16 Jul 2015 19:38:27 +0000 (19:38 +0000)]
Merge "mediawiki.page.ready: When infusing, infuse by id, not by element"

8 years agoTitleInputWidget: Correct links when 'relative' option used
Bartosz Dziewoński [Thu, 16 Jul 2015 18:37:16 +0000 (20:37 +0200)]
TitleInputWidget: Correct links when 'relative' option used

Previously, the links in the suggestions dropdown also pointed to
the relative version, e.g. "/wiki/Foo" instead of "/wiki/Template:Foo".

This also corrects missing dependency for mediawiki.util, which
is no longer used directly (although mediawiki.Title depends on it,
so the code worked correctly in spite of missing dependency).

Follow-up to ddca1c657e21bd49c01ead2e5e0fbcdb9ee26255.

Change-Id: I8f9293636c597cd617e68b4c238d7424915cf351

8 years agoOOUIHTMLForm: Make sure arguments to OOUI\HtmlSnippet are really strings
Bartosz Dziewoński [Thu, 16 Jul 2015 18:59:11 +0000 (20:59 +0200)]
OOUIHTMLForm: Make sure arguments to OOUI\HtmlSnippet are really strings

    Catchable fatal error: Method OOUI\HtmlSnippet::__toString()
    must return a string value in
    /var/www/html/w/vendor/oojs/oojs-ui/php/Element.php on line 245

$this->getHelpText() can return null.

Maybe OOUI\HtmlSnippet should be doing the casting instead, but it
currently doesn't.

Follow-up to 3ec3f08ca5c7bfae820bbc8085eff0809abd688b.

Change-Id: I0bb2a1594ea5ffd86bf8abd41c13f9451df256d5

8 years agoThis should fix T105373
Mukunda Modell [Thu, 16 Jul 2015 19:01:55 +0000 (14:01 -0500)]
This should fix T105373

See also Ia481d8a4cd9ed347874d351fa58b2712f3077a47
which is the same change on 1.26wmf14, but in a different file
because this class moved since the branch cut for wmf14.

Bug: T105373
Change-Id: Ib46e82a8c14f1f1955da268ef0ade2ab9cb39ab7

8 years agomediawiki.page.ready: When infusing, infuse by id, not by element
Bartosz Dziewoński [Tue, 14 Jul 2015 20:06:07 +0000 (22:06 +0200)]
mediawiki.page.ready: When infusing, infuse by id, not by element

Workaround for T105828 in OOUI.

Change-Id: I0cf5c9bc527d20c22d4238624985c8c54a20b4d4

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 16 Jul 2015 18:41:23 +0000 (18:41 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 16 Jul 2015 18:36:47 +0000 (20:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I09b03449679e9389e167c25d80cef52ba206dd3e

8 years agoMerge "HTMLForm: Add 'title' type"
jenkins-bot [Thu, 16 Jul 2015 18:33:13 +0000 (18:33 +0000)]
Merge "HTMLForm: Add 'title' type"

8 years agoMerge "Change "included" to "transcluded" in messages about cascading"
jenkins-bot [Thu, 16 Jul 2015 18:31:48 +0000 (18:31 +0000)]
Merge "Change "included" to "transcluded" in messages about cascading"

8 years agoMerge "OOUIHTMLForm: Wrap help text in OOUI\HtmlSnippet"
jenkins-bot [Thu, 16 Jul 2015 18:14:44 +0000 (18:14 +0000)]
Merge "OOUIHTMLForm: Wrap help text in OOUI\HtmlSnippet"

8 years agoUse Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers
Bartosz Dziewoński [Mon, 13 Jul 2015 18:02:49 +0000 (20:02 +0200)]
Use Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers

Updating all non-third-party scripts to depend on 'dom-level2-shim'
and use the constants.

* jquery.highlightText
* jquery.tablesorter
* mediawiki.api.upload
* test.mediawiki.qunit.testrunner

Change-Id: Ib07dded9fa18c749b3c064ab90326852146567b2

8 years agomediawiki.api.upload: Correct response handling of #uploadWithFormData
Bartosz Dziewoński [Mon, 13 Jul 2015 18:14:21 +0000 (20:14 +0200)]
mediawiki.api.upload: Correct response handling of #uploadWithFormData

* Reject instead of resolving when API reports errors, like #uploadWithIframe
* Purge bad tokens correctly, like #uploadWithIframe

Change-Id: I42fe6f6e921fe29dd96ce5b75ad61014a7346fc9

8 years agoFix issue with needToken patch to Api.upload
Mark Holmquist [Thu, 16 Jul 2015 14:15:52 +0000 (09:15 -0500)]
Fix issue with needToken patch to Api.upload

Fails currently for formData-enabled browsers where a token is not needed.

Change-Id: If5f1e9257fae770ea63a50ba8454e6617c77a455

8 years agoMerge "Normalize message name in Allmessages"
jenkins-bot [Thu, 16 Jul 2015 13:58:07 +0000 (13:58 +0000)]
Merge "Normalize message name in Allmessages"

8 years agoChinese Conversion Table Update 2015-6
Chiefwei [Thu, 16 Jul 2015 03:51:39 +0000 (11:51 +0800)]
Chinese Conversion Table Update 2015-6

Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82 .

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Ibf6d776d07a611a2afcb2c6c984074c39c8c0d70

8 years agoMerge "API: Fixed documentation for hasmg parameter"
jenkins-bot [Thu, 16 Jul 2015 03:38:06 +0000 (03:38 +0000)]
Merge "API: Fixed documentation for hasmg parameter"

8 years agoAPI: Fixed documentation for hasmg parameter
quiddity [Thu, 16 Jul 2015 02:58:58 +0000 (21:58 -0500)]
API: Fixed documentation for hasmg parameter

The API returns a plural "messages" key.

Bug: T105120
Change-Id: I385609b6b24ca767a0b0d26cfaec30ed423c3460

8 years agoConvert MWExceptionHandler to use structured logging
Bryan Davis [Sun, 24 May 2015 20:02:13 +0000 (22:02 +0200)]
Convert MWExceptionHandler to use structured logging

Replace wfDebugLog() calls in MWExceptionHandler with direct use of
LoggerFactory and LoggerInterface. Logged exceptions are added to the
log message context.

LegacyLogger is also updated to append stack traces to any log event
when $wgLogExceptionBacktrace is true and the PSR-3 recommendation of
passing the exception as an 'exception' context item.

Handling of context data in LegacyLogger is expanded to support arrays,
exceptions and common object types.

Bug: T88649
Change-Id: I71499d895582bdea033a2516c902e23e38084080

8 years agoUse deferred updates in place of $wgActivityUpdatesUseJobQueue
Aaron Schulz [Wed, 15 Jul 2015 23:47:46 +0000 (16:47 -0700)]
Use deferred updates in place of $wgActivityUpdatesUseJobQueue

* This is simpler and does not require custom queue loops

Bug: T91284
Change-Id: Icb8b6aaeb496a4ff3cd3a7e20cdbea0c7dabd677

8 years agoMerge "MonologSpi: Add method to provide additional configuration"
jenkins-bot [Wed, 15 Jul 2015 23:17:59 +0000 (23:17 +0000)]
Merge "MonologSpi: Add method to provide additional configuration"

8 years agoMerge "Add a bailout method for getEditToken"
jenkins-bot [Wed, 15 Jul 2015 21:18:56 +0000 (21:18 +0000)]
Merge "Add a bailout method for getEditToken"

8 years agoIgnore some ScopedCallback IDE warnings
Aaron Schulz [Wed, 15 Jul 2015 01:01:11 +0000 (18:01 -0700)]
Ignore some ScopedCallback IDE warnings

Change-Id: Iefe24ee5dae90d70c2acaaae9dc5d44c1758d53a

8 years agoAdd a bailout method for getEditToken
Mark Holmquist [Wed, 15 Jul 2015 20:41:36 +0000 (15:41 -0500)]
Add a bailout method for getEditToken

getEditToken is right handy for doing requests on the local wiki, but
CentralAuth yells at you if you leave a token= parameter in the request,
so we need to be able to turn this off.

Change-Id: I6212c6aa2f52671f22e227950a37dde6b65d5316

8 years agoMerge "Moved LoadMonitorMySQL to a separate file"
jenkins-bot [Wed, 15 Jul 2015 20:54:41 +0000 (20:54 +0000)]
Merge "Moved LoadMonitorMySQL to a separate file"

8 years agoNormalize message name in Allmessages
Geoffrey Mon [Mon, 13 Jul 2015 16:35:11 +0000 (12:35 -0400)]
Normalize message name in Allmessages

* Normalize the message name returned by allmessages
* Separate message key normalization into
  MessageCache::normalizeKey()

Bug: T63894
Change-Id: I1d89fc73fea705243d390bab91255a635d8f9eee

8 years agoMerge "Revert Count API module instantiations and Hook runs"
jenkins-bot [Wed, 15 Jul 2015 20:35:28 +0000 (20:35 +0000)]
Merge "Revert Count API module instantiations and Hook runs"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 15 Jul 2015 18:50:58 +0000 (20:50 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id26fe6fad7a66a5e500ee1c7a2e8f23afc888af3

8 years agoMerge "Support mustache partials in server-side templates"
jenkins-bot [Wed, 15 Jul 2015 15:05:03 +0000 (15:05 +0000)]
Merge "Support mustache partials in server-side templates"

8 years agoMerge "Hygiene: Use strtr() instead of str_replace() for character swapping"
jenkins-bot [Wed, 15 Jul 2015 09:39:45 +0000 (09:39 +0000)]
Merge "Hygiene: Use strtr() instead of str_replace() for character swapping"

8 years agoMerge "mediawiki.jqueryMsg: Use load urls instead of file urls for debug"
jenkins-bot [Wed, 15 Jul 2015 07:40:36 +0000 (07:40 +0000)]
Merge "mediawiki.jqueryMsg: Use load urls instead of file urls for debug"

8 years agoMerge "Upgraded User::saveSettings logged errors to exceptions"
jenkins-bot [Wed, 15 Jul 2015 07:36:56 +0000 (07:36 +0000)]
Merge "Upgraded User::saveSettings logged errors to exceptions"

8 years agoMerge "Add MediaWiki-Timestamp header to ResourceLoader requests"
jenkins-bot [Wed, 15 Jul 2015 07:30:24 +0000 (07:30 +0000)]
Merge "Add MediaWiki-Timestamp header to ResourceLoader requests"

8 years agoMerge "Fixed User class IDE warnings"
jenkins-bot [Wed, 15 Jul 2015 07:30:21 +0000 (07:30 +0000)]
Merge "Fixed User class IDE warnings"

8 years agoAdd MediaWiki-Timestamp header to ResourceLoader requests
Ori Livneh [Fri, 3 Jul 2015 02:20:41 +0000 (19:20 -0700)]
Add MediaWiki-Timestamp header to ResourceLoader requests

To help distinguish cache hits from cache misses, send a MediaWiki-Timestamp
header on ResourceLoader responses, indicating the current time as fractional
seconds since epoch, with microsecond precision.

Change-Id: I954a96ced1435a47d458de12411b257fe6b4ea34

8 years agoMerge "resourceloader: Make tests less susceptible to timestamp races"
jenkins-bot [Wed, 15 Jul 2015 05:30:24 +0000 (05:30 +0000)]
Merge "resourceloader: Make tests less susceptible to timestamp races"

8 years agoMerge "Record timing of thumbnail generation and store pull"
jenkins-bot [Wed, 15 Jul 2015 05:28:38 +0000 (05:28 +0000)]
Merge "Record timing of thumbnail generation and store pull"

8 years agoMerge "SpecialLinkSearch: Switch to OOUI form"
jenkins-bot [Wed, 15 Jul 2015 05:15:08 +0000 (05:15 +0000)]
Merge "SpecialLinkSearch: Switch to OOUI form"

8 years agoMerge "OOUIHTMLForm: Implement HTMLSelectNamespace"
jenkins-bot [Wed, 15 Jul 2015 05:14:20 +0000 (05:14 +0000)]
Merge "OOUIHTMLForm: Implement HTMLSelectNamespace"

8 years agoMerge "OOUIHTMLForm: Support setWrapperLegend()"
jenkins-bot [Wed, 15 Jul 2015 04:59:00 +0000 (04:59 +0000)]
Merge "OOUIHTMLForm: Support setWrapperLegend()"

8 years agoMerge "TitleInputWidget: Correct CSS class name in PHP code to match JS code"
jenkins-bot [Wed, 15 Jul 2015 04:08:05 +0000 (04:08 +0000)]
Merge "TitleInputWidget: Correct CSS class name in PHP code to match JS code"

8 years agoMerge "TitleInputWidget: Override getJavaScriptClassName and remove infuse hack"
jenkins-bot [Wed, 15 Jul 2015 03:29:59 +0000 (03:29 +0000)]
Merge "TitleInputWidget: Override getJavaScriptClassName and remove infuse hack"

8 years agoMoved LoadMonitorMySQL to a separate file
Aaron Schulz [Wed, 15 Jul 2015 01:32:18 +0000 (18:32 -0700)]
Moved LoadMonitorMySQL to a separate file

Change-Id: I529402416b8f12a511300b007b4f4aaf79054ad7

8 years agoMerge "Fix MultiHttpClient to return correct errors"
jenkins-bot [Tue, 14 Jul 2015 21:38:06 +0000 (21:38 +0000)]
Merge "Fix MultiHttpClient to return correct errors"

8 years agoFix MultiHttpClient to return correct errors
Niklas Laxström [Wed, 13 May 2015 09:38:21 +0000 (11:38 +0200)]
Fix MultiHttpClient to return correct errors

Bug: T89758
Change-Id: Ia1f1986d150df1a9f463d48f1a914a04608550f8

8 years agoTitleInputWidget: Correct CSS class name in PHP code to match JS code
Bartosz Dziewoński [Tue, 14 Jul 2015 18:57:07 +0000 (20:57 +0200)]
TitleInputWidget: Correct CSS class name in PHP code to match JS code

Change-Id: If05c5fbc052310b0b663da6ff283d821ed00ea73

8 years agoAdd "purpose" to password validity check
csteipp [Tue, 14 Jul 2015 19:26:46 +0000 (12:26 -0700)]
Add "purpose" to password validity check

Allow callers to specify why they are checking a passwords validity, so
some checks can be modified. Only check the default policy on creation,
since the account doesn't exist it's not a member of any groups.

Bug: T104615
Change-Id: I56b66002562aaa1493d94a90309bc8e4ae3841c8

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 14 Jul 2015 19:44:31 +0000 (19:44 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 14 Jul 2015 19:34:56 +0000 (21:34 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia8dd7a672283dc0ea984965ef587ea21375fa9ea

8 years agoMerge "Update OOjs UI to v0.12.0"
jenkins-bot [Tue, 14 Jul 2015 19:33:28 +0000 (19:33 +0000)]
Merge "Update OOjs UI to v0.12.0"

8 years agoTweaked User::READ_LOCKING to use LOCK IN SHARE MODE
Aaron Schulz [Tue, 14 Jul 2015 18:13:01 +0000 (11:13 -0700)]
Tweaked User::READ_LOCKING to use LOCK IN SHARE MODE

* This better alignes with IDBAccessObject docs and
  still locks out INSERTs

Change-Id: Ib8713938e0afa14bee6f90bc51d6331eaf356447

8 years agoMerge "API: improve pageswithprop explanation"
jenkins-bot [Tue, 14 Jul 2015 13:17:48 +0000 (13:17 +0000)]
Merge "API: improve pageswithprop explanation"

8 years agoRecord timing of thumbnail generation and store pull
Gilles Dubuc [Tue, 14 Jul 2015 09:21:21 +0000 (11:21 +0200)]
Record timing of thumbnail generation and store pull

Bug: T105681
Change-Id: If2edf285dc47736abde957a117ac4b40716072aa

8 years agoUpdate OOjs UI to v0.12.0
James D. Forrester [Mon, 13 Jul 2015 23:56:21 +0000 (16:56 -0700)]
Update OOjs UI to v0.12.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.0/History.md

Change-Id: I3436db714409adfc844598e36790258667d6d9fd

8 years agoMerge "Set $wgMainWANCache to none for PHPUnit, as is done for $wgMainCacheType"
Aaron Schulz [Mon, 13 Jul 2015 23:25:36 +0000 (23:25 +0000)]
Merge "Set $wgMainWANCache to none for PHPUnit, as is done for $wgMainCacheType"

8 years agoSet $wgMainWANCache to none for PHPUnit, as is done for $wgMainCacheType
Aaron Schulz [Mon, 13 Jul 2015 21:45:11 +0000 (14:45 -0700)]
Set $wgMainWANCache to none for PHPUnit, as is done for $wgMainCacheType

Change-Id: I0518876d7df7027c934d1199543a3185732df663

8 years agoMerge "Revert "Add 'AuthPluginStrict' log to identify users who are unable to authent...
jenkins-bot [Mon, 13 Jul 2015 23:17:50 +0000 (23:17 +0000)]
Merge "Revert "Add 'AuthPluginStrict' log to identify users who are unable to authenticate""

8 years agoRevert "Add 'AuthPluginStrict' log to identify users who are unable to authenticate"
Legoktm [Mon, 13 Jul 2015 23:07:02 +0000 (23:07 +0000)]
Revert "Add 'AuthPluginStrict' log to identify users who are unable to authenticate"

Does not work as it will also log failed login attempts due
to a wrong password.

This reverts commit 9a97a7530f2a637cbb95603cfa4e0b51da753207.

Change-Id: I6abd19da4e6939315a7fe6f7debe5227b68d38a7

8 years agoFixed edit stash inclusion queries
Aaron Schulz [Mon, 13 Jul 2015 19:11:16 +0000 (12:11 -0700)]
Fixed edit stash inclusion queries

* These are hit when the stashed edit is several seconds
  old. The old code was not using makeList() correctly.

Bug: T105597
Change-Id: I265307715996c50d819915a55ea34bbc0ed6c5c9

8 years agoMerge "objectcache: Add WANObjectCache::resetCheckKey() method"
jenkins-bot [Mon, 13 Jul 2015 21:35:12 +0000 (21:35 +0000)]
Merge "objectcache: Add WANObjectCache::resetCheckKey() method"

8 years agoFixed User class IDE warnings
Aaron Schulz [Mon, 13 Jul 2015 21:18:55 +0000 (14:18 -0700)]
Fixed User class IDE warnings

Change-Id: I68c30fd81a266aa1acdf74162bfa864b67922347

8 years agoobjectcache: Add WANObjectCache::resetCheckKey() method
Aaron Schulz [Thu, 28 May 2015 17:04:19 +0000 (10:04 -0700)]
objectcache: Add WANObjectCache::resetCheckKey() method

Change-Id: I6f8b97c1f4511534e1ab2656f472adee491f9d9f

8 years agoAPI: improve pageswithprop explanation
S Page [Mon, 13 Jul 2015 20:09:40 +0000 (13:09 -0700)]
API: improve pageswithprop explanation

Minor rephrase.

Change-Id: I80fb3e3866f2e3e487f5fc980615f34def5558a3

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 13 Jul 2015 19:23:25 +0000 (19:23 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 13 Jul 2015 19:18:35 +0000 (21:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I173f63580cb22316ee1085dc8ef932d28c4e290d

8 years agoMove StatsD key normalization from ProfilerOutputStats to BufferingStatsdDataFactory
Ori Livneh [Mon, 13 Jul 2015 18:26:27 +0000 (11:26 -0700)]
Move StatsD key normalization from ProfilerOutputStats to BufferingStatsdDataFactory

I'm not sure why I stuck `normalizeMetricKey' in ProfilerOutputStats, because
the transformation it applies are suitable for converting any arbitrary string
into a StatsD-safe metric key. This patch moves the method to
BufferingStatsdDataFactory, which ensures it applies to all metrics logged
within MediaWiki, and not just the Profiler.

Supercedes If0237cdd0d.

Change-Id: I496ed748000d28f5399fee6e3cc271a1f68bd058

8 years agoMerge "Remove <code/> from 'linksearch-text' message"
jenkins-bot [Mon, 13 Jul 2015 18:38:22 +0000 (18:38 +0000)]
Merge "Remove <code/> from 'linksearch-text' message"

8 years agoMerge "Add mw.Upload for easy tracking of uploads"
jenkins-bot [Mon, 13 Jul 2015 18:02:46 +0000 (18:02 +0000)]
Merge "Add mw.Upload for easy tracking of uploads"

8 years agoMerge "Add stash support for mw.Api.upload"
jenkins-bot [Mon, 13 Jul 2015 17:53:44 +0000 (17:53 +0000)]
Merge "Add stash support for mw.Api.upload"

8 years agoAdd mw.Upload for easy tracking of uploads
Mark Holmquist [Mon, 6 Jul 2015 20:38:05 +0000 (15:38 -0500)]
Add mw.Upload for easy tracking of uploads

This class will be used in an mw-ooui upload widget, as well
as several other places, to create a simpler upload pipeline.

Bug: T103413
Change-Id: Ifbfa626421b1b55ecaa522c5e5ef1f7ea45c6527

8 years agoMerge "Add support for FormData in mw.Api.upload"
jenkins-bot [Mon, 13 Jul 2015 17:51:48 +0000 (17:51 +0000)]
Merge "Add support for FormData in mw.Api.upload"

8 years agoMerge "Add frontend API for uploading via iframe"
jenkins-bot [Mon, 13 Jul 2015 17:50:15 +0000 (17:50 +0000)]
Merge "Add frontend API for uploading via iframe"

8 years agoAdd stash support for mw.Api.upload
Mark Holmquist [Mon, 29 Jun 2015 14:41:05 +0000 (09:41 -0500)]
Add stash support for mw.Api.upload

Bug: T103399
Change-Id: I2be7d5d874861e4cc24897316cd4933eb85b2c8f

8 years agoAdd support for FormData in mw.Api.upload
Mark Holmquist [Wed, 24 Jun 2015 19:48:12 +0000 (14:48 -0500)]
Add support for FormData in mw.Api.upload

Bug: T103398
Change-Id: I6185551468cf9799127f57e20e5a4134ca2a2a0f