lhc/web/wiklou.git
5 years agoMerge "resources: Make manageForeignResources a regular maint script"
jenkins-bot [Mon, 25 Mar 2019 20:04:08 +0000 (20:04 +0000)]
Merge "resources: Make manageForeignResources a regular maint script"

5 years agoMerge "Provide direct deprecation message for jquery.ui.spinner"
jenkins-bot [Mon, 25 Mar 2019 17:45:04 +0000 (17:45 +0000)]
Merge "Provide direct deprecation message for jquery.ui.spinner"

5 years agoMerge "mw.feedback: Remove unused custom spinner"
jenkins-bot [Mon, 25 Mar 2019 17:44:54 +0000 (17:44 +0000)]
Merge "mw.feedback: Remove unused custom spinner"

5 years agoMerge "registration: Follow-up on I54e8065c63f81016425c7dd40ce87e"
jenkins-bot [Mon, 25 Mar 2019 17:18:54 +0000 (17:18 +0000)]
Merge "registration: Follow-up on I54e8065c63f81016425c7dd40ce87e"

5 years agoregistration: Follow-up on I54e8065c63f81016425c7dd40ce87e
Derick Alangi [Mon, 25 Mar 2019 15:56:14 +0000 (16:56 +0100)]
registration: Follow-up on I54e8065c63f81016425c7dd40ce87e

Change-Id: I610dfafcd180f89ee0e786f4516f9eb9c63a42b4

5 years agoMerge "objectcache: Remove unused variable $cache which is overriden"
jenkins-bot [Mon, 25 Mar 2019 15:47:44 +0000 (15:47 +0000)]
Merge "objectcache: Remove unused variable $cache which is overriden"

5 years agoMerge "Fix MessagecacheTest::testLoadFromDB_fetchLatestRevision"
jenkins-bot [Mon, 25 Mar 2019 15:47:29 +0000 (15:47 +0000)]
Merge "Fix MessagecacheTest::testLoadFromDB_fetchLatestRevision"

5 years agoMerge "changetags: Remove unnecessary semicolon after catch block"
jenkins-bot [Mon, 25 Mar 2019 15:38:54 +0000 (15:38 +0000)]
Merge "changetags: Remove unnecessary semicolon after catch block"

5 years agomw.feedback: Remove unused custom spinner
Ed Sanders [Mon, 25 Mar 2019 14:41:05 +0000 (14:41 +0000)]
mw.feedback: Remove unused custom spinner

Change-Id: I6d34006b943366045a69a89aa574c77be609440f

5 years agoMerge "Rename PoolCounter_Stub to PoolCounterNull"
jenkins-bot [Mon, 25 Mar 2019 14:59:25 +0000 (14:59 +0000)]
Merge "Rename PoolCounter_Stub to PoolCounterNull"

5 years agoMerge "rdbms: Drop unused constructor property and default method arg"
jenkins-bot [Mon, 25 Mar 2019 14:59:11 +0000 (14:59 +0000)]
Merge "rdbms: Drop unused constructor property and default method arg"

5 years agoMerge "DefaultSettings: Remove deprecated $wgDBmysql5 from core"
jenkins-bot [Mon, 25 Mar 2019 14:45:20 +0000 (14:45 +0000)]
Merge "DefaultSettings: Remove deprecated $wgDBmysql5 from core"

5 years agochangetags: Remove unnecessary semicolon after catch block
Derick Alangi [Mon, 25 Mar 2019 14:37:47 +0000 (15:37 +0100)]
changetags: Remove unnecessary semicolon after catch block

Change-Id: I89cc05dbbb8c0cf2382e251a3c144353af0906e5

5 years agoProvide direct deprecation message for jquery.ui.spinner
Ed Sanders [Mon, 25 Mar 2019 14:35:40 +0000 (14:35 +0000)]
Provide direct deprecation message for jquery.ui.spinner

The whole of jquery.ui is deprecated, but this provides
a more direct replacement suggestion for this module.

Change-Id: I1c09ca48765f3c82f2318fd53d679e4168e5d565

5 years agoobjectcache: Remove unused variable $cache which is overriden
Derick Alangi [Mon, 25 Mar 2019 14:20:19 +0000 (15:20 +0100)]
objectcache: Remove unused variable $cache which is overriden

