lhc/web/wiklou.git
6 years agordbms: make DBMasterPos implement Serializable
Aaron Schulz [Fri, 23 Feb 2018 03:23:19 +0000 (19:23 -0800)]
rdbms: make DBMasterPos implement Serializable

ChronologyProtector uses these classes to briefly store positions
and everytime the fields change then errors can happen when old
values are unserialized and used. Use a simple two-element map
format for serialized positions. The fields are recomputed back
from the data map.

Values from before this change will issue the warning
"Erroneous data format for unserializing". To avoid that, bump
the ChronologyProtector key version. Future field changes will
not require this.

This change should be deployed on all wikis at once.

Bug: T187942
Change-Id: I71bbbc9b9d4c7e02ac02f1d8750b70bda08d4db1

6 years agoCSSMin: Trim whitespace from attribute selectors and url tokens
Fomafix [Wed, 6 Dec 2017 16:16:41 +0000 (17:16 +0100)]
CSSMin: Trim whitespace from attribute selectors and url tokens

* Trim whitespaces after opening and before closing parentheses and
  brackets.
* Ensure by test case that the invalid "url (" will not become the
  valid "url(" by minification.

This change also prevents the parsing problem in Firefox 57.0
https://bugzilla.mozilla.org/1418152 which is fixed in Firefox 57.0.1.

Change-Id: I804477ba7c6363f0e964fc8c7c0bc74d2d4c1a0d

6 years agoMerge "Shell: Don't hang on empty stdin"
jenkins-bot [Thu, 22 Feb 2018 23:31:26 +0000 (23:31 +0000)]
Merge "Shell: Don't hang on empty stdin"

6 years agoMerge "Drop pointer-events fallback code now IE10 is Grade C"
jenkins-bot [Thu, 22 Feb 2018 22:57:33 +0000 (22:57 +0000)]
Merge "Drop pointer-events fallback code now IE10 is Grade C"

6 years agoShell: Don't hang on empty stdin
Brad Jorsch [Thu, 22 Feb 2018 22:13:28 +0000 (17:13 -0500)]
Shell: Don't hang on empty stdin

If the write buffer for a file descriptor is empty, don't try to write
to it. Just close it and continue on.

Bug: T188019
Change-Id: Ie5b5ac1ef1aec4ae763cf4d0d58d3a28e42b7d2a

6 years agoMake LocalFile check early if the revision store is available
Aaron Schulz [Thu, 22 Feb 2018 08:48:42 +0000 (00:48 -0800)]
Make LocalFile check early if the revision store is available

This reduces the odds of having files without corresponding
wiki pages, given that the later is done in a deferred update.

Also made some documentation cleanups.

Bug: T187942
Change-Id: Iff516669f535713d37e0011e2d7ed285c667f1c5

6 years agoMerge "Add ExternalStoreMedium::isReadOnly() method"
jenkins-bot [Thu, 22 Feb 2018 21:41:00 +0000 (21:41 +0000)]
Merge "Add ExternalStoreMedium::isReadOnly() method"

6 years agoDrop pointer-events fallback code now IE10 is Grade C
Ed Sanders [Thu, 22 Feb 2018 21:40:53 +0000 (21:40 +0000)]
Drop pointer-events fallback code now IE10 is Grade C

IE10 was the last supported browser without pointer-events.

