lhc/web/wiklou.git
8 years agoMerge "Fix the last Generic.Files.LineLength phpcs failures"
jenkins-bot [Mon, 5 Oct 2015 12:39:24 +0000 (12:39 +0000)]
Merge "Fix the last Generic.Files.LineLength phpcs failures"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 4 Oct 2015 20:02:58 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2c6d6bb15910feb1b8da5565bc27bfe7878bc0e4

8 years agoConverted DatabaseBase::mTrxAtomicLevels to an array
Aaron Schulz [Sat, 3 Oct 2015 23:30:13 +0000 (16:30 -0700)]
Converted DatabaseBase::mTrxAtomicLevels to an array

* This simplifies the code and cleans up __construct()
  a bit while also making it less likely to cause
  trouble with unit testing mocks.
* Also add a sanity mTrxLevel check around usage
  of mTrxAtomicLevels in the one place it was missing

Change-Id: Ia0a7f22f5c27b3d4d8b51e04629f42a1ed9c3993

8 years agoresourceloader: cache minified user and site modules
Ori Livneh [Thu, 1 Oct 2015 18:05:08 +0000 (11:05 -0700)]
resourceloader: cache minified user and site modules

* Add support for a '/* @nomin */' annotation in ResourceLoader. If present in
  JavaScript or CSS, the code will not be minified or cached. This allows
  modules like the ResourceLoaderUserTokensModule to declare themselves unfit
  for minification / caching without requiring a complicated refactor.
* Make ResourceLoader::filter() static, at the cost of not having minifier
  errors in the ResourceLoader log bucket. (They will continue to be logged as
  exceptions, however).

