lhc/web/wiklou.git
6 years agoIntroduce ResourceLoaderLessVarFileModule
jdlrobson [Fri, 20 Apr 2018 18:42:41 +0000 (11:42 -0700)]
Introduce ResourceLoaderLessVarFileModule

This ResourceLoader module provides a way to ship
messages to CSS variables.

We will need this going forward to deal with flash of
unstyled content in various JavaScript based UIs that
are subject to i18n such as table sorting and
collapsible elements.

To avoid overhead of hitting the database to fetch and
transform localisation messages we make use of the MessageBlobStore
making use of `messages` definition already inside
ResourceLoaderFileModule. Given this resource is only intended
for render blocking styles without JavaScript this should be okay
(although if requested in JavaScript will also ship associated
messages)

Bug: T42812
Change-Id: I2bf12cdc848478889acbe9a7a970e46f8aefa287

6 years agoMerge "resourceloader: Consider having dependencies as non-empty in WikiModule::isKno...
jenkins-bot [Tue, 24 Apr 2018 21:11:48 +0000 (21:11 +0000)]
Merge "resourceloader: Consider having dependencies as non-empty in WikiModule::isKnownEmpty"

6 years agoresourceloader: Consider having dependencies as non-empty in WikiModule::isKnownEmpty
jdlrobson [Tue, 24 Apr 2018 00:11:27 +0000 (17:11 -0700)]
resourceloader: Consider having dependencies as non-empty in WikiModule::isKnownEmpty

If a module itself is empty, it must consider any dependencies
it has before bailing out as empty.

Bug: T191596
Change-Id: I2b45b948a6f78060e53513d3b4b77f48d7bf4a6b

6 years agoMerge "SiteConfiguration: Add test to confirm null as valid override"
jenkins-bot [Tue, 24 Apr 2018 19:57:11 +0000 (19:57 +0000)]
Merge "SiteConfiguration: Add test to confirm null as valid override"

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Tue, 24 Apr 2018 19:55:30 +0000 (19:55 +0000)]
Merge "Localisation updates from https://translatewiki.net."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 24 Apr 2018 19:55:15 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I08e57f36ecea92e65b4af4f03b22b8790b7e3f8f

6 years agoMerge "SiteConfiguration: Clean up test cases"
jenkins-bot [Tue, 24 Apr 2018 19:54:25 +0000 (19:54 +0000)]
Merge "SiteConfiguration: Clean up test cases"

6 years agoMerge "Create Expiry Widget with Date Time Selector"
jenkins-bot [Tue, 24 Apr 2018 18:22:58 +0000 (18:22 +0000)]
Merge "Create Expiry Widget with Date Time Selector"

6 years agoSiteConfiguration: Add test to confirm null as valid override
Timo Tijhof [Tue, 24 Apr 2018 17:30:24 +0000 (18:30 +0100)]
SiteConfiguration: Add test to confirm null as valid override

E.g. not being misinterpreted as unset or something like that.

Change-Id: I253f17a828ae47886d1c4f2ca5097a546c38d119

6 years agoSiteConfiguration: Clean up test cases
Timo Tijhof [Tue, 24 Apr 2018 17:28:43 +0000 (18:28 +0100)]
SiteConfiguration: Clean up test cases

Make a clear distinction between names of configuration keys,
and "magic" keys that relate to SiteConfiguration class options.

Previously words like 'tag', 'wiki', and 'params' were over-used
in the test fixture making it very hard to see what is what.

Change all the configuration keys to camelcase so that 'WithParams'
and 'params' are different strings.

Change-Id: I279e57e30fb0a858ffd1f883f0601e96354ddead

6 years agoMerge "Add "developer tools" preferences section"
jenkins-bot [Tue, 24 Apr 2018 16:05:03 +0000 (16:05 +0000)]
Merge "Add "developer tools" preferences section"

6 years agoMerge "Remove onhashchange fallback code"
jenkins-bot [Tue, 24 Apr 2018 15:55:16 +0000 (15:55 +0000)]
Merge "Remove onhashchange fallback code"

6 years agomw.special.apisandbox: Offer to fill in token when not given
Bartosz Dziewoński [Fri, 3 Mar 2017 20:32:49 +0000 (21:32 +0100)]
mw.special.apisandbox: Offer to fill in token when not given

