Commit graph

87887 commits

Author SHA1 Message Date
James D. Forrester
0c34a22645 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
2019-03-26 16:19:10 -07:00
jenkins-bot
9e9ec488d1 Merge "objectcache: minor refactoring to BagOStuff" 2019-03-26 22:47:55 +00:00
jenkins-bot
da71326933 Merge "Allow skins full control of Contributions/History styles" 2019-03-26 22:31:58 +00:00
Aaron Schulz
d5afd5f909 objectcache: minor refactoring to BagOStuff
Split up expiry functions and moved add() near other primitive writes.

Change-Id: I97bb91e648b797b1ab5a6934d212689b1e67f7c6
2019-03-26 15:14:42 -07:00
jenkins-bot
309a6098b5 Merge "objectcache: improve comments for ATTR_/QOS_ constants" 2019-03-26 22:14:15 +00:00
jenkins-bot
1a62e51a00 Merge "rdbms: treat cloned temporary tables as "effective write" targets" 2019-03-26 22:02:10 +00:00
jenkins-bot
2187613666 Merge "Prune old edit stash entries from users as they create more" 2019-03-26 21:59:55 +00:00
jdlrobson
4fd03c937e 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
2019-03-26 21:41:03 +00:00
Aaron Schulz
108fd8b18c 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
2019-03-26 14:24:42 -07:00
Aaron Schulz
c4e284f113 rdbms: codify DatabaseDomain table "_" prefix convention
Alos simplify isCompatible() slightly and make the string
case in convertToString() explicit.

Change-Id: Ifb61bb5fb012491520525bbebfbde2269fa55b52
2019-03-26 21:04:51 +00:00
jenkins-bot
87ef000cf4 Merge "Make MWLBFactory sanity check that postgres is not used with a table prefix" 2019-03-26 20:18:42 +00:00
jenkins-bot
f3498f403c Merge "Avoid using calls to freeResults() and allow object go out of scope" 2019-03-26 19:20:10 +00:00
jenkins-bot
6386109cfd Merge "rdbms: use a direct "USE" query for doSelectDomain() for mysql" 2019-03-26 19:19:51 +00:00
jenkins-bot
d7b2ea2252 Merge "rdbms: remove $wgDBprefix reference from DatabaseOracle" 2019-03-26 19:19:38 +00:00
Aaron Schulz
fce8f37378 objectcache: improve comments for ATTR_/QOS_ constants
Change-Id: Iaa5361a09e1dc559fee8eb034c9c05bc999c776e
2019-03-26 12:18:22 -07:00
jenkins-bot
4905504fad Merge "rdbms: Use correct value for 'sslmode' in DatabasePostgres" 2019-03-26 18:51:26 +00:00
Aaron Schulz
321640b117 rdbms: use a direct "USE" query for doSelectDomain() for mysql
This should give better error messages on failure.

Bug: T212284
Change-Id: I55260c6e3db1770f01e3d6a6a363b917a57265be
2019-03-26 18:50:28 +00:00
Aaron Schulz
b9a8ba3b06 rdbms: remove $wgDBprefix reference from DatabaseOracle
Rely on MWLBFactory as other DB classes do

Change-Id: I33d535c659626dd42c9cb8d20c1a0fc90a885c8c
2019-03-26 11:44:17 -07:00
jenkins-bot
0a6d507ed0 Merge "rdbms: Fix incomplete doc for DatabaseMssql::tableName()" 2019-03-26 18:41:05 +00:00
Aaron Schulz
c334883309 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
2019-03-26 18:24:56 +00:00
Mark A. Hershberger
2e5d114a99 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
2019-03-26 18:22:07 +00:00
Thiemo Kreuz
376af797d5 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
2019-03-26 18:16:28 +00:00
jenkins-bot
68f6d35d77 Merge "Supress ChangeTags::addTags() exceptions for ManualLogEntry objects" 2019-03-26 17:38:03 +00:00
jenkins-bot
a422c80a23 Merge "OOUI forms: Remove infusable = false" 2019-03-26 17:30:46 +00:00
jenkins-bot
b74192bc79 Merge "HISTORY: Add MediaWiki 1.32.1 release change notes" 2019-03-26 17:30:33 +00:00
Nikita Rana
8c29cb6137 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
2019-03-26 17:13:20 +00:00
Piotr Miazga
2f30defc74 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
2019-03-26 18:00:12 +01:00
jenkins-bot
ba3df41251 Merge "HISTORY: Add MediaWiki 1.13 post-release change notes" 2019-03-26 15:39:47 +00:00
jenkins-bot
40c2f440f8 Merge "HISTORY: Add MediaWiki 1.9 post-release change notes" 2019-03-26 15:35:17 +00:00
jenkins-bot
7af7e9c374 Merge "HISTORY: Add MediaWiki 1.10 post-release change notes" 2019-03-26 15:34:54 +00:00
jenkins-bot
57f118c336 Merge "Fix invalid HTMLForm::setValidationErrorMessage doc" 2019-03-26 15:31:49 +00:00
Nikita Rana
b1f658e836 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
2019-03-26 15:17:35 +00:00
jenkins-bot
f31b45192e Merge "Stop gap to shut up log spam due to T212428." 2019-03-26 14:26:54 +00:00
Lucas Werkmeister
46f79f8eb3 Use finally instead of try-catch-throw
When this exception handler was introduced in change Ifbc1db4b82 (commit
9636d44448), MediaWiki still supported PHP 5.3.2, where finally was not
available. It was added in PHP 5.5, though, which we’ve required for a
while now, so we can simplify this a bit.