Change-Id: Ic1d802ee20565e61046bfbd8fd209bc56a4cbd6c

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 3 Oct 2015 19:55:56 +0000 (19:55 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 3 Oct 2015 19:49:52 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie3f19a2b5cea902108126c528fb4c8f489a4d551

8 years agoMerge "Rename ObjectFactoryTest_Fixture to camel case name"
jenkins-bot [Sat, 3 Oct 2015 19:48:07 +0000 (19:48 +0000)]
Merge "Rename ObjectFactoryTest_Fixture to camel case name"

8 years agoRename ObjectFactoryTest_Fixture to camel case name
umherirrender [Sat, 3 Oct 2015 19:29:17 +0000 (21:29 +0200)]
Rename ObjectFactoryTest_Fixture to camel case name

Change-Id: Ib909c4f694b9774a0983abbb23bfd38ed8c05d5b

8 years agoEnable MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix
umherirrender [Sat, 3 Oct 2015 18:25:06 +0000 (20:25 +0200)]
Enable MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix

Should work after Ie094f78781b2d6f7af1a0f1eea1f7ea4d0b9c69c

Bug: T104501
Change-Id: I1e3e8a1480b822272c762f2771d8554980c32c1b

8 years agoEnable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed
umherirrender [Sat, 3 Oct 2015 18:10:53 +0000 (20:10 +0200)]
Enable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed

All remaining lines should be fixed now

Bug: T113854
Change-Id: I85269d4c84ae3a676a773e24b0a96a4e7a89ac38

8 years agoMerge "Fix ObjectCache::newAccelerator with string fallback in PHP 5.3"
jenkins-bot [Sat, 3 Oct 2015 18:18:07 +0000 (18:18 +0000)]
Merge "Fix ObjectCache::newAccelerator with string fallback in PHP 5.3"

8 years agoFix the last Generic.Files.LineLength phpcs failures
Amir E. Aharoni [Sat, 3 Oct 2015 18:02:55 +0000 (21:02 +0300)]
Fix the last Generic.Files.LineLength phpcs failures

In both cases the long lines are inside method documentation,
and because @codingStandardsIgnoreStart comments only
work with // and not /*, they have to be outside the method comment.

Bug: T102614
Bug: T114213
Change-Id: I7343e1cf662c5bf12a5e4385646c5c2c4a798260

8 years agoFix remaining Generic.Files.LineLength failures
Amir E. Aharoni [Sat, 3 Oct 2015 13:44:47 +0000 (16:44 +0300)]
Fix remaining Generic.Files.LineLength failures

Except the ones for which there is no clear way to fix
because of T114213.

Bug: T102614
Change-Id: I94a1fc7c890c82a36f0b51e42d311585c275775c

8 years agoFix Generic.Files.LineLength phpcs check under phpunit/includes/api
Amir E. Aharoni [Sat, 3 Oct 2015 13:44:13 +0000 (16:44 +0300)]
Fix Generic.Files.LineLength phpcs check under phpunit/includes/api

Bug: T102614
Change-Id: Ic0b3d9b58fee8dc20a976ae65dcb7072a3afc3b1

8 years agoFix ObjectCache::newAccelerator with string fallback in PHP 5.3
Marius Hoch [Sat, 3 Oct 2015 17:15:33 +0000 (19:15 +0200)]
Fix ObjectCache::newAccelerator with string fallback in PHP 5.3

Because in PHP5.3:

php > $a = "hash";
php > echo isset( $a['fallback'] );
1
php > echo $a['fallback'];
h

This will fix using MediaWiki with MySQL on PHP5.3
if neither APC, xcache nor wincache are available.

Change-Id: Iebf034be75b282e2654cd298713455caf062eda4

8 years agoFix Generic.Files.LineLength phpcs check in files under phpunit/includes
Amir E. Aharoni [Sat, 3 Oct 2015 13:04:51 +0000 (16:04 +0300)]
Fix Generic.Files.LineLength phpcs check in files under phpunit/includes

Bug: T102614
Change-Id: Iee3df5f064f595ecebe8210cc936bc3d20a122c9

8 years agoFix Generic.Files.LineLength phpcs failure in 11 files under includes/
Amir E. Aharoni [Sat, 3 Oct 2015 12:52:08 +0000 (15:52 +0300)]
Fix Generic.Files.LineLength phpcs failure in 11 files under includes/

Bug: T102614
Change-Id: I0d759be6ef568c2c6f28606d3002484ad77a1830

8 years agoMerge "Fix spelling of "fragment" in test descriptions"
jenkins-bot [Sat, 3 Oct 2015 16:47:29 +0000 (16:47 +0000)]
Merge "Fix spelling of "fragment" in test descriptions"

8 years agoMerge "Make lines short to pass phpcs in WikiReferenceTest.php"
jenkins-bot [Sat, 3 Oct 2015 16:47:24 +0000 (16:47 +0000)]
Merge "Make lines short to pass phpcs in WikiReferenceTest.php"

8 years agoMerge "Make lines short to pass phpcs in WikitextContentTest.php"
jenkins-bot [Sat, 3 Oct 2015 16:39:50 +0000 (16:39 +0000)]
Merge "Make lines short to pass phpcs in WikitextContentTest.php"

8 years agoMerge "Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes"
jenkins-bot [Sat, 3 Oct 2015 16:37:56 +0000 (16:37 +0000)]
Merge "Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes"

8 years agomediawiki.widgets: Add title attribute to TitleOptionWidget description
Ed Sanders [Sat, 3 Oct 2015 12:16:01 +0000 (13:16 +0100)]
mediawiki.widgets: Add title attribute to TitleOptionWidget description

As the description is likely truncated, this will provide
the full description on hover.

Change-Id: I0abce42a2582e2ac8d0db5a7fb98adeb3eadf62c

8 years agomediawiki.widgets: Fix TitleOptionWidget styles
Ed Sanders [Sat, 3 Oct 2015 12:08:47 +0000 (13:08 +0100)]
mediawiki.widgets: Fix TitleOptionWidget styles

* Make the description display:block so ellipsis works
* Fix assumption that option is a child of titleWidget,
  instead make a child of titleWidget-menu.

Bug: T114565
Change-Id: I033c83b249c710b6a2a54889501174ad56d971ce

8 years agoFix spelling of "fragment" in test descriptions
Amir E. Aharoni [Thu, 1 Oct 2015 20:23:45 +0000 (23:23 +0300)]
Fix spelling of "fragment" in test descriptions

Change-Id: I97ca75b9c587443e195b1c162dcfee7880a5e226

8 years agoMake lines short to pass phpcs in WikiReferenceTest.php
Amir E. Aharoni [Thu, 1 Oct 2015 20:22:07 +0000 (23:22 +0300)]
Make lines short to pass phpcs in WikiReferenceTest.php

Bug: T102614
Change-Id: I557744a48a6a6889fde0b050d8e646ba081d5504

8 years agoMake lines short to pass phpcs in WikitextContentTest.php
Amir E. Aharoni [Thu, 1 Oct 2015 20:16:46 +0000 (23:16 +0300)]
Make lines short to pass phpcs in WikitextContentTest.php

Bug: T102614
Change-Id: Id5f12d4cca1d952580d2bb68fdbcb3cfb2467085

8 years agoAdd @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes
Amir E. Aharoni [Thu, 1 Oct 2015 20:13:34 +0000 (23:13 +0300)]
Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes

To pass phpcs.

Bug: T102614
Change-Id: I4c7d60d26112c7ba67b66f1923ce945e96175d15

8 years agoConverted InfoAction::pageInfo() to using getWithSetCallback()
Aaron Schulz [Wed, 30 Sep 2015 18:24:31 +0000 (11:24 -0700)]
Converted InfoAction::pageInfo() to using getWithSetCallback()

Change-Id: I5b780d6e21d9fc7f38d365db1389153b07c6c461

8 years agoApply $wgReadOnly to all file backends
Aaron Schulz [Thu, 1 Oct 2015 23:19:05 +0000 (16:19 -0700)]
Apply $wgReadOnly to all file backends

* Also added a wfConfiguredReadOnly() method
  to avoid DB_SLAVE connections

Change-Id: I9e7ec95c4b2f763505166d2345d27abaef6257a3

8 years agoMerge "Add page purge limiter"
jenkins-bot [Fri, 2 Oct 2015 22:23:19 +0000 (22:23 +0000)]
Merge "Add page purge limiter"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 2 Oct 2015 21:30:53 +0000 (23:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iac862f8797a3fb3be6b7be0e2a0cab1bac88b245

8 years agoVarious getHTMLDebugLog() cleanups
Aaron Schulz [Thu, 1 Oct 2015 05:47:09 +0000 (22:47 -0700)]
Various getHTMLDebugLog() cleanups

* Removed used Entering/Exiting stuff
* Removed bogus empty entry on the first line

Change-Id: I0ade132e04d745a21f4ec9fdd52a43b10d85e4d3

8 years agoAdd page purge limiter
Reedy [Wed, 2 Oct 2013 21:39:06 +0000 (22:39 +0100)]
Add page purge limiter

Change-Id: I737dc77ce803432b0792f7e49323a29661bc056f

8 years agoMerge "Clean up getLagTimes() docs"
jenkins-bot [Fri, 2 Oct 2015 20:00:37 +0000 (20:00 +0000)]
Merge "Clean up getLagTimes() docs"

8 years agoMerge "mw.Upload.BookletLayout: Show errors and try to recover from warnings"
jenkins-bot [Fri, 2 Oct 2015 19:45:06 +0000 (19:45 +0000)]
Merge "mw.Upload.BookletLayout: Show errors and try to recover from warnings"

8 years agoClean up getLagTimes() docs
Aaron Schulz [Fri, 2 Oct 2015 00:14:35 +0000 (17:14 -0700)]
Clean up getLagTimes() docs

Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1

8 years agoMerge "Remove redundant ApiQuery::shouldCheckMaxlag"
jenkins-bot [Fri, 2 Oct 2015 19:18:53 +0000 (19:18 +0000)]
Merge "Remove redundant ApiQuery::shouldCheckMaxlag"

8 years agoRemove redundant ApiQuery::shouldCheckMaxlag
Aaron Schulz [Fri, 2 Oct 2015 00:28:51 +0000 (17:28 -0700)]
Remove redundant ApiQuery::shouldCheckMaxlag

* Parent version already returns true

Change-Id: I118d59492b8dadd3c7128d2c74f6d37216206d0a

8 years agoobjectcache: Implement 'fallback' param for newAccelerator()
Timo Tijhof [Fri, 2 Oct 2015 19:01:38 +0000 (12:01 -0700)]
objectcache: Implement 'fallback' param for newAccelerator()

This way it can be used in $wgObjectCaches using 'factory', whilst
also specifying a fallback.

Change-Id: I8d4de1e2a394e7e915513fae91808fe32a21f75d

8 years agoAdded pt-heartbeat support to DatabaseMysqlBase
Aaron Schulz [Fri, 25 Sep 2015 19:53:04 +0000 (12:53 -0700)]
Added pt-heartbeat support to DatabaseMysqlBase

Bug: T111266
Bug: T19179
Change-Id: I04c93d5c7389fbb8fba633d955591b30a9504f31

8 years agomw.Upload.BookletLayout: Show errors and try to recover from warnings
Prateek Saxena [Fri, 2 Oct 2015 11:50:54 +0000 (17:20 +0530)]
mw.Upload.BookletLayout: Show errors and try to recover from warnings

Show useful errors and try and recover from warning by changing the
state of the upload.

Bug: T114130
Change-Id: I08704108704ffaa70245c5facfca4b063a61f01b

8 years agoMerge "mw.Upload: Add details of error when uploading to stash"
jenkins-bot [Fri, 2 Oct 2015 17:12:34 +0000 (17:12 +0000)]
Merge "mw.Upload: Add details of error when uploading to stash"

8 years agoDon't clobber existing styles when adding more in IE9
Bartosz Dziewoński [Fri, 2 Oct 2015 15:00:33 +0000 (17:00 +0200)]
Don't clobber existing styles when adding more in IE9

Follow-up to c2e8f505c12ace6af42161bf9930d483b1721f2e. This was really
stupid and I feel stupid.

Bug: T114323
Change-Id: I80292083d8fd50c2e2727446e4468b6a13ad40e5

8 years agomw.Upload: Add details of error when uploading to stash
Prateek Saxena [Thu, 1 Oct 2015 08:42:00 +0000 (14:12 +0530)]
mw.Upload: Add details of error when uploading to stash

Add a new method 'getStateDetails' to mw.Upload. The Upload.Booklet
layout uses this in the error message.

Bug: T114130
Change-Id: I932af41a7ae561774097c91f857d1daa39d8c49f

8 years agoMerge "Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public"
jenkins-bot [Fri, 2 Oct 2015 01:44:44 +0000 (01:44 +0000)]
Merge "Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public"

8 years agoMerge "build: Enable jscs jsDoc rule 'checkTypes' and make pass"
jenkins-bot [Fri, 2 Oct 2015 01:06:38 +0000 (01:06 +0000)]
Merge "build: Enable jscs jsDoc rule 'checkTypes' and make pass"

8 years agoFix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public
Ori Livneh [Fri, 2 Oct 2015 00:40:21 +0000 (17:40 -0700)]
Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public

Change-Id: Iba76d7e788c3ca5457fe462b7fd9ecfaedba50f8

8 years agoFix-up for I21bb3f08e7f: ResourceLoaderModule::expandRelativePaths
Ori Livneh [Fri, 2 Oct 2015 00:36:38 +0000 (17:36 -0700)]
Fix-up for I21bb3f08e7f: ResourceLoaderModule::expandRelativePaths

ResourceLoaderModule::expandRelativePaths(), not ResourceLoader::expandRelativePaths().

Change-Id: Ibb2a8398641d360240889988189d2ef51f114c0b

8 years agoMerge "resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo"
jenkins-bot [Fri, 2 Oct 2015 00:30:33 +0000 (00:30 +0000)]
Merge "resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo"

8 years agoModernized slave wait checks in recompressTracked.php
Aaron Schulz [Fri, 2 Oct 2015 00:18:46 +0000 (17:18 -0700)]
Modernized slave wait checks in recompressTracked.php

Change-Id: I5771af8135530677dc8223389f572896918c6b72

8 years agoresourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo
Timo Tijhof [Fri, 2 Oct 2015 00:14:19 +0000 (17:14 -0700)]
resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo

Follows-up 280d292.

Change-Id: I21bb3f08e7fc9c6b364df2934640c2d5ce1e86b0

8 years agoAdded replication=async option to FileBackendMultiWrite
Aaron Schulz [Sun, 20 Sep 2015 04:09:26 +0000 (21:09 -0700)]
Added replication=async option to FileBackendMultiWrite

* This will defer writes to non-master backends till the
  end up the web request. This is useful for multi-DC setups.

Bug: T112708
Change-Id: I118c07764dd4a4f4f2590d4548238df12860e750

8 years agoresourceloader: Minify per-module instead of per-response
Ori Livneh [Thu, 1 Oct 2015 00:26:46 +0000 (17:26 -0700)]
resourceloader: Minify per-module instead of per-response

* Decline to cache minified private modules, because they exist in as many
  variants as there are users, and are unlikely to be cache hits now that we
  use APC.
* Other modules are minified individually, to improve cache hit rate.

Bug: T107377
Change-Id: Id6f5142062d73b5701126724e0fe8264105f7813

8 years agoMerge "mediawiki.Uri: Support names of Object prototypes as keys in query"
jenkins-bot [Thu, 1 Oct 2015 22:51:55 +0000 (22:51 +0000)]
Merge "mediawiki.Uri: Support names of Object prototypes as keys in query"

8 years agomediawiki.Uri: Support names of Object prototypes as keys in query
Fomafix [Thu, 1 Oct 2015 18:28:45 +0000 (18:28 +0000)]
mediawiki.Uri: Support names of Object prototypes as keys in query

JSHint W001 has to be disabled to avoid warnings about a key named 'hasOwnProperty'.

Bug: T114344
Change-Id: I7a58204c98d7a490906c6a23620e9f24ebb3db0a

8 years agobuild: Enable jscs jsDoc rule 'checkTypes' and make pass
James D. Forrester [Sat, 5 Sep 2015 19:47:33 +0000 (12:47 -0700)]
build: Enable jscs jsDoc rule 'checkTypes' and make pass

Change-Id: I64c3b5bd7afc4686355c80ef68009d978f7b3097

8 years agoUpgrade composer/semver to 1.0.0
Kunal Mehta [Fri, 25 Sep 2015 01:15:49 +0000 (18:15 -0700)]
Upgrade composer/semver to 1.0.0

And update the class names that changed.

Bug: T113431
Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6

8 years agoMerge "objectcache: Add some newlines to WANObjectCache docs"
jenkins-bot [Thu, 1 Oct 2015 20:51:25 +0000 (20:51 +0000)]
Merge "objectcache: Add some newlines to WANObjectCache docs"

8 years agoobjectcache: Add some newlines to WANObjectCache docs
Aaron Schulz [Thu, 1 Oct 2015 08:50:09 +0000 (01:50 -0700)]
objectcache: Add some newlines to WANObjectCache docs

* Doxygen needs this or the paragraph ends up in the
  last bullet point
* Also removed some redundant comments

Change-Id: Ie4bf2b67fff27ecad5f24f55688161fe484c300d

8 years agoMerge "Removed wfDataCenter()/wfDataCenter() roles"
jenkins-bot [Thu, 1 Oct 2015 20:10:10 +0000 (20:10 +0000)]
Merge "Removed wfDataCenter()/wfDataCenter() roles"

8 years agoRemoved wfDataCenter()/wfDataCenter() roles
Aaron Schulz [Thu, 1 Oct 2015 19:58:52 +0000 (12:58 -0700)]
Removed wfDataCenter()/wfDataCenter() roles

* Follows-up 0a1c04bea
* The DC name ended up not being used in the cookie,
  making these unused

Change-Id: I5f0d822a334102ee9596b1ec2a8d911010294e7c

8 years agoMerge "Make lines short to pass phpcs in media tests PHP files"
jenkins-bot [Thu, 1 Oct 2015 19:58:37 +0000 (19:58 +0000)]
Merge "Make lines short to pass phpcs in media tests PHP files"

8 years agoMerge "Make lines short to pass phpcs in parser tests PHP files"
jenkins-bot [Thu, 1 Oct 2015 19:52:49 +0000 (19:52 +0000)]
Merge "Make lines short to pass phpcs in parser tests PHP files"

8 years agoMerge "Use correct comment format for codingStandardsIgnoreStart"
jenkins-bot [Thu, 1 Oct 2015 19:48:33 +0000 (19:48 +0000)]
Merge "Use correct comment format for codingStandardsIgnoreStart"

8 years agoMake lines short to pass phpcs in media tests PHP files
Amir E. Aharoni [Wed, 30 Sep 2015 06:15:48 +0000 (09:15 +0300)]
Make lines short to pass phpcs in media tests PHP files

Some lines that weren't too long are also broken up
for consistency and readability.

Bug: T102614
Change-Id: I36e3225e135b58bc22705afbb888b06f93b5a9a8

8 years agoMake lines short to pass phpcs in parser tests PHP files
Amir E. Aharoni [Wed, 30 Sep 2015 06:08:31 +0000 (09:08 +0300)]
Make lines short to pass phpcs in parser tests PHP files

Bug: T102614
Change-Id: I14a28815af83efd38f04def8eb7d42ef124ab918

8 years agoUse correct comment format for codingStandardsIgnoreStart
Amir E. Aharoni [Wed, 30 Sep 2015 06:35:02 +0000 (09:35 +0300)]
Use correct comment format for codingStandardsIgnoreStart

Apparently, codingStandardsIgnoreStart doesn't work with /*,
and does work with //.

Bug: T113852
Change-Id: I2e7f200617091acc8a79be09763a91c28f5045f2

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 1 Oct 2015 19:22:43 +0000 (21:22 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4096b4a9ea51f480a79d6b07df27c0bce55aa534

8 years agoMake lines short to pass phpcs in 3 files under tests/phpunit/includes/
Amir E. Aharoni [Wed, 30 Sep 2015 08:15:32 +0000 (11:15 +0300)]
Make lines short to pass phpcs in 3 files under tests/phpunit/includes/

Bug: T102614
Change-Id: I8f3d570fb6e9866d4376f42d4efa05f9c5e7f14d

8 years agoMerge "Made WikiPage::isRedirect() actually use page_is_redirect"
jenkins-bot [Thu, 1 Oct 2015 18:59:59 +0000 (18:59 +0000)]
Merge "Made WikiPage::isRedirect() actually use page_is_redirect"

8 years agoAdd @codingStandardsIgnoreStart to pass phpcs in 2 files in tests/phpunit/includes
Amir E. Aharoni [Wed, 30 Sep 2015 08:14:49 +0000 (11:14 +0300)]
Add @codingStandardsIgnoreStart to pass phpcs in 2 files in tests/phpunit/includes

Change-Id: I7f551dafcf437cc23aa9aed24f9e4d385816a0a0

8 years agoRemove unused minor and major in WikiReference
Marius Hoch [Thu, 1 Oct 2015 17:12:07 +0000 (19:12 +0200)]
Remove unused minor and major in WikiReference

Given that the class is not constructed anywhere outside
of core the constructor can be altered without having to
worry about b/c.

Change-Id: Ie49c43a1724f05cb95a296dc0fad0f1c587d80ef

8 years agoMerge "API: mention how to get page property names"
jenkins-bot [Thu, 1 Oct 2015 16:12:30 +0000 (16:12 +0000)]
Merge "API: mention how to get page property names"

8 years agoUploadBase: Remove UPLOAD_VERIFICATION_ERROR
Prateek Saxena [Thu, 1 Oct 2015 07:56:58 +0000 (13:26 +0530)]
UploadBase: Remove UPLOAD_VERIFICATION_ERROR

It was replaced by HOOK_ABORTED five years ago and isn't being used
anywhere now.

Change-Id: I20feb33c108ae56f25a0cd01da1a326b290106c2

8 years agoAPI: mention how to get page property names
S Page [Mon, 13 Jul 2015 19:54:38 +0000 (12:54 -0700)]
API: mention how to get page property names

Mention action=query&list=pagepropnames to get a list of properties in
use.
Also rephrase apihelp-main-param-uselang to use active voice.

To test, visit
  api.php?action=help
  api.php?action=help&modules=query%2Bpagepropnames
  api.php?action=help&modules=query%2Bpageswithprop

Change-Id: Ic13f6c00396aed1a1c016bfcf6a39d621a4ebc06

8 years agoMerge "Added $wgDataCenterId/$wgDataCenterRoles"
jenkins-bot [Thu, 1 Oct 2015 11:10:27 +0000 (11:10 +0000)]
Merge "Added $wgDataCenterId/$wgDataCenterRoles"

8 years agoMade WikiPage::isRedirect() actually use page_is_redirect
Aaron Schulz [Thu, 1 Oct 2015 10:32:01 +0000 (03:32 -0700)]
Made WikiPage::isRedirect() actually use page_is_redirect

* Previously it would always fetch the whole content,
  which is silly since followRedirect() uses the redirect
  table to avoid loading the text. The initializeArticle()
  uses isRedirect() and then possibly followRedirect(). It
  makes no sense for the former to fetch all the text anway.
* The time fetching the text showed up on xenon flamegraphs.

Change-Id: I2dc216f36d3a0ea2285e64122b4d07bd9c8ae703

8 years agoReword "passwordreset-emailsent"
abhinand [Sat, 8 Aug 2015 05:26:07 +0000 (10:56 +0530)]
Reword "passwordreset-emailsent"

Remove potential confusion.

Bug: T99533
Change-Id: Ifb28f4e1fb6fb692d6f052d5a3c1a67f881948bc

8 years agoAdded $wgDataCenterId/$wgDataCenterRoles
Aaron Schulz [Wed, 19 Aug 2015 23:33:03 +0000 (16:33 -0700)]
Added $wgDataCenterId/$wgDataCenterRoles

* This is used to set sticky DC cookies to avoid
  session replication lag (which also makes sure
  ChronologyProtector works)

Bug: T91816
Change-Id: I7bc2f8185a3c05cb3ca5ccc42d300eccffae48e1

8 years agoMerge "Fixed remaning IDEA errors in DatabaseBase"
jenkins-bot [Thu, 1 Oct 2015 05:24:47 +0000 (05:24 +0000)]
Merge "Fixed remaning IDEA errors in DatabaseBase"

8 years agoMade LBFactorySimple set "master" flags like LBFactoryMulti
Aaron Schulz [Wed, 30 Sep 2015 23:06:47 +0000 (16:06 -0700)]
Made LBFactorySimple set "master" flags like LBFactoryMulti

* wfGetDB( DB_MASTER )->getLBInfo() now shows the master flag
* A corresponding slave flag was also added
* Added a few badly needed LBFactory/LoadBalancer tests

Change-Id: I9254b12cff63af7d754a3a14c5db44276f58d280

8 years agoMerge "Do not split parser cache if limitation is reached."
jenkins-bot [Thu, 1 Oct 2015 03:45:23 +0000 (03:45 +0000)]
Merge "Do not split parser cache if limitation is reached."

8 years agoFixed remaning IDEA errors in DatabaseBase
Aaron Schulz [Thu, 1 Oct 2015 02:42:26 +0000 (19:42 -0700)]
Fixed remaning IDEA errors in DatabaseBase

Change-Id: Ife8d7ecd4f224f1e2ef6f729765c303ec69a3f5f

8 years agoRefactor hashing utility functions from MWCryptRand and make public
Brad Jorsch [Tue, 26 Aug 2014 17:09:54 +0000 (13:09 -0400)]
Refactor hashing utility functions from MWCryptRand and make public

MWCryptRand already has some useful utility functions wrapping PHP's
hash() and hash_hmac(). Let's make them public so we can use them from
other code.

But since "MWCryptRand" isn't really a good place for hashing functions,
let's move them to "MWCryptHash" instead.

Change-Id: I7542c719ac72beba7b0f6aa170bdb4c69fa6beab

8 years agoMerge "build: Don't run Travis CI for wmf/* branches"
jenkins-bot [Thu, 1 Oct 2015 00:36:52 +0000 (00:36 +0000)]
Merge "build: Don't run Travis CI for wmf/* branches"

8 years agoMerge "mediawiki.page.watch.ajax: Add dependency on mediawiki.page.startup"
jenkins-bot [Thu, 1 Oct 2015 00:27:46 +0000 (00:27 +0000)]
Merge "mediawiki.page.watch.ajax: Add dependency on mediawiki.page.startup"

8 years agobuild: Don't run Travis CI for wmf/* branches
Timo Tijhof [Wed, 30 Sep 2015 23:07:47 +0000 (16:07 -0700)]
build: Don't run Travis CI for wmf/* branches

These test runs don't seem very valuable and take up a lot of
slots that could be used for other wikimedia/* repos.

Change-Id: I47ff3a31883d02ec6b535e411d92ada92a84aa2f

8 years agoMerge "Retry getting CatChange RC from master"
jenkins-bot [Wed, 30 Sep 2015 22:56:27 +0000 (22:56 +0000)]
Merge "Retry getting CatChange RC from master"

8 years agoRetry getting CatChange RC from master
addshore [Mon, 28 Sep 2015 18:34:05 +0000 (19:34 +0100)]
Retry getting CatChange RC from master

This adds optional flags to Revision::getRecentChange
And uses them in CategoryMembershipChange

Bug: T109700
Change-Id: I197ebccf1f62cdcb03ce4daa2527b973e495236c

8 years agoresourceloader: Deprecate two pointless minification config vars
Ori Livneh [Wed, 30 Sep 2015 20:39:20 +0000 (13:39 -0700)]
resourceloader: Deprecate two pointless minification config vars

When minifying JavaScript, never put each statement on a separate line, and
always set a target maximum line length of 1000. These behaviors were
previously configurable via $wgResourceLoaderMinifierStatementsOnOwnLine and
$wgResourceLoaderMinifierMaxLineLength, respectively.

Change-Id: I0b0eb632875b5e16f728fd0aa62f7f5ecd79ef62

8 years agoMade User::loadFromId() skip cache with READ_LATEST
Aaron Schulz [Wed, 30 Sep 2015 20:39:54 +0000 (13:39 -0700)]
Made User::loadFromId() skip cache with READ_LATEST

* That flag is used for anti-dependencies and thus
  should never rely on cache

Bug: T95839
Change-Id: I4ffc8325e55588ef649b96e7b90bc95282f765a9

8 years agoMerge "API: Remove warning about continuation change"
jenkins-bot [Wed, 30 Sep 2015 21:37:58 +0000 (21:37 +0000)]
Merge "API: Remove warning about continuation change"

8 years agoMerge "build: Enable jscs jsDoc rule 'checkParamNames' and make pass"
jenkins-bot [Wed, 30 Sep 2015 21:34:03 +0000 (21:34 +0000)]
Merge "build: Enable jscs jsDoc rule 'checkParamNames' and make pass"

8 years agoMerge "mediawiki.messagePoster: Update comments after mw.Api file renames"
jenkins-bot [Wed, 30 Sep 2015 21:33:19 +0000 (21:33 +0000)]
Merge "mediawiki.messagePoster: Update comments after mw.Api file renames"

8 years agomediawiki.messagePoster: Update comments after mw.Api file renames
Fomafix [Tue, 29 Sep 2015 16:09:47 +0000 (16:09 +0000)]
mediawiki.messagePoster: Update comments after mw.Api file renames

* Use class name instead of file name
* Expand abbreviation

Follow-up 0bfdd927

Change-Id: I33ad2b10ffb4b4e5e3a38a5c6f644eb183134a36

8 years agoMerge "Fix LESS file dependency tracking in ResourceLoader"
jenkins-bot [Wed, 30 Sep 2015 21:18:14 +0000 (21:18 +0000)]
Merge "Fix LESS file dependency tracking in ResourceLoader"

8 years agoMerge "mw.Upload.BookletLayout: Go back to upload page on upload error"
jenkins-bot [Wed, 30 Sep 2015 21:09:07 +0000 (21:09 +0000)]
Merge "mw.Upload.BookletLayout: Go back to upload page on upload error"

8 years agoFix LESS file dependency tracking in ResourceLoader
Ori Livneh [Wed, 30 Sep 2015 21:01:01 +0000 (14:01 -0700)]
Fix LESS file dependency tracking in ResourceLoader

As Timo noted in a review of I1ff6115, using '+=' to combine file dependencies
is incorrect here. I fixed it in one place but not the other, causing the file
dependencies to vary based on whether a .lesscache file was used.

Change-Id: Ie3f48048febc32c5c2d45acd87e10f946f6dfc94

8 years agomw.Upload.BookletLayout: Go back to upload page on upload error
Prateek Saxena [Wed, 30 Sep 2015 20:52:49 +0000 (02:22 +0530)]
mw.Upload.BookletLayout: Go back to upload page on upload error

Bug: T114130
Change-Id: Ibe50ce845a42bb5e66f842c68a35541747c9a570

8 years agomw.Upload.BookletLayout: Make all errors unrecoverable
Prateek Saxena [Wed, 30 Sep 2015 20:31:52 +0000 (02:01 +0530)]
mw.Upload.BookletLayout: Make all errors unrecoverable

Any error apart from 503's can't be recovered just by hitting 'Try
Again'. The user will _have_ to make some changes before the process
can continue.

Bug: T114130
Change-Id: I8e2d619be5b7e47bc903155c353bc1da36a62bb6