lhc/web/wiklou.git
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 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 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

8 years agoAdd frontend API for uploading via iframe
Mark Holmquist [Wed, 24 Jun 2015 19:00:19 +0000 (14:00 -0500)]
Add frontend API for uploading via iframe

Coming next: File API support, stash support

Bug: T64513
Change-Id: I06fa61e7155efe8126ba12cda9376c37f1c45e8e

8 years agoAdd 'AuthPluginStrict' log to identify users who are unable to authenticate
Kunal Mehta [Fri, 10 Jul 2015 16:20:43 +0000 (09:20 -0700)]
Add 'AuthPluginStrict' log to identify users who are unable to authenticate

To be able to identify any users who are unable to log in when switching
from allowing local authentication to strict.

Change-Id: I2ebdccdad9c7794d1c1b13db6a646a43bc770c4e

8 years agoSpecialLinkSearch: Switch to OOUI form
Bartosz Dziewoński [Sat, 11 Jul 2015 17:21:36 +0000 (19:21 +0200)]
SpecialLinkSearch: Switch to OOUI form

This demonstrates two recent features:
* Support for wrapped forms (I847c5e18ae5469aa3a68cc9fa37b2a6614476ca2)
* Support for namespace selector (I5e97e5c661582f726153533ad00695b450caed46)

Change-Id: I46ba066b324e005bf2efa67036e6db739b0dea32

8 years agoOOUIHTMLForm: Implement HTMLSelectNamespace
Bartosz Dziewoński [Sat, 11 Jul 2015 17:12:10 +0000 (19:12 +0200)]
OOUIHTMLForm: Implement HTMLSelectNamespace

* Extracted some common code between this and Html::namespaceSelector
  into a new method Html::namespaceSelectorOptions().

Change-Id: I5e97e5c661582f726153533ad00695b450caed46

8 years agoOOUIHTMLForm: Support setWrapperLegend()
Bartosz Dziewoński [Sat, 11 Jul 2015 16:46:05 +0000 (18:46 +0200)]
OOUIHTMLForm: Support setWrapperLegend()

Changed FormSpecialPage not to call setWrapperLegend() for OOUI
forms to preserve current default behavior.

Bonus:
* Correct documentation of setWrapperLegend() to state that it
  HTML-escapes legend text.
* Remove hard-coded class="visualClear" in getFormAttributes().
* Allow setWrapperLegend( true ) to display the wrapper without
  legend text.
* Rejigger things so that we can put the legend and "header HTML"
  into correct order.

Bug: T103026
Change-Id: I847c5e18ae5469aa3a68cc9fa37b2a6614476ca2

8 years agoMerge "mediawiki.jqueryMsg: Remove toLowerCase from {{int:}} substitution"
jenkins-bot [Mon, 13 Jul 2015 17:06:11 +0000 (17:06 +0000)]
Merge "mediawiki.jqueryMsg: Remove toLowerCase from {{int:}} substitution"

8 years agomediawiki.jqueryMsg: Remove toLowerCase from {{int:}} substitution
Ed Sanders [Fri, 12 Jun 2015 15:09:07 +0000 (16:09 +0100)]
mediawiki.jqueryMsg: Remove toLowerCase from {{int:}} substitution

While it is recommended that message keys be lower case, it is
not a requirement, nor is it enforced anywhere else (including the
PHP version of this function).

Only lowercase the first letter (which is case-insensitive) for
compatibility with messages data provided by ResourceLoader.

Change-Id: I1be039e9c76d114e251baa585b58efd2c8602a8a

8 years agoRemove <code/> from 'linksearch-text' message
Bartosz Dziewoński [Sat, 11 Jul 2015 17:18:12 +0000 (19:18 +0200)]
Remove <code/> from 'linksearch-text' message

It provides no value and looks really ugly.

Would be nice to automatically fix all translations too, if possible.

Change-Id: Ib27e4e94401061bd51f45901d7f9d8246bf35c2c