Change-Id: I8e1637f527dd058fe2a5491896b0cdd7ac65b0ba

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 22 Feb 2018 21:36:55 +0000 (22:36 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I143b63f429ecea18b60f7b30aeb7c42b65d45bd6

6 years agoMerge "EditPage: Remove unused $is*Subpage variables, deprecated in 1.30"
jenkins-bot [Thu, 22 Feb 2018 20:54:44 +0000 (20:54 +0000)]
Merge "EditPage: Remove unused $is*Subpage variables, deprecated in 1.30"

6 years agoMerge "mediawiki.mixins: Add `hyphens` mixin"
jenkins-bot [Thu, 22 Feb 2018 20:27:25 +0000 (20:27 +0000)]
Merge "mediawiki.mixins: Add `hyphens` mixin"

6 years agoMerge "objectcache: improve TTL reduction warning log entries"
jenkins-bot [Thu, 22 Feb 2018 20:22:32 +0000 (20:22 +0000)]
Merge "objectcache: improve TTL reduction warning log entries"

6 years agoEditPage: Remove unused $is*Subpage variables, deprecated in 1.30
James D. Forrester [Sat, 10 Feb 2018 01:19:18 +0000 (17:19 -0800)]
EditPage: Remove unused $is*Subpage variables, deprecated in 1.30

Change-Id: I9a9a9b2652f63d18634a60205a6e8a4d76380e71

6 years agomediawiki.mixins: Add `hyphens` mixin
Volker E [Thu, 22 Feb 2018 20:05:58 +0000 (12:05 -0800)]
mediawiki.mixins: Add `hyphens` mixin

As `hyphens` values are used in various places now, with most
recent addition I1637ce3f5bddb we should add it in a central place.

Change-Id: I660f3ecd2a4669e8d5c8415990fa2e8a25aea32a

6 years agoMerge "Use PHP's implode() with the suggested order of arguments"
jenkins-bot [Thu, 22 Feb 2018 20:04:00 +0000 (20:04 +0000)]
Merge "Use PHP's implode() with the suggested order of arguments"

6 years agoUse PHP's implode() with the suggested order of arguments
Fomafix [Thu, 22 Feb 2018 19:24:00 +0000 (20:24 +0100)]
Use PHP's implode() with the suggested order of arguments

https://secure.php.net/manual/en/function.implode.php defines the order
of arguments as

 string implode ( string $glue , array $pieces )
 string implode ( array $pieces )

Note:
  implode() can, for historical reasons, accept its parameters in
  either order. For consistency with explode(), however, it may be less
  confusing to use the documented order of arguments.

Change-Id: I03bf5712204e283f52d3ede54af9b9ec117d4280

6 years agoMerge "Title: Refactor JS/CSS page handling to be more sane"
jenkins-bot [Thu, 22 Feb 2018 19:19:29 +0000 (19:19 +0000)]
Merge "Title: Refactor JS/CSS page handling to be more sane"

6 years agoFix Profiler::getOutputs() type documentation
Aaron Schulz [Thu, 22 Feb 2018 18:58:36 +0000 (10:58 -0800)]
Fix Profiler::getOutputs() type documentation

Change-Id: I4ff2ccc16363bfc3093b75263da2b09c3af40627

6 years agoobjectcache: improve TTL reduction warning log entries
Aaron Schulz [Thu, 22 Feb 2018 18:07:40 +0000 (10:07 -0800)]
objectcache: improve TTL reduction warning log entries

Add "lag" and "age" parameters for more context

Change-Id: Iea029e78d4c0bbec0e4334de4fbe7780b1bea524

6 years agoAdd ExternalStoreMedium::isReadOnly() method
Aaron Schulz [Thu, 22 Feb 2018 08:27:14 +0000 (00:27 -0800)]
Add ExternalStoreMedium::isReadOnly() method

Use this to abort out of store() calls early

Bug: T187942
Change-Id: I9334d36e8bc3e4589775471eee03be4f4a3119a3

6 years agoRevisionStore: Remove reference to unimplemented 'ar' blob address schema
Brad Jorsch [Thu, 22 Feb 2018 15:39:02 +0000 (10:39 -0500)]
RevisionStore: Remove reference to unimplemented 'ar' blob address schema

It was thought that an 'ar:' schema for SqlBlobStore addresses would be
needed to support archive rows from before MediaWiki 1.5 that still
stored the text in ar_text and ar_flags instead of using the text table
and ar_text_id. But this schema was never actually implemented.

Now I5608c6b6 has migrated that content to the text table and
ar_text_id, and I18f1c740b will remove the database fields entirely. So
there's no reason to ever implement this schema.

Change-Id: Ic449478c244bb13a8c5139e20488e876c0a793bb

6 years agoMerge "Translate some magic words to Czech"
jenkins-bot [Thu, 22 Feb 2018 14:38:07 +0000 (14:38 +0000)]
Merge "Translate some magic words to Czech"

6 years agoMerge "rdbms: add type hint to reuseConnection()"
jenkins-bot [Thu, 22 Feb 2018 08:02:47 +0000 (08:02 +0000)]
Merge "rdbms: add type hint to reuseConnection()"

6 years agoMerge "rdbms: minor improvements to LoadBalancer logging"
jenkins-bot [Thu, 22 Feb 2018 07:58:55 +0000 (07:58 +0000)]
Merge "rdbms: minor improvements to LoadBalancer logging"

6 years agoMerge "rdbms: use DEBUG level for more ChronologyProtector log entries"
jenkins-bot [Thu, 22 Feb 2018 07:58:52 +0000 (07:58 +0000)]
Merge "rdbms: use DEBUG level for more ChronologyProtector log entries"

6 years agordbms: add type hint to reuseConnection()
Aaron Schulz [Thu, 22 Feb 2018 07:42:52 +0000 (23:42 -0800)]
rdbms: add type hint to reuseConnection()

This avoids IDEA warnings.

Change-Id: Ic772d47785319f111c267461e4e42e9183d2815b

6 years agoMerge "Move $.byteLength and $.trimByteLength to new module 'mediawiki.String'"
jenkins-bot [Thu, 22 Feb 2018 05:15:34 +0000 (05:15 +0000)]
Merge "Move $.byteLength and $.trimByteLength to new module 'mediawiki.String'"

6 years agoMove $.byteLength and $.trimByteLength to new module 'mediawiki.String'
Bartosz Dziewoński [Mon, 19 Feb 2018 20:23:36 +0000 (21:23 +0100)]
Move $.byteLength and $.trimByteLength to new module 'mediawiki.String'

These methods do not belong on the jQuery object. And to resolve
T185948, we need to also add codePointLength and trimCodePointLength,
and this new module seems like a good place to put them.

There is no `mw.String` global, this module has to be used via `require()`.

Deprecations:
* Function `$.byteLength` (from module 'jquery.byteLength') is
  deprecated, use `require( 'mediawiki.String' ).byteLength` instead.
* Function `$.trimByteLength` (from module 'jquery.byteLimit') is
  deprecated, use `require( 'mediawiki.String' ).trimByteLength` instead.
* Module 'jquery.byteLength' is deprecated, use 'mediawiki.String' instead.

Note that `$.fn.byteLimit` and the 'jquery.byteLimit' module are not
deprecated.

Change-Id: I2501a79efee644e5f4a9f5c977fe49c8c05c6eb3

6 years agordbms: minor improvements to LoadBalancer logging
Aaron Schulz [Thu, 22 Feb 2018 02:26:06 +0000 (18:26 -0800)]
rdbms: minor improvements to LoadBalancer logging

Change-Id: I03f54a65b1932b99ac4e129000547a6c2640c489

6 years agotests: Remove IE9 mobile from Grade A
Ed Sanders [Wed, 21 Feb 2018 12:40:50 +0000 (12:40 +0000)]
tests: Remove IE9 mobile from Grade A

Change-Id: I0e1da9d155c778edaa85d19a3e556fe14f83fdd2

6 years agoFix infinite loop in JpegMetadataExtractor
Brion Vibber [Wed, 21 Feb 2018 22:45:35 +0000 (22:45 +0000)]
Fix infinite loop in JpegMetadataExtractor

One of the skip-over loops was missing an feof() check and could
cause infinite loops.

Includes test file created by truncating a tiny tiny .jpeg at
the right place...

With the fix, it doesn't loop but dies on an exception, which
is good!

Bug: T184048
Change-Id: Ica13d6b68c3c12f7ce414edd081bf0886714e465

6 years agordbms: use DEBUG level for more ChronologyProtector log entries
Aaron Schulz [Wed, 21 Feb 2018 21:36:47 +0000 (13:36 -0800)]
rdbms: use DEBUG level for more ChronologyProtector log entries

Change-Id: Ie1795abe52d9162af556a6534a94cc3e4a565d43

6 years agoAdd TimedMediaHandler's images/transcoded to .gitignore
Brion Vibber [Wed, 21 Feb 2018 21:14:27 +0000 (21:14 +0000)]
Add TimedMediaHandler's images/transcoded to .gitignore

Avoids git looking in your transcoded audio/video files
for changes...

Change-Id: I5610354a1575bb97f4523d58d3e9713512416305

6 years agoMerge "sql.php: Provide --json output mode"
jenkins-bot [Wed, 21 Feb 2018 21:14:19 +0000 (21:14 +0000)]
Merge "sql.php: Provide --json output mode"

6 years agoMerge "Drop Grade A support for IE10"
jenkins-bot [Wed, 21 Feb 2018 20:15:37 +0000 (20:15 +0000)]
Merge "Drop Grade A support for IE10"

6 years agoDrop Grade A support for IE10
Ed Sanders [Wed, 21 Feb 2018 12:09:57 +0000 (12:09 +0000)]
Drop Grade A support for IE10

Bug: T187869
Change-Id: I68c882e64fba95d5e1bf41f64658fcef7524dcf5

6 years agoMerge "Contributions: Only add form JS when the form is added"
jenkins-bot [Wed, 21 Feb 2018 19:25:51 +0000 (19:25 +0000)]
Merge "Contributions: Only add form JS when the form is added"

6 years agoMerge "Update README file for Selenium tests"
jenkins-bot [Wed, 21 Feb 2018 17:37:47 +0000 (17:37 +0000)]
Merge "Update README file for Selenium tests"

6 years agoMerge "Truncate tag filter descriptions"
jenkins-bot [Wed, 21 Feb 2018 12:52:22 +0000 (12:52 +0000)]
Merge "Truncate tag filter descriptions"

6 years agoMerge "Fix English name for lb"
jenkins-bot [Wed, 21 Feb 2018 11:42:23 +0000 (11:42 +0000)]
Merge "Fix English name for lb"

6 years agoUpdate README file for Selenium tests
Željko Filipin [Wed, 21 Feb 2018 11:28:49 +0000 (12:28 +0100)]
Update README file for Selenium tests

Bug: T187862
Change-Id: Iadd41307a48a1b50f64a495e7efcee3b88d0ff68

6 years agoFix English name for lb
Niklas Laxström [Wed, 21 Feb 2018 11:12:20 +0000 (12:12 +0100)]
Fix English name for lb

This version has been in MediaWiki longer than my email history,
since 2005 at least. This spelling is not present in
https://en.wikipedia.org/wiki/Luxembourgish

Change-Id: Ibda7e6428a2c79b9f7d88892ef1c16e9921ae934

6 years agoMerge "Factor OldRevisionImporter & ImportableOldRevision out of WikiRevision"
jenkins-bot [Wed, 21 Feb 2018 10:31:32 +0000 (10:31 +0000)]
Merge "Factor OldRevisionImporter & ImportableOldRevision out of WikiRevision"

6 years agoMerge "Factor UploadRevisionImporter & ImportableUploadRevision out of WikiRevision"
jenkins-bot [Wed, 21 Feb 2018 09:53:30 +0000 (09:53 +0000)]
Merge "Factor UploadRevisionImporter & ImportableUploadRevision out of WikiRevision"

6 years agoContributions: Only add form JS when the form is added
Derk-Jan Hartman [Mon, 19 Feb 2018 11:53:47 +0000 (12:53 +0100)]
Contributions: Only add form JS when the form is added

Special:Contributions can be transcluded ('including') on to another
page. In this mode, the form is not present, but the OOUI JS infusing,
payload and styling, was added regardless. This caused errors on pages
transcluding such lists, as the OOUI HTML was missing, causing the JS to
throw errors.

Bug: T187710
Change-Id: I7d45dd3ddd3ba75d44f7d24e03cef5e95301f4ed

6 years agordbms: make sure non-native replace() uses one transaction
Aaron Schulz [Wed, 21 Feb 2018 03:16:51 +0000 (19:16 -0800)]
rdbms: make sure non-native replace() uses one transaction

This is similar to what upsert() already does

Change-Id: Ide83eefe0d937fb2cdc20aa3c7dc9654c4d34beb

6 years agoMerge "mw.Title: Use $.trimByteLength from jquery.byteLimit module"
jenkins-bot [Tue, 20 Feb 2018 22:15:50 +0000 (22:15 +0000)]
Merge "mw.Title: Use $.trimByteLength from jquery.byteLimit module"

6 years agoMerge "tests: Remove dead code in jquery.byteLimit tests"
jenkins-bot [Tue, 20 Feb 2018 22:15:47 +0000 (22:15 +0000)]
Merge "tests: Remove dead code in jquery.byteLimit tests"

6 years agoMerge "Switch the sidebar cache to using checkKeys"
jenkins-bot [Tue, 20 Feb 2018 22:09:50 +0000 (22:09 +0000)]
Merge "Switch the sidebar cache to using checkKeys"

6 years agomw.Title: Use $.trimByteLength from jquery.byteLimit module
Bartosz Dziewoński [Mon, 19 Feb 2018 19:53:11 +0000 (20:53 +0100)]
mw.Title: Use $.trimByteLength from jquery.byteLimit module

Change-Id: I39ebd559a72ce72743cbe3bb86abe679d108d94a

6 years agotests: Remove dead code in jquery.byteLimit tests
Bartosz Dziewoński [Mon, 19 Feb 2018 20:56:08 +0000 (21:56 +0100)]
tests: Remove dead code in jquery.byteLimit tests

These options do nothing.

Change-Id: I15cc91b9208e8cfd3f3f42bb0a9c91514d6532e3

6 years agoMerge "parser: Deprecate string type for $lang arg in DateFormatter::getInstance"
jenkins-bot [Tue, 20 Feb 2018 21:16:34 +0000 (21:16 +0000)]
Merge "parser: Deprecate string type for $lang arg in DateFormatter::getInstance"

6 years agoMerge "jquery.byteLimit: Handle characters outside BMP (surrogate pairs) when trimming"
jenkins-bot [Tue, 20 Feb 2018 21:14:51 +0000 (21:14 +0000)]
Merge "jquery.byteLimit: Handle characters outside BMP (surrogate pairs) when trimming"

6 years agoparser: Deprecate string type for $lang arg in DateFormatter::getInstance
Fomafix [Wed, 13 Sep 2017 12:57:44 +0000 (14:57 +0200)]
parser: Deprecate string type for $lang arg in DateFormatter::getInstance

The parameter $lang is not used with type string in the Git repository:
https://codesearch.wmflabs.org/search/?q=DateFormatter%3A%3AgetInstance
This function is only used with type Language and without parameter.

The support for the language as string will be removed with Change-ID
I677ab561d67b63f0c86f65fadf9319e41444a22a.

The removal of the support for the type string simplifies the code.

Change-Id: I0c0ab46ffc0fab6b68672940e979ad7e5754a7d1

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Tue, 20 Feb 2018 21:02:55 +0000 (21:02 +0000)]
Merge "Localisation updates from https://translatewiki.net."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 20 Feb 2018 21:02:45 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iea6405478e926c0bce200213a211bb66da7efbf3

