lhc/web/wiklou.git
8 years agoMake makeKeyInternal() limit more conservative
Aaron Schulz [Mon, 2 Nov 2015 03:19:38 +0000 (19:19 -0800)]
Make makeKeyInternal() limit more conservative

This should avoid error log entries for long WAN cache keys

Change-Id: I401482d25dd5bf47052a3c6729c5f8bc9fd68770

8 years agoImprove MIME detection in FileBackend
Aaron Schulz [Fri, 14 Nov 2014 06:47:06 +0000 (22:47 -0800)]
Improve MIME detection in FileBackend

The content type detector will now inspect the file contents
to better handle extensionless files.

Also dependency inject the callback and make the default one
use FileInfo.

Change-Id: Iad59bf6c6a416b706f976a4c425763fd30e2debb

8 years agoMerge "Normalize header case for FileBackend operations"
jenkins-bot [Sun, 1 Nov 2015 23:28:22 +0000 (23:28 +0000)]
Merge "Normalize header case for FileBackend operations"

8 years agoMerge "phpcs: Fix some "Assignment expression not allowed""
jenkins-bot [Sun, 1 Nov 2015 22:42:19 +0000 (22:42 +0000)]
Merge "phpcs: Fix some "Assignment expression not allowed""

8 years agoMerge "mw.html: Document mw.html.elements optional parameters"
jenkins-bot [Sun, 1 Nov 2015 22:38:47 +0000 (22:38 +0000)]
Merge "mw.html: Document mw.html.elements optional parameters"