This variable was defined to false and immediately overriden in the
if condition below it which makes the assignment above useless.

Change-Id: Ie72ec7a8860d2a38f59f38b3d861217d39da3e29

5 years agoMerge "rcfeed: Avoid extending/inheriting from a deprecated class"
jenkins-bot [Mon, 25 Mar 2019 14:10:21 +0000 (14:10 +0000)]
Merge "rcfeed: Avoid extending/inheriting from a deprecated class"

5 years agorcfeed: Avoid extending/inheriting from a deprecated class
Derick Alangi [Mon, 25 Mar 2019 13:27:22 +0000 (14:27 +0100)]
rcfeed: Avoid extending/inheriting from a deprecated class

Also, fix if...else syntax with return statement in the if block.

Change-Id: If14f0835731f264622cf90fcfd5c7cc850f63050

5 years agoregistration: Remove wrong `@return` PHPDoc comments
Derick Alangi [Mon, 25 Mar 2019 13:17:47 +0000 (14:17 +0100)]
registration: Remove wrong `@return` PHPDoc comments

$this->attributes is an array class property that gets set by the
method extractInfo(). This method really doesn't return an array
though in a sense $this->attributes gets set which can be used but
it's not returned.

Change-Id: I54e8065c63f81016425c7dd40ce87e1eb8ba0830

5 years agoMerge "Add filterFunction to visible{Byte,CodePoint}Limit"
jenkins-bot [Mon, 25 Mar 2019 12:42:29 +0000 (12:42 +0000)]
Merge "Add filterFunction to visible{Byte,CodePoint}Limit"

5 years agoFix MessagecacheTest::testLoadFromDB_fetchLatestRevision
daniel [Mon, 25 Mar 2019 10:47:53 +0000 (11:47 +0100)]
Fix MessagecacheTest::testLoadFromDB_fetchLatestRevision

This re-enables the "flaky" testLoadFromDB_fetchLatestRevision which
was disabled because it failed on random patches for no apparent
reason, as documented in T219042.

The reason was an invalid timestamp in the test data, which caused
the timestamp to default to "now", which was "sometimes" newer than
the timestamp of the revision immediately created before.

Bug: T219042
Bug: T218918
Change-Id: I38f4816b2dc735a7698626c7e3fe4a93ec95a9d1

5 years agoMerge "db: Drop child methods as they're same as parent methods"
jenkins-bot [Mon, 25 Mar 2019 09:35:22 +0000 (09:35 +0000)]
Merge "db: Drop child methods as they're same as parent methods"

5 years agordbms: Drop unused constructor property and default method arg
Derick Alangi [Sun, 24 Mar 2019 23:45:00 +0000 (00:45 +0100)]
rdbms: Drop unused constructor property and default method arg

Change-Id: Id83efd8f68b241ca0d7c5340cc2fd93379578fac

5 years agoMerge "docs: Update outdated PageContentSave hook documentation"
jenkins-bot [Mon, 25 Mar 2019 06:40:12 +0000 (06:40 +0000)]
Merge "docs: Update outdated PageContentSave hook documentation"

5 years agoMerge "upload: Simplify file extension extraction in UploadBase"
jenkins-bot [Mon, 25 Mar 2019 06:33:58 +0000 (06:33 +0000)]
Merge "upload: Simplify file extension extraction in UploadBase"

5 years agoMerge "Use the ?? feature instead of isset() where it makes sense"
jenkins-bot [Mon, 25 Mar 2019 04:34:10 +0000 (04:34 +0000)]
Merge "Use the ?? feature instead of isset() where it makes sense"

5 years agoMerge "objectcache: remove BagOStuff::mergeViaLock() and update RESTBagOStuff"
jenkins-bot [Sun, 24 Mar 2019 23:55:59 +0000 (23:55 +0000)]
Merge "objectcache: remove BagOStuff::mergeViaLock() and update RESTBagOStuff"

5 years agodb: Drop child methods as they're same as parent methods
Derick Alangi [Sun, 24 Mar 2019 23:29:22 +0000 (00:29 +0100)]
db: Drop child methods as they're same as parent methods

Change-Id: I8b3827a57782f02497da2ab8191d1dad11e92bca

