lhc/web/wiklou.git
7 years agoCheck if user is blocked during upload process
Matthias Mullie [Fri, 29 Apr 2016 14:21:13 +0000 (16:21 +0200)]
Check if user is blocked during upload process

Further down, this was already somewhat being checked.
On L112, `verifyTitlePermissions` is called, which will fail
if the user is blocked. However:

* This was not being checked during stashed uploads
* Block just "happens" to be part of that check: the intent is
  actually to verify the file title. The error is treated as
  recoverable (the title can be changed), but it isn't (the
  user can't unblock himself in this process)

Bug: T111228
Change-Id: I9cbf250a0b92c3daa3a0843f2257cc049abd3923

7 years agoMerge "Clean up PoolWorkArticleView type hints and fix IDEA errors"
jenkins-bot [Tue, 3 May 2016 08:57:07 +0000 (08:57 +0000)]
Merge "Clean up PoolWorkArticleView type hints and fix IDEA errors"

7 years agoMerge "Document mInterwikis in LinksUpdate"
jenkins-bot [Tue, 3 May 2016 08:57:03 +0000 (08:57 +0000)]
Merge "Document mInterwikis in LinksUpdate"

7 years agoClean up PoolWorkArticleView type hints and fix IDEA errors
Aaron Schulz [Tue, 3 May 2016 08:47:36 +0000 (01:47 -0700)]
Clean up PoolWorkArticleView type hints and fix IDEA errors

All callers pass a WikiPage here already.

Change-Id: I6a17bf52fb2547729c6a1fa40704f1c9efe28b12

7 years agoMerge "ParserCache: Don't try to save to nothing if disabled"
jenkins-bot [Tue, 3 May 2016 01:59:57 +0000 (01:59 +0000)]
Merge "ParserCache: Don't try to save to nothing if disabled"

7 years agoParserCache: Don't try to save to nothing if disabled
Kunal Mehta [Wed, 27 Apr 2016 00:45:52 +0000 (17:45 -0700)]
ParserCache: Don't try to save to nothing if disabled

If the ParserCache is disabled via $wgParserCacheType = CACHE_NONE,
don't bother trying to save anything because it won't do anything.

This also removes the misleading "Saved in parser cache" HTML comment
from the rendered output since it isn't being saved at all.

Change-Id: I5603d2b2866f0079cdcd837b1f1a4efc00bc8ed9

7 years agoDocument mInterwikis in LinksUpdate
Aaron Schulz [Mon, 2 May 2016 23:53:20 +0000 (16:53 -0700)]
Document mInterwikis in LinksUpdate

Change-Id: If10840c5df849455027b5a497097e583fb982a65

7 years agoMerge "Quote column name aliases"
jenkins-bot [Mon, 2 May 2016 21:38:38 +0000 (21:38 +0000)]
Merge "Quote column name aliases"

7 years agoMerge "Update Microsoft SQL Server schema"
jenkins-bot [Mon, 2 May 2016 21:34:50 +0000 (21:34 +0000)]
Merge "Update Microsoft SQL Server schema"

7 years agoMerge "Pass through errors creating the main page to the installer."
jenkins-bot [Mon, 2 May 2016 21:34:18 +0000 (21:34 +0000)]
Merge "Pass through errors creating the main page to the installer."

7 years agoQuote column name aliases
Ryan Schmidt [Mon, 2 May 2016 18:04:47 +0000 (13:04 -0500)]
Quote column name aliases

Sometimes, a column name alias is chosen that is a reserved word or is
otherwise invalid (such as an alias named "user" on postgres or mssql).
Let's unconditionally quote the alias so that no matter what the user
specifies, it will not cause the query to error out.

Bug: T118973
Change-Id: If3ea7324980355e78afcdb3bf2596d23bb96412d

7 years agoMerge "Quick-fail refreshLinksJob if the triggering revision isn't the latest"
jenkins-bot [Mon, 2 May 2016 20:54:48 +0000 (20:54 +0000)]
Merge "Quick-fail refreshLinksJob if the triggering revision isn't the latest"

