Commit graph

65804 commits

Author SHA1 Message Date
Amir E. Aharoni
e77af93e83 Add @codingStandardsIgnoreStart to 5 files under tests/phpunit/includes
To pass phpcs.

Bug: T102614
Change-Id: I4c7d60d26112c7ba67b66f1923ce945e96175d15
2015-10-03 12:30:29 +00:00
Aaron Schulz
8706ed639e Converted InfoAction::pageInfo() to using getWithSetCallback()
Change-Id: I5b780d6e21d9fc7f38d365db1389153b07c6c461
2015-10-03 00:53:44 +00:00
Aaron Schulz
8a3816529a Apply $wgReadOnly to all file backends
* Also added a wfConfiguredReadOnly() method
  to avoid DB_SLAVE connections

Change-Id: I9e7ec95c4b2f763505166d2345d27abaef6257a3
2015-10-03 00:15:28 +00:00
jenkins-bot
5f71df9a35 Merge "Add page purge limiter" 2015-10-02 22:23:19 +00:00
Translation updater bot
5198ca7689 Localisation updates from https://translatewiki.net.
Change-Id: Iac862f8797a3fb3be6b7be0e2a0cab1bac88b245
2015-10-02 23:30:53 +02:00
Aaron Schulz
23173684ee Various getHTMLDebugLog() cleanups
* Removed used Entering/Exiting stuff
* Removed bogus empty entry on the first line

Change-Id: I0ade132e04d745a21f4ec9fdd52a43b10d85e4d3
2015-10-02 21:06:01 +00:00
Reedy
7fe05a9fb6 Add page purge limiter
Change-Id: I737dc77ce803432b0792f7e49323a29661bc056f
2015-10-02 20:27:44 +00:00
jenkins-bot
3dd39ff574 Merge "Clean up getLagTimes() docs" 2015-10-02 20:00:37 +00:00
jenkins-bot
94e66964cd Merge "mw.Upload.BookletLayout: Show errors and try to recover from warnings" 2015-10-02 19:45:06 +00:00
Aaron Schulz
f719a254d1 Clean up getLagTimes() docs
Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1
2015-10-02 19:35:55 +00:00
jenkins-bot
19e04a9506 Merge "Remove redundant ApiQuery::shouldCheckMaxlag" 2015-10-02 19:18:53 +00:00
Aaron Schulz
b0630d1b30 Remove redundant ApiQuery::shouldCheckMaxlag
* Parent version already returns true

Change-Id: I118d59492b8dadd3c7128d2c74f6d37216206d0a
2015-10-02 19:09:24 +00:00
Timo Tijhof
9afd767226 objectcache: Implement 'fallback' param for newAccelerator()
This way it can be used in $wgObjectCaches using 'factory', whilst
also specifying a fallback.

Change-Id: I8d4de1e2a394e7e915513fae91808fe32a21f75d
2015-10-02 12:01:38 -07:00
Aaron Schulz
ff34e3d464 Added pt-heartbeat support to DatabaseMysqlBase
Bug: T111266
Bug: T19179
Change-Id: I04c93d5c7389fbb8fba633d955591b30a9504f31
2015-10-02 18:34:36 +00:00
Prateek Saxena
3e596a9185 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
2015-10-02 23:24:52 +05:30
jenkins-bot
7823909243 Merge "mw.Upload: Add details of error when uploading to stash" 2015-10-02 17:12:34 +00:00
Bartosz Dziewoński
b54ef9d1a0 Don't clobber existing styles when adding more in IE9
Follow-up to c2e8f505c1. This was really
stupid and I feel stupid.

Bug: T114323
Change-Id: I80292083d8fd50c2e2727446e4468b6a13ad40e5
2015-10-02 17:00:33 +02:00
Prateek Saxena
09bcd25838 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
2015-10-02 17:14:07 +05:30
jenkins-bot
7c1b7d9b50 Merge "Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public" 2015-10-02 01:44:44 +00:00
jenkins-bot
27298dc23d Merge "build: Enable jscs jsDoc rule 'checkTypes' and make pass" 2015-10-02 01:06:38 +00:00
Ori Livneh
3c1e0ac9f0 Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public
Change-Id: Iba76d7e788c3ca5457fe462b7fd9ecfaedba50f8
2015-10-01 18:05:53 -07:00
Ori Livneh
60dcbf48e7 Fix-up for I21bb3f08e7f: ResourceLoaderModule::expandRelativePaths
ResourceLoaderModule::expandRelativePaths(), not ResourceLoader::expandRelativePaths().

Change-Id: Ibb2a8398641d360240889988189d2ef51f114c0b
2015-10-02 00:37:46 +00:00
jenkins-bot
58ebffe914 Merge "resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo" 2015-10-02 00:30:33 +00:00
Aaron Schulz
4c4325e98c Modernized slave wait checks in recompressTracked.php
Change-Id: I5771af8135530677dc8223389f572896918c6b72
2015-10-02 00:19:54 +00:00
Timo Tijhof
66b2060d22 resourceloader: Fix-up missing expandRelativePaths() in preloadModuleInfo
Follows-up 280d292.