5 years agoRename PoolCounter_Stub to PoolCounterNull
Umherirrender [Sun, 24 Mar 2019 21:44:46 +0000 (22:44 +0100)]
Rename PoolCounter_Stub to PoolCounterNull

Also move to own file
Remove "Stub", because it refers a php concept,
which is not used here

Change-Id: Ife952901b5ad8e4a408d229ee72de953a9acc220

5 years agoUse the ?? feature instead of isset() where it makes sense
Thiemo Kreuz [Sun, 24 Mar 2019 21:40:49 +0000 (22:40 +0100)]
Use the ?? feature instead of isset() where it makes sense

Change-Id: I3a54f36b33d99ef3ff4c63e32e7dfcbcfc296135

5 years agoresources: Make manageForeignResources a regular maint script
Timo Tijhof [Fri, 22 Mar 2019 20:34:37 +0000 (20:34 +0000)]
resources: Make manageForeignResources a regular maint script

The maintenance script was previously in a subdirectory which
is a bit unusual. It's now a regular maintenance script,
with the YAML file in a more discoverable place as well.

Change-Id: I38690f23dbe89839bee0e1d43ecfd68adeb19c0f

5 years agoFix off by 1 error when displaying the number of a line with an error
Reedy [Sun, 24 Mar 2019 20:47:24 +0000 (20:47 +0000)]
Fix off by 1 error when displaying the number of a line with an error

Change-Id: I876ba04f6903127a9d5adedfe0a5e2598a90068c

5 years agoMerge "Use foreach for readability"
jenkins-bot [Sun, 24 Mar 2019 20:56:49 +0000 (20:56 +0000)]
Merge "Use foreach for readability"

5 years agoMerge "make xml abstracts, stubs and page log dumps work again"
jenkins-bot [Sun, 24 Mar 2019 20:36:56 +0000 (20:36 +0000)]
Merge "make xml abstracts, stubs and page log dumps work again"

5 years agoUse foreach for readability
Reedy [Sun, 24 Mar 2019 20:14:07 +0000 (20:14 +0000)]
Use foreach for readability

Change-Id: Ia4701bc50d8c57b9dcafe2da3bb399d59f4c8d0e

5 years agoMake use of the list() feature where it makes sense
Thiemo Kreuz [Sun, 24 Mar 2019 14:04:32 +0000 (15:04 +0100)]
Make use of the list() feature where it makes sense

This code is functionally identical, but less error prone (not so easy
to forget or mix these numerical indexes).

This patch happens to touch the Parser, which might be a bit scary. We
can remove this file from this patch if you prefer.

Change-Id: I8cbe3a9a6725d1c42b86e67678c1af15fbc5961a

5 years agomake xml abstracts, stubs and page log dumps work again
Ariel T. Glenn [Sun, 24 Mar 2019 11:43:37 +0000 (13:43 +0200)]
make xml abstracts, stubs and page log dumps work again

Broken in I979b6c8f0a72bc1f5ecce1d499d3fdfa0f671588

Bug: T174031
Change-Id: I494fe7578f936a2316c27f9c419e981055c38ed4

5 years agoobjectcache: remove BagOStuff::mergeViaLock() and update RESTBagOStuff
Aaron Schulz [Wed, 20 Mar 2019 18:11:00 +0000 (11:11 -0700)]
objectcache: remove BagOStuff::mergeViaLock() and update RESTBagOStuff

All subclasses are now using the CAS variant, which respects $attempts.

Change-Id: Ia7ec6a7f3337cabe95c54c1142c3c5464c1794e7

5 years agoFix overzealous prefix check in MWLBFactory
Aaron Schulz [Sun, 24 Mar 2019 03:07:56 +0000 (20:07 -0700)]
Fix overzealous prefix check in MWLBFactory

Follow-up 9df277a4ba3

If the server array ommitted 'tablePrefix', Database will
use '' as the prefix, so if $wgDBprefix is also '', then
no error should happen.

Change-Id: Ic207c3fceae8fd45c87f7fa24678079217a60730

5 years agoMerge "Fix PhanPluginDuplicateConditional* errors (#1)"
jenkins-bot [Sun, 24 Mar 2019 02:47:26 +0000 (02:47 +0000)]
Merge "Fix PhanPluginDuplicateConditional* errors (#1)"

