lhc/web/wiklou.git
5 years agoMerge "Deprecate Block::isValid method"
jenkins-bot [Thu, 28 Mar 2019 03:56:20 +0000 (03:56 +0000)]
Merge "Deprecate Block::isValid method"

5 years agoMerge "resourceloader: Improve test cases for DerivativeResourceLoaderContext"
jenkins-bot [Thu, 28 Mar 2019 03:31:17 +0000 (03:31 +0000)]
Merge "resourceloader: Improve test cases for DerivativeResourceLoaderContext"

5 years agoMerge "Change name of main page in Sardinian (sc)"
jenkins-bot [Thu, 28 Mar 2019 03:13:38 +0000 (03:13 +0000)]
Merge "Change name of main page in Sardinian (sc)"

5 years agoMerge "Revert "Provide direct deprecation message for jquery.ui.spinner""
jenkins-bot [Thu, 28 Mar 2019 03:13:29 +0000 (03:13 +0000)]
Merge "Revert "Provide direct deprecation message for jquery.ui.spinner""

5 years agoMerge "Add namespace translation for N'Ko"
jenkins-bot [Thu, 28 Mar 2019 03:08:57 +0000 (03:08 +0000)]
Merge "Add namespace translation for N'Ko"

5 years agoRevert "Provide direct deprecation message for jquery.ui.spinner"
Jforrester [Tue, 26 Mar 2019 20:49:40 +0000 (20:49 +0000)]
Revert "Provide direct deprecation message for jquery.ui.spinner"

This reverts commit 5b812305da96b4acfade7feab5885580886bb0d3.

Reason for revert:

Everything about jQuery UI is terrible, including the naming of modules.

Change-Id: Ide2bb589a4af3b166c46bcd163e6269a80b6d5c0

5 years agoMerge "Annotate different parts of the contributions UI with classes"
jenkins-bot [Thu, 28 Mar 2019 00:46:55 +0000 (00:46 +0000)]
Merge "Annotate different parts of the contributions UI with classes"

5 years agoMerge "objectcache: fix changeTTL() in RedisBagOStuff for edge cases"
jenkins-bot [Thu, 28 Mar 2019 00:43:22 +0000 (00:43 +0000)]
Merge "objectcache: fix changeTTL() in RedisBagOStuff for edge cases"

5 years agoAnnotate different parts of the contributions UI with classes
jdlrobson [Wed, 27 Mar 2019 18:31:39 +0000 (11:31 -0700)]
Annotate different parts of the contributions UI with classes

Distinguish the user tools (talk, block, block log etc)
from the pager navigation navigation bar so that skins can style
them.

Change-Id: I32950aa452347aabb8a37253bafc5f20d518c110

5 years agoMerge "objectcache: improve "version" documentation for WANObjectCache::getWithSetCal...
jenkins-bot [Thu, 28 Mar 2019 00:11:46 +0000 (00:11 +0000)]
Merge "objectcache: improve "version" documentation for WANObjectCache::getWithSetCallback()"

5 years agoobjectcache: fix changeTTL() in RedisBagOStuff for edge cases
Aaron Schulz [Tue, 26 Mar 2019 22:54:31 +0000 (15:54 -0700)]
objectcache: fix changeTTL() in RedisBagOStuff for edge cases

Change-Id: I2bb4bf843c8de8cefaf4188a8866ae51a28bbf71

5 years agoMerge "Make LinksDeletionUpdate a subclass of LinksUpdate"
jenkins-bot [Wed, 27 Mar 2019 23:19:22 +0000 (23:19 +0000)]
Merge "Make LinksDeletionUpdate a subclass of LinksUpdate"

5 years agoMerge "SpecialPreferences: Use real OOUI PHP layouts"
jenkins-bot [Wed, 27 Mar 2019 23:09:41 +0000 (23:09 +0000)]
Merge "SpecialPreferences: Use real OOUI PHP layouts"

5 years agoDeprecate Block::isValid method
Thalia [Wed, 27 Mar 2019 16:36:30 +0000 (16:36 +0000)]
Deprecate Block::isValid method

Block::isValid checks whether the block target equals null. It seems to
have been unused since commit 40a926ab2c566052eefd08c36f246d6b5321afc5.
It was called from Block::newFromDB, which was removed in favour of
Block::newFromTarget, which has its own logic for checking the target.

Since the method is public, it should be deprecated before removal.