Change-Id: I53c414f0a80ce76907d3293971a47e87aa67fb06

6 years agoRemove onhashchange fallback code
Ed Sanders [Tue, 24 Apr 2018 12:40:34 +0000 (13:40 +0100)]
Remove onhashchange fallback code

We no longer support any browsers that don't have
the hashchange event.

Change-Id: I5e6bfd1d5c634df21b6b3d06dcf007112cdf15fa

6 years agoMerge "Fix width of OOUI TextInputWidget with .mw-editfont-... classes"
jenkins-bot [Tue, 24 Apr 2018 11:38:28 +0000 (11:38 +0000)]
Merge "Fix width of OOUI TextInputWidget with .mw-editfont-... classes"

6 years agoAdd "developer tools" preferences section
Gilles Dubuc [Tue, 24 Apr 2018 08:10:57 +0000 (10:10 +0200)]
Add "developer tools" preferences section

Under editing. Will be used for the ParserMigration
and PerformanceInspector extensions

Bug: T129322
Change-Id: Id98d8d5245f207bd817854e43794800e89fe0f50

6 years agoMerge "Improve docs for Enotif-related settings"
jenkins-bot [Mon, 23 Apr 2018 23:13:56 +0000 (23:13 +0000)]
Merge "Improve docs for Enotif-related settings"

6 years agoMerge "rdbms: remove deprecated getLaggedSlaveMode() method alias"
jenkins-bot [Mon, 23 Apr 2018 22:56:24 +0000 (22:56 +0000)]
Merge "rdbms: remove deprecated getLaggedSlaveMode() method alias"

6 years agoImprove docs for Enotif-related settings
Timo Tijhof [Fri, 20 Apr 2018 23:14:11 +0000 (00:14 +0100)]
Improve docs for Enotif-related settings

Also fix documentation that was claiming wgEmergencyContact as
the default enotif sender, which is wrong. EmailNotification uses
$wgPasswordSender instead.

Change-Id: I5b060acac7bdfdbca9ac31e3473286225d1caa6f