7 years agoMerge "Unify HTMLForm message handling"
jenkins-bot [Mon, 2 May 2016 20:52:46 +0000 (20:52 +0000)]
Merge "Unify HTMLForm message handling"

7 years agoMerge "Make refreshLinksJob explicitly check the cache rev ID"
jenkins-bot [Mon, 2 May 2016 20:49:05 +0000 (20:49 +0000)]
Merge "Make refreshLinksJob explicitly check the cache rev ID"

7 years agoQuick-fail refreshLinksJob if the triggering revision isn't the latest
Brad Jorsch [Mon, 2 May 2016 20:36:10 +0000 (16:36 -0400)]
Quick-fail refreshLinksJob if the triggering revision isn't the latest

If we already know that the triggeringRevisionId is outdated, fail early
instead of doing all the work of re-parsing that old revision and
preparing all the updates only to fail later at the lockAndGetLatest()
call.

Change-Id: Ic70c659899d5d47e74fa17c88ed26b436732ca8a

7 years agoUnify HTMLForm message handling
Gergő Tisza [Sun, 17 Apr 2016 07:35:54 +0000 (07:35 +0000)]
Unify HTMLForm message handling

Improves Ida647973a which unified message handling for form fields
but did not make the functionality available to HTMLForm itself.

Change-Id: I2e6195ba13afbd8b993acb47409fab1be91c547e

7 years agoMake refreshLinksJob explicitly check the cache rev ID
Aaron Schulz [Tue, 26 Apr 2016 19:43:51 +0000 (12:43 -0700)]
Make refreshLinksJob explicitly check the cache rev ID

This is needed if the $useOutdated behavior of ParserCache
is modified per Ibd111bed203dd.

Bug: T133659
Change-Id: I70806dffba8af255d7cdad7663132b58479f63e3

7 years agoMerge "Log when resyncFiles() fails in FileBackendMultiWrite"
jenkins-bot [Mon, 2 May 2016 18:55:41 +0000 (18:55 +0000)]
Merge "Log when resyncFiles() fails in FileBackendMultiWrite"

7 years agoMerge "Allow specifying targets for ResourceLoaderWikiModule"
jenkins-bot [Mon, 2 May 2016 18:41:02 +0000 (18:41 +0000)]
Merge "Allow specifying targets for ResourceLoaderWikiModule"

7 years agoAllow specifying targets for ResourceLoaderWikiModule
Max Semenik [Mon, 2 May 2016 18:32:20 +0000 (11:32 -0700)]
Allow specifying targets for ResourceLoaderWikiModule

Change-Id: Ic8f29aecfbd1e6bfaef44405190043055ce6215a

7 years agoUpdate Microsoft SQL Server schema
Ryan Schmidt [Mon, 25 Apr 2016 01:58:24 +0000 (18:58 -0700)]
Update Microsoft SQL Server schema

The MSSQL schema is now brought in-line with the MySQL schema.
Additionally, various issues that prevented successful installation or
updates via MSSQL were fixed, notably with respect to creating bits of
the database should other bits already exist as well as issues with
previous updater patches not working correctly.

Additional MSSQL bugfixes will come in separate patches, as they are less
related to the schema/install/upgrade process.

Change-Id: If3eea625499d3cb14abba40f528208173067a53a

7 years agoMerge "Set explicit direction to ApiHelp headers with module names"
jenkins-bot [Mon, 2 May 2016 16:05:40 +0000 (16:05 +0000)]
Merge "Set explicit direction to ApiHelp headers with module names"

7 years agoMerge "Give redirects a sort index in title widget"
jenkins-bot [Mon, 2 May 2016 15:26:54 +0000 (15:26 +0000)]
Merge "Give redirects a sort index in title widget"

7 years agoMerge "jquery.makeCollapsible: Simplify code"
jenkins-bot [Mon, 2 May 2016 14:58:16 +0000 (14:58 +0000)]
Merge "jquery.makeCollapsible: Simplify code"

7 years agoMerge "EditPage: Style anonymous editor preview warning as a warning box"
jenkins-bot [Mon, 2 May 2016 14:52:44 +0000 (14:52 +0000)]
Merge "EditPage: Style anonymous editor preview warning as a warning box"