6 years agoMerge "mediawiki.cldr: Use require() for pluralruleparser"
jenkins-bot [Tue, 20 Feb 2018 20:59:55 +0000 (20:59 +0000)]
Merge "mediawiki.cldr: Use require() for pluralruleparser"

6 years agoFix for Ia97b750b
MarcoAurelio [Tue, 20 Feb 2018 19:19:28 +0000 (19:19 +0000)]
Fix for Ia97b750b

Change-Id: I2eb5ba754334864f65dede92b138f9a81a210e70

6 years agoMerge "Add support for 'es-formal'"
jenkins-bot [Tue, 20 Feb 2018 19:05:24 +0000 (19:05 +0000)]
Merge "Add support for 'es-formal'"

6 years agoMerge "mw.loader: Document mw.loader.require() as private"
jenkins-bot [Tue, 20 Feb 2018 17:07:51 +0000 (17:07 +0000)]
Merge "mw.loader: Document mw.loader.require() as private"

6 years agoFactor OldRevisionImporter & ImportableOldRevision out of WikiRevision
addshore [Tue, 4 Jul 2017 21:46:46 +0000 (22:46 +0100)]
Factor OldRevisionImporter & ImportableOldRevision out of WikiRevision

This is to be used within the FileImporter extension to allow
adding custom loggers to this import process.