6 years agoMerge "Drop archive.ar_text and ar_flags"
jenkins-bot [Mon, 23 Apr 2018 20:15:26 +0000 (20:15 +0000)]
Merge "Drop archive.ar_text and ar_flags"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Apr 2018 20:13:00 +0000 (22:13 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iac53ea2bc5fb098aa3dddae111e7a52532cad4f3

6 years agoMerge "Make populateRevisionLength fix rows with ar_len = 0."
jenkins-bot [Mon, 23 Apr 2018 20:06:04 +0000 (20:06 +0000)]
Merge "Make populateRevisionLength fix rows with ar_len = 0."

6 years agoMerge "rdbms: make select() warn when FOR UPDATE is used with aggregation"
jenkins-bot [Mon, 23 Apr 2018 20:01:13 +0000 (20:01 +0000)]
Merge "rdbms: make select() warn when FOR UPDATE is used with aggregation"

6 years agoMerge "Avoid locking aggregated SELECT in Category::refresh"
jenkins-bot [Mon, 23 Apr 2018 20:00:14 +0000 (20:00 +0000)]
Merge "Avoid locking aggregated SELECT in Category::refresh"

6 years agordbms: remove deprecated getLaggedSlaveMode() method alias
Aaron Schulz [Mon, 23 Apr 2018 06:05:41 +0000 (23:05 -0700)]
rdbms: remove deprecated getLaggedSlaveMode() method alias

Change-Id: Iecdd39270d27ee1a2f9e1d714ec02c710fa241ef

6 years agoMerge "Use CONN_TRX_AUTO in WikiPage speculative revision ID callback"
jenkins-bot [Mon, 23 Apr 2018 19:10:04 +0000 (19:10 +0000)]
Merge "Use CONN_TRX_AUTO in WikiPage speculative revision ID callback"

6 years agoMake populateRevisionLength fix rows with ar_len = 0.
daniel [Mon, 23 Apr 2018 09:07:24 +0000 (11:07 +0200)]
Make populateRevisionLength fix rows with ar_len = 0.

Due to T192189, some rows in the archive table may have ar_len set to 0
erronously. This can be detected by checking if they have ar_sha1 set to
"phoiac9h4m842xq45sp7s6u21eteeq1", which is the hash of the empty string.

This patch makes populateRevisionLength.php detect and fix such rows.

Bug: T192189
Change-Id: I9b6cd62f4b8c5bf93cd305b56af4352a527e19c9

6 years agoRELEASE-NOTES: Fix typo in CSSMin release note
Timo Tijhof [Mon, 23 Apr 2018 17:35:02 +0000 (18:35 +0100)]
RELEASE-NOTES: Fix typo in CSSMin release note

Follows-up c058bc4af3.

Bug: T189375
Change-Id: I21200dba6649d775d519249ae09cc21660dc864b

6 years agoUse CONN_TRX_AUTO in WikiPage speculative revision ID callback
Aaron Schulz [Sat, 24 Mar 2018 13:49:14 +0000 (06:49 -0700)]
Use CONN_TRX_AUTO in WikiPage speculative revision ID callback

This increases the odds of seeing newer data and not guessing a
wrong revision ID due to getting raced out between stash and save.

Change-Id: Icf0f9b9c4d559f4ddf05a4ca8679e3c4dca5620a

6 years agoMerge "wikibits: Remove redundant stubs for document.write"
jenkins-bot [Mon, 23 Apr 2018 17:20:05 +0000 (17:20 +0000)]
Merge "wikibits: Remove redundant stubs for document.write"

6 years agoMerge "selenium: Abstract test command behind 'npm run'"
jenkins-bot [Mon, 23 Apr 2018 16:53:11 +0000 (16:53 +0000)]
Merge "selenium: Abstract test command behind 'npm run'"

6 years agoMerge "build: Switch QUnit package from deprecated 'qunitjs' to 'qunit'"
jenkins-bot [Mon, 23 Apr 2018 16:53:00 +0000 (16:53 +0000)]
Merge "build: Switch QUnit package from deprecated 'qunitjs' to 'qunit'"

6 years agoMerge "Add release notes for CSSMin bug fix"
jenkins-bot [Mon, 23 Apr 2018 16:47:32 +0000 (16:47 +0000)]
Merge "Add release notes for CSSMin bug fix"

6 years agoMerge "userrights: Add array typehints to SpecialUserrights methods"
jenkins-bot [Mon, 23 Apr 2018 16:18:30 +0000 (16:18 +0000)]
Merge "userrights: Add array typehints to SpecialUserrights methods"

6 years agoAdd release notes for CSSMin bug fix
Timo Tijhof [Mon, 23 Apr 2018 16:18:03 +0000 (17:18 +0100)]
Add release notes for CSSMin bug fix

Follows-up 5333d63cb.

Change-Id: Ib504500308630daa1051c21da8721b3058d8d793

6 years agordbms: make sure cpPosIndex cookie is applied to LBFactory in time
Aaron Schulz [Fri, 20 Apr 2018 20:45:49 +0000 (13:45 -0700)]
rdbms: make sure cpPosIndex cookie is applied to LBFactory in time

Once getMain() was called in setSchemaAliases(), the ChronologyProtector
was initialized and the setRequestInfo() call in Setup.php had no effect.
Only the request values read in LBFactory::__construct() were used, which
reflect $_GET but not cookie values.

Use the $wgDBtype variable to avoid this and add an exception when that
sort of thing happens.

Further defer instantiation of ChronologyProtector so that methods like
ILBFactory::getMainLB() do not trigger construction.

Bug: T192611
Change-Id: I735d3ade5cd12a5d609f4dae19ac88fec4b18b51

6 years agobuild: Switch QUnit package from deprecated 'qunitjs' to 'qunit'
Timo Tijhof [Mon, 23 Apr 2018 15:32:50 +0000 (16:32 +0100)]
build: Switch QUnit package from deprecated 'qunitjs' to 'qunit'

This should fix the deprecation warning from npm in CI logs.

Change-Id: I5d02dd8d6a86123d7935db51b8d0b5d88218869f

6 years agoselenium: Abstract test command behind 'npm run'
Timo Tijhof [Mon, 23 Apr 2018 14:56:54 +0000 (15:56 +0100)]
selenium: Abstract test command behind 'npm run'

This makes it possible to use in Quibble. Right now, Quibble
cannot use 'npm run selenium' yet because it sets up its own
chromedriver, which would conflict with selenium.sh.

But, in preparation for Id95f18927b5, we can at least abstract
the test command so that it can easily be changed without having
to update Quibble and without having to worry about it being the
same in all MediaWiki branches.

Bug: T179190
Change-Id: I622ec3bf36746502cae891cc6bec23982b21f876

6 years agoMerge "jquery.tablesorter: References ignored in sortkey."
jenkins-bot [Mon, 23 Apr 2018 14:05:11 +0000 (14:05 +0000)]
Merge "jquery.tablesorter: References ignored in sortkey."

6 years agojquery.tablesorter: References ignored in sortkey.
madd [Sun, 22 Apr 2018 13:52:03 +0000 (15:52 +0200)]
jquery.tablesorter: References ignored in sortkey.

Text in elements with class='reference' excluded for sorting.

Bug: T29745
Change-Id: If3969c00cbb7a74362fe85f4cad361da488526d5

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 22 Apr 2018 19:52:41 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic59e840c7e00449454f0d402f57e26003e169417

6 years agoFix typo: bytePointLimit -> byteLimit
Ed Sanders [Sun, 22 Apr 2018 11:48:59 +0000 (12:48 +0100)]
Fix typo: bytePointLimit -> byteLimit

Change-Id: Ifafc4bdd6663e1ccfa6be938e5fc72fd1442a9a5

6 years agoRemove cssclass in the favor of 'type' => 'user'
Jayprakash12345 [Sat, 21 Apr 2018 23:20:10 +0000 (04:50 +0530)]
Remove cssclass in the favor of 'type' => 'user'

Bug: T192694
Change-Id: If385c16c9099475d50dcb775484f710450360ed2

6 years agoMerge "Remove cssclass in the favor of 'type' => 'user'"
jenkins-bot [Sat, 21 Apr 2018 20:54:25 +0000 (20:54 +0000)]
Merge "Remove cssclass in the favor of 'type' => 'user'"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 21 Apr 2018 19:54:38 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If368d4b40a1bde11c66da9bf24be7ad60452e665

6 years agoMerge "Add Gorontalo language file"
jenkins-bot [Sat, 21 Apr 2018 19:35:41 +0000 (19:35 +0000)]
Merge "Add Gorontalo language file"

6 years agoAdd Gorontalo language file
Martin Urbanec [Fri, 16 Mar 2018 21:11:13 +0000 (21:11 +0000)]
Add Gorontalo language file

Bug: T189127
Change-Id: Ib15fcc1b1b63674afdc0642e7139e11972898c95

6 years agoFix width of OOUI TextInputWidget with .mw-editfont-... classes
Ed Sanders [Thu, 1 Feb 2018 12:25:00 +0000 (13:25 +0100)]
Fix width of OOUI TextInputWidget with .mw-editfont-... classes

Bug: T192373
Change-Id: I6a6757874a3502b42cff0a3edb55115a305ad609

6 years agoMerge "MessagesEs.php: add non-camelcase names to some special page names"
jenkins-bot [Sat, 21 Apr 2018 12:52:15 +0000 (12:52 +0000)]
Merge "MessagesEs.php: add non-camelcase names to some special page names"

6 years agowikibits: Remove redundant stubs for document.write
Timo Tijhof [Sat, 21 Apr 2018 01:54:33 +0000 (02:54 +0100)]
wikibits: Remove redundant stubs for document.write

The browser already warns for these, and our stubs were actually
making it somewhat worse by appending to a weird place in the page
instead of what the browser does (which is to either allow it
properly, or ignore).

Bug: T192623
Change-Id: I1924b252a8b986c4f1ad65f96149b8c06c1fad9b

6 years agoMerge "HTMLForm: Remove usage of HTMLForm::setSubmitProgressive"
jenkins-bot [Sat, 21 Apr 2018 01:42:29 +0000 (01:42 +0000)]
Merge "HTMLForm: Remove usage of HTMLForm::setSubmitProgressive"

6 years agoHTMLForm: Remove usage of HTMLForm::setSubmitProgressive
Jayprakash12345 [Fri, 6 Apr 2018 00:33:26 +0000 (06:03 +0530)]
HTMLForm: Remove usage of HTMLForm::setSubmitProgressive

`[ 'primary', 'progressive' ]` is already set in `$mSubmitFlags`.

Bug: T191586
Change-Id: Id20a3bc81a47c6c2979a4d2881cecc760956394f

6 years agoMerge "Hard-deprecate wfUsePHP()"
jenkins-bot [Sat, 21 Apr 2018 00:25:46 +0000 (00:25 +0000)]
Merge "Hard-deprecate wfUsePHP()"

6 years agoRemove cssclass in the favor of 'type' => 'user'
Jayprakash12345 [Fri, 20 Apr 2018 23:41:54 +0000 (05:11 +0530)]
Remove cssclass in the favor of 'type' => 'user'

Bug: T192694
Change-Id: I3be9fbcd990346df7c918d5ddf71f9e0a73a52df

6 years agoMerge "Hard-deprecate wfCountDown()"
jenkins-bot [Fri, 20 Apr 2018 23:41:06 +0000 (23:41 +0000)]
Merge "Hard-deprecate wfCountDown()"

6 years agoMerge "resourceloader: Improve titleInfo docs and simplify title key"
jenkins-bot [Fri, 20 Apr 2018 22:43:19 +0000 (22:43 +0000)]
Merge "resourceloader: Improve titleInfo docs and simplify title key"

6 years agoMessagesEs.php: add non-camelcase names to some special page names
MarcoAurelio [Fri, 20 Apr 2018 07:56:42 +0000 (07:56 +0000)]
MessagesEs.php: add non-camelcase names to some special page names

Change-Id: Ia36b48ff40a390434864f327dcb4bfa49cd44cd8

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 20 Apr 2018 19:58:16 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b5f321f6908a18a961762bbbd7d6e515ad4067e

6 years agoMerge "OutputPage: Factor out CdnCacheEpoch logic and cover with tests"
jenkins-bot [Fri, 20 Apr 2018 19:44:00 +0000 (19:44 +0000)]
Merge "OutputPage: Factor out CdnCacheEpoch logic and cover with tests"

6 years agoMerge "CSSMin: Fix breaking of quoted urls with outer spacing"
jenkins-bot [Fri, 20 Apr 2018 19:24:15 +0000 (19:24 +0000)]
Merge "CSSMin: Fix breaking of quoted urls with outer spacing"

6 years agoMerge "ParserTestRunner: Fix some documentation types"
jenkins-bot [Fri, 20 Apr 2018 19:10:37 +0000 (19:10 +0000)]
Merge "ParserTestRunner: Fix some documentation types"

6 years agoParserTestRunner: Fix some documentation types
Kunal Mehta [Sun, 15 Apr 2018 08:07:06 +0000 (01:07 -0700)]
ParserTestRunner: Fix some documentation types

Change-Id: I7d0375815dc6ac91cc3f39ea7910cdf1dff49666

6 years agouserrights: Add array typehints to SpecialUserrights methods
Timo Tijhof [Thu, 19 Apr 2018 17:57:18 +0000 (18:57 +0100)]
userrights: Add array typehints to SpecialUserrights methods

Follows-up e3ce482e1b4da37.

* Add them to parameters of doSaveUserGroups(), which were the
  entrypoint to the error fixed by e3ce482e1b4da37.

* Add them to parameters of addLogEntry(), which is where the
  actual count() error happened.

Bug: T182377
Change-Id: I647a1ebf6dc0e80952efe2a3c1192fd8ac5dc1b7

6 years agoMerge "Special:ProtectedTitles: Use HTMLForm"
jenkins-bot [Fri, 20 Apr 2018 17:34:52 +0000 (17:34 +0000)]
Merge "Special:ProtectedTitles: Use HTMLForm"

6 years agoRemove EDIT_TOKEN_SUFFIX constant
Florian Schmidt [Fri, 30 Mar 2018 21:25:18 +0000 (23:25 +0200)]
Remove EDIT_TOKEN_SUFFIX constant

It isn't used anymore anywhere, according to a code search on github.

Depends-On: I56291c6a5b6c2bb359c6633748a68f4964d71923
Change-Id: I4b3f7b7bdf9bd0dbc8225bbcfb2da23016ae6bb3

6 years agoOutputPage: Factor out CdnCacheEpoch logic and cover with tests
Timo Tijhof [Fri, 20 Apr 2018 15:00:32 +0000 (16:00 +0100)]
OutputPage: Factor out CdnCacheEpoch logic and cover with tests

Bug: T178629
Change-Id: Ife7dd79677c2b5353317e06ac7ed521edd6193cc

6 years agoMerge "Special:ProtectedPages: Convert to OOUI"
jenkins-bot [Fri, 20 Apr 2018 13:40:44 +0000 (13:40 +0000)]
Merge "Special:ProtectedPages: Convert to OOUI"

6 years agoSpecial:ProtectedTitles: Use HTMLForm
Prateek Saxena [Mon, 1 Jan 2018 05:43:27 +0000 (11:13 +0530)]
Special:ProtectedTitles: Use HTMLForm

Bug: T117723
Change-Id: I874a8614920166d68671f757497fb27554a397ac

6 years agordbms: make select() warn when FOR UPDATE is used with aggregation
Aaron Schulz [Wed, 11 Apr 2018 22:56:44 +0000 (15:56 -0700)]
rdbms: make select() warn when FOR UPDATE is used with aggregation

Using FOR UPDATE or LOCK IN SHARE MODE with aggregation leads to
query errors with PostgreSQL.

Bug: T160910
Change-Id: Iaed964e7e59468365cbc62cb4bfd3ad44b898452

6 years agoCreate Expiry Widget with Date Time Selector
David Barratt [Thu, 22 Mar 2018 05:15:16 +0000 (01:15 -0400)]
Create Expiry Widget with Date Time Selector

Special:Block needs a date time selector for easier selection of expiry. To
accommodate this cleanly, a new Expiry Widget is created that handles this
logic.

Bug: T132220
Change-Id: I2853a2ca0ae6ccead3978f4bb50a77c2baa3a150

6 years agoresourceloader: Disable ChronologyProtector on load.php (again)
Timo Tijhof [Fri, 20 Apr 2018 00:15:29 +0000 (01:15 +0100)]
resourceloader: Disable ChronologyProtector on load.php (again)

This was already disabled in 2016 with 98c6743413118f by calling
setRequestInfo() to override the default 'ChronologyProtection' value
from Setup.php.

This stopped working since 4ccb228bde9294d96d which made
getDBLoadBalancerFactory (in ServiceWiring) obtains a LoadBalancer
from MWLBFactory::setSchemaAliases, and requestInfo is not
re-evaluated after that.

Bug: T192611
Change-Id: I68748e8f15bcd7bfa8d7921964788e2798682e05

6 years agoMerge "Don't pass USE INDEX to a $dbType parameter"
jenkins-bot [Thu, 19 Apr 2018 22:20:50 +0000 (22:20 +0000)]
Merge "Don't pass USE INDEX to a $dbType parameter"

6 years agoMerge "Avoid triggering Category::refreshCounts() on HTTP GET requests"
jenkins-bot [Thu, 19 Apr 2018 21:51:10 +0000 (21:51 +0000)]
Merge "Avoid triggering Category::refreshCounts() on HTTP GET requests"

6 years agoMerge "Make getScopedLockAndFlush() in Category::refreshCounts non-blocking"
jenkins-bot [Thu, 19 Apr 2018 21:50:23 +0000 (21:50 +0000)]
Merge "Make getScopedLockAndFlush() in Category::refreshCounts non-blocking"

6 years agoMerge "rdbms: correct atomic section examples in comments"
jenkins-bot [Thu, 19 Apr 2018 20:19:45 +0000 (20:19 +0000)]
Merge "rdbms: correct atomic section examples in comments"

6 years agoMerge "rdbms: make cancelAtomic() handle callbacks and work with DBO_TRX"
jenkins-bot [Thu, 19 Apr 2018 20:14:21 +0000 (20:14 +0000)]
Merge "rdbms: make cancelAtomic() handle callbacks and work with DBO_TRX"

6 years agoMerge "Add $wgJpegQuality to control jpg thumb quality"
jenkins-bot [Thu, 19 Apr 2018 20:08:16 +0000 (20:08 +0000)]
Merge "Add $wgJpegQuality to control jpg thumb quality"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 19 Apr 2018 19:54:46 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I28320e040be835414599ae6cc55d29312d27a88a

6 years agordbms: make cancelAtomic() handle callbacks and work with DBO_TRX
Aaron Schulz [Sat, 24 Mar 2018 07:02:24 +0000 (00:02 -0700)]
rdbms: make cancelAtomic() handle callbacks and work with DBO_TRX

Make transaction callbacks aware of cancelled sections. If the
statements of a section are reverted via cancelAtomic(), then the
dependant callbacks are now cancelled as well. Any callbacks for
onTransactionResolution(), which does not depend on COMMIT, will
see the triggering event as a ROLLBACK, since the unit of work it
was part of was rolled back.

Also fix the handling of topmost atomic sections with DBO_TRX.
These still need their own savepoint to make cancelAtomic() work.

Follow-up to 52aeaa7a5.

Change-Id: If4d455c98155283797678cfb9df31d5317dd91a2

6 years agoDon't pass USE INDEX to a $dbType parameter
Reedy [Thu, 19 Apr 2018 19:01:26 +0000 (19:01 +0000)]
Don't pass USE INDEX to a $dbType parameter

Bug: T192584
Change-Id: Ia2b761bad570532696419b4f23f84bc85ff2c0e8

6 years agoMerge "resourceloader: Support loading group=user modules with addModules()"
jenkins-bot [Thu, 19 Apr 2018 19:01:10 +0000 (19:01 +0000)]
Merge "resourceloader: Support loading group=user modules with addModules()"

6 years agoMerge "Deprecate $wgUseAjax in 1.31"
jenkins-bot [Thu, 19 Apr 2018 18:48:35 +0000 (18:48 +0000)]
Merge "Deprecate $wgUseAjax in 1.31"

6 years agoMake getScopedLockAndFlush() in Category::refreshCounts non-blocking
Aaron Schulz [Thu, 19 Apr 2018 18:43:09 +0000 (11:43 -0700)]
Make getScopedLockAndFlush() in Category::refreshCounts non-blocking

Change-Id: I675ec38e064f57a4e960b3934c472833a945b695

6 years agoMerge "Fix handling of ar_length and ar_sha1 in RevisionArchiveRecord."
jenkins-bot [Thu, 19 Apr 2018 18:41:13 +0000 (18:41 +0000)]
Merge "Fix handling of ar_length and ar_sha1 in RevisionArchiveRecord."

6 years agoMerge "Fix and improve PHPDoc type hints in FileBackend and FileRepo"
jenkins-bot [Thu, 19 Apr 2018 18:41:10 +0000 (18:41 +0000)]
Merge "Fix and improve PHPDoc type hints in FileBackend and FileRepo"

6 years agoDeprecate $wgUseAjax in 1.31
Kunal Mehta [Mon, 16 Apr 2018 23:26:48 +0000 (16:26 -0700)]
Deprecate $wgUseAjax in 1.31

This setting was intended to control the legacy AJAX framework, but some
extensions mistakenly used it to control any AJAX functionality at all.

But keeping this around when we're deprecating things like $wgEnableAPI
makes no sense.

[Retro-back-ported after bf61efd87 had landed in 1.32.]

Change-Id: I7b767478f9fb44236e6514b0e83228d9fb8e856f

6 years agoMerge "Remove language as string for DateFormatter::getInstance"
jenkins-bot [Thu, 19 Apr 2018 18:22:54 +0000 (18:22 +0000)]
Merge "Remove language as string for DateFormatter::getInstance"

6 years agoMerge "API: Fix PHP Warning for "count(): Parameter must be an array""
jenkins-bot [Thu, 19 Apr 2018 18:13:21 +0000 (18:13 +0000)]
Merge "API: Fix PHP Warning for "count(): Parameter must be an array""

6 years agoRemove language as string for DateFormatter::getInstance
Fomafix [Wed, 13 Sep 2017 13:47:01 +0000 (15:47 +0200)]
Remove language as string for DateFormatter::getInstance

Change-Id: I677ab561d67b63f0c86f65fadf9319e41444a22a

6 years agoAPI: Fix PHP Warning for "count(): Parameter must be an array"
Timo Tijhof [Thu, 19 Apr 2018 01:39:23 +0000 (02:39 +0100)]
API: Fix PHP Warning for "count(): Parameter must be an array"

Found by the new ApiUserrights test introduced in 5ab1bee6bcf:
> includes/specials/SpecialUserrights.php:462
> includes/specials/SpecialUserrights.php:405
> includes/api/ApiUserrights.php:116

The $tags parameter of the UserrightsPage::doSaveUserGroups()
method must be an array and is not nullable. Fix the caller
to not pass null, but an empty array.

Bug: T182377
Change-Id: Ic9be6a0bddfac023de765c810c07a64d651c33b4

6 years agoMerge "Introduce SqlBlobStore::makeAddressFromTextId"
jenkins-bot [Thu, 19 Apr 2018 17:53:45 +0000 (17:53 +0000)]
Merge "Introduce SqlBlobStore::makeAddressFromTextId"

6 years agoIntroduce SqlBlobStore::makeAddressFromTextId
daniel [Wed, 11 Apr 2018 17:07:03 +0000 (19:07 +0200)]
Introduce SqlBlobStore::makeAddressFromTextId

This introduces a convenience method for constructing a blob address
from a text ID. It's the inverse of SqlBlobStore::getTextIdFromAddress

Change-Id: I31b3ee5e40185c754fb2c119eb5edc50b903f5dc

6 years agoAdd $wgJpegQuality to control jpg thumb quality
Ryan Schmidt [Thu, 19 Apr 2018 17:00:16 +0000 (10:00 -0700)]
Add $wgJpegQuality to control jpg thumb quality

This new configuration variable defaults to 80, which is the current
quality in use when scaling jpeg thumbnails with ImageMagick. GD used a
quality of 95, which was reduced to 80 as a result of this change.

Bug: T192248
Change-Id: I94cad01cc876ef9083250f5d1989a73cd19617fb

6 years agoMerge "Avoid warnings in ObjectCache::newWANCacheFromParams if "channels" is not...
jenkins-bot [Thu, 19 Apr 2018 10:03:52 +0000 (10:03 +0000)]
Merge "Avoid warnings in ObjectCache::newWANCacheFromParams if "channels" is not set""

6 years agoFix and improve PHPDoc type hints in FileBackend and FileRepo
Thiemo Kreuz [Thu, 19 Apr 2018 08:30:33 +0000 (10:30 +0200)]
Fix and improve PHPDoc type hints in FileBackend and FileRepo

Change-Id: I311b4a6777946b451d70c6fdb2133dbbd73f159f

6 years agoAvoid warnings in ObjectCache::newWANCacheFromParams if "channels" is not set"
Aaron Schulz [Thu, 19 Apr 2018 04:38:47 +0000 (21:38 -0700)]
Avoid warnings in ObjectCache::newWANCacheFromParams if "channels" is not set"

Bug: T192473
Change-Id: I150eef62285e99fc1269a58fee3827e5fbb0537b

6 years agoMerge "Special:PrefixIndex: Convert to HTMLForm"
jenkins-bot [Thu, 19 Apr 2018 05:48:05 +0000 (05:48 +0000)]
Merge "Special:PrefixIndex: Convert to HTMLForm"

6 years agoAvoid triggering Category::refreshCounts() on HTTP GET requests
Aaron Schulz [Thu, 19 Apr 2018 00:10:35 +0000 (17:10 -0700)]
Avoid triggering Category::refreshCounts() on HTTP GET requests

Trigger count refreshes more often during updates instead.

Change-Id: I0f4575e648109befb86a2c8f08b491a132fe56c3

6 years agoMerge "Remove deprecated function wfShellExecDisabled()"
jenkins-bot [Thu, 19 Apr 2018 02:25:03 +0000 (02:25 +0000)]
Merge "Remove deprecated function wfShellExecDisabled()"

6 years agoMerge "Remove deprecated function wfInitShellLocale()"
jenkins-bot [Thu, 19 Apr 2018 02:07:02 +0000 (02:07 +0000)]
Merge "Remove deprecated function wfInitShellLocale()"