Change-Id: I21bb3f08e7fc9c6b364df2934640c2d5ce1e86b0
2015-10-01 17:14:19 -07:00
Aaron Schulz
169b7b98b5 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
2015-10-01 23:30:41 +00:00
Ori Livneh
b7eb243d92 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
2015-10-01 23:12:33 +00:00
jenkins-bot
926a0bfa50 Merge "mediawiki.Uri: Support names of Object prototypes as keys in query" 2015-10-01 22:51:55 +00:00
Fomafix
a0628e5c22 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
2015-10-01 15:39:57 -07:00
James D. Forrester
e8608b94a5 build: Enable jscs jsDoc rule 'checkTypes' and make pass
Change-Id: I64c3b5bd7afc4686355c80ef68009d978f7b3097
2015-10-01 15:28:06 -07:00
Kunal Mehta
11b77f3d52 Upgrade composer/semver to 1.0.0
And update the class names that changed.

Bug: T113431
Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6
2015-10-01 21:21:04 +00:00
jenkins-bot
5cacf9fb5a Merge "objectcache: Add some newlines to WANObjectCache docs" 2015-10-01 20:51:25 +00:00
Aaron Schulz
7aea96befa 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
2015-10-01 20:42:16 +00:00
jenkins-bot
60a70405de Merge "Removed wfDataCenter()/wfDataCenter() roles" 2015-10-01 20:10:10 +00:00
Aaron Schulz
e055d8abcd Removed wfDataCenter()/wfDataCenter() roles
* Follows-up 0a1c04bea
* The DC name ended up not being used in the cookie, 
  making these unused

Change-Id: I5f0d822a334102ee9596b1ec2a8d911010294e7c
2015-10-01 20:00:05 +00:00
jenkins-bot
da558e9b2f Merge "Make lines short to pass phpcs in media tests PHP files" 2015-10-01 19:58:37 +00:00
jenkins-bot
e6f06dfa5f Merge "Make lines short to pass phpcs in parser tests PHP files" 2015-10-01 19:52:49 +00:00
jenkins-bot
cf39dc03db Merge "Use correct comment format for codingStandardsIgnoreStart" 2015-10-01 19:48:33 +00:00
Amir E. Aharoni
dc71f6cf02 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
2015-10-01 19:40:31 +00:00
Amir E. Aharoni
715abaa6b6 Make lines short to pass phpcs in parser tests PHP files
Bug: T102614
Change-Id: I14a28815af83efd38f04def8eb7d42ef124ab918
2015-10-01 19:40:18 +00:00
Amir E. Aharoni
733c12a799 Use correct comment format for codingStandardsIgnoreStart
Apparently, codingStandardsIgnoreStart doesn't work with /*,
and does work with //.

Bug: T113852
Change-Id: I2e7f200617091acc8a79be09763a91c28f5045f2
2015-10-01 22:37:51 +03:00
Translation updater bot
4e83c417e8 Localisation updates from https://translatewiki.net.
Change-Id: I4096b4a9ea51f480a79d6b07df27c0bce55aa534
2015-10-01 21:22:43 +02:00
Amir E. Aharoni
3cd3b7ac9f Make lines short to pass phpcs in 3 files under tests/phpunit/includes/
Bug: T102614
Change-Id: I8f3d570fb6e9866d4376f42d4efa05f9c5e7f14d
2015-10-01 19:00:40 +00:00
jenkins-bot
8e655d8dd3 Merge "Made WikiPage::isRedirect() actually use page_is_redirect" 2015-10-01 18:59:59 +00:00
Amir E. Aharoni
c369defa97 Add @codingStandardsIgnoreStart to pass phpcs in 2 files in tests/phpunit/includes
Change-Id: I7f551dafcf437cc23aa9aed24f9e4d385816a0a0
2015-10-01 18:45:28 +00:00
Marius Hoch
725a203bc1 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
2015-10-01 19:12:07 +02:00
jenkins-bot
ef2728fdad Merge "API: mention how to get page property names" 2015-10-01 16:12:30 +00:00
Prateek Saxena
183d45c988 UploadBase: Remove UPLOAD_VERIFICATION_ERROR
It was replaced by HOOK_ABORTED five years ago and isn't being used
anywhere now.

Change-Id: I20feb33c108ae56f25a0cd01da1a326b290106c2
2015-10-01 20:09:28 +05:30
S Page
eaa9d32462 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
2015-10-01 10:06:25 -04:00
jenkins-bot
4b23e6296e Merge "Added $wgDataCenterId/$wgDataCenterRoles" 2015-10-01 11:10:27 +00:00