Change-Id: Ib094d4829764ccc8e5bd2619fb827d701ae06d43

6 years agoFactor UploadRevisionImporter & ImportableUploadRevision out of WikiRevision
addshore [Tue, 4 Jul 2017 21:07:04 +0000 (22:07 +0100)]
Factor UploadRevisionImporter & ImportableUploadRevision out of WikiRevision

This is to be used within the FileImporter extension to allow
adding custom loggers to this import process.

Change-Id: I4a6c573fc0a69b06d696cd2afca9226fb492a9bc

6 years agomediawiki.cldr: Use require() for pluralruleparser
Fomafix [Fri, 16 Feb 2018 15:18:10 +0000 (16:18 +0100)]
mediawiki.cldr: Use require() for pluralruleparser

Use require( 'mediawiki.libs.pluralruleparser' ) instead of
mw.libs.pluralRuleParser. (Added in 1.27, with bc4e07b6f63b0)

Change-Id: I7388cf631068458596250b8da82edec3f7cbd98b

6 years agomw.loader: Document mw.loader.require() as private
Timo Tijhof [Tue, 20 Feb 2018 04:47:39 +0000 (20:47 -0800)]
mw.loader: Document mw.loader.require() as private

Only public for debugging purposes.

Change-Id: Icc44e11ec6874d7f74ed527e87a80dd06b4edb3a

