lhc/web/wiklou.git
8 years agoMake readonly work for OOUI forms
Glaisher [Tue, 1 Sep 2015 12:37:54 +0000 (17:37 +0500)]
Make readonly work for OOUI forms

This seems like a hack. Copied from HTMLTextField.

Change-Id: I46f3dbd4b60fd9a39ecd7167ec903ae7d1d804bc

8 years agoMerge "Improve wording of "size-bytes" and "size-pixel" messages"
jenkins-bot [Sun, 30 Aug 2015 07:35:34 +0000 (07:35 +0000)]
Merge "Improve wording of "size-bytes" and "size-pixel" messages"

8 years agoImprove wording of "size-bytes" and "size-pixel" messages
This, that and the other [Sun, 30 Aug 2015 05:23:13 +0000 (15:23 +1000)]
Improve wording of "size-bytes" and "size-pixel" messages

"B" and "P" are vanishingly rare abbreviations for "bytes" and "pixels"
respectively. Let's use the full English terms for these, combined with
a PLURAL magic word for good measure.

Change-Id: Id59c4b9dea2c13940ae790b6a236ac08abe0a768

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 29 Aug 2015 19:33:15 +0000 (21:33 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I11090b4bd770e52ee751b31b3788189e8d40c3f4

8 years agomediawiki.ForeignApi: Use `type === 'POST'` instead of `type !== 'GET'`
Bartosz Dziewoński [Sat, 29 Aug 2015 18:44:08 +0000 (20:44 +0200)]
mediawiki.ForeignApi: Use `type === 'POST'` instead of `type !== 'GET'`

Works better when 'type' is not set (which can happen if someone is
calling #ajax directly rather than #get or #post), is consistent
with code in mediawiki.api, and better reflects what we really mean.

Change-Id: Iea265be5c0e6113e91e700124ac36a0b588ca25c

8 years agoAdd protected getCurrentRow to TablePager
addshore [Sat, 29 Aug 2015 12:08:44 +0000 (14:08 +0200)]
Add protected getCurrentRow to TablePager

This makes unit testing TablePagers easier

Change-Id: I899ec6b056fb1f007a6caf0be320324cffe08326

8 years agoReally actually fix the typo in Parser.php
Kunal Mehta [Sat, 29 Aug 2015 04:39:15 +0000 (21:39 -0700)]
Really actually fix the typo in Parser.php

Change-Id: I9d9c6f13095087ac2c2c6693c6bd1613219bf658

8 years agoFixed parser report typo
Aaron Schulz [Sat, 29 Aug 2015 00:06:45 +0000 (17:06 -0700)]
Fixed parser report typo

Change-Id: Ia549f4e1932bc1196e840e154b8d6fb0b608d10d

8 years agoMerge "Improved getMainStashInstance() docs"
jenkins-bot [Sat, 29 Aug 2015 00:01:58 +0000 (00:01 +0000)]
Merge "Improved getMainStashInstance() docs"

8 years agoMade MessageCache use the WAN cache for individual cache keys
Aaron Schulz [Thu, 27 Aug 2015 09:10:03 +0000 (02:10 -0700)]
Made MessageCache use the WAN cache for individual cache keys

* These keys are used for larger messages not in the main blob,
  and they still use explicit purges as the pages change

Change-Id: I254ddcc9ffe7c49654788d6aabcca2ab7ed4f03f

8 years agoImproved getMainStashInstance() docs
Aaron Schulz [Fri, 28 Aug 2015 23:24:13 +0000 (16:24 -0700)]
Improved getMainStashInstance() docs

Change-Id: I49e5c112478927387244214917fb06907c22186f

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 28 Aug 2015 19:59:26 +0000 (19:59 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Revert "Prevent the jumbling up of autocomments in RTL""
jenkins-bot [Fri, 28 Aug 2015 19:35:20 +0000 (19:35 +0000)]
Merge "Revert "Prevent the jumbling up of autocomments in RTL""

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 28 Aug 2015 19:33:53 +0000 (21:33 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I68d4a05bd1404393686d145ba5f46f93f789d52a

8 years agoRevert "Prevent the jumbling up of autocomments in RTL"
TheDJ [Fri, 28 Aug 2015 18:55:38 +0000 (18:55 +0000)]
Revert "Prevent the jumbling up of autocomments in RTL"

This reverts commit 6f8c3359ed6e531edd9eed81dd033514feb6a802.
which was causing page load issues due to a bug in Chrome and Safari.

Bug: T110716
Change-Id: I0ab1bf1f52474d8ab43d34628df5d972e817e8f0

8 years agoCssContentHandler: Fix @return documentation
Kunal Mehta [Fri, 28 Aug 2015 17:40:08 +0000 (10:40 -0700)]
CssContentHandler: Fix @return documentation

Missed this when copying the code from JavaScriptContentHandler...

Change-Id: I6b232e431b4e997b65a698de42473c9b6deae6b1

8 years agoMerge "API: Add ApiResult::META_KVP_MERGE"
jenkins-bot [Fri, 28 Aug 2015 17:17:36 +0000 (17:17 +0000)]
Merge "API: Add ApiResult::META_KVP_MERGE"

8 years agoAPI: Add ApiResult::META_KVP_MERGE
Brad Jorsch [Fri, 28 Aug 2015 15:10:20 +0000 (11:10 -0400)]
API: Add ApiResult::META_KVP_MERGE

This allows for merging the KVP key into the value for the alternative
output format. Specifically,

 { "key": { "foo": "bar" } }

can now be turned into

 [{ "name": "key", "foo": "bar" }]

instead of

 [{ "name": "key", "value": { "foo": "bar" } }]

Change-Id: Ie1f9235893dbbcd2948c46e0356360b5635a3ddd

8 years agoBe a little more conservative with the IPv6 support in the Sanitizer.
C. Scott Ananian [Fri, 28 Aug 2015 14:23:47 +0000 (10:23 -0400)]
Be a little more conservative with the IPv6 support in the Sanitizer.

This isn't strictly necessary, but it matches the production used in
Parsoid better.

Change-Id: I542b1f71fe9e917fef5718a6df8ebb98735f7fb4

8 years agoMerge "Add comments clarifying how calling getters on ParserOutput affects the parser...
jenkins-bot [Fri, 28 Aug 2015 14:00:22 +0000 (14:00 +0000)]
Merge "Add comments clarifying how calling getters on ParserOutput affects the parser cache."

8 years agoMerge "Fixed some doc errors in tryNormaliseRedirect()"
jenkins-bot [Fri, 28 Aug 2015 09:39:33 +0000 (09:39 +0000)]
Merge "Fixed some doc errors in tryNormaliseRedirect()"

8 years agoMerge "Added jobqueue.pickup_root_age metric"
jenkins-bot [Fri, 28 Aug 2015 08:31:22 +0000 (08:31 +0000)]
Merge "Added jobqueue.pickup_root_age metric"

8 years agoFixed some doc errors in tryNormaliseRedirect()
Aaron Schulz [Mon, 24 Aug 2015 20:00:23 +0000 (13:00 -0700)]
Fixed some doc errors in tryNormaliseRedirect()

Change-Id: I8f9397d05de1c0bae33497d1f9e3146939599380

8 years agoMerge "api: Load mediawiki.apipretty with addModuleStyles"
jenkins-bot [Fri, 28 Aug 2015 08:23:02 +0000 (08:23 +0000)]
Merge "api: Load mediawiki.apipretty with addModuleStyles"

8 years agoAdd comments clarifying how calling getters on ParserOutput affects the parser cache.
daniel [Wed, 26 Aug 2015 16:17:05 +0000 (18:17 +0200)]
Add comments clarifying how calling getters on ParserOutput affects the parser cache.

Change-Id: Ie6a4a8989df218f88cfc7c1cf1d4b68cf871abbb

8 years agoMerge "SpecialVersion: Force text credits and license to LTR direction"
jenkins-bot [Fri, 28 Aug 2015 07:08:01 +0000 (07:08 +0000)]
Merge "SpecialVersion: Force text credits and license to LTR direction"

8 years agoMerge "Add date format for Latvian language"
jenkins-bot [Fri, 28 Aug 2015 07:05:56 +0000 (07:05 +0000)]
Merge "Add date format for Latvian language"

8 years agoSpecialVersion: Force text credits and license to LTR direction
Amir E. Aharoni [Thu, 27 Aug 2015 21:23:18 +0000 (00:23 +0300)]
SpecialVersion: Force text credits and license to LTR direction

It's safe to assume that text files with credits or licenses are written
in English, so it should be explicitly set to English/LTR
so that English won't appear in RTL wikis as RTL.

Change-Id: Ic9db006b2d3509de32f01ae04782535ab0183993

8 years agoAdded --status and --limit filters to showJobs.php
Aaron Schulz [Tue, 25 Aug 2015 08:17:43 +0000 (01:17 -0700)]
Added --status and --limit filters to showJobs.php

Change-Id: Ibb3e907061c04a4dd2af23789fd59685240f0876

8 years agoMerge "Add ParserOutput cache and expiry times to NewPP report"
jenkins-bot [Fri, 28 Aug 2015 04:35:59 +0000 (04:35 +0000)]
Merge "Add ParserOutput cache and expiry times to NewPP report"

8 years agoMerge "Use Parsoid v3 API; emulate the RESTBase v1 API"
jenkins-bot [Fri, 28 Aug 2015 03:14:27 +0000 (03:14 +0000)]
Merge "Use Parsoid v3 API; emulate the RESTBase v1 API"

8 years agoMerge "Removed useless $wgUseLocalMessageCache check in MessageCache"
jenkins-bot [Fri, 28 Aug 2015 02:18:43 +0000 (02:18 +0000)]
Merge "Removed useless $wgUseLocalMessageCache check in MessageCache"

8 years agoAdd ParserOutput cache and expiry times to NewPP report
Ori Livneh [Fri, 28 Aug 2015 02:05:27 +0000 (19:05 -0700)]
Add ParserOutput cache and expiry times to NewPP report

The labels are not localized, because I think this ought to be outputted as a
JSON blob, with uniform field names. But not doing that in this patch.

Change-Id: I235839b276632308ddeac7afe763d355b73c2a25

8 years agoMerge "Update namespace names for Sanskrit"
This, that and the other [Fri, 28 Aug 2015 01:36:48 +0000 (01:36 +0000)]
Merge "Update namespace names for Sanskrit"

8 years agoRemoved useless $wgUseLocalMessageCache check in MessageCache
Aaron Schulz [Fri, 28 Aug 2015 01:31:35 +0000 (18:31 -0700)]
Removed useless $wgUseLocalMessageCache check in MessageCache

* The localCache member will use CACHE_NONE if this is off,
  so the set()/get() calls are already no-oped
* Also allow using the local cache if $hash is false
  in "stale mode", which handles the case where the hash
  key fell out of memory for some reason more gracefully

Change-Id: Ie12efcd4088a6dc4a4cdd2fd06646f2881df53d7

8 years agoMerge "Make ParserOptions fields private"
jenkins-bot [Thu, 27 Aug 2015 23:33:07 +0000 (23:33 +0000)]
Merge "Make ParserOptions fields private"

8 years agoMake ParserOptions fields private
Brad Jorsch [Thu, 27 Aug 2015 13:38:53 +0000 (09:38 -0400)]
Make ParserOptions fields private

Now that Ib58e8020 and Ie644854 are merged, there are no direct accesses
to these fields left in core or extensions in Gerrit. So let's make them
private to make sure no more get added before we decide whether we're
going to eliminate them entirely.

Bug: T110269
Change-Id: I82041b88dd0f194716f54d3207649388328805ca

8 years agoregistration: Remove unused 'wgExtraNamespaces' merge strategy
Kunal Mehta [Thu, 27 Aug 2015 23:13:42 +0000 (16:13 -0700)]
registration: Remove unused 'wgExtraNamespaces' merge strategy

As of 9df0672255afd, this is no longer used.

Change-Id: I7e40096cb5173626ba7f2cd3d2be121c8a04768a

8 years agoUse Parsoid v3 API; emulate the RESTBase v1 API
C. Scott Ananian [Wed, 27 May 2015 21:46:45 +0000 (17:46 -0400)]
Use Parsoid v3 API; emulate the RESTBase v1 API

Update the ParsoidVirtualRESTService and the
RestbaseVirtualRESTService to use Parsoid's v3 API, instead of the
deprecated v1/v2 APIs.  Since Visual Editor still issues requests
using the Parsoid v1 API, convert Parsoid v1 API requests into Parsoid
v3 API requests when needed for a smooth transition.  We also add
support for converting RESTBase v1 API requests to Parsoid v3 API
requests.

The next step will be to convert Visual Editor to issue RESTBase v1
API requests (https://gerrit.wikimedia.org/r/217995), and then the
Parsoid v1 conversion code added here can be removed (T100681).

Tested Parsoid v1->v3 conversion, Parsoid v1->RESTBase conversion,
plus Parsoid v3 and RESTBase v1->Parsoid v3 conversion using VE
patched to issue RESTBase v1 API requests.

Bug: T100681
Change-Id: I07ac60cdec7a52ef93187d40099325a069e3239a

8 years agoMerge "XMP: log structured data for halting errors"
jenkins-bot [Thu, 27 Aug 2015 21:10:22 +0000 (21:10 +0000)]
Merge "XMP: log structured data for halting errors"

8 years agoapi: Load mediawiki.apipretty with addModuleStyles
Timo Tijhof [Wed, 26 Aug 2015 17:37:54 +0000 (19:37 +0200)]
api: Load mediawiki.apipretty with addModuleStyles

Follows-up d25cb99. addModules() is async and causes a flash
of unstyled content. E.g. the h1.firstHeading renders and then
disappears on pages like:

<https://en.wikipedia.org/w/api.php?action=purge>

Change-Id: I74c6386d2c5f318987dac103a76c0bc2af6e2653

8 years agoXMP: log structured data for halting errors
Bryan Davis [Thu, 27 Aug 2015 19:56:57 +0000 (13:56 -0600)]
XMP: log structured data for halting errors

Log structured data for halting errors in XMPReader::parse at warning
level.

Bug: T89532
Change-Id: Iba38fedb4255687742228cf656218b4b633a7f40

8 years agoMerge "Fix spaces in MigrateFileRepoLayoutTest::tearDown"
jenkins-bot [Thu, 27 Aug 2015 19:25:11 +0000 (19:25 +0000)]
Merge "Fix spaces in MigrateFileRepoLayoutTest::tearDown"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Aug 2015 19:16:32 +0000 (21:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5d73ea5a5527d5ba495d9fba466b7f418288dff9

8 years agoFix spaces in MigrateFileRepoLayoutTest::tearDown
umherirrender [Thu, 27 Aug 2015 19:03:32 +0000 (21:03 +0200)]
Fix spaces in MigrateFileRepoLayoutTest::tearDown

Use tabs for indent

Change-Id: I021b7ff41be23e46fe49dc552e697c7b8f78622e

8 years agoCleaned up int|INF doc type to avoid IDEA errors
Aaron Schulz [Thu, 27 Aug 2015 09:20:54 +0000 (02:20 -0700)]
Cleaned up int|INF doc type to avoid IDEA errors

* INF is not a class (technically a float, which would look confusing here)

Change-Id: I9c437ecd0f2fe1a2a3e15197d50829a638f3073a

8 years agoEnable autocompletion for Special:ComparePages
Southparkfan [Thu, 27 Aug 2015 16:13:37 +0000 (18:13 +0200)]
Enable autocompletion for Special:ComparePages

Bug: T26235
Change-Id: Ia55ff14ceeef4eb49facd42a71c6330dd3384eb8

8 years agoAdd space between classes in HTMLButtonField
Ricordisamoa [Thu, 27 Aug 2015 14:19:20 +0000 (16:19 +0200)]
Add space between classes in HTMLButtonField

Classes such as 'wb-input-buttonmw-ui-button' were being generated
when $wgUseMediaWikiUIEverywhere = true, see:
https://integration.wikimedia.org/ci/job/mwext-Wikibase-repo-tests-mysql-hhvm/4217/console

Change-Id: If40b712ffb8e31d27380bf481333eecb7b95f9de

8 years agoMerge "Revert "Load all CSS in the top queue""
jenkins-bot [Thu, 27 Aug 2015 17:54:35 +0000 (17:54 +0000)]
Merge "Revert "Load all CSS in the top queue""

8 years agoRevert "Load all CSS in the top queue"
Ori.livneh [Thu, 27 Aug 2015 17:02:11 +0000 (17:02 +0000)]
Revert "Load all CSS in the top queue"

I don't want to roll this out until our WebPageTest infrastructure is ready
and can show whether or not this is beneficial. I should have indicated this
clearly on the change rather than leave it open, sorry.

This reverts commit b7c0e537ebb7216cd12a6c48fbaee7c2c7757c55.

Change-Id: I43e3295873a94da1c2febe2c1a19ad20ca914254

8 years agoMerge "Load User via READ_LATEST in ApiOptions to avoid CAS errors"
jenkins-bot [Thu, 27 Aug 2015 14:16:45 +0000 (14:16 +0000)]
Merge "Load User via READ_LATEST in ApiOptions to avoid CAS errors"

8 years agoMerge "Load all CSS in the top queue"
jenkins-bot [Thu, 27 Aug 2015 09:48:15 +0000 (09:48 +0000)]
Merge "Load all CSS in the top queue"

8 years agoMerge "Move job running till after deferred updates"
jenkins-bot [Thu, 27 Aug 2015 09:40:35 +0000 (09:40 +0000)]
Merge "Move job running till after deferred updates"

8 years agoMerge "Ignore DBPerformance thresholds in Special:ConfirmEmail"
jenkins-bot [Thu, 27 Aug 2015 09:38:27 +0000 (09:38 +0000)]
Merge "Ignore DBPerformance thresholds in Special:ConfirmEmail"

8 years agoMerge "Moved onArticleEdit() lines around for clarity"
jenkins-bot [Thu, 27 Aug 2015 09:36:34 +0000 (09:36 +0000)]
Merge "Moved onArticleEdit() lines around for clarity"

8 years agoMerge "Add @throws tag to Database::insert"
jenkins-bot [Thu, 27 Aug 2015 08:09:41 +0000 (08:09 +0000)]
Merge "Add @throws tag to Database::insert"

8 years agoMerge "Fixed headers sent in addMissingMetadata()"
jenkins-bot [Thu, 27 Aug 2015 08:08:08 +0000 (08:08 +0000)]
Merge "Fixed headers sent in addMissingMetadata()"

8 years agoAdd @throws tag to Database::insert
addshore [Thu, 27 Aug 2015 07:55:53 +0000 (09:55 +0200)]
Add @throws tag to Database::insert

This was already documented but not with @throws

Change-Id: Ib55c2efb9993c5d939fab1ed5d6ade3fc277902f

8 years agoregistration: Fix namespaces added through the ExtensionProcessor
Kunal Mehta [Wed, 26 Aug 2015 21:18:39 +0000 (14:18 -0700)]
registration: Fix namespaces added through the ExtensionProcessor

Using $wgExtraNamespaces overrides any localized namespaces with the
canonical form, which is not ideal.

Namespaces added through extension.json will now store the canonical
form and numerical id in a 'ExtensionNamespaces' attribute that is read
by MWNamespace::getCanonicalNamespaces().

Also fix the documentation on $wgExtraNamespaces, as using
$wgCanonicalNamespaceNames has not been possible since r85327.

Bug: T110389
Change-Id: I5bd9a7258f59d8c4a7ad0543d2115960fbea9b3a

8 years agoIgnore DBPerformance thresholds in Special:ConfirmEmail
Aaron Schulz [Thu, 27 Aug 2015 01:40:43 +0000 (18:40 -0700)]
Ignore DBPerformance thresholds in Special:ConfirmEmail

Bug: T92357
Change-Id: I81a1a31de522c2390e9d4d515677731cce4fcf1f

8 years agoMerge "Avoid using DB_MASTER in SpecialEditWatchlist::getWatchlist()"
jenkins-bot [Thu, 27 Aug 2015 01:17:50 +0000 (01:17 +0000)]
Merge "Avoid using DB_MASTER in SpecialEditWatchlist::getWatchlist()"

8 years agoMerge "Defer spreadAnyEditBlock() post-send"
jenkins-bot [Thu, 27 Aug 2015 01:11:51 +0000 (01:11 +0000)]
Merge "Defer spreadAnyEditBlock() post-send"

8 years agoAvoid using DB_MASTER in SpecialEditWatchlist::getWatchlist()
Aaron Schulz [Wed, 26 Aug 2015 23:54:23 +0000 (16:54 -0700)]
Avoid using DB_MASTER in SpecialEditWatchlist::getWatchlist()

* Only use it on POST requests, where the submit callback really
  wants the latest data. The form data will be lagged by user
  delay anyway, so using the slave there does not change much.
  ChronologyProtector already handles the user seeing their
  *own* changes for consecutive updates.

Bug: T92357
Change-Id: I50274ad5f67f6445a89c9d8d6f01d3fca1e9002b

8 years agoDefer spreadAnyEditBlock() post-send
Aaron Schulz [Thu, 27 Aug 2015 00:54:58 +0000 (17:54 -0700)]
Defer spreadAnyEditBlock() post-send

* No need for these to be perfectly synchronous

Bug: T92357
Change-Id: I6863960c8170ef4c3f2e356841b4086ac98f0f03

8 years agoMerge "Removed deprecated $wgMasterWaitTimeout; not used by LoadBalancer"
jenkins-bot [Thu, 27 Aug 2015 00:09:50 +0000 (00:09 +0000)]
Merge "Removed deprecated $wgMasterWaitTimeout; not used by LoadBalancer"

8 years agoRemoved deprecated $wgMasterWaitTimeout; not used by LoadBalancer
Aaron Schulz [Thu, 20 Aug 2015 00:26:22 +0000 (17:26 -0700)]
Removed deprecated $wgMasterWaitTimeout; not used by LoadBalancer

Change-Id: I2edd22ac1e414371b7c63f48e271abd033027b48

8 years agoMerge "ResourcesOOUI: Remove now-unnecessary selector"
jenkins-bot [Wed, 26 Aug 2015 23:40:48 +0000 (23:40 +0000)]
Merge "ResourcesOOUI: Remove now-unnecessary selector"

8 years agoMerge "maintenance: Handle errors in deleteEqualMessages.php"
jenkins-bot [Wed, 26 Aug 2015 23:18:19 +0000 (23:18 +0000)]
Merge "maintenance: Handle errors in deleteEqualMessages.php"

8 years agoMerge "Return HTTP 429 when thumbnailing is throttled due to too many errors"
jenkins-bot [Wed, 26 Aug 2015 22:15:53 +0000 (22:15 +0000)]
Merge "Return HTTP 429 when thumbnailing is throttled due to too many errors"

8 years agoMerge "Only load gallery styling rules when galleries are on the page"
jenkins-bot [Wed, 26 Aug 2015 22:06:18 +0000 (22:06 +0000)]
Merge "Only load gallery styling rules when galleries are on the page"

8 years agoReturn HTTP 429 when thumbnailing is throttled due to too many errors
Gergő Tisza [Wed, 26 Aug 2015 21:18:54 +0000 (14:18 -0700)]
Return HTTP 429 when thumbnailing is throttled due to too many errors

Bug: T110109
Change-Id: I8af527661a041964690faae7566fb97e305e2b0f

8 years agoLoad User via READ_LATEST in ApiOptions to avoid CAS errors
Aaron Schulz [Wed, 26 Aug 2015 00:27:46 +0000 (17:27 -0700)]
Load User via READ_LATEST in ApiOptions to avoid CAS errors

Bug: T95839
Change-Id: I3c4cf4347af24f3313e709a996618b755da22dd2

8 years agoOnly load gallery styling rules when galleries are on the page
jdlrobson [Fri, 21 Aug 2015 23:59:02 +0000 (16:59 -0700)]
Only load gallery styling rules when galleries are on the page

* Double load styling rules in legacy modules so we have time for
cached pages to catch up
** Double loading styles is acceptable for 30 days. There is no better way.
* Load gallery css when gallery tag invoked.

To test:
* Visit a page with a gallery tag and purge it, note styles are present.
* Visit a page without a gallery tag and purge it, note styles are not present

Bug: T98878
Change-Id: Ib1aef04dc4fece78e6615386ecaef6a9f368f49e

8 years agoMerge "Reduced some instances of HTTP 500 in thumb.php"
jenkins-bot [Wed, 26 Aug 2015 20:07:29 +0000 (20:07 +0000)]
Merge "Reduced some instances of HTTP 500 in thumb.php"

8 years agoReduced some instances of HTTP 500 in thumb.php
Aaron Schulz [Wed, 26 Aug 2015 18:52:23 +0000 (11:52 -0700)]
Reduced some instances of HTTP 500 in thumb.php

* This add noise to logs and graphs that can look like outages
  due to a single crawler.

Bug: T110109
Change-Id: Ie2a1edd0330b0f858729fcc56c828c11d9c7476c

8 years agoAvoid $newid IDEA "possibly undefined" error in insertOn()
Aaron Schulz [Mon, 24 Aug 2015 21:32:53 +0000 (14:32 -0700)]
Avoid $newid IDEA "possibly undefined" error in insertOn()

Change-Id: Ifb0dbc60efc346227e0724ec1df2e60e8dd5f495

8 years agoMerge "poolcounter: Convert slow-parse to LoggerFactory with data context"
jenkins-bot [Wed, 26 Aug 2015 19:46:45 +0000 (19:46 +0000)]
Merge "poolcounter: Convert slow-parse to LoggerFactory with data context"

8 years agoMerge "jquery.byteLimit: Expose trimValueForByteLength as trimByteLength"
jenkins-bot [Wed, 26 Aug 2015 19:38:02 +0000 (19:38 +0000)]
Merge "jquery.byteLimit: Expose trimValueForByteLength as trimByteLength"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 26 Aug 2015 19:15:10 +0000 (21:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie11478b8964c3e543697c83eb4bd03a9880f2eb4

8 years agopoolcounter: Convert slow-parse to LoggerFactory with data context
Timo Tijhof [Wed, 26 Aug 2015 18:41:03 +0000 (20:41 +0200)]
poolcounter: Convert slow-parse to LoggerFactory with data context

This way the time and title values are transmitted via Monolog
as separate JSON properties.

Keep the message the same for backwards-compatibility (except
for the space padding).

Change-Id: I0b79944bb9944dc6d09d16fe2ecc845e0e0e2afb

8 years agoReplace bundled IPSet library with composer dependency
Ori Livneh [Fri, 26 Jun 2015 19:26:46 +0000 (12:26 -0700)]
Replace bundled IPSet library with composer dependency

Complete the 'librarization' of IPSet by replacing the code in core with a
dependency on the external library.

Change-Id: I789b4fb42ee1da44ea3d8e1db551b047e11a439e

8 years agoAdd the mediawiki.experiments module
Sam Smith [Wed, 12 Aug 2015 19:53:19 +0000 (20:53 +0100)]
Add the mediawiki.experiments module

The module provides a generic bucketing function - it accepts an
experiment specification and a token that identifies a unique user - and
doesn't have any side effects, i.e. the bucket isn't persisted to
storage. It is therefore assumed that clients are responsible for either
storing the token or storing the bucket for the duration of an
experiment.

The module was extracted from the - admittedly, unused - module of the
same name in the MobileFrontend extension as it's intended to be used by
the Gather and QuickSurveys extensions.

Bug: T109010
Change-Id: Icf7f6fedf0c2deb5d5548c9e24456cc7a7c6a743

8 years agomaintenance: Handle errors in deleteEqualMessages.php
Timo Tijhof [Wed, 26 Aug 2015 17:13:03 +0000 (19:13 +0200)]
maintenance: Handle errors in deleteEqualMessages.php

Follows-up 49107fcc2.

Change-Id: I1b4b3f89a383a9b010d557ae0c6cbd767be60fb0

8 years agojquery.byteLimit: Expose trimValueForByteLength as trimByteLength
Timo Tijhof [Wed, 26 Aug 2015 17:06:52 +0000 (19:06 +0200)]
jquery.byteLimit: Expose trimValueForByteLength as trimByteLength

Follows-up 6b79105034, which exposed this private function as a
subproperty of a prototype member, but the JSDuck comment still
treated it as private.

Expose it as proper static method instead.

Change-Id: I1e25ee595ac367a9ae24a325efab2942a37835d9

8 years agoMerge "Add comments for ParserOptions::getUserLang regarding cache split"
jenkins-bot [Wed, 26 Aug 2015 16:08:56 +0000 (16:08 +0000)]
Merge "Add comments for ParserOptions::getUserLang regarding cache split"

8 years agoAdd @todo comment for I4b0e55fe
Brad Jorsch [Wed, 26 Aug 2015 13:39:29 +0000 (09:39 -0400)]
Add @todo comment for I4b0e55fe

In the interest of not blocking other work, I4b0e55fe worked around an
issue locally in ApiParse while filing T110269 for the larger task that
would be needed to properly fix the problem.

This adds a @todo comment referring to that task to make the situation a
bit more clear, since I4b0e55fe was merged too hastily to get the
comment included there.

Change-Id: I5be690aa5316cba1d498358635d497aa465a9972

8 years agoMove counter stuff to 1.26 section of MysqlUpdater
Reedy [Wed, 26 Aug 2015 08:09:28 +0000 (09:09 +0100)]
Move counter stuff to 1.26 section of MysqlUpdater

Change-Id: I8fdb03494bade2b8fb0766edcbfffd1f26f5c5e6

8 years agoMerge "Update namespace for Khowar language (khw)"
jenkins-bot [Wed, 26 Aug 2015 07:22:36 +0000 (07:22 +0000)]
Merge "Update namespace for Khowar language (khw)"

8 years agoRemove an optional message from Tamil
Amir E. Aharoni [Wed, 26 Aug 2015 06:35:48 +0000 (09:35 +0300)]
Remove an optional message from Tamil

Requested at
https://translatewiki.net/wiki/Thread:User_talk:Amire80/Delete_request

Change-Id: I41b677b30db559f8de264a706d93ac9d484402bf

8 years agoMerge "deleteEqualMessages.php: Avoid "Transaction already in progress" warning"
jenkins-bot [Wed, 26 Aug 2015 05:59:38 +0000 (05:59 +0000)]
Merge "deleteEqualMessages.php: Avoid "Transaction already in progress" warning"

8 years agoMerge "Fix typo in UploadFromUrlJob::initializeSessionData()"
jenkins-bot [Wed, 26 Aug 2015 05:56:45 +0000 (05:56 +0000)]
Merge "Fix typo in UploadFromUrlJob::initializeSessionData()"

8 years agodeleteEqualMessages.php: Avoid "Transaction already in progress" warning
Kevin Israel [Wed, 26 Aug 2015 04:59:45 +0000 (00:59 -0400)]
deleteEqualMessages.php: Avoid "Transaction already in progress" warning

Set the $commit parameter of WikiPage::doDeleteArticle() to true so
the transaction it starts is explicitly committed. Also fixed similar
bugs in two other maintenance scripts.

Follows-up 02f17b579060.

Bug: T110189
Change-Id: Ifde98066e25cb616f23c8998f9461ebf7a2073d6

8 years agoFix typo in UploadFromUrlJob::initializeSessionData()
Kevin Israel [Wed, 26 Aug 2015 04:38:54 +0000 (00:38 -0400)]
Fix typo in UploadFromUrlJob::initializeSessionData()

Behavior would change under PHP7, though neither the current behavior
nor the new behavior seem correct. Did not test, as the feature has
been broken anyway since r81612 / e942dc69fcc6.

https://github.com/facebook/hhvm/issues/5523#issuecomment-133132721

Change-Id: Iac1177fee05b6c721abe54b6a96c1652445a5c90

8 years agoAPI: Rename disablepp and introduce disabletidy
Tim Starling [Mon, 24 Aug 2015 05:05:09 +0000 (15:05 +1000)]
API: Rename disablepp and introduce disabletidy

* Rename disablepp to disablelimitreport, since it does not disable the
  preprocessor (which is what PP stands for in "NewPP").
* Introduce new option "disabletidy" for T89331
* Suppress the use of the parser cache when options are specified that
  affect the output but are not in ParserOptions::optionsHash(). This
  was already broken, but the damage was fairly limited since the
  options rarely caused user-visible changes. It would break very badly
  if I use the disabletidy option for what I am intending.

Change-Id: I4b0e55fe34e237a68450f583bf59bab7dd703a29

8 years agoMicro-optimize Language::isMultiByte()
Ori Livneh [Wed, 26 Aug 2015 01:13:14 +0000 (18:13 -0700)]
Micro-optimize Language::isMultiByte()

The xenon logs on performance.wikimedia.org show this function as being on-CPU
about 1% of the time, making it a candidate for optimization. The version in
this patch is about 30-50% faster in my benchmarks.

Change-Id: I26385ade7600fc11965d94468b57e41ec257de51

8 years agoMerge "Update OOjs UI to v0.12.6"
jenkins-bot [Wed, 26 Aug 2015 00:45:32 +0000 (00:45 +0000)]
Merge "Update OOjs UI to v0.12.6"

8 years agoMerge "Update OOjs to v1.1.9"
jenkins-bot [Wed, 26 Aug 2015 00:37:14 +0000 (00:37 +0000)]
Merge "Update OOjs to v1.1.9"

8 years agoUpdate OOjs UI to v0.12.6
James D. Forrester [Wed, 26 Aug 2015 00:19:40 +0000 (17:19 -0700)]
Update OOjs UI to v0.12.6

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

Change-Id: I29ae78cc7f4913af3cc551a769d428cf85610d71

8 years agoAdded jobqueue.pickup_root_age metric
Aaron Schulz [Tue, 25 Aug 2015 23:34:00 +0000 (16:34 -0700)]
Added jobqueue.pickup_root_age metric

* This tracks the average age of the root job for jobs being
  run that have root jobs defined.

Change-Id: Ifed709644cfa9ac60fc2b0cfd376142adebbaf68

8 years agoMerge "API: More avoiding MySQL filesorts in list=allpages"
jenkins-bot [Tue, 25 Aug 2015 22:23:11 +0000 (22:23 +0000)]
Merge "API: More avoiding MySQL filesorts in list=allpages"