Change-Id: I7c967fb713de7495739e18ff6c6058a630129fda
2019-03-26 14:13:51 +01:00
Nikita Rana
9f6d091d59 HISTORY: Add MediaWiki 1.9 post-release change notes
Add MediaWiki 1.9 post-release change notes, sourced from https://www.mediawiki.org/wiki/Release_notes/1.9

Bug:T213714
Change-Id: Idbb105e332afeec1daafaf275da6ae432a698371
2019-03-26 18:24:48 +05:30
Nikita Rana
07e5fc8533 HISTORY: Add MediaWiki 1.10 post-release change notes
Add MediaWiki 1.10 post-release change notes, sourced from https://www.mediawiki.org/wiki/Release_notes/1.10

Bug:T213714
Change-Id: Ib313692a359d249ede38c51e823042a9f6f2b0e6
2019-03-26 17:39:52 +05:30
jenkins-bot
3f54ff5aa7 Merge "OutputPage: Fix typo in escaped" 2019-03-26 08:37:33 +00:00
Kunal Mehta
02e95a7d3f OutputPage: Fix typo in escaped
Spotted by phan.

Change-Id: Iba372755869c602990ea063f3bfde36e19561adb
2019-03-26 01:12:31 -07:00
Translation updater bot
b31c55014e Localisation updates from https://translatewiki.net.
Change-Id: I7090f89a59d6688c2e196d972f016785871cd89a
2019-03-26 08:29:03 +01:00
Aaron Schulz
b88896d6cd Make MWLBFactory sanity check that postgres is not used with a table prefix
Change-Id: If0c75a042c0e85d4f124be2204cdd52fcd602932
2019-03-25 23:09:32 -07:00
jenkins-bot
7dddd2f7e2 Merge "db: Use variable functions/callbacks instead of call_user_func()" 2019-03-26 05:41:52 +00:00
MaxSem
d2734101b4 Merge "block: Use correct function wfGetDB() as defined" 2019-03-26 05:26:38 +00:00
jenkins-bot
ba4644911d Merge "specialpage: Remove unused QueryPage::doFeed()" 2019-03-26 02:34:11 +00:00
jenkins-bot
be096deafc Merge "Update some minor type hints" 2019-03-26 02:24:04 +00:00
daniel
87cd44a9c5 Stop gap to shut up log spam due to T212428.
Bug: T212428
Change-Id: I442bbe9837e73167cfdaabb0451bf974dc5039f3
2019-03-26 01:43:46 +00:00
jdlrobson
063cce733e History page is now using pseudo elements for presentation
|, ( and ) separators are now added via CSS rather than being
made part of the HTML.

Bug: T205581
Change-Id: I272770418ee544b22f8f94312daf07010b7a2273
2019-03-26 00:15:21 +00:00
Timo Tijhof
1fda5dfde9 dictionary: Remove "mobilelanding"
Bug: T187716
Change-Id: Ia3a77245fe0daacc39c42fd83e18bf9e59f7c74b
2019-03-25 23:44:58 +00:00
jenkins-bot
3ebb169139 Merge "Simplify Block::getBy and Block::getByName" 2019-03-25 22:21:05 +00:00
jenkins-bot
bac8c6f63a Merge "Use Block::setTimestamp to set the timestamp on a block" 2019-03-25 21:52:36 +00:00
jenkins-bot
f5e45bb6d7 Merge "GlobalFunctions: Document the usage of wfUrlencode( null )" 2019-03-25 21:07:11 +00:00