6 years agoMerge "Cleanup IDEA warnings in MessageCache"
jenkins-bot [Tue, 20 Feb 2018 04:33:22 +0000 (04:33 +0000)]
Merge "Cleanup IDEA warnings in MessageCache"

6 years agoGD zero filesize error
Dan Mattern [Mon, 19 Feb 2018 22:59:17 +0000 (17:59 -0500)]
GD zero filesize error

Checking if the filesize is zero before passing to GD. This can result
in a fatal error.

Bug: T182387
Change-Id: I26a24286f3035f233de682caed21a8e8c2d5aaad

6 years agoMerge "Pass change tags to NewRevisionFromEditComplete hook"
jenkins-bot [Mon, 19 Feb 2018 22:55:53 +0000 (22:55 +0000)]
Merge "Pass change tags to NewRevisionFromEditComplete hook"

6 years agoMerge "rdbms: tweak var names in LoadMonitor::scaleLoads()/getLagTimes()"
jenkins-bot [Mon, 19 Feb 2018 22:55:51 +0000 (22:55 +0000)]
Merge "rdbms: tweak var names in LoadMonitor::scaleLoads()/getLagTimes()"

6 years agoMerge "tests: Remove verbose logging settings from DevelopmentSettings.php"
jenkins-bot [Mon, 19 Feb 2018 22:27:45 +0000 (22:27 +0000)]
Merge "tests: Remove verbose logging settings from DevelopmentSettings.php"

