jenkins-bot [Mon, 31 Oct 2016 20:33:31 +0000 (20:33 +0000)]
Merge "Rename JobQueueDB::getSlaveDB() to getReplicaDB()"
Brad Jorsch [Mon, 31 Oct 2016 17:41:17 +0000 (13:41 -0400)]
API: Error if sensitive AuthManager parameters are in the query string
There was only 1 hit in the feature usage log in the past 30 days for
this code path, so this should be good to go.
ApiLogin, on the other hand, received 27048 hits over the same time
period. So let's not do that one just yet.
Change-Id: I1ae3b928fda9ddc94c8182155637920713dd404d
jenkins-bot [Mon, 31 Oct 2016 14:32:39 +0000 (14:32 +0000)]
Merge "Allow empty href in SVGs"
Sam Wilson [Mon, 31 Oct 2016 04:38:12 +0000 (12:38 +0800)]
Remove spaces after cast operators
This fixes the outstanding mis-spaced cast operators to bring them
into line with the coding standards on mediawiki.org (and with the
more common usage within this codebase).
Bug: T149545
Change-Id: Ib7bcf95bbee83d20c05f6d621ce7b4e1fb58a347
Mark Holmquist [Mon, 31 Oct 2016 13:21:38 +0000 (08:21 -0500)]
Allow empty href in SVGs
bawolff is right, this shouldn't harm anything.
Bug: T149549
Change-Id: I377efdee7478940154ef5ec921bd0c8f7ec0c110
jenkins-bot [Mon, 31 Oct 2016 13:01:28 +0000 (13:01 +0000)]
Merge "FormatMetadata: Do not format 'UserComment' as a number"
Bartosz Dziewoński [Mon, 31 Oct 2016 12:51:12 +0000 (13:51 +0100)]
FormatMetadata: Do not format 'UserComment' as a number
It's a freeform text field.
Change-Id: Ic3150f48c2e38fa26728bc22017b992d8ddfd152
jenkins-bot [Mon, 31 Oct 2016 07:20:43 +0000 (07:20 +0000)]
Merge "Don't show warning header for non-standard workflows on login-continue"
jenkins-bot [Mon, 31 Oct 2016 07:01:33 +0000 (07:01 +0000)]
Merge "Add firstLetter data for ~50 additional languages"
Translation updater bot [Sun, 30 Oct 2016 21:08:27 +0000 (22:08 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I695ddf72027c55d160192f0ee4e88d6738a13fa6
jenkins-bot [Sat, 29 Oct 2016 22:28:38 +0000 (22:28 +0000)]
Merge "Make determineCoreSchema a public function again in DatabasePostgres"
Paladox [Sat, 29 Oct 2016 22:09:52 +0000 (23:09 +0100)]
Make determineCoreSchema a public function again in DatabasePostgres
It was changed to a private function today, but it is called in
PostgresInstaller so it is causing this error
PHP Fatal error: Call to private method
DatabasePostgres::determineCoreSchema() from context 'PostgresInstaller'
in /home/travis/build/paladox/mw/includes/installer/PostgresInstaller.php
on line 515
Caused by I2a067ca89a03f9ebf3f70a4f36ddae92e5b1e468
Change-Id: Ifac5a5c7dfeceeb8c7827d6d70e757633df77ca5
jenkins-bot [Sat, 29 Oct 2016 21:28:39 +0000 (21:28 +0000)]
Merge "Move LinkBatch operations for QueryPage to a helper function"
Florian Schmidt [Sat, 29 Oct 2016 20:46:17 +0000 (22:46 +0200)]
Move LinkBatch operations for QueryPage to a helper function
This is easier to maintain as duplicated code everywhere.
This change also adds LinkBatch operations to specialpages, that does
not had it so far, but where it's useful.
Change-Id: I4936ecfb2be3a7709d99570c0561ab0cc9cd754f
Aaron Schulz [Sat, 29 Oct 2016 16:16:39 +0000 (09:16 -0700)]
Add missing Database::timestamp() calls
This was broken for Postgres installations
Change-Id: I0c1d442e3cf1d9a4d5359e7a8f8fd02a31d1ac65
jenkins-bot [Sat, 29 Oct 2016 20:43:16 +0000 (20:43 +0000)]
Merge "Fix missing commit() flag in postgres savepoint class"
jenkins-bot [Sat, 29 Oct 2016 20:28:09 +0000 (20:28 +0000)]
Merge "Add LinkBatch to Special:UnwatchedPages"
Translation updater bot [Sat, 29 Oct 2016 20:05:39 +0000 (22:05 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Ia735ef197567ad5151b508bc3b2851610f9b19a4
umherirrender [Sat, 29 Oct 2016 18:26:10 +0000 (20:26 +0200)]
Add LinkBatch to Special:UnwatchedPages
Get all the information for blue links in one query.
Change-Id: I18cbaf69c5f75e00e48e27d4b5e7220f51c31808
jenkins-bot [Sat, 29 Oct 2016 16:55:23 +0000 (16:55 +0000)]
Merge "Make LBFactoryTest.php pass for sqlite"
Aaron Schulz [Sat, 29 Oct 2016 16:14:15 +0000 (09:14 -0700)]
Fix missing commit() flag in postgres savepoint class
Previously, the transaction was left dangling, causing massive
unit failure.
Change-Id: I8fb6e69b44ff0ceb0cf7c4fb45f204e140472406
Florian Schmidt [Wed, 21 Sep 2016 20:45:32 +0000 (22:45 +0200)]
Don't show warning header for non-standard workflows on login-continue
When a user needs/wants to login again (reauthentication or user account switch),
the Login special page shows a header to explain what happened ("already logged
in" or "need to re-authenticate"). For now, the form also displays this header
for a continued login workflow (e.g. when the user needs to enter secondary auth-
entication data, like a one time password). This is misleading, as the user already
knows what and why he has to login (again). Other error/warning messages are maybe
not as visible as they should be.
This change omits the header message for the login-continue auth action.
Bug: T146317
Change-Id: I2115bbe7965e8d0326f71872a4d33767dd0f956b
Brian Wolff [Sat, 29 Oct 2016 11:55:27 +0000 (11:55 +0000)]
Add firstLetter data for ~50 additional languages
Based on CLDR 29 data files.
This did the relatively easy languages in CLDR 29 (Which is most
of them). I skipped languages with complicated tailoring files.
Change-Id: I8367604f7d3a1cdef9cb4e15813893c8cbfff1ff
Aaron Schulz [Sat, 29 Oct 2016 07:04:39 +0000 (00:04 -0700)]
Rename JobQueueDB::getSlaveDB() to getReplicaDB()
Change-Id: I7a88c4876e76836c92cc0b45b4e72124a087121c
Aaron Schulz [Thu, 27 Oct 2016 05:44:08 +0000 (22:44 -0700)]
Make LBFactoryTest.php pass for sqlite
Change-Id: I4fe929e82218231f6c8afa64da8c0ccb42d2c362
Aaron Schulz [Sat, 29 Oct 2016 05:14:26 +0000 (22:14 -0700)]
Various small cleanups to DatabasePostgres
* Add missing method visibilites
* Removed redundant doc blocks
* Use empty string for mSchema for consistency with
the base class
Change-Id: I2a067ca89a03f9ebf3f70a4f36ddae92e5b1e468
jenkins-bot [Sat, 29 Oct 2016 01:31:01 +0000 (01:31 +0000)]
Merge "Postgres updater fixes to make update.php able to run"
Aaron Schulz [Tue, 25 Oct 2016 18:56:41 +0000 (11:56 -0700)]
Postgres updater fixes to make update.php able to run
* Remove redundant schema prefix from relname=x query. The
schema filtering is already done via the JOIN. The relname
portion is just the table name not <schema>.<table name>.
* Avoid explicit table schema qualification and rely on the
search path, as MW 1.27 did. Previously it only used the
global $wgDBschema var to pass to determineCoreSchema()
instead of keeping it in mSchema.
* Clean up some code duplication in Database::tableName() and
make the code comments clearer.
* Make DatabasePostgres::tableName() use parent::tableName()
instead of a method that just wraps this method. The intent
seems clearer this way.
* Remove unused return value in
PostgresUpdater::rebuildTextSearch().
Bug: T148628
Change-Id: Id11d9576b7c2fdad22ff7f90727c12997217a632
jenkins-bot [Fri, 28 Oct 2016 21:28:40 +0000 (21:28 +0000)]
Merge "Make updateCategoryCounts() have better lag checks"
Translation updater bot [Fri, 28 Oct 2016 20:03:35 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Ic7e8cf96d2bd8ca7a583824eea1ea4a3ed6429ac
jenkins-bot [Fri, 28 Oct 2016 17:53:30 +0000 (17:53 +0000)]
Merge "Add Parser to MediaWikiServices"
jenkins-bot [Fri, 28 Oct 2016 13:25:18 +0000 (13:25 +0000)]
Merge "Introduce InterwikiLookupAdapter on top of SiteLookup"
jenkins-bot [Fri, 28 Oct 2016 11:31:44 +0000 (11:31 +0000)]
Merge "Pass context to ChangeTags::tagDescription"
Matěj Suchánek [Fri, 28 Oct 2016 08:57:52 +0000 (08:57 +0000)]
Add space between label and selector
Change-Id: Id5c8c857a2a1339b0ce626bac98f0869e27d5a75
jenkins-bot [Fri, 28 Oct 2016 01:04:54 +0000 (01:04 +0000)]
Merge "PHPSessionHandler: Workaround PHP5 bug"
jenkins-bot [Thu, 27 Oct 2016 22:51:31 +0000 (22:51 +0000)]
Merge "Change .tocnumber to use grey text for section numbers in Table of Contents boxes"
cenarium [Wed, 28 Sep 2016 19:39:28 +0000 (21:39 +0200)]
Pass context to ChangeTags::tagDescription
To avoid wfMessage calls.
Change-Id: Icaa984fa8c69ccb38fbfd3e30877a4c572501c28
jenkins-bot [Thu, 27 Oct 2016 20:30:10 +0000 (20:30 +0000)]
Merge "Refactor rev_delete handling on deletion"
Translation updater bot [Thu, 27 Oct 2016 20:01:18 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I83ef5fa88f65ec941b87888943273892857d5561
Kunal Mehta [Thu, 27 Oct 2016 17:57:20 +0000 (10:57 -0700)]
Remove tracking category stuff that accidentally slipped into
61adc1e14
Bug: T149310
Change-Id: I0a3725a72b1467c57280ae1880935dd5fa54ae9e
umherirrender [Thu, 27 Oct 2016 17:33:14 +0000 (19:33 +0200)]
Refactor rev_delete handling on deletion
Refactoring handling of the rev_delete database field, which is not
needed to select, when the suppress option is set.
Also added a new const, to avoid a comment about that things should be
15 ...
Change-Id: Ia5bcb835172bf6c10e2e872555fc67e91806ebe1
Leszek Manicki [Thu, 27 Oct 2016 13:55:39 +0000 (15:55 +0200)]
Fix reference in docs of HashConfig::set
Change-Id: I82473e42a746ed4280ea22372d8d17d797070334
jenkins-bot [Thu, 27 Oct 2016 10:49:57 +0000 (10:49 +0000)]
Merge "UploadBase: Permit SVG files with broken namespace definition (Inkscape bug)"
Bartosz Dziewoński [Wed, 5 Oct 2016 20:18:39 +0000 (22:18 +0200)]
UploadBase: Permit SVG files with broken namespace definition (Inkscape bug)
Inkscape mangles namespace definitions created by Adobe Illustrator
(apparently it can't parse custom entities or something, maybe just
in 'xmlns' attributes). These files are still valid SVG, and not
a security issue (although Illustrator probably won't like them),
so it's okay to allow them.
Added tests with some example files.
* buggynamespace-original.svg
File generated by Illustrator (edited by hand to reduce filesize).
Based on <https://commons.wikimedia.org/w/?curid=
16495597>.
* buggynamespace-okay.svg
The original file, opened and saved in Inkscape (no other changes).
* buggynamespace-okay2.svg
The original file, opened and saved in Inkscape twice.
* buggynamespace-bad.svg
The original file, edited by hand to remove custom entities.
This is not valid XML and should be rejected (although it's valid
when parsed as HTML, and some image viewers might display it).
* buggynamespace-evilhtml.svg
An SVG file using an entity declared namespace for a namespace
we want to ban. Based on buggynamespace-original.svg.
Bug: T144827
Change-Id: I0eb9766cab86a58d729f10033c64f57d2076d917
jenkins-bot [Thu, 27 Oct 2016 05:53:03 +0000 (05:53 +0000)]
Merge "New HTMLForm size filter field; add size filter to Special:Newpages"
jenkins-bot [Thu, 27 Oct 2016 05:43:38 +0000 (05:43 +0000)]
Merge "Add short-circuit to DatabasePostgres::schemaExists()"
jenkins-bot [Thu, 27 Oct 2016 02:48:43 +0000 (02:48 +0000)]
Merge "Factor out some methods in the header generation"
This, that and the other [Thu, 27 Oct 2016 01:23:18 +0000 (12:23 +1100)]
New HTMLForm size filter field; add size filter to Special:Newpages
The conversion of SpecialNewpages to HTMLForm seems to be half-finished.
It's not using HTMLForm to read in the request query, which means we have
to roll our own logic. Kind of defeats the purpose of using HTMLForm in
the first place.
When ProtectedPages is converted to HTMLForm (T117722), it can use this new
field type.
Bug: T12817
Change-Id: I069609fbb37b18c3df25156779ad7ac7cd5d6813
Aaron Schulz [Wed, 26 Oct 2016 23:07:12 +0000 (16:07 -0700)]
Add short-circuit to DatabasePostgres::schemaExists()
Change-Id: I5221f7d937be1e87689df5a21fd64e244dbd4c2a
Raimond Spekking [Wed, 26 Oct 2016 21:51:36 +0000 (21:51 +0000)]
Revert "Localisation updates from https://translatewiki.net."
Conflicts with https://gerrit.wikimedia.org/r/#/c/318151/
This reverts commit
bc2fe61db26ef99f14b17be36476fc20a3bb4e0f.
Change-Id: Ib17efe29d4f78eb3508ffe57c3fa365b64aa1341
Translation updater bot [Wed, 26 Oct 2016 20:22:24 +0000 (22:22 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I62a31a3a58174c1c4481bcfb51ab94cc17cac7d9
Brad Jorsch [Wed, 26 Oct 2016 19:20:17 +0000 (15:20 -0400)]
Add a grant for viewing restricted log entries
In core this holds the 'suppressionlog' right. SpamBlacklist and
TitleBlacklist would add their permissions here as well.
Bug: T149235
Change-Id: I8e2304e7b6f2af0c3d21d7d7390e4979b8eaee39
WMDE-Fisch [Wed, 26 Oct 2016 14:34:08 +0000 (16:34 +0200)]
Factor out some methods in the header generation
As preparation for some more minor refactoring there.
Change-Id: I31f585e5c4fcf724d9aaf670a21f4f0af42e98ce
Chad Horohoe [Tue, 25 Oct 2016 22:56:37 +0000 (15:56 -0700)]
Bump version number to 1.29.0-alpha for 1.29 development cycle
Branch point was
dc0f9b3a3a75e80a0c5f09dd76b4df1fcc05080d
The following commits missed the branch point and should probably
be backported because master reports them as 1.28
-
4290f686c07265d40718fc3358f196de41bbde57
-
81698d4c1605f491709e636acd5ca0e6857e3821
-
40da8bf039019a2845405854a2d636be4bd3b98d
-
95db9833dd8d75ff3dc44d587fdc3ad80332a500
-
7bd97758f7e1496c7d4a1fa4e7275c9d6c01c5c3
Change-Id: I51562ba357b5533500ef9dd1e29107dd05cc9e1e
jenkins-bot [Tue, 25 Oct 2016 21:45:03 +0000 (21:45 +0000)]
Merge "Add documentation for wfClientAcceptsGzip()"
nicoco007 [Mon, 28 Dec 2015 20:35:53 +0000 (15:35 -0500)]
Add documentation for wfClientAcceptsGzip()
Change-Id: I18b9311d71278ca4c843908a11f77270f03cf534
L10n-bot [Tue, 25 Oct 2016 20:29:50 +0000 (20:29 +0000)]
Merge "Localisation updates from https://translatewiki.net."
jenkins-bot [Tue, 25 Oct 2016 20:27:57 +0000 (20:27 +0000)]
Merge "Fix DatabaseSqlite IDEA warnings"
Translation updater bot [Tue, 25 Oct 2016 20:20:09 +0000 (22:20 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I832a9f7f9ac7c4afd2c358fb506ac3a11f713414
cenarium [Wed, 20 Jan 2016 20:43:47 +0000 (21:43 +0100)]
Add class to EditPage text area when editing an old revision
This adds a class 'mw-textarea-oldrev' to the editing area when an old
page revision is edited. It seems that the warning MediaWiki:Editingold
is not sufficient for some users and some css tweaks might be
appreciated, as is already done for protected pages.
Bug: T124226
Change-Id: Ifc53af0f827a5cebfd9cc220b0aa247210e8dcfc
Aaron Schulz [Mon, 24 Oct 2016 22:19:21 +0000 (15:19 -0700)]
Fix DatabaseSqlite IDEA warnings
Change-Id: Idd52a27c853653e9ba64d765f4f526f5e8a13bcd
Niklas Laxström [Thu, 30 Jan 2014 11:16:39 +0000 (11:16 +0000)]
Parser functions now format numbers according to page language
Also fixed incorrect return value documentation.
Bug: T62604
Change-Id: I1e16f20ca79436afe17eba711981b2ae43fed9e1
Timo Tijhof [Sat, 17 Sep 2016 22:50:47 +0000 (15:50 -0700)]
resourceloader: Deprecate mw.Map
This has never been used outside mediawiki.js for things like mw.config,
and mw.messages.
The public API of those objects will remain, but the constructor will
no longer be supported in the future in order to allow these to be
backed by native Map in the future (with a minimal polyfill rather than
a complete one).
* Remove 'mw.Map(valuesObject)'. (follows-up
63f8d7b9e5).
This is incompatible with native Map and isn't actually used anywhere.
* Deprecate mw.Map#values. Undocumented and considered private.
A few uses have appeared in the wild so keep a short deprecation period.
* Update the MediaWiki QUnit runner to construct new maps in setup/teardown
instead of swapping the internal values object directly.
Also update the runner to update mediawiki.jqueryMsg's parser default since
it kept a reference to the first mw.messages object.
* Add 'logName' parameter to mw.log.deprecate(). Default logName
of property key made sense for its original use case (deprecation warnings
for global variables, which are a property of the window object). But
for keys of any other object, we'll want to some context for the name.
* Remove redundant test expect numbers. (Follows-up
7c36375,
c4c7007d)
* Ensure mw.Map.prototype.constructor points to mw.Map.
This was broken by
5819c37b3, which accidentally made it point to Object.
Bug: T146432
Change-Id: I7ff0b230608f5ca582fc6752b59c4bb998c78ba2
Timo Tijhof [Mon, 24 Oct 2016 23:00:45 +0000 (00:00 +0100)]
mediawiki.storage: Catch exceptions on window.localStorage property access
Follows-up
430a0d3984, which created a private property that stored a
reference to the localStorage object outside the get and set methods.
Where previously it was used directly, and as such, covered by
the try/catch around getItem and setItem calls.
Bug: T148998
Change-Id: Ibe75408913d4ffbf1791e1a6470296b29f809185
Timo Tijhof [Tue, 25 Oct 2016 02:09:07 +0000 (03:09 +0100)]
mw.loader: Fix off-by-one error in splitModuleKey()
Follows-up
45bec76. This caused most localStorage cache entries from
mw.loader.store to be ignored because it'd store tje source code with
a version string that wrongly started with an "@".
As such, on the next page view, when comparing against the version
string from the startup manifest, it would mismatch and eventually
be pruned by mw.loader.store.
Change-Id: If14c80989c0bb28b7b209abe89f83d585c563987
jenkins-bot [Tue, 25 Oct 2016 00:46:45 +0000 (00:46 +0000)]
Merge "Swapping defaultbranch for track"
Chad Horohoe [Mon, 24 Oct 2016 23:05:44 +0000 (16:05 -0700)]
Swapping defaultbranch for track
The former is a maintenance nightmare when branching.
Bug:T146293
Change-Id: Ic892c2f5778153f6e99107fe24dafc2c8797f86d
jenkins-bot [Mon, 24 Oct 2016 23:34:31 +0000 (23:34 +0000)]
Merge "Clean up newWANCacheFromParams() getInstance() calls"
jenkins-bot [Mon, 24 Oct 2016 23:30:54 +0000 (23:30 +0000)]
Merge "Small DB classes IDEA warning fixes and cleanups"
jenkins-bot [Mon, 24 Oct 2016 23:11:29 +0000 (23:11 +0000)]
Merge "Cleanup unused LBFactory $domain arguments"
Aaron Schulz [Mon, 24 Oct 2016 21:53:24 +0000 (14:53 -0700)]
Cleanup unused LBFactory $domain arguments
Change-Id: I17b409a71e263ff5e0175f6a35fb9c5288f00c11
jenkins-bot [Mon, 24 Oct 2016 21:25:25 +0000 (21:25 +0000)]
Merge "Remove redundant LoadBalancerSingle doc block"
jenkins-bot [Mon, 24 Oct 2016 21:03:44 +0000 (21:03 +0000)]
Merge "API: Update ApiOptions docs for I45f69997"
Translation updater bot [Mon, 24 Oct 2016 20:09:55 +0000 (22:09 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I0f0c8c41d403de7df04aa49aebf3c21c9e5d3957
Yuri Astrakhan [Sun, 23 Oct 2016 01:46:14 +0000 (21:46 -0400)]
Comments: Added phabricator IDs to bz bug #s
Change-Id: Ia8d4e570e78c62e5c26bda0264fbf1efc74e58a2
Yuri Astrakhan [Tue, 18 Oct 2016 05:23:56 +0000 (01:23 -0400)]
Added array_replace_recursive merge strategy
For extension registry, add array_replace_recursive merge strategy,
as some extensions/configuration may prefer that to array_merge_recursive.
In some cases, configuration is merged from multiple extensions,
such as JsonConfig's $wgJsonConfigs configuration: ZeroBanner defines
"JsonZeroConfig": {
"namespace": 480,
"nsName": "Zero",
"isLocal": false,
"cacheKey": "1"
}
and mobile.php overrides it with
$wgJsonConfigs['JsonZeroConfig']['isLocal'] = false;
$wgJsonConfigs['JsonZeroConfig']['remote'] = [
'url' => 'https://zero.wikimedia.org/w/api.php',
'username' => $wmgZeroPortalApiUserName,
'password' => $wmgZeroPortalApiPassword,
];
Having identical value 'isLocal' would be converted into an array
if array_merge_recursive is used, but the replace strategy fixes it.
Change-Id: Ica6ddd0ae76f23e60de9b6235c6e2a3f2754a95d
Brad Jorsch [Mon, 24 Oct 2016 17:48:37 +0000 (13:48 -0400)]
API: Update ApiOptions docs for I45f69997
Now that we have an alternative multiple-value separator, the
documentation for action=options's change parameter should recommend
that instead of stating that values cannot contain pipes.
Change-Id: Ia0ff2c16be9cab3e1e303a5c7c618455167db31c
Brad Jorsch [Mon, 24 Oct 2016 14:15:42 +0000 (10:15 -0400)]
PHPSessionHandler: Workaround PHP5 bug
PHP5 has a bug in handling boolean return values for
SessionHandlerInterface methods, it expects 0 or -1 instead of true or
false. See <https://wiki.php.net/rfc/session.user.return-value>.
PHP7 and HHVM are not affected.
No tests are added here because the only case where it actually makes a
difference is a can-never-happen branch.
Also, since I'm touching it already, add a @codeCoverageIgnore for the
code no longer tested thanks to I6e153ec8.
Change-Id: Id87478964b3985ed8bf4dd00bbc09f65ddfcc130
jenkins-bot [Mon, 24 Oct 2016 13:49:12 +0000 (13:49 +0000)]
Merge "Add a @throws doc line to getGrammarTransformations() in Language.php"
Aaron Schulz [Fri, 21 Oct 2016 21:23:39 +0000 (14:23 -0700)]
Remove redundant LoadBalancerSingle doc block
Change-Id: Ibbf952bb1c6ded5e47a325de3c2ecdc5e171e4e7
jenkins-bot [Mon, 24 Oct 2016 07:03:17 +0000 (07:03 +0000)]
Merge "Make LBFactorySingle call initLoadBalancer() as the others do"
jenkins-bot [Mon, 24 Oct 2016 05:11:30 +0000 (05:11 +0000)]
Merge "Improve Status/StatusValue::splitByErrorType type hint"
Aaron Schulz [Mon, 24 Oct 2016 05:03:37 +0000 (22:03 -0700)]
Small DB classes IDEA warning fixes and cleanups
Change-Id: I65b5f452a364b329bb671540f4115dbc4f40eebd
Gergő Tisza [Mon, 24 Oct 2016 04:03:58 +0000 (04:03 +0000)]
Force boolean type for $ok in StatusValue::setResult
Change-Id: Ie9e933fba3445872e39d70ab3a8230f204106996
Aaron Schulz [Mon, 24 Oct 2016 04:01:03 +0000 (21:01 -0700)]
Clean up newWANCacheFromParams() getInstance() calls
Change-Id: I0daa2531708d0a110e8028c4a5641153a23c0a97
Gergő Tisza [Mon, 24 Oct 2016 00:07:53 +0000 (00:07 +0000)]
Improve Status/StatusValue::splitByErrorType type hint
Change-Id: I6deb76f8906aa86481b84ce1aaebaddf3a52e31d
Translation updater bot [Sun, 23 Oct 2016 20:13:10 +0000 (22:13 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I6e7f0a9500f0c67789b8dcfb09fef5a381c0928f
Translation updater bot [Sat, 22 Oct 2016 20:04:43 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I3552487ae6111a7725ae64f4cea51b768a261b66
Amire80 [Fri, 21 Oct 2016 22:34:19 +0000 (15:34 -0700)]
Add a @throws doc line to getGrammarTransformations() in Language.php
Follow up to
I6b9b29b7017f958d62611671be017f97cee73415
Change-Id: I65b4a7b482238d2df97639f41f05af8566686414
jenkins-bot [Fri, 21 Oct 2016 21:55:52 +0000 (21:55 +0000)]
Merge "Use adaptive CDN TTLs for page views"
Amire80 [Fri, 21 Oct 2016 20:39:07 +0000 (13:39 -0700)]
Remove unreachable code after an exception
Follow up to
I6b9b29b7017f958d62611671be017f97cee73415
Change-Id: Ib3ccbb103097a50f04b798a4ff33eedc64e62aef
jenkins-bot [Fri, 21 Oct 2016 20:30:23 +0000 (20:30 +0000)]
Merge "Make grammar data loadable as an RL module and usable in JS"
Translation updater bot [Fri, 21 Oct 2016 19:59:54 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Iefabb99a1acb00c45a585eabf082c1c2b7a83df3
Amir E. Aharoni [Sat, 26 Sep 2015 20:28:03 +0000 (23:28 +0300)]
Make grammar data loadable as an RL module and usable in JS
* Load the data of this variable from a JSON file to the same
data structure that ResourceLoader uses for digitTransformTable,
pluralRules, etc.
* Change the JSON structure to ensure the order of the rules.
Otherwise JavaScript processes the keys in a random order.
* Delete the grammar code from JS and replace it with
the same logic that is used in PHP for processing the data.
For now this is done only for Russian.
The next step will be to make the PHP and JS
data processing logic reusable.
Bug: T115217
Change-Id: I6b9b29b7017f958d62611671be017f97cee73415
Aaron Schulz [Fri, 21 Oct 2016 00:48:15 +0000 (17:48 -0700)]
Make LBFactorySingle call initLoadBalancer() as the others do
Change-Id: I0ef09d7f4ffbba1debb43def785f0052139d7d86
jenkins-bot [Fri, 21 Oct 2016 01:23:30 +0000 (01:23 +0000)]
Merge "objectcache: avoid using process cache in nested callbacks"
jenkins-bot [Fri, 21 Oct 2016 00:36:21 +0000 (00:36 +0000)]
Merge "Show user ID on action=info"
Aaron Schulz [Tue, 23 Aug 2016 04:10:13 +0000 (21:10 -0700)]
Use adaptive CDN TTLs for page views
This makes frequently changed pages be less likely to be
seen in stale forms if purges are delayed or lost. Pages
that have not been edited for somewhat longer than the
nominal CDN cache TTL will retain the nominal TTL.
Category pages will adapt based on page_touched rather
than the last revision, given the possibility of constaintly
changing membership. With their lesser overall usage,
this is less risky than for Article, and also more useful.
Change-Id: If621aca2fb68e9f87a50c891dac8dc6ec7641f5c
Aaron Schulz [Wed, 19 Oct 2016 03:55:35 +0000 (20:55 -0700)]
Make updateCategoryCounts() have better lag checks
* Add the lag checks to LinksUpdate. Previously, only
LinksDeletionUpdate had any such checks.
* Remove the transaction hook usage, since the only two callers are
already lag/contention aware. Deferring them just makes the wait
checks pointless and they might end up happening all at once.
* Also set the visibility on some neigboring methods.
* Clean up LinksUpdate $existing variables in passing. Instead of
overriding the same variable, use a differently named variable
to avoid mistakes.
Bug: T95501
Change-Id: I43e3af17399417cbf0ab4e5e7d1f2bd518fa7e90
Kunal Mehta [Thu, 20 Oct 2016 22:23:13 +0000 (15:23 -0700)]
Show user ID on action=info
Change-Id: I43293e319e02dd388c4ee3e952962ad725ab2bab