8 years agoMerge "Fixed arguments syntax in hooks.txt"
jenkins-bot [Sun, 1 Nov 2015 20:42:22 +0000 (20:42 +0000)]
Merge "Fixed arguments syntax in hooks.txt"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 Nov 2015 20:27:14 +0000 (21:27 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If418ae5921eefe082e19851a35f6745b25aeda92

8 years agophpcs: Fix some "Assignment expression not allowed"
umherirrender [Sun, 1 Nov 2015 19:56:20 +0000 (20:56 +0100)]
phpcs: Fix some "Assignment expression not allowed"

Found by new version of mediawiki/codesniffer
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs/1939/consoleFull

Change-Id: I673f71fd0dfc8d6ba1ce6c3d5da21787ff95cb32

8 years agophpcs: Fix some "Single space expected before elseif"
umherirrender [Sun, 1 Nov 2015 20:03:18 +0000 (21:03 +0100)]
phpcs: Fix some "Single space expected before elseif"

Found by new version of mediawiki/codesniffer
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs/1939/consoleFull

Change-Id: I465bf0d1c89603b3dfc9867be3c0b1190829312d

8 years agoConvert JobQueueDB to using the WAN cache
Aaron Schulz [Sun, 1 Nov 2015 09:05:34 +0000 (01:05 -0800)]
Convert JobQueueDB to using the WAN cache

Change-Id: Ie5820d1439014572ca171c9303d51a8d3938ad00

8 years agoOutputPage: documentation for (semi-)deprecated methods
Derk-Jan Hartman [Sat, 31 Oct 2015 15:16:58 +0000 (16:16 +0100)]
OutputPage: documentation for (semi-)deprecated methods

Deprecated: addExtensionStyle, getExtStyle
These had been deprecated unofficially for a while now. ResourceLoader
is preferred.

Internal/Unpreferred: addHeadItem, addScript, addScriptFile,
addInlineScript, addStyle, addInlineStyle.
All should be used as littel as possible, in favor of ResourceLoader
and a few other higher level accessors. They are not truly deprecated,
but should not really be used unless you have a really good reason.

Also added a few missing wfDeprecated calls to methods marked as
deprecated in the phpdoc.

Bug: T89955
Change-Id: I472d906b6de16257fa34a2f9bfe9e4eb284d02b4

8 years agomw.html: Document mw.html.elements optional parameters
Derk-Jan Hartman [Sat, 31 Oct 2015 15:47:00 +0000 (15:47 +0000)]
mw.html: Document mw.html.elements optional parameters

* Move tests to a separate test suite.
* Unit tests already covered these cases without second and third
  parameter so no extra tests.
* Update code to clearly make attribs optional.

Bug: T88962
Change-Id: I26bb4b0a907f48064f41236972e115ec1f7edf0c

8 years agoMerge "Improve error message from when vendor files don't exist"
jenkins-bot [Sat, 31 Oct 2015 23:09:35 +0000 (23:09 +0000)]
Merge "Improve error message from when vendor files don't exist"

8 years agoImprove error message from when vendor files don't exist
Reedy [Sat, 31 Oct 2015 22:57:07 +0000 (22:57 +0000)]
Improve error message from when vendor files don't exist

Change-Id: Id1caeb487a4e801bd7f0f5377b6c06c6fc7eebe4

8 years agoMerge "Remove search preferences from Special:Preferences JavaScript"
jenkins-bot [Sat, 31 Oct 2015 22:49:15 +0000 (22:49 +0000)]
Merge "Remove search preferences from Special:Preferences JavaScript"

8 years agoEnable WebP uploads by default
Derk-Jan Hartman [Mon, 29 Jun 2015 19:27:40 +0000 (21:27 +0200)]
Enable WebP uploads by default

Initially disabled for WMF I33b7de30c746e36539e9af29e9598e6723d030dd

Bug: T27397
Change-Id: I9604668b0f7108fe52222d7f76854f9d30e637b0

8 years agoRemove search preferences from Special:Preferences JavaScript
saper [Sat, 31 Oct 2015 20:15:05 +0000 (21:15 +0100)]
Remove search preferences from Special:Preferences JavaScript

Search preferences are now handled by Special:Search, not
by Special:Preferences

Bug: T54817
Change-Id: I8faabbed190a46397b35f630c031fc1b4bb6e3e1

8 years agoConvert SiteStatsUpdate to using getMainStashInstance()
Aaron Schulz [Sat, 31 Oct 2015 20:05:03 +0000 (13:05 -0700)]
Convert SiteStatsUpdate to using getMainStashInstance()

Also fixed various $wgMemc related comments

Change-Id: I20602b672f724c8df1e82bbe3c586cb899a54640

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 31 Oct 2015 19:44:53 +0000 (20:44 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5f61d69577610c47d7054205d6c5e41a1611b315

8 years agoFixed arguments syntax in hooks.txt
umherirrender [Sat, 31 Oct 2015 18:14:29 +0000 (19:14 +0100)]
Fixed arguments syntax in hooks.txt

BaseTemplateAfterPortlet: Add colon to match the other arguments
FileUpload: Adjust spacing to match the other arguments

Change-Id: Iae0285b1a39cf851aaaa735cb22e95c839813997

8 years agoLoad 'mediawiki.page.gallery.styles' also without javascript
umherirrender [Sat, 31 Oct 2015 12:49:11 +0000 (13:49 +0100)]
Load 'mediawiki.page.gallery.styles' also without javascript

Using OutputPage::addModules lets the style loaded over javascript
Using OutputPage::addModuleStyles forces loading over css

Follows I32697c2c65824d7622c1840330d6074ebb68b488

Bug: T117328
Change-Id: I3ddf105d180336b6eb7ae31286221151055e649f

8 years agoDon't link to title on "htmlform-title-not-exists"
Glaisher [Sat, 31 Oct 2015 11:30:30 +0000 (16:30 +0500)]
Don't link to title on "htmlform-title-not-exists"

The page doesn't exist so it doesn't need to be linked.

Change-Id: Iffea124ca565c3954e28585b335da765ec9964f1

8 years agoAdd comment to unused EDIT_DEFER_UPDATES in Defines.php
umherirrender [Wed, 28 Oct 2015 17:42:20 +0000 (18:42 +0100)]
Add comment to unused EDIT_DEFER_UPDATES in Defines.php

Follows I2bc47b82635e0a24b1df5d502ba66f6de737697e

Change-Id: If08e0d355abd4e6ea2f9efe333867b9e88bd08cf

8 years agoMerge "objectcache: Allow bounded HashBagOStuff sizes and limit it in WANObjectCache"
jenkins-bot [Sat, 31 Oct 2015 02:20:25 +0000 (02:20 +0000)]
Merge "objectcache: Allow bounded HashBagOStuff sizes and limit it in WANObjectCache"

8 years agoobjectcache: Allow bounded HashBagOStuff sizes and limit it in WANObjectCache
Aaron Schulz [Thu, 29 Oct 2015 21:23:32 +0000 (14:23 -0700)]
objectcache: Allow bounded HashBagOStuff sizes and limit it in WANObjectCache

Change-Id: Icca2474b1ea6feb7134f8958aecf79aa51b7f71e

8 years agoMerge "Disallow User::setPassword() on users not in database"
jenkins-bot [Sat, 31 Oct 2015 01:33:03 +0000 (01:33 +0000)]
Merge "Disallow User::setPassword() on users not in database"

8 years agoMerge "objectcache: Use singleton cache in newAccelerator()"
jenkins-bot [Fri, 30 Oct 2015 22:38:37 +0000 (22:38 +0000)]
Merge "objectcache: Use singleton cache in newAccelerator()"

8 years agoobjectcache: Use singleton cache in newAccelerator()
Timo Tijhof [Fri, 30 Oct 2015 22:22:44 +0000 (22:22 +0000)]
objectcache: Use singleton cache in newAccelerator()

It was re-creating objects for each call.

This matches behaviour of newAnything().

Bug: T115729
Change-Id: If12aedae7f9f791eb8e233eb241c12efd2921762

8 years agoMerge "Log warnings on on preg_* failures in MagicWordArray::matchAndRemove()"
jenkins-bot [Fri, 30 Oct 2015 22:18:05 +0000 (22:18 +0000)]
Merge "Log warnings on on preg_* failures in MagicWordArray::matchAndRemove()"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 30 Oct 2015 20:33:58 +0000 (21:33 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2825eb46161ccb66a10c6df4fbc4a02404923dc9

8 years agoMerge "updateSpecialPages: Get rid of dead SpecialPage::getFile() code"
jenkins-bot [Fri, 30 Oct 2015 20:07:41 +0000 (20:07 +0000)]
Merge "updateSpecialPages: Get rid of dead SpecialPage::getFile() code"

8 years agoMerge "Typo fix for maintenance/install.php."
jenkins-bot [Fri, 30 Oct 2015 16:34:51 +0000 (16:34 +0000)]
Merge "Typo fix for maintenance/install.php."

8 years agoDisallow User::setPassword() on users not in database
Brad Jorsch [Fri, 30 Oct 2015 15:19:12 +0000 (11:19 -0400)]
Disallow User::setPassword() on users not in database

Change I2c736ad mostly removed the password handling from the User
object, but left in a little password handling to preserve the existing
ability to call $user->setPassword() before the user was actually added
to the database. That ability is now removed.

Bug: T47716
Change-Id: Id3d40742f2e2b197ad6facd149cc6350006bf289

8 years agoUpdate description of LinkCache::forUpdate()
Kevin Israel [Fri, 30 Oct 2015 09:29:12 +0000 (05:29 -0400)]
Update description of LinkCache::forUpdate()

The $mForUpdate flag no longer causes the FOR UPDATE option to be added.
This was at first only true for some values of $wgAntiLockFlags (since
r9248 / ba8a00bcb833), though since 12757b50f8da (when the setting was
removed), is always the case.

The added text is based on the description for $wgAntiLockFlags.

Change-Id: I02a3e2df37ec40c7e36ae6210c8263f13d9e3e5b

8 years agojobqueue: Pass count value delta instead of $type for the inserts_actual metric
Timo Tijhof [Fri, 30 Oct 2015 06:08:37 +0000 (06:08 +0000)]
jobqueue: Pass count value delta instead of $type for the inserts_actual metric

Follows-up 4844595. Which wrongly passed the delta as $type parameter.
This resulted in the creation of "jobqueue.inserts_actual.50" and other
random buckets.

The "all" key also got incremented with 1, but doesn't reflect the actual
value in any meaningful way (besides the number of data points pushed
to statsd).

Change-Id: Ic93e06946ce3fcf0c21d2b7504fb10b3711c6e2b

8 years agoLog warnings on on preg_* failures in MagicWordArray::matchAndRemove()
Gergő Tisza [Thu, 29 Oct 2015 23:03:15 +0000 (16:03 -0700)]
Log warnings on on preg_* failures in MagicWordArray::matchAndRemove()

Softer version of I3840a56adc0a6e50963b930051892491f8e90245.

Bug: T115514
Change-Id: Idb297a31b17928a0151476879294eedfbec0d744

8 years agoAdd and use wikimedia/base-convert 1.0.1
Kunal Mehta [Thu, 29 Oct 2015 22:56:07 +0000 (15:56 -0700)]
Add and use wikimedia/base-convert 1.0.1

Change-Id: I3ae56e761ef6fb2b2d506bc2990b97f57183ccf1

8 years agoMerge "Fix AbortLogin hook return value check"
jenkins-bot [Fri, 30 Oct 2015 00:30:30 +0000 (00:30 +0000)]
Merge "Fix AbortLogin hook return value check"

8 years agoFix AbortLogin hook return value check
Gergő Tisza [Fri, 30 Oct 2015 00:13:37 +0000 (17:13 -0700)]
Fix AbortLogin hook return value check

Bug: T117027
Change-Id: Ia0a222058306bd7e3d1d090dca9976dee54dcc6d

8 years agoGet rid of the !importants in the Special:Search form styling
Isarra [Wed, 28 Oct 2015 18:09:06 +0000 (18:09 +0000)]
Get rid of the !importants in the Special:Search form styling

Change-Id: Ibf77eaa6060caba8b6b83439f18f99ea9204ca56

8 years agoMerge "Parse huge XML metadata from DjVu images"
jenkins-bot [Thu, 29 Oct 2015 22:26:06 +0000 (22:26 +0000)]
Merge "Parse huge XML metadata from DjVu images"

8 years agoMerge "Revert throwing exceptions on preg_* failures"
jenkins-bot [Thu, 29 Oct 2015 22:09:44 +0000 (22:09 +0000)]
Merge "Revert throwing exceptions on preg_* failures"

8 years agoMerge "Free $textMatches results only when done using it"
jenkins-bot [Thu, 29 Oct 2015 22:04:41 +0000 (22:04 +0000)]
Merge "Free $textMatches results only when done using it"

8 years agoRevert throwing exceptions on preg_* failures
Gergő Tisza [Thu, 29 Oct 2015 21:52:44 +0000 (14:52 -0700)]
Revert throwing exceptions on preg_* failures

This reverts I3840a56adc0a6e50963b930051892491f8e90245 which
threw exceptions on broken UTF-8 in $text.

Bug: T115514
Bug: T117066
Change-Id: Ie665056a13f9e3678a49790d787b0a41dbba6362

8 years agoFree $textMatches results only when done using it
Aaron Schulz [Thu, 29 Oct 2015 21:41:00 +0000 (14:41 -0700)]
Free $textMatches results only when done using it

Change-Id: Ic534fa605ca9c771e7cbe7d3d243f1062fb2d022

8 years agoFix "Notice: Undefined property: Category::$mId" errors
Aaron Schulz [Thu, 29 Oct 2015 21:36:29 +0000 (14:36 -0700)]
Fix "Notice: Undefined property: Category::$mId" errors

This should also improve performance while at it.

Change-Id: Ib62ce801f597c653d0a8d5fc19b81c1ce8e0f5f2

8 years agoMerge "Include preg_last_error() in error message when preg_* fails"
jenkins-bot [Thu, 29 Oct 2015 21:19:32 +0000 (21:19 +0000)]
Merge "Include preg_last_error() in error message when preg_* fails"

8 years agoInclude preg_last_error() in error message when preg_* fails
Gergő Tisza [Thu, 29 Oct 2015 20:49:11 +0000 (13:49 -0700)]
Include preg_last_error() in error message when preg_* fails

Bug: T115514
Bug: T117066
Change-Id: I1d13f8542a4cf11c8e87cd4f6a983fa852dfdf1e

8 years agoMerge "Styling tweaks for inline interwiki search"
jenkins-bot [Thu, 29 Oct 2015 20:44:18 +0000 (20:44 +0000)]
Merge "Styling tweaks for inline interwiki search"

8 years agoMerge "[search] Fix method call on null value"
jenkins-bot [Thu, 29 Oct 2015 20:41:00 +0000 (20:41 +0000)]
Merge "[search] Fix method call on null value"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 29 Oct 2015 20:06:27 +0000 (21:06 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia42d861907521a354efd99d97703c09035927fd2

8 years agoAPI: Be consistent in siteinfo showhooks output
Brad Jorsch [Thu, 29 Oct 2015 17:40:52 +0000 (13:40 -0400)]
API: Be consistent in siteinfo showhooks output

This was originally made 'BCarray' to avoid breaking BC, but in this
case the nonstandard output is so rare it's probably best to just be
internally consistent.

Bug: T117022
Change-Id: I501c415f6170383c163110b00e54ac88c3dfec89

8 years agoMerge "mediawiki.Upload.BookletLayout: Allow for asynchronous initialization"
jenkins-bot [Thu, 29 Oct 2015 15:59:59 +0000 (15:59 +0000)]
Merge "mediawiki.Upload.BookletLayout: Allow for asynchronous initialization"

8 years agoMerge "TitleWidget: Sort results correctly"
jenkins-bot [Thu, 29 Oct 2015 15:15:46 +0000 (15:15 +0000)]
Merge "TitleWidget: Sort results correctly"

8 years agoTitleWidget: Sort results correctly
Ed Sanders [Thu, 29 Oct 2015 13:18:42 +0000 (13:18 +0000)]
TitleWidget: Sort results correctly

Bug: T117039
Change-Id: Ie86c1751dacb5c32afe708b354809b914a54ea51

8 years agoRemove ORM code from core
Reedy [Tue, 6 Oct 2015 15:58:18 +0000 (16:58 +0100)]
Remove ORM code from core

Bug: T114538
Change-Id: Ic4196ca9da927fc5c85b01cfff65f0636e3202ae

8 years agoParse huge XML metadata from DjVu images
Rainer Rillke [Thu, 29 Oct 2015 12:08:18 +0000 (13:08 +0100)]
Parse huge XML metadata from DjVu images

Bug: T117013
Change-Id: I88ef3c1390dc48fa2cfe41d83867eaf0c244726e

8 years agoInstaller: Validate password against sysop/bureaucrat policies
This, that and the other [Thu, 29 Oct 2015 12:24:40 +0000 (23:24 +1100)]
Installer: Validate password against sysop/bureaucrat policies

Previously, user-group-specific policies were not checked, because the
user hadn't been created yet, and so wasn't assigned to any groups. In his
overhaul of password policy, Chris wrote a function that was designed for
exactly this purpose (UserPasswordPolicy::checkUserPasswordForGroups) but
didn't put it into use.

Some changes to the error handling code are needed so the error messages
display correctly.

Bug: T115700
Change-Id: I1391c77c9667b646b29003bb0b2abcdc21d8c4d8

8 years agoMerge "Add tests for MemcachedBagOStuff::validateKeyEncoding"
jenkins-bot [Thu, 29 Oct 2015 11:56:17 +0000 (11:56 +0000)]
Merge "Add tests for MemcachedBagOStuff::validateKeyEncoding"

8 years agoAdd script to find orphaned LocalRepo files
Aaron Schulz [Wed, 28 Oct 2015 20:01:50 +0000 (13:01 -0700)]
Add script to find orphaned LocalRepo files

Bug: T111838
Change-Id: I60ac7f3451c8240a0716933dcfff413669458206

8 years agoMerge "Convert buildSidebar() to using getWithSetCallback()"
jenkins-bot [Thu, 29 Oct 2015 08:04:32 +0000 (08:04 +0000)]
Merge "Convert buildSidebar() to using getWithSetCallback()"

8 years ago[search] Fix method call on null value
Erik Bernhardson [Thu, 29 Oct 2015 01:37:22 +0000 (18:37 -0700)]
[search] Fix method call on null value

Seeing these pop up in the production logs. This can be null under
certain circumstances, so expect and handle it.

Change-Id: I25a355174e0ad93280eccffd4ec711a641d14bf3

8 years agoLanguage: Remove logic for class file inclusion
Timo Tijhof [Thu, 29 Oct 2015 01:02:58 +0000 (01:02 +0000)]
Language: Remove logic for class file inclusion

* Remove strcspn() check in newFromCode already in isValidCode().
* Leverage the autoloader instead via class_exists instead of
  including files based on user input.
* Create fallback instance directly instead of recursing back
  into newFromCode().

* Remove method preloadLanguageClass (unused).
* Remove method getClassFileName (unused)

Change-Id: I90035ca4b07facae051b1a584e92df72b42c4a49

8 years agoConvert buildSidebar() to using getWithSetCallback()
Aaron Schulz [Wed, 28 Oct 2015 05:25:36 +0000 (22:25 -0700)]
Convert buildSidebar() to using getWithSetCallback()

Change-Id: Id9a27ba2bbd3aceee26bf35844d1c970dbb32d47

8 years agoresourceloader: Sanitize lang with isValidBuiltInCode(), not isValidCode()
Timo Tijhof [Wed, 28 Oct 2015 23:55:39 +0000 (23:55 +0000)]
resourceloader: Sanitize lang with isValidBuiltInCode(), not isValidCode()

Follows-up r96280 (368dbc5f5b), and r82927 (1e67922842).

Language::isValidCode() (used by index.php) allows a very wide range of values,
which inflates the msg_resource cache quite a bit (T102058). This is a first
step toward locking it down.

This change affects both handling of incoming load.php requests, and the
formatting of request urls by OutputPage. As such, OutputPage will no longer
forward invalid uselang values that are valid for index.php to load.php.

Change-Id: I27857ce5949bc616c7179f5f47b24aa2f6765f5f

8 years agoMerge "Fix slow callbacks in getWithSetCallback() using lockTSE"
jenkins-bot [Wed, 28 Oct 2015 23:51:37 +0000 (23:51 +0000)]
Merge "Fix slow callbacks in getWithSetCallback() using lockTSE"

8 years agoClient-side migration for empty li preservation
Tim Starling [Wed, 14 Oct 2015 03:16:44 +0000 (23:16 -0400)]
Client-side migration for empty li preservation

It is desirable in terms of user-friendly syntax to display an empty
list item if the user adds one to the source. However, we suspect that
this change will break the rendering of existing templates. So, preserve
the empty <li> element, but style it with display:none so that there is
no user-visible change. Changes can then be observed with a user script,
then eventually the CSS can be removed so that the desired behaviour will
be user visible.

This is imagined as a staged deployment of T89331, i.e. it is better to
resolve differences with Html5Depurate one at a time instead of
deploying it all at once.

The CSS module is specified in parser/MWTidy.php since the tidy driver
hierarchy is not meant to be so closely tied to the MW environment.

Bug: T49673
Change-Id: Ifb44b782c617240e3de73dcdf76c8737c7307d94

8 years agoFix slow callbacks in getWithSetCallback() using lockTSE
Aaron Schulz [Fri, 23 Oct 2015 02:36:59 +0000 (19:36 -0700)]
Fix slow callbacks in getWithSetCallback() using lockTSE

* Keys that take a long time to generate would run into
  the MAX_SNAPSHOT_LAG check and have set() no-op. This
  would be fine except that leaves no key there to figure
  out the time since expiry and therefore whether to use
  the mutex, so it didn't. This now saves the keys but with
  a FLG_STALE bit set, making the next caller that sees it
  perform a regeneration (unless it can't get the mutex).
* Bumped LOCK_TTL so that keys can stay locked much longer.
* This is easy to test via sleep(5) in tagUsageStatistics()
  and two Special:Tags browser tabs.

Bug: T91535
Change-Id: I549e70ace3d2e7da40d3c4346ebacc36024cd522

8 years agowikimedia/running-stat 1.0.0 → 1.1.0
Ori Livneh [Wed, 28 Oct 2015 22:31:47 +0000 (15:31 -0700)]
wikimedia/running-stat 1.0.0 → 1.1.0

9d7170d3ee: Rename RunningStat::push() to RunningStat::addObservation()
09b6e53be9: Add PSquare class for online percentile estimation

mediawiki/vendor change: I48dd51c9068

Change-Id: Ie6b19833c282e0f493c4d306807366a6671455a8

8 years agomediawiki.Upload.BookletLayout: Allow for asynchronous initialization
Bartosz Dziewoński [Wed, 28 Oct 2015 21:28:51 +0000 (22:28 +0100)]
mediawiki.Upload.BookletLayout: Allow for asynchronous initialization

It happens to be convenient, since it turned out that we need to fire
a few API requests to correctly render some bits of the UI.

Follow-up to 86dedeea7f7cae5452acf5162672f34c32b593fd. This makes the
code less hacky and more reliable.

Change-Id: I65a92e3915a6844056fb7b3a2758a168eb12e6b8

8 years agoFix diff/history links not showing up for ungrouped enhanced RC
Kunal Mehta [Wed, 28 Oct 2015 20:48:46 +0000 (13:48 -0700)]
Fix diff/history links not showing up for ungrouped enhanced RC

Looks like a typo or accident from d40cd42b9f960c.

Bug: T116899
Change-Id: I33b65afa78480612b9312282922686a64346fef2

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 28 Oct 2015 20:31:22 +0000 (21:31 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I29f42fc05b323dacc3dd33ebbd26bf4e50c25bfa

8 years agoHTMLRadioField: Use another variable for the radio value to avoid conflicts
Florianschmidtwelzow [Wed, 28 Oct 2015 14:39:39 +0000 (15:39 +0100)]
HTMLRadioField: Use another variable for the radio value to avoid conflicts

$value is used in a foreach loop to build the radioselect fields array for OOUI,
but $value is also the variable, which holds the default value for the element
(or a value, which ws submitted by the user), to pre-select the correct radio input
field. That results in the problem, that $value will always contain the last data,
which passed the foreach loop, and always the last radio input field will be pre-
selected, no matter, what the developer defined as the default or what the user
submitted in a prior form instance.

Change the variable used in the foreach loop to avoid this conflict.

Change-Id: I36c760be8ccd86e75249c966f697b499576c83d4

8 years agoAdd tests for MemcachedBagOStuff::validateKeyEncoding
Thiemo Mättig [Wed, 28 Oct 2015 15:26:37 +0000 (16:26 +0100)]
Add tests for MemcachedBagOStuff::validateKeyEncoding

If3e20c6 and the following patches introduced a breaking change and
cause a regression in Wikibase because we are using the version number
constant as part of a cache key prefix. Currently the Wikibase version
is set to "0.5 alpha".

Space characters were allowed before and encoded as "%20". This does
not happen any more.

Change-Id: Ia2fd4ed6738a10e02050bced947ef5d4e8b98980

8 years agoMerge "Make WAN cache HOLDOFF_TTL smaller by combining db/snapshot lag"
jenkins-bot [Wed, 28 Oct 2015 15:10:40 +0000 (15:10 +0000)]
Merge "Make WAN cache HOLDOFF_TTL smaller by combining db/snapshot lag"

8 years agoMerge "resourceloader: Consistently refer to the framework as ResourceLoader"
jenkins-bot [Wed, 28 Oct 2015 14:53:58 +0000 (14:53 +0000)]
Merge "resourceloader: Consistently refer to the framework as ResourceLoader"

8 years agoMerge "resourceloader: Remove 'loaderScripts' option from FileModule"
jenkins-bot [Wed, 28 Oct 2015 14:53:37 +0000 (14:53 +0000)]
Merge "resourceloader: Remove 'loaderScripts' option from FileModule"

8 years agoMerge "Add help link to Special:Search"
jenkins-bot [Wed, 28 Oct 2015 11:58:26 +0000 (11:58 +0000)]
Merge "Add help link to Special:Search"

8 years agoMerge "Convert DjVU cache to WANObjectCache"
jenkins-bot [Wed, 28 Oct 2015 05:30:14 +0000 (05:30 +0000)]
Merge "Convert DjVU cache to WANObjectCache"

8 years agoMerge "Improve WAN cache delete() docs a bit"
jenkins-bot [Wed, 28 Oct 2015 05:26:04 +0000 (05:26 +0000)]
Merge "Improve WAN cache delete() docs a bit"

8 years agoMerge "Bump development Monolog version"
jenkins-bot [Wed, 28 Oct 2015 05:20:05 +0000 (05:20 +0000)]
Merge "Bump development Monolog version"

8 years agoImprove WAN cache delete() docs a bit
Aaron Schulz [Wed, 28 Oct 2015 04:52:30 +0000 (21:52 -0700)]
Improve WAN cache delete() docs a bit

Also use more TTL constants in getWithSetCallback() examples

Change-Id: I866f0464c07fa0c8977c6e908e92186b2ef9de43

8 years agoConvert DjVU cache to WANObjectCache
Aaron Schulz [Mon, 26 Oct 2015 17:43:21 +0000 (10:43 -0700)]
Convert DjVU cache to WANObjectCache

Also unified the total and per page dimensions cache

Change-Id: Ib6ad7c3cdfb4fe3a88d25240c3e362664a9b41fd

8 years agoConvert wfGenerateThumbnail() away from $wgMemc
Aaron Schulz [Wed, 28 Oct 2015 04:40:01 +0000 (21:40 -0700)]
Convert wfGenerateThumbnail() away from $wgMemc

Change-Id: I06c2d90cb3e75142f781afa80f917d4155513a22

8 years agoMerge "objectcache: Introduce IExpiringStore for convenient TTL constants"
jenkins-bot [Wed, 28 Oct 2015 04:31:33 +0000 (04:31 +0000)]
Merge "objectcache: Introduce IExpiringStore for convenient TTL constants"

8 years agoobjectcache: Introduce IExpiringStore for convenient TTL constants
Timo Tijhof [Mon, 19 Oct 2015 17:52:19 +0000 (18:52 +0100)]
objectcache: Introduce IExpiringStore for convenient TTL constants

Also consistently use self:: instead of BagOStuff:: for constants
referenced within the BagOStuff class.

Change-Id: I20fde9fa5cddcc9e92fa6a02b05dc7effa846742

8 years agoresourceloader: Consistently refer to the framework as ResourceLoader
Timo Tijhof [Wed, 28 Oct 2015 03:24:40 +0000 (03:24 +0000)]
resourceloader: Consistently refer to the framework as ResourceLoader

Change-Id: Ia59e4eac9662723e80d62f7cfcb9e4292e3ee4de

8 years agoresourceloader: Remove 'loaderScripts' option from FileModule
Timo Tijhof [Mon, 19 Oct 2015 23:04:23 +0000 (00:04 +0100)]
resourceloader: Remove 'loaderScripts' option from FileModule

Not used in any of our public repositories.

Bug: T65240
Change-Id: I1e9f741c3ef0f922129ecd10039228b58565bf62

8 years agoMerge "set serialize_precision to 17, current PHP default"
jenkins-bot [Wed, 28 Oct 2015 01:52:29 +0000 (01:52 +0000)]
Merge "set serialize_precision to 17, current PHP default"

8 years agoLinksUpdate: Keep track of the triggering User
Kunal Mehta [Tue, 27 Oct 2015 21:49:51 +0000 (14:49 -0700)]
LinksUpdate: Keep track of the triggering User

So extensions like Echo are able to attribute post-edit link updates to
specific the users who triggered them.

Bug: T116485
Change-Id: I083736a174b6bc15e3ce60b2b107c697d0ac13da

8 years agoBump development Monolog version
Bryan Davis [Tue, 27 Oct 2015 22:53:03 +0000 (16:53 -0600)]
Bump development Monolog version

Related mediawiki/vendor change: I6d6db4c

Bug: T116550
Change-Id: I71b2051c4c6193a435183ed00da52e9dc6c0673c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 27 Oct 2015 20:12:35 +0000 (21:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib468dabe3f7d642b58087711945f6026f6d143c8

8 years agoTypo fix for maintenance/install.php.
C. Scott Ananian [Tue, 27 Oct 2015 19:48:52 +0000 (15:48 -0400)]
Typo fix for maintenance/install.php.

Change-Id: Ic5d906ade363dc544bc239eb553e2567759dd17f

8 years agoNormalize header case for FileBackend operations
Aaron Schulz [Tue, 27 Oct 2015 19:21:30 +0000 (12:21 -0700)]
Normalize header case for FileBackend operations

Normalize all headers to lower case at the start of the
FileBackend operation methods. This makes it easy for
subclasses to check for certain headers, e.g. content-type.

Change-Id: Ia69976326d17a51bcaa61f2781aa669ae7bd9c28

8 years agoReplace local RunningStat with wikimedia/running-stat library
Ori Livneh [Tue, 27 Oct 2015 18:41:17 +0000 (11:41 -0700)]
Replace local RunningStat with wikimedia/running-stat library

* mediawiki/vendor change: I66b419c8168df.
* Add back-compat shim in includes/compat/RunningStatCompat.php.

Change-Id: Ibad4dc0ce5aa8697791865ed8ea61a25bae7b3e0

8 years agoMerge "Update OOjs UI to v0.13.0"
jenkins-bot [Tue, 27 Oct 2015 18:53:49 +0000 (18:53 +0000)]
Merge "Update OOjs UI to v0.13.0"

8 years agoMake WAN cache HOLDOFF_TTL smaller by combining db/snapshot lag
Aaron Schulz [Sun, 25 Oct 2015 20:42:21 +0000 (13:42 -0700)]
Make WAN cache HOLDOFF_TTL smaller by combining db/snapshot lag

* In the common ~0 second lag case, transactions up to ~7 seconds
  long will have normal set() behavior (instead of just ~5 seconds).
* Like wise with ~0 second transactions tolerating ~7 seconds of
  lag (instead of just ~5).
* The lower hold-off time lets caching resume 3 seconds sooner.

Change-Id: I21e2a0a6915492cec422b6a6af5541937745c15b

8 years agoRestore TitleMoveComplete by-reference flags to avoid errors
Aaron Schulz [Tue, 27 Oct 2015 18:08:17 +0000 (11:08 -0700)]
Restore TitleMoveComplete by-reference flags to avoid errors

They should be removed from extensions, but they don't
really hurt much for now.

Change-Id: I64b570e376062155afdf879c3ce85560127c6792

8 years agoUpdate OOjs UI to v0.13.0
James D. Forrester [Tue, 27 Oct 2015 17:58:23 +0000 (18:58 +0100)]
Update OOjs UI to v0.13.0

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

Change-Id: Ie4f66b15f4f5ec9932d5fd72e12b4453724e3742

8 years agoset serialize_precision to 17, current PHP default
saper [Tue, 27 Oct 2015 17:44:41 +0000 (18:44 +0100)]
set serialize_precision to 17, current PHP default

Follow up to:
https://gerrit.wikimedia.org/r/#/c/249018/

Bug: T116683
Change-Id: I6e8dfab473ae2c18e68c8e4360159c9cc0e09758