6 years agotests: Remove verbose logging settings from DevelopmentSettings.php
Timo Tijhof [Mon, 19 Feb 2018 22:17:11 +0000 (14:17 -0800)]
tests: Remove verbose logging settings from DevelopmentSettings.php

Follows-up fdb7d36903. It seems these make unit tests on Travis CI
fail, per T187581. And when we briefly enabled DevelopmentSettings.php
in our Jenkins setup, the PHPUnit tests also failed.

Remove these from DevelopmentSettings.php to confirm that the
tests pass that way. Then, once our own Jenkins setup has switched
back to using DevelopmentSettings.php, we can re-consider adding
these in a way that is verified by Gerrit/Jenkins before merging.

Bug: T187581
Change-Id: Ib81c5909849598bdad02955f6414d68c038742c5

6 years agojquery.byteLimit: Handle characters outside BMP (surrogate pairs) when trimming
Bartosz Dziewoński [Mon, 5 Feb 2018 18:38:10 +0000 (19:38 +0100)]
jquery.byteLimit: Handle characters outside BMP (surrogate pairs) when trimming

Bug: T186364
Change-Id: I6282d97bcd637ae8e86d70996adb468582c8f02f

6 years agoAdd support for 'es-formal'
MarcoAurelio [Mon, 19 Feb 2018 21:19:13 +0000 (22:19 +0100)]
Add support for 'es-formal'

Spanish formal address. First exported on Id132ebc6.

Bug: T187750
Change-Id: Ia97b750bde01ceee7db0ea826e4f87bb9a2f0a93

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 19 Feb 2018 20:56:27 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I11bbae1702de3352fd8b59efa3abe3ad47b49acc