Change-Id: Ibcfb377a382f55e80933836960be7e3589908390

5 years agoMake LinksDeletionUpdate a subclass of LinksUpdate
daniel [Tue, 5 Mar 2019 21:07:13 +0000 (22:07 +0100)]
Make LinksDeletionUpdate a subclass of LinksUpdate

This is proposed as an alternative to I0b636dc144f34bb.

The idea is to ensure that page deletion causes the exact same
database updates to be performed, and the exact same hooks to
be fired, as a page edit.

Bug: T216249
Change-Id: I665320e27da8edc2867b47d181cc0f324e75d102

5 years agoSpecialPreferences: Use real OOUI PHP layouts
Ed Sanders [Fri, 22 Mar 2019 15:11:17 +0000 (15:11 +0000)]
SpecialPreferences: Use real OOUI PHP layouts

Change-Id: Id8c798c0d5be07afd1c4d6584af22c54c3465621

5 years agoMerge "HISTORY: Add MediaWiki 1.5 post-release change notes"
jenkins-bot [Wed, 27 Mar 2019 22:20:17 +0000 (22:20 +0000)]
Merge "HISTORY: Add MediaWiki 1.5 post-release change notes"

5 years agoHISTORY: Add MediaWiki 1.5 post-release change notes
Nikita Rana [Wed, 27 Mar 2019 19:06:44 +0000 (00:36 +0530)]
HISTORY: Add MediaWiki 1.5 post-release change notes

Add MediaWiki 1.5 post-release change notes, sourced from
https://www.mediawiki.org/wiki/Release_notes/1.5

Bug: T213714
Change-Id: I6c29cca7903df3f9f718aa13512c500c5fced63c

5 years agoUse DateInputWidget for date inputs which do not need time
jdlrobson [Tue, 26 Mar 2019 23:18:53 +0000 (16:18 -0700)]
Use DateInputWidget for date inputs which do not need time

For those that still need the precision of time, the
DateTimeInputWidget can be used.

Bug: T107069
Change-Id: I2e0b0168b53594760c2630dc4ecd4e6af7404a7c

5 years agoobjectcache: improve "version" documentation for WANObjectCache::getWithSetCallback()
Aaron Schulz [Wed, 27 Mar 2019 21:39:26 +0000 (14:39 -0700)]
objectcache: improve "version" documentation for WANObjectCache::getWithSetCallback()

Change-Id: Ia48f21945e6da7f2d7892677d559718f824b62c1