8 years agobrowsertests: upgrade watir-webdriver
Željko Filipin [Sat, 11 Jul 2015 09:55:41 +0000 (11:55 +0200)]
browsertests: upgrade watir-webdriver

Speed up elements lookup over network (such as with SauceLabs)
by bumping the watir-webdriver version.

Upgrade other Ruby gems to the latest released versions

The latest version of:
- bundler adds it’s version to Gemfile.lock
- watir-webdriver speeds up element lookup
- rubocop found some minor problems (fixed)

Bug: T92613
Change-Id: I06bde19f5a2e0b6b3fc7af9c01a66a137ba352ba

8 years agorebuildLocalisationCache: don't limit memory usage
Ori Livneh [Mon, 13 Jul 2015 09:19:45 +0000 (02:19 -0700)]
rebuildLocalisationCache: don't limit memory usage

The 1000 MB limit seems to have crept in without good reason, and crashing when
crossing an arbitrary threshold like that isn't very useful. LCStoreStaticArray
ends up using more than the default limit allows.

Change-Id: I1d9ab743720f5a1fbe320180c1dcdb4ad03c5aa1

8 years agoMerge "Pass context to parent constructor in PackedImageGallery"
jenkins-bot [Mon, 13 Jul 2015 08:01:02 +0000 (08:01 +0000)]
Merge "Pass context to parent constructor in PackedImageGallery"

8 years agoMerge "Ignore tagfilter url parameter on Special:EditTags"
jenkins-bot [Mon, 13 Jul 2015 08:00:57 +0000 (08:00 +0000)]
Merge "Ignore tagfilter url parameter on Special:EditTags"

8 years agoMerge "Use finite verb (indicative) in pageinfo-visiting-watchers"
jenkins-bot [Mon, 13 Jul 2015 08:00:53 +0000 (08:00 +0000)]
Merge "Use finite verb (indicative) in pageinfo-visiting-watchers"

8 years agoFix variable name (follows Ib2c5856d)
Ori Livneh [Mon, 13 Jul 2015 07:26:44 +0000 (00:26 -0700)]
Fix variable name (follows Ib2c5856d)

Change-Id: I1c673110e35daa6d5e382fad0fd99d6e4daa9f73

8 years agoMerge "Pass function name in SearchMySQL::minSearchLength"
jenkins-bot [Sun, 12 Jul 2015 20:26:45 +0000 (20:26 +0000)]
Merge "Pass function name in SearchMySQL::minSearchLength"

8 years agoPass function name in SearchMySQL::minSearchLength
umherirrender [Sun, 12 Jul 2015 20:05:37 +0000 (22:05 +0200)]
Pass function name in SearchMySQL::minSearchLength

This allow to see the correct function name in the debug logs

Change-Id: Ic18120ead47d4647943473d4aa1c5c795669d2c0

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

Change-Id: Id82882a8c72480c844e3698ae242a893c26ba531

8 years agoMerge "SpecialLinkSearch: Use 'type' rather than 'class' for HTMLForm's HTMLSelectNam...
jenkins-bot [Sun, 12 Jul 2015 19:15:52 +0000 (19:15 +0000)]
Merge "SpecialLinkSearch: Use 'type' rather than 'class' for HTMLForm's HTMLSelectNamespace"

8 years agoMerge "API: Improve upload error reporting"
jenkins-bot [Sun, 12 Jul 2015 04:46:14 +0000 (04:46 +0000)]
Merge "API: Improve upload error reporting"

8 years agoOOUIHTMLForm: Wrap help text in OOUI\HtmlSnippet
Kunal Mehta [Sun, 12 Jul 2015 04:06:03 +0000 (21:06 -0700)]
OOUIHTMLForm: Wrap help text in OOUI\HtmlSnippet

HTMLFormField::getHelpText() returns HTML and should not be escaped.

Depends upon 1dbef2766f23 in OOUI.

Bug: T104422
Change-Id: I33c8ebb448e345db7bf8b8ad540336b5b9d6aea1