6 years agoMerge "Update links in comments to developer.mozilla.org"
jenkins-bot [Mon, 19 Feb 2018 19:08:10 +0000 (19:08 +0000)]
Merge "Update links in comments to developer.mozilla.org"

6 years agoMerge "build: Updating mediawiki/mediawiki-codesniffer to 16.0.0"
jenkins-bot [Mon, 19 Feb 2018 19:07:12 +0000 (19:07 +0000)]
Merge "build: Updating mediawiki/mediawiki-codesniffer to 16.0.0"

6 years agoSwitch the sidebar cache to using checkKeys
Aaron Schulz [Mon, 19 Feb 2018 11:50:29 +0000 (03:50 -0800)]
Switch the sidebar cache to using checkKeys

The avoids the long delete() loop in MessageCache::replace()
and has better separation of concern.

Change-Id: I0acb0119058fa92fcafb52a5850f5dad4aaa94d2

6 years agoCleanup IDEA warnings in MessageCache
Aaron Schulz [Mon, 19 Feb 2018 11:21:24 +0000 (03:21 -0800)]
Cleanup IDEA warnings in MessageCache

Change-Id: I0ced7c7289918f78bb6f3682ae974fe0c04a1e04

6 years agoUpdate links in comments to developer.mozilla.org
Fomafix [Mon, 19 Feb 2018 08:54:25 +0000 (09:54 +0100)]
Update links in comments to developer.mozilla.org

Change-Id: I2310cf73ab494375655067833cea11b18483a396

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 18 Feb 2018 20:57:57 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I613493a91cd01032529bd161947b9231819b99cb

6 years agordbms: tweak var names in LoadMonitor::scaleLoads()/getLagTimes()
Aaron Schulz [Fri, 16 Feb 2018 21:50:08 +0000 (13:50 -0800)]
rdbms: tweak var names in LoadMonitor::scaleLoads()/getLagTimes()

Also mark the methods as "final" due to their delegation

Change-Id: Ie32f53445f749d9a00e77fce43d75830e260c039

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 17 Feb 2018 20:59:21 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Idc8c6ef5a94c61cac176895e089f9624428dc2af

6 years agobuild: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Umherirrender [Sat, 17 Feb 2018 12:29:13 +0000 (13:29 +0100)]
build: Updating mediawiki/mediawiki-codesniffer to 16.0.0

Change-Id: I59b59f79bbf3ce4feff3b3a20c1c31bc16370531

6 years agoMerge "rdbms: make DatabaseMysql::masterPosWait() handle inactive GTIDs"
jenkins-bot [Sat, 17 Feb 2018 04:11:53 +0000 (04:11 +0000)]
Merge "rdbms: make DatabaseMysql::masterPosWait() handle inactive GTIDs"

6 years agordbms: remove "m" member prefix from various classes
Aaron Schulz [Fri, 16 Feb 2018 19:16:10 +0000 (11:16 -0800)]
rdbms: remove "m" member prefix from various classes

Change-Id: Iade8e8f70bb1307b96683d979d7e3650f4107515

6 years agoMerge "rdbms: remove "m" member prefix from DatabaseMssql"
jenkins-bot [Fri, 16 Feb 2018 23:37:08 +0000 (23:37 +0000)]
Merge "rdbms: remove "m" member prefix from DatabaseMssql"

6 years agoMerge "objectcache: add IExpiringStore::TTL_SECOND constant"
jenkins-bot [Fri, 16 Feb 2018 23:37:05 +0000 (23:37 +0000)]
Merge "objectcache: add IExpiringStore::TTL_SECOND constant"

6 years agoMerge "Soft deprecate DeferredStringifier class"
jenkins-bot [Fri, 16 Feb 2018 23:15:37 +0000 (23:15 +0000)]
Merge "Soft deprecate DeferredStringifier class"

6 years agoSoft deprecate DeferredStringifier class
星耀晨曦 [Wed, 14 Feb 2018 10:27:44 +0000 (10:27 +0000)]
Soft deprecate DeferredStringifier class

As of 3041b5c, the DeferredStringifier class is no longer used in MediaWiki core or any Gerrit-hosted extensions.