5 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Wed, 27 Mar 2019 21:03:59 +0000 (21:03 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 27 Mar 2019 21:02:11 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I54b566c6b6f484b068911e49dabe15213ffdf9b6

5 years agoMerge "objectcache: merge getWithToken() into doGet() for simplicity"
jenkins-bot [Wed, 27 Mar 2019 20:58:25 +0000 (20:58 +0000)]
Merge "objectcache: merge getWithToken() into doGet() for simplicity"

5 years agoMerge "HISTORY: Add MediaWiki 1.8 post-release change notes"
jenkins-bot [Wed, 27 Mar 2019 20:42:28 +0000 (20:42 +0000)]
Merge "HISTORY: Add MediaWiki 1.8 post-release change notes"

5 years agoobjectcache: merge getWithToken() into doGet() for simplicity
Aaron Schulz [Tue, 26 Mar 2019 23:23:26 +0000 (16:23 -0700)]
objectcache: merge getWithToken() into doGet() for simplicity

Change-Id: I581f866521e1086ca350973d9cdeff6656f48fe8

5 years agoMerge "Fix reference to removed truncate() function"
jenkins-bot [Wed, 27 Mar 2019 19:57:02 +0000 (19:57 +0000)]
Merge "Fix reference to removed truncate() function"

5 years agoresourceloader: Improve test cases for DerivativeResourceLoaderContext
Timo Tijhof [Wed, 27 Mar 2019 19:47:05 +0000 (19:47 +0000)]
resourceloader: Improve test cases for DerivativeResourceLoaderContext

Make the methods more descriptive of the stories and use cases
they cover, and less method-oriented given they don't only
just test a getter or setter anyway (and doing so is arguably
not useful).

Also fold the "testGetInherited" case into the specific ones,
add additional assertions for inheritence that was previously
not tested (specifically, for getVersion and getRaw).

Change-Id: I01c72112e517e66cea5ecf9e2ab53b9039fb99bb

5 years agoMerge "HISTORY: Add MediaWiki 1.4 post-release change notes"
jenkins-bot [Wed, 27 Mar 2019 19:41:15 +0000 (19:41 +0000)]
Merge "HISTORY: Add MediaWiki 1.4 post-release change notes"

5 years agoMerge "HISTORY: Add MediaWiki 1.6 post-release change notes"
jenkins-bot [Wed, 27 Mar 2019 19:41:03 +0000 (19:41 +0000)]
Merge "HISTORY: Add MediaWiki 1.6 post-release change notes"

5 years agoHISTORY: Add MediaWiki 1.8 post-release change notes
Nikita Rana [Wed, 27 Mar 2019 12:15:22 +0000 (17:45 +0530)]
HISTORY: Add MediaWiki 1.8 post-release change notes

Add MediaWiki 1.8 post-release change notes, sourced from https://www.mediawiki.org/wiki/Release_notes/1.8

Bug:T213714
Change-Id: Ib821066ad1a4940be02aa1127ddec80065f688db

5 years agoMerge "rdbms: add ATTR_SCHEMAS_AS_TABLE_GROUPS attribute"
jenkins-bot [Wed, 27 Mar 2019 19:22:07 +0000 (19:22 +0000)]
Merge "rdbms: add ATTR_SCHEMAS_AS_TABLE_GROUPS attribute"

5 years agoHISTORY: Add MediaWiki 1.4 post-release change notes
Nikita Rana [Wed, 27 Mar 2019 18:57:40 +0000 (00:27 +0530)]
HISTORY: Add MediaWiki 1.4 post-release change notes

Add MediaWiki 1.4 post-release change notes, sourced from https://www.mediawiki.org/wiki/Release_notes/1.4

Bug:T213714
Change-Id: Ibbfd4bfe604910a81f3d741f0f7c0d7178679071

5 years agoMerge "objectcache: remove redundant merge() definitions"
jenkins-bot [Wed, 27 Mar 2019 18:34:47 +0000 (18:34 +0000)]
Merge "objectcache: remove redundant merge() definitions"

5 years agoMerge "objectcache: defined some missing methods in MultiWriteBagOStuff"
jenkins-bot [Wed, 27 Mar 2019 18:34:30 +0000 (18:34 +0000)]
Merge "objectcache: defined some missing methods in MultiWriteBagOStuff"

5 years agoobjectcache: remove redundant merge() definitions
Aaron Schulz [Tue, 26 Mar 2019 22:56:43 +0000 (15:56 -0700)]
objectcache: remove redundant merge() definitions

Change-Id: Ide24dd395b300f8d747b2be307dbbad08f6b221d

5 years agoMerge "objectcache: define some missing methods in ReplicatedBagOStuff"
jenkins-bot [Wed, 27 Mar 2019 18:13:12 +0000 (18:13 +0000)]
Merge "objectcache: define some missing methods in ReplicatedBagOStuff"

5 years agoMerge "Make EnqueueableDataUpdate use DB domain IDs"
jenkins-bot [Wed, 27 Mar 2019 18:11:43 +0000 (18:11 +0000)]
Merge "Make EnqueueableDataUpdate use DB domain IDs"

5 years agoMerge "Update OOUI to v0.31.2"
jenkins-bot [Wed, 27 Mar 2019 18:11:24 +0000 (18:11 +0000)]
Merge "Update OOUI to v0.31.2"

5 years agoMerge "Remove unused rollback module"
jenkins-bot [Wed, 27 Mar 2019 18:11:11 +0000 (18:11 +0000)]
Merge "Remove unused rollback module"

5 years agoMerge "objectcache: fix return value type in SqlBagOStuff::incr"
jenkins-bot [Wed, 27 Mar 2019 18:10:56 +0000 (18:10 +0000)]
Merge "objectcache: fix return value type in SqlBagOStuff::incr"

5 years agoMerge "objectcache: fix race condition in SqlBagOStuff::changeTTL"
jenkins-bot [Wed, 27 Mar 2019 18:10:43 +0000 (18:10 +0000)]
Merge "objectcache: fix race condition in SqlBagOStuff::changeTTL"

5 years agoMerge "Replace misplaced strlen() checks with strict `false` comparisons"
jenkins-bot [Wed, 27 Mar 2019 18:01:36 +0000 (18:01 +0000)]
Merge "Replace misplaced strlen() checks with strict `false` comparisons"

5 years agoMake EnqueueableDataUpdate use DB domain IDs
Aaron Schulz [Tue, 19 Mar 2019 16:01:24 +0000 (09:01 -0700)]
Make EnqueueableDataUpdate use DB domain IDs

This makes it consistent with what JobQueueGroup actually expects.

Change-Id: Id6c6b3bf19fb1e85a2e3e231d216974d831a2f7c

5 years agoRemove unused rollback module
Tim Eulitz [Tue, 26 Mar 2019 15:18:54 +0000 (16:18 +0100)]
Remove unused rollback module

The mediawiki.page.rollback module was previously introduced in this
patch:

https://gerrit.wikimedia.org/r/c/mediawiki/core/+/242050

However, the change was reverted soon after and this module alongside
its JavaScript were left in the code, even though they are not used and
have been replaced by the mediawiki.page.rollback.confirmation module.

Bug: T218574
Change-Id: I2c71adcfcf86e5032e82c237760a9d85a63de3f8

5 years agoHISTORY: Add MediaWiki 1.6 post-release change notes
Nikita Rana [Wed, 27 Mar 2019 17:31:10 +0000 (23:01 +0530)]
HISTORY: Add MediaWiki 1.6 post-release change notes

Add MediaWiki 1.6 post-release change notes, sourced from https://www.mediawiki.org/wiki/Release_notes/1.6

Bug:T213714
Change-Id: I283478823d62c0ee6844062f18e7018cec043705

5 years agoobjectcache: defined some missing methods in MultiWriteBagOStuff
Aaron Schulz [Wed, 27 Mar 2019 02:40:40 +0000 (19:40 -0700)]
objectcache: defined some missing methods in MultiWriteBagOStuff

Also, reorder some method definitions to match the base class.
This makes it easier to compare the two. In addition, refactor
the doWrite() method to make the calls clearer.

Change-Id: I795b395b9c54645f62962461a28067ae38b291ed

5 years agoMerge "Move logic for checking block behaviour to Block class"
jenkins-bot [Wed, 27 Mar 2019 17:17:41 +0000 (17:17 +0000)]
Merge "Move logic for checking block behaviour to Block class"

5 years agoMerge "linkeddata: Remove unnecessary arguments and shrink if...else"
jenkins-bot [Wed, 27 Mar 2019 17:05:36 +0000 (17:05 +0000)]
Merge "linkeddata: Remove unnecessary arguments and shrink if...else"

5 years agoMerge "HISTORY: Add MediaWiki 1.7 post-release change notes"
jenkins-bot [Wed, 27 Mar 2019 16:24:33 +0000 (16:24 +0000)]
Merge "HISTORY: Add MediaWiki 1.7 post-release change notes"

5 years agolinkeddata: Remove unnecessary arguments and shrink if...else
Derick Alangi [Wed, 27 Mar 2019 11:40:42 +0000 (12:40 +0100)]
linkeddata: Remove unnecessary arguments and shrink if...else

if...else that returns bool can be shrinked down to a single return
statement like in this case.

Change-Id: Ic50fac1825cbdbcc052dcd470e896a9344c8e418

5 years agoMerge "user: Remove not needed array_values()"
jenkins-bot [Wed, 27 Mar 2019 15:13:14 +0000 (15:13 +0000)]
Merge "user: Remove not needed array_values()"

5 years agoMerge "Fix api error for apierror-upload-missingresult"
jenkins-bot [Wed, 27 Mar 2019 15:13:03 +0000 (15:13 +0000)]
Merge "Fix api error for apierror-upload-missingresult"

5 years agoMove logic for checking block behaviour to Block class
Thalia [Wed, 13 Mar 2019 16:08:15 +0000 (16:08 +0000)]
Move logic for checking block behaviour to Block class

User::trackBlockWithCookie and PasswordReset::isBlocked make decisions
about block behaviour based on the block parameters. This should be
done in the Block class.

Bug: T218905
Change-Id: Ia3f46abacdaf70e720b715b39dc60aed53be2d0a

5 years agouser: Remove not needed array_values()
Thiemo Kreuz [Wed, 27 Mar 2019 12:54:02 +0000 (13:54 +0100)]
user: Remove not needed array_values()

Change-Id: I0a2321d5f363b86d01ab7ad94df920008e607390

5 years agoHISTORY: Add MediaWiki 1.7 post-release change notes
Nikita Rana [Wed, 27 Mar 2019 12:37:55 +0000 (18:07 +0530)]
HISTORY: Add MediaWiki 1.7 post-release change notes

Add MediaWiki 1.7 post-release change notes, sourced from https://www.mediawiki.org/wiki/Release_notes/1.7

Bug:T213714
Change-Id: I94f81ff8f361decedbbbeed4885baf580c038d67

5 years agoReplace misplaced strlen() checks with strict `false` comparisons
Thiemo Kreuz [Wed, 27 Mar 2019 10:10:39 +0000 (11:10 +0100)]
Replace misplaced strlen() checks with strict `false` comparisons

As far as I can tell the intention of this code is *not* to detect
empty strings, but `false`.

Change-Id: I406d065a54a1437fdfd46827fec9493e5fad05f9

5 years agoobjectcache: define some missing methods in ReplicatedBagOStuff
Aaron Schulz [Wed, 27 Mar 2019 02:37:31 +0000 (19:37 -0700)]
objectcache: define some missing methods in ReplicatedBagOStuff

Also reorder methods to match the base class so it is easier
to compare the classes and see which methods should be defined.

Change-Id: I2b8c2cd63822ce49efd9b4b7e44bde92032b5a98

5 years agoMerge "maintenance: Use the ?? feature together with explode()"
jenkins-bot [Wed, 27 Mar 2019 02:15:04 +0000 (02:15 +0000)]
Merge "maintenance: Use the ?? feature together with explode()"

5 years agoobjectcache: fix return value type in SqlBagOStuff::incr
Aaron Schulz [Wed, 27 Mar 2019 00:08:37 +0000 (17:08 -0700)]
objectcache: fix return value type in SqlBagOStuff::incr

Change-Id: I14a70956f77f13346857236eda5c4b6fb80c6223

5 years agoobjectcache: fix race condition in SqlBagOStuff::changeTTL
Aaron Schulz [Wed, 27 Mar 2019 00:05:48 +0000 (17:05 -0700)]
objectcache: fix race condition in SqlBagOStuff::changeTTL

Also fix --use-bagostuff parameter when given 0

Change-Id: I64971d4ccad2c856cc7688577ae564c8db068819

5 years agoMerge "mediawiki.special.changeslist is a skinStyle module"
jenkins-bot [Tue, 26 Mar 2019 23:45:35 +0000 (23:45 +0000)]
Merge "mediawiki.special.changeslist is a skinStyle module"

5 years agoMerge "Replace spinner.gif with CSS solution"
jenkins-bot [Tue, 26 Mar 2019 23:45:24 +0000 (23:45 +0000)]
Merge "Replace spinner.gif with CSS solution"

5 years agoReplace spinner.gif with CSS solution
Ed Sanders [Mon, 25 Mar 2019 14:28:55 +0000 (14:28 +0000)]
Replace spinner.gif with CSS solution

Bug: T219163
Change-Id: Icca5c4e01fe4c0ae377245ae7afb456a17626208

5 years agoUpdate OOUI to v0.31.2
James D. Forrester [Tue, 26 Mar 2019 23:19:10 +0000 (16:19 -0700)]
Update OOUI to v0.31.2

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.31.2

Bug: T161854
Bug: T192131
Bug: T218882
Bug: T218977
Bug: T219004
Bug: T219240
Depends-On: I6179266e71901182614ec24e7b0510b7a44ff50a
Change-Id: I6179266e71901182614ec24e7b0510b7a44ff50b

5 years agoConsistently use classes for deleted items in lists of diffs
jdlrobson [Tue, 26 Mar 2019 16:30:35 +0000 (09:30 -0700)]
Consistently use classes for deleted items in lists of diffs

Even if a revision has been deleted and the history-deleted class is
being used, the original class for its corresponding element when
not deleted should be applied. This is important as it allows skins
to skin consistently. "history-deleted" is a modifier class - it provides
further information on the original meaning.

This blocks styling the history page from core in Minerva skin

Bug: T216420
Change-Id: Ia659606838d7e38bc09054e36cd980b00f5e6da9

5 years agoMerge "objectcache: minor refactoring to BagOStuff"
jenkins-bot [Tue, 26 Mar 2019 22:47:55 +0000 (22:47 +0000)]
Merge "objectcache: minor refactoring to BagOStuff"

5 years agoMerge "Allow skins full control of Contributions/History styles"
jenkins-bot [Tue, 26 Mar 2019 22:31:58 +0000 (22:31 +0000)]
Merge "Allow skins full control of Contributions/History styles"

5 years agoobjectcache: minor refactoring to BagOStuff
Aaron Schulz [Tue, 26 Mar 2019 22:14:42 +0000 (15:14 -0700)]
objectcache: minor refactoring to BagOStuff

Split up expiry functions and moved add() near other primitive writes.

Change-Id: I97bb91e648b797b1ab5a6934d212689b1e67f7c6

5 years agoMerge "objectcache: improve comments for ATTR_/QOS_ constants"
jenkins-bot [Tue, 26 Mar 2019 22:14:15 +0000 (22:14 +0000)]
Merge "objectcache: improve comments for ATTR_/QOS_ constants"

5 years agoMerge "rdbms: treat cloned temporary tables as "effective write" targets"
jenkins-bot [Tue, 26 Mar 2019 22:02:10 +0000 (22:02 +0000)]
Merge "rdbms: treat cloned temporary tables as "effective write" targets"

5 years agoMerge "Prune old edit stash entries from users as they create more"
jenkins-bot [Tue, 26 Mar 2019 21:59:55 +0000 (21:59 +0000)]
Merge "Prune old edit stash entries from users as they create more"

5 years agomediawiki.special.changeslist is a skinStyle module
jdlrobson [Tue, 26 Mar 2019 18:51:39 +0000 (11:51 -0700)]
mediawiki.special.changeslist is a skinStyle module

Allow skins full control over styling changelists
Several styles relating to unicode-bidi and client-js are
made mandatory.

The mw-changeslist-legend rules I will review separately with
Volker to determine whether they should be mandatory too, once
I'm more informed about how Minerva might use them.

Change-Id: I92c5fdc33b50771bd45e4945185c27395c608eb4

5 years agoFix api error for apierror-upload-missingresult
Umherirrender [Tue, 26 Mar 2019 21:44:05 +0000 (22:44 +0100)]
Fix api error for apierror-upload-missingresult

The message key was wrong

Change-Id: I2cc4f9e1523bef6164eb9ff4b79655b007665fae

5 years agoAllow skins full control of Contributions/History styles
jdlrobson [Mon, 25 Mar 2019 23:28:32 +0000 (16:28 -0700)]
Allow skins full control of Contributions/History styles

This switches 2 special page modules to be defined via skinStyles.
This allows skins to skin these pages as they wish rather than
relying on the defaults.

This is very important for Minerva, which provides a distinctly
different look and feel.

Bug: T205581
Change-Id: I429ab712099ede0fb3cbd64ca3fd1840a1615652

5 years agordbms: add ATTR_SCHEMAS_AS_TABLE_GROUPS attribute
Aaron Schulz [Tue, 26 Mar 2019 06:54:39 +0000 (23:54 -0700)]
rdbms: add ATTR_SCHEMAS_AS_TABLE_GROUPS attribute

Change-Id: Ia12a00c30039acd6c59726f35d03cc76aa957902

5 years agordbms: treat cloned temporary tables as "effective write" targets
Aaron Schulz [Wed, 20 Mar 2019 04:04:35 +0000 (21:04 -0700)]
rdbms: treat cloned temporary tables as "effective write" targets

Make IDatabase::lastDoneWrites() reflect creation and changes to
the cloned temporary unit test tables but not other temporary tables.
This effects the LB method hasOrMadeRecentMasterChanges(). Other tables
are assumpted to really just be there for temporary calculations rather
acting as test-only ephemeral versions of permanent tables. Treating
writes to the "fake permanent" temp tables more like real permanent
tables means that the tests better align with production.

At the moment, temporary tables still have to use DB_MASTER, given
the assertIsWritableMaster() check in query(). This restriction
can be lifted at some point, when RDBMs compatibility is robust.

Bug: T218388
Change-Id: I4c0d629da254ac2aaf31aae35bd2efc7bc064ac6

5 years agordbms: codify DatabaseDomain table "_" prefix convention
Aaron Schulz [Mon, 25 Mar 2019 14:51:45 +0000 (07:51 -0700)]
rdbms: codify DatabaseDomain table "_" prefix convention

Alos simplify isCompatible() slightly and make the string
case in convertToString() explicit.

Change-Id: Ifb61bb5fb012491520525bbebfbde2269fa55b52

5 years agoMerge "Make MWLBFactory sanity check that postgres is not used with a table prefix"
jenkins-bot [Tue, 26 Mar 2019 20:18:42 +0000 (20:18 +0000)]
Merge "Make MWLBFactory sanity check that postgres is not used with a table prefix"

5 years agoMerge "Avoid using calls to freeResults() and allow object go out of scope"
jenkins-bot [Tue, 26 Mar 2019 19:20:10 +0000 (19:20 +0000)]
Merge "Avoid using calls to freeResults() and allow object go out of scope"

5 years agoMerge "rdbms: use a direct "USE" query for doSelectDomain() for mysql"
jenkins-bot [Tue, 26 Mar 2019 19:19:51 +0000 (19:19 +0000)]
Merge "rdbms: use a direct "USE" query for doSelectDomain() for mysql"

5 years agoMerge "rdbms: remove $wgDBprefix reference from DatabaseOracle"
jenkins-bot [Tue, 26 Mar 2019 19:19:38 +0000 (19:19 +0000)]
Merge "rdbms: remove $wgDBprefix reference from DatabaseOracle"

5 years agoobjectcache: improve comments for ATTR_/QOS_ constants
Aaron Schulz [Tue, 26 Mar 2019 18:16:38 +0000 (11:16 -0700)]
objectcache: improve comments for ATTR_/QOS_ constants

Change-Id: Iaa5361a09e1dc559fee8eb034c9c05bc999c776e

5 years agoMerge "rdbms: Use correct value for 'sslmode' in DatabasePostgres"
jenkins-bot [Tue, 26 Mar 2019 18:51:26 +0000 (18:51 +0000)]
Merge "rdbms: Use correct value for 'sslmode' in DatabasePostgres"

5 years agordbms: use a direct "USE" query for doSelectDomain() for mysql
Aaron Schulz [Fri, 22 Mar 2019 01:12:44 +0000 (18:12 -0700)]
rdbms: use a direct "USE" query for doSelectDomain() for mysql

This should give better error messages on failure.

Bug: T212284
Change-Id: I55260c6e3db1770f01e3d6a6a363b917a57265be

5 years agordbms: remove $wgDBprefix reference from DatabaseOracle
Aaron Schulz [Tue, 26 Mar 2019 18:44:17 +0000 (11:44 -0700)]
rdbms: remove $wgDBprefix reference from DatabaseOracle

Rely on MWLBFactory as other DB classes do

Change-Id: I33d535c659626dd42c9cb8d20c1a0fc90a885c8c

5 years agoMerge "rdbms: Fix incomplete doc for DatabaseMssql::tableName()"
jenkins-bot [Tue, 26 Mar 2019 18:41:05 +0000 (18:41 +0000)]
Merge "rdbms: Fix incomplete doc for DatabaseMssql::tableName()"

5 years agoPrune old edit stash entries from users as they create more
Aaron Schulz [Tue, 26 Mar 2019 05:26:13 +0000 (22:26 -0700)]
Prune old edit stash entries from users as they create more

This should reduce pressure on certain medium-large sized memcached
slabs. Pre-1.5 memcached versions have a harder time pruning expired
entries in time to avoid evictions, so it will be most useful that
scenario.

Bug: T203786
Change-Id: Ic357dbfcd9abd525b02e8d631d1344db3745d24c

5 years agordbms: Use correct value for 'sslmode' in DatabasePostgres
Mark A. Hershberger [Thu, 9 Aug 2018 20:18:34 +0000 (16:18 -0400)]
rdbms: Use correct value for 'sslmode' in DatabasePostgres

Fix Postgres support by using â€˜sslmode=require' instead of â€˜sslmode=1'.

See https://www.postgresql.org/docs/current/static/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS

Change-Id: I424b0e3e144bbe9f0a2bde9a3b4a674dde10c729

5 years agordbms: Fix incomplete doc for DatabaseMssql::tableName()
Thiemo Kreuz [Tue, 26 Mar 2019 11:01:31 +0000 (12:01 +0100)]
rdbms: Fix incomplete doc for DatabaseMssql::tableName()

I'm also replacing a loop with an array_pad() call. When the count given
to array_pad() is negative, the padding is done to the left instead of
the right. This is exactly what the loop did before.

I'm also adding the missing limit to the explode() call.

Change-Id: I6737fcf6b60b822269b855f1405607be7fc23754

5 years agoMerge "Supress ChangeTags::addTags() exceptions for ManualLogEntry objects"
jenkins-bot [Tue, 26 Mar 2019 17:38:03 +0000 (17:38 +0000)]
Merge "Supress ChangeTags::addTags() exceptions for ManualLogEntry objects"

5 years agoMerge "OOUI forms: Remove infusable = false"
jenkins-bot [Tue, 26 Mar 2019 17:30:46 +0000 (17:30 +0000)]
Merge "OOUI forms: Remove infusable = false"

5 years agoMerge "HISTORY: Add MediaWiki 1.32.1 release change notes"
jenkins-bot [Tue, 26 Mar 2019 17:30:33 +0000 (17:30 +0000)]
Merge "HISTORY: Add MediaWiki 1.32.1 release change notes"

5 years agoHISTORY: Add MediaWiki 1.32.1 release change notes
Nikita Rana [Mon, 25 Mar 2019 19:19:08 +0000 (00:49 +0530)]
HISTORY: Add MediaWiki 1.32.1 release change notes

Add MediaWiki 1.32 release change notes, sourced from https://phabricator.wikimedia.org/source/mediawiki/browse/REL1_32/RELEASE-NOTES-1.32

Bug: T213714
Change-Id: I307ee0373021639835a6f3a3c4d3d6b7c6c3dbc8

5 years agoSupress ChangeTags::addTags() exceptions for ManualLogEntry objects
Piotr Miazga [Tue, 26 Mar 2019 15:17:05 +0000 (16:17 +0100)]
Supress ChangeTags::addTags() exceptions for ManualLogEntry objects

Looks like some parts of the code try to publish log event when
$newId is 0 or null. This cause ChangeTags::addTags to throw
an exception as at least one of rc_id, rev_id, or log_id must be
specified.

When ChangeTags::addTags() fails (because both $rev_id and $log_id
are not present), just ignore the exception and continue with
the execution.

Also, if one of those is set to 0, we need to pass null instead
(do not insert 0's in to DB as both log_id and rev_id are foreign
keys).

Additionally log all places where ManualLogEntry::publish() is
called with incorrect arguments so later we can fix all occurencie
and remove that try{}catch around ChangeTags::addTags() call.

Bug: T218940
Change-Id: I495f79f2b7a7ef1503d229a689babdc12deb353c

5 years agoAdd namespace translation for N'Ko
Amir Aharoni [Tue, 26 Mar 2019 16:17:06 +0000 (09:17 -0700)]
Add namespace translation for N'Ko

Contributed by User:Youssoufkadialy

Change-Id: I4e93f33dd25a62c1fdc1f1dd54ba0eb5cbbdda12

5 years agoMerge "HISTORY: Add MediaWiki 1.13 post-release change notes"
jenkins-bot [Tue, 26 Mar 2019 15:39:47 +0000 (15:39 +0000)]
Merge "HISTORY: Add MediaWiki 1.13 post-release change notes"

5 years agoMerge "HISTORY: Add MediaWiki 1.9 post-release change notes"
jenkins-bot [Tue, 26 Mar 2019 15:35:17 +0000 (15:35 +0000)]
Merge "HISTORY: Add MediaWiki 1.9 post-release change notes"

5 years agoMerge "HISTORY: Add MediaWiki 1.10 post-release change notes"
jenkins-bot [Tue, 26 Mar 2019 15:34:54 +0000 (15:34 +0000)]
Merge "HISTORY: Add MediaWiki 1.10 post-release change notes"

5 years agoMerge "Fix invalid HTMLForm::setValidationErrorMessage doc"
jenkins-bot [Tue, 26 Mar 2019 15:31:49 +0000 (15:31 +0000)]
Merge "Fix invalid HTMLForm::setValidationErrorMessage doc"

5 years agoHISTORY: Add MediaWiki 1.13 post-release change notes
Nikita Rana [Tue, 26 Mar 2019 11:28:18 +0000 (16:58 +0530)]
HISTORY: Add MediaWiki 1.13 post-release change notes

Add MediaWiki 1.13 post-release change notes, sourced from
https://www.mediawiki.org/wiki/Release_notes/1.13

Bug: T213714
Change-Id: Id1030ccb01e15538ba563cabbc283a90cf1e6992