7 years agoMerge "Removing unicode-bidi: -webkit-isolate"
jenkins-bot [Mon, 2 May 2016 14:50:14 +0000 (14:50 +0000)]
Merge "Removing unicode-bidi: -webkit-isolate"

7 years agojquery.makeCollapsible: Simplify code
Cblair91 [Mon, 2 May 2016 13:46:34 +0000 (13:46 +0000)]
jquery.makeCollapsible: Simplify code

Instead of using if checks, use a piping system (like in the first function).

Change-Id: Ib96f9db9c56965c336ac85d9bdcf21bdbb4e9cce

7 years agoMerge "In ParserCache, respect $useOutdated"
jenkins-bot [Mon, 2 May 2016 14:42:29 +0000 (14:42 +0000)]
Merge "In ParserCache, respect $useOutdated"

7 years agoEditPage: Style anonymous editor preview warning as a warning box
Yusuke Matsubara [Mon, 2 May 2016 08:23:18 +0000 (17:23 +0900)]
EditPage: Style anonymous editor preview warning as a warning box

Change-Id: Idd4c50dd9539b95350818a5a6eaebbaf085105ba
Follow-Up: I22c51a46a249247abccda709d74356e8e31a19a8
Bug: T127403

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 May 2016 20:54:29 +0000 (22:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ife995ee37ad1b23b10b802d7f765750892558609

7 years agoRemoving unicode-bidi: -webkit-isolate
Amire80 [Sun, 1 May 2016 09:41:48 +0000 (12:41 +0300)]
Removing unicode-bidi: -webkit-isolate

Chrome supports non-prefixed "isolate" since v48,
and apparently the prefixed version causes issues
in old versions of Safari, so it's time to remove it.

Bug: T134067
Change-Id: Ic30d144e5b1aad3159e61fda31a7c31db4029b11

7 years agoMerge "Style warnings from live preview on Special:Upload"
jenkins-bot [Sat, 30 Apr 2016 20:54:23 +0000 (20:54 +0000)]
Merge "Style warnings from live preview on Special:Upload"

8 years agoGive redirects a sort index in title widget
Ed Sanders [Sat, 30 Apr 2016 16:23:43 +0000 (17:23 +0100)]
Give redirects a sort index in title widget

Otherwise the sort compare function returns NaN
and the order is completely broken.

Bug: T134020
Change-Id: Ie3bbc153e6941d35cfab971690c8934123185d48

8 years agoFix and standardize Doxygen tags
Ricordisamoa [Sat, 30 Apr 2016 10:10:17 +0000 (12:10 +0200)]
Fix and standardize Doxygen tags

* Use "@param datatype $paramname description" format

* String → string, Integer → int etc.

* @return $string → @return string

Change-Id: I860d222382cb4c5699d313b0600bd22503c8c385

8 years agoMerge "Add class to div wrapper around category lists"
jenkins-bot [Fri, 29 Apr 2016 21:48:19 +0000 (21:48 +0000)]
Merge "Add class to div wrapper around category lists"

8 years agoAvoid lock error exceptions during upgradeRow() contention
Aaron Schulz [Tue, 19 Apr 2016 15:58:49 +0000 (08:58 -0700)]
Avoid lock error exceptions during upgradeRow() contention

Bug: T132921
Change-Id: I229031c3d4ae5b700fcc4d4dd3f5208a853823dc

8 years agoAdd class to div wrapper around category lists
Ed Sanders [Fri, 29 Apr 2016 21:30:57 +0000 (22:30 +0100)]
Add class to div wrapper around category lists

Allows VE to target non-editable content to keep on the page.

Change-Id: If687b84d9ad33a0315a8ba4260bc3532691f05ed

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 29 Apr 2016 20:16:54 +0000 (22:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I75205fc07e65c44bd543a2fa890c6cca94a21b8e

8 years agoPrefixSearchTest, SearchEnginePrefixTest: ignore ext. special pages
Matthew Flaschen [Thu, 3 Mar 2016 07:16:53 +0000 (02:16 -0500)]
PrefixSearchTest, SearchEnginePrefixTest: ignore ext. special pages

It was attempting to do this before, but it didn't handle special pages
registered by hook, and was not clearing the list properly (so it was
too late when wgSpecialPages was cleared).

This would cause the test to fail if certain extensions were
installed (e.g. AbuseFilter).

Change-Id: I9affac5ad00e97326ebf9961bbf709ac22aef498

8 years agoMerge "Avoid master queries in getAutoDeleteReason()"
jenkins-bot [Fri, 29 Apr 2016 19:28:55 +0000 (19:28 +0000)]
Merge "Avoid master queries in getAutoDeleteReason()"

8 years agoLog when resyncFiles() fails in FileBackendMultiWrite
Aaron Schulz [Fri, 29 Apr 2016 19:16:07 +0000 (12:16 -0700)]
Log when resyncFiles() fails in FileBackendMultiWrite

This distinguishes cases that recover from sync errors
from those that do not.

Change-Id: Ibcdea18041e7344077c8308359a1a6087139f2e0

8 years agoMerge "Remove vague GPL headers from browser tests with dead links"
jenkins-bot [Fri, 29 Apr 2016 17:47:06 +0000 (17:47 +0000)]
Merge "Remove vague GPL headers from browser tests with dead links"

8 years agooojs/oojs-ui: Swap to using Phabricator for the links to release notes
Chad Horohoe [Fri, 29 Apr 2016 17:12:50 +0000 (10:12 -0700)]
oojs/oojs-ui: Swap to using Phabricator for the links to release notes

Change-Id: I6bc1caa02673615f6fab539cec0c8de36958dd63

8 years agoRemove vague GPL headers from browser tests with dead links
Chad Horohoe [Fri, 29 Apr 2016 17:01:47 +0000 (10:01 -0700)]
Remove vague GPL headers from browser tests with dead links

They don't actually state what license they're under, they just link
to a license file that no longer exists. Prior to deletion, it was:

https://phabricator.wikimedia.org/diffusion/GQAB/browse/master/LICENSE;0135f0c57627db28bdf451b5b8d21a1a60ec0b06

That's GPL! It's kind of weird to have a non-standard GPL header like this
so just remove them. Rest of the browser test files don't contain any sort
of header at all

Change-Id: I7b49b806588f029fc6017915a19994a0d52b7177

8 years agoSet explicit direction to ApiHelp headers with module names
Amir E. Aharoni [Sat, 12 Sep 2015 09:59:38 +0000 (12:59 +0300)]
Set explicit direction to ApiHelp headers with module names

Bug: T112364
Change-Id: I28e8e0cbbeb0ff0a41a06cb28fbda26d72725e59

8 years agoMerge "Add 'api-error-ratelimited' message for UploadWizard"
jenkins-bot [Fri, 29 Apr 2016 13:49:17 +0000 (13:49 +0000)]
Merge "Add 'api-error-ratelimited' message for UploadWizard"

8 years agoAssert jobs called from WIS::resetNotificationTimestamp are correct
Leszek Manicki [Wed, 20 Apr 2016 13:51:26 +0000 (15:51 +0200)]
Assert jobs called from WIS::resetNotificationTimestamp are correct

This also adds tests for some previously untested paths.

Change-Id: Id95144c0bad90cfc123a4444a03aad91531d2332

8 years agoFix timestamp check in ApiStashEdit::checkCache
Aaron Schulz [Wed, 27 Apr 2016 22:43:38 +0000 (15:43 -0700)]
Fix timestamp check in ApiStashEdit::checkCache

* The wrong time method was used, and it also was not set.
* Bumped the threshold a bit while at it, which was basically
  0-5 minutes before.

Bug: T133332
Change-Id: Ide3e66f551aa6e50410c562e5c917141d59b7f64

8 years agoMerge "Remove unused imports from MediaWikiServices"
jenkins-bot [Thu, 28 Apr 2016 21:55:42 +0000 (21:55 +0000)]
Merge "Remove unused imports from MediaWikiServices"

8 years agoMerge "Avoid DBPerformance log warnings in saveNamespaces()"
jenkins-bot [Thu, 28 Apr 2016 21:50:41 +0000 (21:50 +0000)]
Merge "Avoid DBPerformance log warnings in saveNamespaces()"

8 years agoRemove unused imports from MediaWikiServices
aude [Thu, 28 Apr 2016 21:46:02 +0000 (17:46 -0400)]
Remove unused imports from MediaWikiServices

Change-Id: Ib9935e69b3e7c30a90b3f96e56e31b93b81f1f11

8 years agoAvoid DBPerformance log warnings in saveNamespaces()
Aaron Schulz [Thu, 28 Apr 2016 21:38:33 +0000 (14:38 -0700)]
Avoid DBPerformance log warnings in saveNamespaces()

Bug: T92357
Change-Id: Ia1165d8da55cf506ff101987e0b0326fc1b6719a

8 years agoAvoid master queries in getAutoDeleteReason()
Aaron Schulz [Thu, 28 Apr 2016 21:26:38 +0000 (14:26 -0700)]
Avoid master queries in getAutoDeleteReason()

This largely used the slaves anyway, but not for certain bits.

Bug: T92357
Change-Id: I909a14b25a959ee28960aa7aa3d799c5f10988d1

8 years agoMerge "Use typehinted methods for search stuff in ServiceWiring"
jenkins-bot [Thu, 28 Apr 2016 20:43:37 +0000 (20:43 +0000)]
Merge "Use typehinted methods for search stuff in ServiceWiring"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 28 Apr 2016 20:40:48 +0000 (22:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I36e4ef817d0736a3f44dfa94df5c4b0e26ae6a34

8 years agoUse typehinted methods for search stuff in ServiceWiring
addshore [Wed, 27 Apr 2016 10:11:15 +0000 (11:11 +0100)]
Use typehinted methods for search stuff in ServiceWiring

Change-Id: Ibc0a218e40cc24daaf310d028d71dc27e510a140

8 years agoMerge "Move wgContLang from config to injectable"
jenkins-bot [Thu, 28 Apr 2016 15:37:04 +0000 (15:37 +0000)]
Merge "Move wgContLang from config to injectable"

8 years agoMerge "Enable 4:2:0 chroma subsampling for JPEG thumbnails"
jenkins-bot [Thu, 28 Apr 2016 00:02:47 +0000 (00:02 +0000)]
Merge "Enable 4:2:0 chroma subsampling for JPEG thumbnails"

8 years agoEnable 4:2:0 chroma subsampling for JPEG thumbnails
Brion Vibber [Wed, 27 Apr 2016 16:26:48 +0000 (09:26 -0700)]
Enable 4:2:0 chroma subsampling for JPEG thumbnails

* Add $wgJpegPixelFormat, default to 'yuv420'
* Implemented for ImageMagick via CLI and extension
* Currently ignored for other scaler backends
* Added test case to run when using ImageMagick

4:2:0 subsampling can save an average of 17% bandwidth
over 4:4:4 subsampling, at the cost of some artifacting
at sharp red or blue edges. This is usually not noticeable
in photographic images.

To restore the previous behavior, set to false:

  $wgJpegPixelFormat = false;

which will maintain the original file's pixel subsampling
settings in the thumbnail.

Can set explicitly to one of:

  'yuv444' - never subsample
  'yuv422' - subsample 2x horizontally, not vert
  'yuv420' - subsample 2x in both dimensions

Bug: T129128
Change-Id: Ib9cb36c3a7e6a69d66c11150ef4a1d02dbac2df5

8 years agoLinkCache: Clarify in doc comments what format $title is
Kunal Mehta [Wed, 27 Apr 2016 21:34:18 +0000 (14:34 -0700)]
LinkCache: Clarify in doc comments what format $title is

Sometimes $title is a Title object, sometimes it is the prefixed DB key
as a string.

Change-Id: I0e574f35f0c3193bc933e77250c42765626d3cbf

8 years agoAdd 'api-error-ratelimited' message for UploadWizard
Bartosz Dziewoński [Tue, 26 Apr 2016 21:47:07 +0000 (23:47 +0200)]
Add 'api-error-ratelimited' message for UploadWizard

One day, I'm going to move the UploadWizard-specific messages there.

Bug: T132920
Change-Id: Ieb218c2a2d7bf7a703369772018a246bcf639f0b

8 years agoLinkCache: Remove unncessary & from singleton() function
Kunal Mehta [Wed, 27 Apr 2016 21:30:54 +0000 (14:30 -0700)]
LinkCache: Remove unncessary & from singleton() function

Change-Id: I9e9e530a59d7b9062d0214ba82146b313e6b10fd

8 years agoTitle: Update conversion functions for LinkTarget interwiki support
Kunal Mehta [Wed, 27 Apr 2016 21:26:34 +0000 (14:26 -0700)]
Title: Update conversion functions for LinkTarget interwiki support

Title::newFromLinkTarget() will now take the interwiki component from
the LinkTarget object, and Title::getTitleValue() will pass on the
interwiki part if there is one.

Follows-up 9b1f8b4ca331e45.

Change-Id: If1fecc9d71e58c476d6cebe6164cdc95f183048d

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 27 Apr 2016 20:30:11 +0000 (22:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8e0a4883bd78e81a72bfafb8b7813dc45799e0f3

8 years agoMerge "Enforce calling HTMLForm::prepareForm before displayForm"
jenkins-bot [Wed, 27 Apr 2016 20:19:39 +0000 (20:19 +0000)]
Merge "Enforce calling HTMLForm::prepareForm before displayForm"

8 years agoStyle warnings from live preview on Special:Upload
umherirrender [Wed, 27 Apr 2016 19:48:08 +0000 (21:48 +0200)]
Style warnings from live preview on Special:Upload

The live preview about warnings on Special:Upload does not style
warnings added to the form. Added styles to the container to style the
warnings.
Also reuse the style to give the warning box on the non-js from the same
style. The visual effect here is an expand box to the full width.

Change-Id: I36e0bf0332eac476002569f46ab116f271f3c468

8 years agoEnforce calling HTMLForm::prepareForm before displayForm
Gergő Tisza [Wed, 27 Apr 2016 10:28:55 +0000 (12:28 +0200)]
Enforce calling HTMLForm::prepareForm before displayForm

Bug: T133163
Change-Id: Idd5d117cb0dd65c195019dcd321cd4bf9024b426

8 years agoMove wgContLang from config to injectable
Stanislav Malyshev [Tue, 26 Apr 2016 22:32:13 +0000 (15:32 -0700)]
Move wgContLang from config to injectable

Change-Id: Iffdc39f2de7d38ee9ef882bb796e8969e95e75c6

8 years agoMerge "Add interwiki support to LinkTarget and TitleValue"
jenkins-bot [Wed, 27 Apr 2016 16:19:08 +0000 (16:19 +0000)]
Merge "Add interwiki support to LinkTarget and TitleValue"

8 years agoMerge "Add missing imports to MediaWikiServices"
jenkins-bot [Wed, 27 Apr 2016 16:00:13 +0000 (16:00 +0000)]
Merge "Add missing imports to MediaWikiServices"

8 years agoAdd a type hint to RevDelList::setVisibility
Leszek Manicki [Wed, 27 Apr 2016 14:57:28 +0000 (16:57 +0200)]
Add a type hint to RevDelList::setVisibility

Docblock mentions an array already. All usages in core I've managed
to track also pass in arrays.

Change-Id: I830f446a2b63d09c7aa81205d66ac56d8bdab733

8 years agoAdd getSkinFactory to MediaWikiServices
addshore [Tue, 19 Apr 2016 11:55:23 +0000 (12:55 +0100)]
Add getSkinFactory to MediaWikiServices

Change-Id: Ife79aca542e0e85405976de7be7acebfa3359569

8 years agoAdd missing imports to MediaWikiServices
addshore [Wed, 27 Apr 2016 10:10:16 +0000 (11:10 +0100)]
Add missing imports to MediaWikiServices

Change-Id: I8d4da075e18a87c5a5084f874c2cdce9eb08237a

8 years agoAdd interwiki support to LinkTarget and TitleValue
Kunal Mehta [Wed, 27 Apr 2016 02:21:59 +0000 (19:21 -0700)]
Add interwiki support to LinkTarget and TitleValue

This adds support to the LinkTarget interface and TitleValue
implementation for having an interwiki component, matching the function
names used in Title.

MediaWikiTitleCodec was updated accordingly.

The motivation behind this change is to be able to fully use LinkTarget
in the Linker rewrite instead of depending upon Title.

Change-Id: I6666b64f0e336aadc7261e7ca87ac2e498c61856

8 years agoOptimize consistencyCheck() in FileBackendMultiwrite
Aaron Schulz [Tue, 26 Apr 2016 22:09:28 +0000 (15:09 -0700)]
Optimize consistencyCheck() in FileBackendMultiwrite

doOperationsInternal() already set "preserveCache" but never actually
filled it in to begin with. This should lower round trips if sync checks
are enabled.

Change-Id: Ica67b8d66e7602faed842408365edbd466688f61

8 years agoAllow for logging cases when parser cache is rejected
Aaron Schulz [Wed, 27 Apr 2016 03:25:38 +0000 (20:25 -0700)]
Allow for logging cases when parser cache is rejected

Bug: T133659
Change-Id: I779eeffc2ae0533c1929b189a19339a0dc4986f5

8 years agoMerge "Introduce InterwikiTest"
jenkins-bot [Tue, 26 Apr 2016 22:12:54 +0000 (22:12 +0000)]
Merge "Introduce InterwikiTest"

8 years agoMerge "Update OOjs UI to v0.17.0"
jenkins-bot [Tue, 26 Apr 2016 22:02:52 +0000 (22:02 +0000)]
Merge "Update OOjs UI to v0.17.0"

8 years agoUpdate OOjs UI to v0.17.0
James D. Forrester [Tue, 26 Apr 2016 21:48:42 +0000 (14:48 -0700)]
Update OOjs UI to v0.17.0

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

Change-Id: Ie7864c1a7f9f79caa5909fb14345fa054713b49d

8 years agoLinkCache: Make clearBadLink() only clear that link
Kunal Mehta [Tue, 26 Apr 2016 21:36:24 +0000 (14:36 -0700)]
LinkCache: Make clearBadLink() only clear that link

Calling clear() empties all of mBadLinks instead of the one that was
requested.

Change-Id: Iec7f7845704dd5742b5bdf4aff05678194e08054

8 years agoMerge "Make wikidiff3 the only diff engine"
jenkins-bot [Tue, 26 Apr 2016 20:46:57 +0000 (20:46 +0000)]
Merge "Make wikidiff3 the only diff engine"

8 years agoFix fatal on Special:Search
Erik Bernhardson [Tue, 26 Apr 2016 20:07:32 +0000 (13:07 -0700)]
Fix fatal on Special:Search

Icef1ecbe had a mistaken bit of code that called newSearchEngine when
it should have used getSearchEngine. Rename the function call to be
correct.

Change-Id: Id5c8b16b90e1d866d3c8ca31cc622442046da0e2

8 years agoMake wikidiff3 the only diff engine
Max Semenik [Mon, 18 Apr 2016 00:39:25 +0000 (17:39 -0700)]
Make wikidiff3 the only diff engine

In addition to much improved worst-case performance, it also has better
relevance.

Bug: T128896
Change-Id: I3b52c502d7cd5923c5a02942afbe75aba9016148

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 26 Apr 2016 20:01:13 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifece83af145eed33767bd4bc29e373aa00411ae6

8 years agoMerge "Have Linker::normaliseSpecialPage() accept LinkTarget objects"
jenkins-bot [Tue, 26 Apr 2016 19:30:38 +0000 (19:30 +0000)]
Merge "Have Linker::normaliseSpecialPage() accept LinkTarget objects"

8 years agoMerge "registration: Improve schema validation for some properties"
jenkins-bot [Tue, 26 Apr 2016 19:29:06 +0000 (19:29 +0000)]
Merge "registration: Improve schema validation for some properties"

8 years agoMerge "OutputPage: Use PageViewLanguage instead of PageLanguage for mw.config"
jenkins-bot [Tue, 26 Apr 2016 19:09:36 +0000 (19:09 +0000)]
Merge "OutputPage: Use PageViewLanguage instead of PageLanguage for mw.config"

8 years agoHave Linker::normaliseSpecialPage() accept LinkTarget objects
Kunal Mehta [Wed, 20 Apr 2016 08:43:51 +0000 (01:43 -0700)]
Have Linker::normaliseSpecialPage() accept LinkTarget objects

Change-Id: I762eaaeaf292f014e0443bf3c8fcf621ae8ee254

8 years agoMerge "i18n: Provide new "publish" strings for extra translator time"
jenkins-bot [Tue, 26 Apr 2016 19:02:26 +0000 (19:02 +0000)]
Merge "i18n: Provide new "publish" strings for extra translator time"

8 years agoMerge "Add missing include in MediaWikiServices"
jenkins-bot [Tue, 26 Apr 2016 18:39:52 +0000 (18:39 +0000)]
Merge "Add missing include in MediaWikiServices"

8 years agoMerge "Remove un-needed cast for array key in WatchedItemStore"
jenkins-bot [Tue, 26 Apr 2016 18:36:47 +0000 (18:36 +0000)]
Merge "Remove un-needed cast for array key in WatchedItemStore"

8 years agoMerge "Convert SearchEngine to service containers"
jenkins-bot [Tue, 26 Apr 2016 18:19:03 +0000 (18:19 +0000)]
Merge "Convert SearchEngine to service containers"

8 years agoAdd -f as an alias of --force to cli args of updateCollation.php
Brian Wolff [Mon, 22 Feb 2016 22:21:52 +0000 (17:21 -0500)]
Add -f as an alias of --force to cli args of updateCollation.php

Because I kept accidentally using -f without realizing it didn't
work.

Change-Id: I71da15c81ca12c630304f594d144c4c7289ec28c

8 years agoMerge "Handle null data return in HTMLForm"
jenkins-bot [Tue, 26 Apr 2016 14:37:17 +0000 (14:37 +0000)]
Merge "Handle null data return in HTMLForm"

8 years agoAdd missing include in MediaWikiServices
addshore [Tue, 26 Apr 2016 12:49:02 +0000 (13:49 +0100)]
Add missing include in MediaWikiServices

Change-Id: Ib90262bddd59679b1147d3a749fc11b82f791bd8

8 years agoIn ParserCache, respect $useOutdated
Tim Starling [Tue, 26 Apr 2016 06:28:38 +0000 (16:28 +1000)]
In ParserCache, respect $useOutdated

$useOutdated was broken by Ifcc4d2f67f3b77, which forces the cached entry
to always have the same revision ID as the latest revision. This
probably caused the "pool queue is full" errors reported after Prince's
death was announced.

Bug: T133659
Change-Id: Ibd111bed203dd72103d772d8dcba4f0d943124fd

8 years agoMerge "cleanUp all invalid utf8 in sql for debug toolbar"
jenkins-bot [Tue, 26 Apr 2016 03:22:38 +0000 (03:22 +0000)]
Merge "cleanUp all invalid utf8 in sql for debug toolbar"

8 years agoMerge "Update hard refresh instructions for Opera"
jenkins-bot [Tue, 26 Apr 2016 03:14:08 +0000 (03:14 +0000)]
Merge "Update hard refresh instructions for Opera"

8 years agoMerge "Add @since docs to SpecialPage::getTitleFor"
jenkins-bot [Tue, 26 Apr 2016 03:14:04 +0000 (03:14 +0000)]
Merge "Add @since docs to SpecialPage::getTitleFor"

8 years agoMerge "Convert array() => [] in some comments"
jenkins-bot [Tue, 26 Apr 2016 02:56:53 +0000 (02:56 +0000)]
Merge "Convert array() => [] in some comments"