5 years agoMerge "Upgrade to newer phan"
jenkins-bot [Sun, 24 Mar 2019 02:25:15 +0000 (02:25 +0000)]
Merge "Upgrade to newer phan"

5 years agoMerge "session: Fix missing return in SessionBackend::resetId()"
jenkins-bot [Sun, 24 Mar 2019 02:25:05 +0000 (02:25 +0000)]
Merge "session: Fix missing return in SessionBackend::resetId()"

5 years agoMerge "API: Fix missing return in ApiResult::addContentValue()"
jenkins-bot [Sun, 24 Mar 2019 02:22:58 +0000 (02:22 +0000)]
Merge "API: Fix missing return in ApiResult::addContentValue()"

5 years agoDisable flapping MessageCacheTest::testLoadFromDB_fetchLatestRevision()
Max Semenik [Sun, 24 Mar 2019 01:52:13 +0000 (18:52 -0700)]
Disable flapping MessageCacheTest::testLoadFromDB_fetchLatestRevision()

Bug: T219042
Bug: T218918
Change-Id: I93ed4d088691bfc50aeef1f9c07af5a6dc50de4b

5 years agoFix PhanPluginDuplicateConditional* errors (#1)
Kunal Mehta [Fri, 22 Mar 2019 00:21:22 +0000 (17:21 -0700)]
Fix PhanPluginDuplicateConditional* errors (#1)

Change-Id: I61e4d4a60dda27f43debab71a9c02f14c1468311

5 years agoUpgrade to newer phan
Kunal Mehta [Thu, 21 Mar 2019 23:59:32 +0000 (16:59 -0700)]
Upgrade to newer phan

MediaWiki core now runs phan 1.2.6, bringing in nearly 2+ years of upstream
fixes.

Configuration was moved from `tests/phan` to `.phan/`. The legacy bash wrapper
script is still kept in the repository in its own location for any extensions
that are still using it. It should be removed before 1.33 is released.

Since there's a lot of new issues being flagged, all currently failing issues
are suppressed, and will be fixed in follow-up patches.

We're dropping the jetbrains/phpstorm-stubs repository in favor of just
the minimal stubs we need. Stubs for PHP extensions are kept in
the new `.phan/internal_stubs` directory, since they're in a slightly
different format than normal stubs.

Normal stubs are kept in `.phan/stubs`. wikidiff2 and excimer are kept with
these since we're also the upstream for them.

Change-Id: I3fe437befa17f4fbaf97aa6271f659b56021f396

5 years agosession: Fix missing return in SessionBackend::resetId()
Kunal Mehta [Sun, 24 Mar 2019 00:10:36 +0000 (17:10 -0700)]
session: Fix missing return in SessionBackend::resetId()

Spotted by phan.

Change-Id: Ic11864916d50e79031c30a0e74dbbcf548ce31a0

5 years agoAPI: Fix missing return in ApiResult::addContentValue()
Kunal Mehta [Sun, 24 Mar 2019 00:10:18 +0000 (17:10 -0700)]
API: Fix missing return in ApiResult::addContentValue()

Spotted by phan.

Change-Id: Ifca5e15a1360008b5d91e1b6f483da8e0367819a

5 years agoMerge "add lbzip2 output processor for exports"
jenkins-bot [Sat, 23 Mar 2019 23:35:29 +0000 (23:35 +0000)]
Merge "add lbzip2 output processor for exports"

5 years agoadd lbzip2 output processor for exports
Ariel T. Glenn [Wed, 20 Mar 2019 05:25:06 +0000 (07:25 +0200)]
add lbzip2 output processor for exports

Bug: T214293
Change-Id: I98e26b833df473bbeb3dc1b881f428174d776b64

5 years agoMerge "Move class RevisionListBase and friends to own file"
jenkins-bot [Sat, 23 Mar 2019 22:37:10 +0000 (22:37 +0000)]
Merge "Move class RevisionListBase and friends to own file"

5 years agoMerge "Do not suppress php notices in SpecialPageFatalTest"
jenkins-bot [Sat, 23 Mar 2019 21:20:04 +0000 (21:20 +0000)]
Merge "Do not suppress php notices in SpecialPageFatalTest"

5 years agoMerge "block: Avoid use of empty() which doesn't warn on var non-existence"
jenkins-bot [Sat, 23 Mar 2019 18:59:26 +0000 (18:59 +0000)]
Merge "block: Avoid use of empty() which doesn't warn on var non-existence"

5 years agoDefaultSettings: Remove deprecated $wgDBmysql5 from core
Derick Alangi [Sat, 23 Mar 2019 13:42:35 +0000 (14:42 +0100)]
DefaultSettings: Remove deprecated $wgDBmysql5 from core

This was an experimental configuration setting and was supposed
to be removed in 1.33. Also, remove option from db.

Bug: T196185
Change-Id: I357348505589ff963d668acadce3b58fe2a1b0bb

5 years agoMerge "Remove reliance on Block properties being public"
jenkins-bot [Sat, 23 Mar 2019 08:28:35 +0000 (08:28 +0000)]
Merge "Remove reliance on Block properties being public"

5 years agoMerge "Avoid the use of IDatabase::insert() return value"
jenkins-bot [Sat, 23 Mar 2019 07:59:27 +0000 (07:59 +0000)]
Merge "Avoid the use of IDatabase::insert() return value"

5 years agoMerge "rdbms: halt on some common broken $wgDBServers configurations"
jenkins-bot [Sat, 23 Mar 2019 04:31:08 +0000 (04:31 +0000)]
Merge "rdbms: halt on some common broken $wgDBServers configurations"

5 years agoMerge "registration: Fix if or elseif constructs with return statements"
jenkins-bot [Fri, 22 Mar 2019 23:47:31 +0000 (23:47 +0000)]
Merge "registration: Fix if or elseif constructs with return statements"

5 years agoblock: Avoid use of empty() which doesn't warn on var non-existence
Derick Alangi [Fri, 22 Mar 2019 23:10:41 +0000 (00:10 +0100)]
block: Avoid use of empty() which doesn't warn on var non-existence

As empty() is more tolerant and doesn't warn on variable non-existence
and will go ahead and treat it as if it has the value null, it's better
to use ! in this case to make sure we catch even things like typos in
the variable names within the code base.

Let's make sure intended checks are actually checked instead of being
tolerant. Follow up on: Ibaf555fac293da46fa397ccb9, thanks @Krinkle.

Change-Id: Ibc45dba373bbbb6735a9681ed07a2438d4073ee0

5 years agoregistration: Fix if or elseif constructs with return statements
Derick Alangi [Fri, 22 Mar 2019 22:36:11 +0000 (23:36 +0100)]
registration: Fix if or elseif constructs with return statements

Change-Id: I7abd09d8959daddaa161bd92a1b1b23a4abbab32

5 years agoRemove reliance on Block properties being public
Thalia [Fri, 22 Mar 2019 15:16:40 +0000 (15:16 +0000)]
Remove reliance on Block properties being public

Use getters and setters for $mReason, $mTimestamp, $mExpiry and
$mHideName; use Block::getType to check if a block is an autoblock
instead of checking $mAuto; no change needed for $mParentBlockId,
which is not accessed externally.

Change-Id: I767ed44ce4c2e21f53962d75fb86891add2282f6

5 years agoAvoid the use of IDatabase::insert() return value
Derick Alangi [Fri, 22 Mar 2019 21:12:09 +0000 (22:12 +0100)]
Avoid the use of IDatabase::insert() return value

Change-Id: Ibaf555fac293da46fa397ccb993cfb61bfcd67aa

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 22 Mar 2019 20:59:25 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0b1430a5ae16b2b048e6b7467991c5e53aa18dd1

5 years agoMerge "Update OOUI to v0.31.1"
jenkins-bot [Fri, 22 Mar 2019 19:13:06 +0000 (19:13 +0000)]
Merge "Update OOUI to v0.31.1"

5 years agoAdd filterFunction to visible{Byte,CodePoint}Limit
Lucas Werkmeister [Fri, 22 Mar 2019 12:47:05 +0000 (13:47 +0100)]
Add filterFunction to visible{Byte,CodePoint}Limit

The underlying {byte,codePoint}Limit functions already supported this
parameter to apply to the string before limiting the length; add it to
the visible limiting functions as well, displaying the remaining
characters after the text is filtered.

Change-Id: Id8f039ef21ed64dd97c6711efa56d59bb0264669

5 years agoMerge "User::(get|is)Block*(): We don't need to prefix variables with their type…"
jenkins-bot [Fri, 22 Mar 2019 15:44:59 +0000 (15:44 +0000)]
Merge "User::(get|is)Block*(): We don't need to prefix variables with their type…"

5 years agoMerge "Only load latest revision in MessageCache::loadFromDB"
jenkins-bot [Fri, 22 Mar 2019 15:35:58 +0000 (15:35 +0000)]
Merge "Only load latest revision in MessageCache::loadFromDB"

5 years agoOnly load latest revision in MessageCache::loadFromDB
daniel [Fri, 22 Mar 2019 12:26:21 +0000 (13:26 +0100)]
Only load latest revision in MessageCache::loadFromDB

In Id044b8dcd7c, we lost a condition that ensured that the cache would
be populated with the latest revision. Now it was being populated with
all revisions, with a random one winning.

Bug: T218918
Change-Id: I1a47356ea35f0abf35bb1a3489d0d3442a3400a5

5 years agoUser::(get|is)Block*(): We don't need to prefix variables with their type…
Reedy [Mon, 18 Mar 2019 22:17:50 +0000 (22:17 +0000)]
User::(get|is)Block*(): We don't need to prefix variables with their type…

Change-Id: I38e10453051dd300217542de68daab352993b2a6

5 years agoMerge "Remove i18n parameters"
jenkins-bot [Fri, 22 Mar 2019 11:43:27 +0000 (11:43 +0000)]
Merge "Remove i18n parameters"

5 years agoRemove i18n parameters
Gabriel Birke [Fri, 22 Mar 2019 11:10:45 +0000 (12:10 +0100)]
Remove i18n parameters

Since the confirmation message can no longer show the edit count, remove
the data attribute that contains it.

Also make the selector for the confirmation more specific.

This is a followup for change 498096

Bug: T218354
Change-Id: I08dd75d3b161d7869357e486b25693dde635eb14

5 years agoFix WANObjectCache typo in phpdoc
addshore [Fri, 22 Mar 2019 10:25:11 +0000 (11:25 +0100)]
Fix WANObjectCache typo in phpdoc

Change-Id: I6b9d68bc4832fe71217d5c0ef66bebdfa9b459ce

5 years agoMerge "don't die producing xml files if rev text export conversion fails"
jenkins-bot [Fri, 22 Mar 2019 09:22:41 +0000 (09:22 +0000)]
Merge "don't die producing xml files if rev text export conversion fails"

5 years agordbms: halt on some common broken $wgDBServers configurations
Aaron Schulz [Fri, 22 Mar 2019 07:17:36 +0000 (00:17 -0700)]
rdbms: halt on some common broken $wgDBServers configurations

Mention the changes, usually simple, needed to fix the problem.

Bug: T215850
Change-Id: I9911f5f5213682ffb52ac548e3082db548e37b3d

5 years agoMerge "Use mediawiki/mediawiki-phan-config 0.3.0"
jenkins-bot [Fri, 22 Mar 2019 06:13:28 +0000 (06:13 +0000)]
Merge "Use mediawiki/mediawiki-phan-config 0.3.0"

5 years agoUse mediawiki/mediawiki-phan-config 0.3.0
Kunal Mehta [Thu, 21 Mar 2019 22:28:48 +0000 (15:28 -0700)]
Use mediawiki/mediawiki-phan-config 0.3.0

Use the library instead of duplicating most of the config/defaults that it
provides. MediaWiki core is different of course, so we have to override a
bunch of file/directory lists, but there was a lot being duplicated.

This is the first step in migrating to a newer phan version.

Change-Id: Ib5987ebdf208138d97e1aba8ef54438064063fe9

5 years agoMerge "rdbms: avoid connections on more lazy DBConnRef methods"
jenkins-bot [Fri, 22 Mar 2019 02:00:20 +0000 (02:00 +0000)]
Merge "rdbms: avoid connections on more lazy DBConnRef methods"

5 years agoMerge "rdbms: update wasQueryTimeout() for DatabaseMysqlBase"
jenkins-bot [Fri, 22 Mar 2019 00:41:00 +0000 (00:41 +0000)]
Merge "rdbms: update wasQueryTimeout() for DatabaseMysqlBase"

5 years agoMerge "rdbms: add 1062 error code to DatabaseMysqlBase"
jenkins-bot [Fri, 22 Mar 2019 00:39:12 +0000 (00:39 +0000)]
Merge "rdbms: add 1062 error code to DatabaseMysqlBase"

5 years agordbms: avoid connections on more lazy DBConnRef methods
Aaron Schulz [Thu, 21 Mar 2019 12:51:28 +0000 (05:51 -0700)]
rdbms: avoid connections on more lazy DBConnRef methods

Also:
* Fixed LoadBalancer::getAnyOpenConnection for both
  DB_MASTER and DB_REPLICA, which are not real indexes.
* Lock down DBConnRef::close since it can only cause trouble.
* Relax DBConnRef restrictions on tablePrefix()/dbSchema()
  for the harmless "getter" mode case.
* Remove redundant DatabasePostgres::getServer definition.

Change-Id: Ia855d901cc3c28147e52284fdabb1645805d4466

5 years agoMerge "Support more coupled DBs in AtomicSectionUpdate/AutoCommitUpdate"
jenkins-bot [Fri, 22 Mar 2019 00:30:53 +0000 (00:30 +0000)]
Merge "Support more coupled DBs in AtomicSectionUpdate/AutoCommitUpdate"

5 years agordbms: update wasQueryTimeout() for DatabaseMysqlBase
Aaron Schulz [Thu, 21 Mar 2019 21:22:34 +0000 (14:22 -0700)]
rdbms: update wasQueryTimeout() for DatabaseMysqlBase

Change-Id: I533d68972c758a5c8bb251cd838b8802799f0318

5 years agoMerge "rdbms: make LBFactory::setLocalDomainPrefix preserve the schema"
jenkins-bot [Fri, 22 Mar 2019 00:19:30 +0000 (00:19 +0000)]
Merge "rdbms: make LBFactory::setLocalDomainPrefix preserve the schema"

5 years agordbms: add 1062 error code to DatabaseMysqlBase
Aaron Schulz [Thu, 21 Mar 2019 23:54:46 +0000 (16:54 -0700)]
rdbms: add 1062 error code to DatabaseMysqlBase

See https://dev.mysql.com/doc/refman/5.7/en/server-error-reference.html

Change-Id: Id4960a5693332e6291ddcb5564bf6f8177a90c3d

5 years agoMerge "Title: Test the ->equals() method more thoughroughly"
jenkins-bot [Fri, 22 Mar 2019 00:14:45 +0000 (00:14 +0000)]
Merge "Title: Test the ->equals() method more thoughroughly"

5 years agoMerge "Fix fatal due to lock name mismatch in Maintenance::unlockSearchindex"
jenkins-bot [Fri, 22 Mar 2019 00:13:05 +0000 (00:13 +0000)]
Merge "Fix fatal due to lock name mismatch in Maintenance::unlockSearchindex"

5 years agoMerge "rdbms: restrict more unsafe IDatabase methods in DBConnRef"
jenkins-bot [Fri, 22 Mar 2019 00:05:01 +0000 (00:05 +0000)]
Merge "rdbms: restrict more unsafe IDatabase methods in DBConnRef"

5 years agoMerge "objectcache: convert APC and hash BagOStuff to using mergeViaCas()"
jenkins-bot [Thu, 21 Mar 2019 23:55:30 +0000 (23:55 +0000)]
Merge "objectcache: convert APC and hash BagOStuff to using mergeViaCas()"

5 years agoMerge "objectcache: optimize merge()/incr() for WinCacheBagOStuff"
jenkins-bot [Thu, 21 Mar 2019 23:55:20 +0000 (23:55 +0000)]
Merge "objectcache: optimize merge()/incr() for WinCacheBagOStuff"

5 years agoTitle: Test the ->equals() method more thoughroughly
James D. Forrester [Sat, 16 Mar 2019 19:40:13 +0000 (12:40 -0700)]
Title: Test the ->equals() method more thoughroughly

Move from TitleMethodTest to TitleTest for simplicity with duplicating
into TitleValueTest. We're not using the language- and namespace-specific
test setup with these tests anyway.

Change-Id: Ieec78c35f04faea5e01da8d39ed88f7c4876ac84

5 years agoMerge "Fix phpstorm IDEA errors in SkinTemplate"
jenkins-bot [Thu, 21 Mar 2019 23:52:50 +0000 (23:52 +0000)]
Merge "Fix phpstorm IDEA errors in SkinTemplate"

5 years agordbms: restrict more unsafe IDatabase methods in DBConnRef
Aaron Schulz [Thu, 21 Mar 2019 23:17:25 +0000 (16:17 -0700)]
rdbms: restrict more unsafe IDatabase methods in DBConnRef

Change-Id: I1933da825e6b20b4ec742e0aa39d63e9a75f9a1c

5 years agoMerge "Do not create new archive file names for old files"
jenkins-bot [Thu, 21 Mar 2019 22:45:50 +0000 (22:45 +0000)]
Merge "Do not create new archive file names for old files"

5 years agoMerge "RevDel: Avoid log_search rows with empty values for target_author_actor"
jenkins-bot [Thu, 21 Mar 2019 22:03:18 +0000 (22:03 +0000)]
Merge "RevDel: Avoid log_search rows with empty values for target_author_actor"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 21 Mar 2019 21:12:00 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0dd7b417499db34a6b99d3491c34e361e84a5b9e

5 years agoSupport more coupled DBs in AtomicSectionUpdate/AutoCommitUpdate
Aaron Schulz [Thu, 21 Mar 2019 21:05:35 +0000 (14:05 -0700)]
Support more coupled DBs in AtomicSectionUpdate/AutoCommitUpdate

This is useful for updating a secondary database based on a
commit to the main one, especially for using auto-commit.

Change-Id: Iad9084d2fb0490ecdfd5fcc97db33bfbcbfa5d21

5 years agoRevDel: Avoid log_search rows with empty values for target_author_actor
Brad Jorsch [Thu, 7 Feb 2019 16:16:32 +0000 (11:16 -0500)]
RevDel: Avoid log_search rows with empty values for target_author_actor

During migration, RevDel may wind up being used on items where an actor
has not been assigned yet. The code creating log_search rows for
target_author_actor needs to take this into account.

Also, to clean this up on Wikimedia wikis, I've added code to
MigrateActors to delete these rows before (re-)migrating log_search
and a --tables option so a re-run can skip trying to process all the
already-processed tables (cf. T188327#4892827).

Bug: T215525
Change-Id: Ica15e2e30445e23761e6d3d6405b3eb39a086161

5 years agoWebRequest: Simplify getGPCVal
Fomafix [Thu, 21 Mar 2019 19:36:52 +0000 (20:36 +0100)]
WebRequest: Simplify getGPCVal

* Call $contLang->checkTitleEncoding() only with a string value as
  parameter. (A boolean value here caused T218883.)
* MediaWikiServices::getInstance()->getContentLanguage() always return a
  Language object. An exist check is not necessary.

Change-Id: Idd3e3a2baa5072e862d7502e30079a1b33d6a866

5 years agoMerge "Use delegated events for rollback confirmable"
jenkins-bot [Thu, 21 Mar 2019 17:35:46 +0000 (17:35 +0000)]
Merge "Use delegated events for rollback confirmable"

5 years agoMerge "Rearrange code in User::getBlockedStatus to avoid isAllowed calls"
jenkins-bot [Thu, 21 Mar 2019 17:35:36 +0000 (17:35 +0000)]
Merge "Rearrange code in User::getBlockedStatus to avoid isAllowed calls"

5 years agoUse delegated events for rollback confirmable
Tim Eulitz [Thu, 21 Mar 2019 14:07:28 +0000 (15:07 +0100)]
Use delegated events for rollback confirmable

This change is necessary to make the rollback confirmation work even
when the list of items which can be rolled back is updated via
JavaScript (this is possible on RecentChanges, for example).

Bug: T218354
Change-Id: Idafe1380b283cf0056ff1efdffa04aca92cf1217