Bug: T187290
Change-Id: Ic363daf0847c0371a6b4c4041f9ea394377185f3

6 years agoMerge "RCLFilters: make sticky filters default and current value equal"
jenkins-bot [Fri, 16 Feb 2018 22:39:55 +0000 (22:39 +0000)]
Merge "RCLFilters: make sticky filters default and current value equal"

6 years agoobjectcache: add IExpiringStore::TTL_SECOND constant
Aaron Schulz [Fri, 16 Feb 2018 22:23:49 +0000 (14:23 -0800)]
objectcache: add IExpiringStore::TTL_SECOND constant

Change-Id: Iec59ce72f3dbb0de68c8f6704d86f1522f86827e

6 years agoMerge "site_stats: Unbreak counting newly created pages"
jenkins-bot [Fri, 16 Feb 2018 21:36:35 +0000 (21:36 +0000)]
Merge "site_stats: Unbreak counting newly created pages"

6 years agosql.php: Provide --json output mode
Chad Horohoe [Fri, 16 Feb 2018 21:21:38 +0000 (13:21 -0800)]
sql.php: Provide --json output mode

stdObject is a pretty useless format unless you're working with PHP

Change-Id: I7549347a630768223fba5b282a930361dfe6f2d3

6 years agosite_stats: Unbreak counting newly created pages
Eddie Greiner-Petter [Fri, 16 Feb 2018 21:18:48 +0000 (22:18 +0100)]
site_stats: Unbreak counting newly created pages

Fixes a bug introduced on 331c9f9e2e that stopped newly created pages
from incrementing the counter of ss_total_pages in site_stats. The array
accepted by SiteStatsUpdate::factory is not meant to take a value with
the key 'total'. What's meant here is 'pages'. Let's change the variable
name as well to avoid confusion in the future.

Change-Id: I9c82d926206d9b46f333c6f6cb9d3c7d41db3a53

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 16 Feb 2018 21:03:24 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib373192166d7f9d43bbd15df341f8ad770353685

6 years agordbms: make DatabaseMysql::masterPosWait() handle inactive GTIDs
Aaron Schulz [Fri, 9 Feb 2018 23:01:40 +0000 (15:01 -0800)]
rdbms: make DatabaseMysql::masterPosWait() handle inactive GTIDs

Change-Id: I543deef24f6cbf99094a4f3bee7cabe768fa221a

6 years agordbms: remove "m" member prefix from DatabaseMssql
Aaron Schulz [Fri, 16 Feb 2018 19:23:30 +0000 (11:23 -0800)]
rdbms: remove "m" member prefix from DatabaseMssql

Change-Id: I270cd4f4048e0ae751ea1c078d31d45c9db59690

6 years agoTitle: Refactor JS/CSS page handling to be more sane
James D. Forrester [Tue, 13 Feb 2018 00:15:30 +0000 (16:15 -0800)]
Title: Refactor JS/CSS page handling to be more sane

Change-Id: Ia7837dc614dcc8896a7d4b6d663dc45b6bd4f7ee

6 years agoMerge "Follow-up I0bb4ed7f7: Use correct 'this'"
jenkins-bot [Fri, 16 Feb 2018 12:26:17 +0000 (12:26 +0000)]
Merge "Follow-up I0bb4ed7f7: Use correct 'this'"

6 years agoFollow-up I0bb4ed7f7: Use correct 'this'
Ed Sanders [Fri, 16 Feb 2018 11:55:00 +0000 (11:55 +0000)]
Follow-up I0bb4ed7f7: Use correct 'this'

Bug: T187523
Change-Id: I7ced05b239d3ce0da1bcd6acdb3a30f65872645c

6 years agoDon't write exceptions to STDERR from BadTitleErrorTest or ThrottledErrorTest
Brad Jorsch [Wed, 14 Feb 2018 18:01:19 +0000 (13:01 -0500)]
Don't write exceptions to STDERR from BadTitleErrorTest or ThrottledErrorTest

It's annoying and pointless. Instead, have MWException write them to
standard output where we can catch them with ob_start().

Bug: T170028
Bug: T170029
Change-Id: Icd99c1c39d4a30d78c511d33948ef639e1b92455