lhc/web/wiklou.git
2 years agoAPI: Migrate Title::userCan() calls to PermissionManager
Máté Szabó [Sat, 18 May 2019 16:58:24 +0000 (18:58 +0200)]
API: Migrate Title::userCan() calls to PermissionManager

T208768 introduced the PermissionManager service that can now be used
for page specific permission checks. This change replaces calls to
Title::userCan() with the new service in API classes.

Bug: T220191
Change-Id: I768d07a520ca6473a4eefb88c9f587657bc74357

2 years agoUpdate OOUI to v0.32.0
Volker E [Wed, 29 May 2019 00:57:59 +0000 (17:57 -0700)]
Update OOUI to v0.32.0

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

Bug: T141320
Bug: T163142
Bug: T169484
Bug: T178950
Bug: T180730
Bug: T203859
Bug: T212186
Bug: T213884
Bug: T215644
Bug: T219479
Bug: T220239
Depends-On: Ia65a8053082ac95bf89cb5484aa64668fb780735
Change-Id: I0a48885642b86950180d1fbe4c7a609d323fb87f

2 years agoMerge "Rename Block to MediaWiki\Block\DatabaseBlock"
jenkins-bot [Tue, 28 May 2019 22:43:51 +0000 (22:43 +0000)]
Merge "Rename Block to MediaWiki\Block\DatabaseBlock"

2 years agoMerge "Fix typos in MessageCache"
jenkins-bot [Tue, 28 May 2019 21:46:27 +0000 (21:46 +0000)]
Merge "Fix typos in MessageCache"

2 years agoMerge "media: Fix $ext property name in BmpHandler::getThumbType()"
jenkins-bot [Tue, 28 May 2019 21:39:21 +0000 (21:39 +0000)]
Merge "media: Fix $ext property name in BmpHandler::getThumbType()"

2 years agoMerge "EditPage: Remove unused deprecated method ::submit()"
jenkins-bot [Tue, 28 May 2019 19:27:49 +0000 (19:27 +0000)]
Merge "EditPage: Remove unused deprecated method ::submit()"

2 years agoFix typos in MessageCache
Simon Legner [Tue, 28 May 2019 19:12:45 +0000 (21:12 +0200)]
Fix typos in MessageCache

Change-Id: I5ede5ad5687144535545248940ca6f676f514900

2 years agoMerge "Hard-deprecate Title::moveTo and friends"
jenkins-bot [Tue, 28 May 2019 19:15:01 +0000 (19:15 +0000)]
Merge "Hard-deprecate Title::moveTo and friends"

2 years agoMerge "Finish sentence in MultiUsernameFilter documentation"
jenkins-bot [Tue, 28 May 2019 19:12:49 +0000 (19:12 +0000)]
Merge "Finish sentence in MultiUsernameFilter documentation"

2 years agoEditPage: Remove unused deprecated method ::submit()
Derick Alangi [Tue, 28 May 2019 18:27:02 +0000 (19:27 +0100)]
EditPage: Remove unused deprecated method ::submit()

Was deprecated in 1.29 and EditPage::edit() was made available for
use and replacement of this ::submit().

Usage
=====

https://codesearch.wmflabs.org/search/?q=%5C-%5C%3Esubmit%5C(%5C)&i=nope&files=&repos=

The usage of ->submit() in the search link above are not for EditPage
but for other classes.

Change-Id: Ibd65965c785f84e9bda65cfaa2c491310cda8166

2 years agomediawiki.action.view.dblClickEdit: Move preventDefault()
Fomafix [Tue, 28 May 2019 18:10:48 +0000 (20:10 +0200)]
mediawiki.action.view.dblClickEdit: Move preventDefault()

Move the preventDefault() into the if-condition to trigger the
preventDefault() only together with the click() trigger.

Change-Id: Icde2187248b8b18cd4fd5085a92d840e1f77b00d

2 years agoFinish sentence in MultiUsernameFilter documentation
Thalia [Tue, 28 May 2019 17:50:19 +0000 (18:50 +0100)]
Finish sentence in MultiUsernameFilter documentation

Change-Id: I933f54f505e0680346f73293c98624e0f48e9292

2 years agoMerge "Fix doc for $item of ApiQueryBase::addPageSubItem"
jenkins-bot [Tue, 28 May 2019 17:49:08 +0000 (17:49 +0000)]
Merge "Fix doc for $item of ApiQueryBase::addPageSubItem"

2 years agoHard-deprecate Title::moveTo and friends
Aryeh Gregor [Tue, 16 Apr 2019 13:51:04 +0000 (16:51 +0300)]
Hard-deprecate Title::moveTo and friends

moveSubpages wasn't officially deprecated at all before this release,
but there were no callers in codesearch outside core, so it should be
safe to hard-deprecate.

Bug: T208775
Change-Id: Icea9f1dc45d8bd8c96cc159d631f18c394aab4b7

2 years agoRemove deprecated mw.language.specialCharacters
Fomafix [Sun, 26 May 2019 10:36:26 +0000 (12:36 +0200)]
Remove deprecated mw.language.specialCharacters

mw.language.specialCharacters is deprecated since MediaWiki 1.33.

Change-Id: Idb949a37883e96689cabb734402f3d628851c119

2 years agomedia: Fix $ext property name in BmpHandler::getThumbType()
Thiemo Kreuz [Tue, 28 May 2019 14:13:36 +0000 (16:13 +0200)]
media: Fix $ext property name in BmpHandler::getThumbType()

This is not "text", it's a file extension.

Change-Id: I92e3b70805df974e74e8aaa9e780dcb55ff584b9

2 years agoRename Block to MediaWiki\Block\DatabaseBlock
Thalia [Mon, 13 May 2019 14:18:07 +0000 (15:18 +0100)]
Rename Block to MediaWiki\Block\DatabaseBlock

Keep Block as a deprecated class alias for DatabaseBlock.
Update calls to the Block constructor and Block static
methods from external classes.

Also update documentation in several places that refer to
blocks as Blocks.

Bug: T222737
Change-Id: I6d96b63ca0a84bee19486471e0a16a53a79d768a

2 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 May 2019 06:26:07 +0000 (08:26 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I09b242d9bd17495e8b300432290a0af37ddc5fe1

2 years agoMerge "Make improvements to BlockManagerTest"
jenkins-bot [Tue, 28 May 2019 02:14:43 +0000 (02:14 +0000)]
Merge "Make improvements to BlockManagerTest"

2 years agoMerge "Make config-outdated-sqlite parameter numbers consistent with config-*-old"
jenkins-bot [Tue, 28 May 2019 01:57:45 +0000 (01:57 +0000)]
Merge "Make config-outdated-sqlite parameter numbers consistent with config-*-old"

2 years agoPartial revert I0d0ef26f59721039b2c24ab322fa3bf6ab16fea1
Reedy [Tue, 28 May 2019 01:15:14 +0000 (02:15 +0100)]
Partial revert I0d0ef26f59721039b2c24ab322fa3bf6ab16fea1

The parameter swap in meetsMinimumRequirement wasn't supposed to happen

Change-Id: Icf5b237f336084e7a8d11698cd5ea665305e7f3c

2 years agoMake improvements to BlockManagerTest
Thalia [Mon, 27 May 2019 21:53:23 +0000 (22:53 +0100)]
Make improvements to BlockManagerTest

Remove reliance on real domain and add more test cases.

Change-Id: Icd67fe8c1c9223a92a3775d34d0453328442d89e

2 years agoMerge "Remove deprecated 'jquery.byteLength' module"
jenkins-bot [Mon, 27 May 2019 21:48:20 +0000 (21:48 +0000)]
Merge "Remove deprecated 'jquery.byteLength' module"

2 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 27 May 2019 19:55:47 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0c369e318495e5b68b64315ac311bde601cc08c2

2 years agoRemove deprecated 'jquery.byteLength' module
Timo Tijhof [Mon, 27 May 2019 17:52:54 +0000 (18:52 +0100)]
Remove deprecated 'jquery.byteLength' module

Deprecated since MW 1.31 (f19c9021a466f414). No longer used
anywhere in Wikimedia Gerrit, and no usage found through mwgrep
either.

Bug: T219342
Change-Id: Ia2fecd68ae01c82f323f6c266230ff3fb2bbe287

2 years agoMerge "Revert "change phabricator URL""
jenkins-bot [Mon, 27 May 2019 06:43:07 +0000 (06:43 +0000)]
Merge "Revert "change phabricator URL""

2 years agoRevert "change phabricator URL"
Nikerabbit [Mon, 27 May 2019 06:05:45 +0000 (06:05 +0000)]
Revert "change phabricator URL"

This reverts commit 8b61598b39b3ffe709764bd394d2f113d50aea81.

Reason for revert: phabricator.mediawiki.org doesn't work.

Change-Id: I13909393763f4f154b9119e3916fea52fff371f1

2 years agoMerge "Fix typo of Minimum in variable name"
jenkins-bot [Sun, 26 May 2019 21:35:50 +0000 (21:35 +0000)]
Merge "Fix typo of Minimum in variable name"

2 years agoMerge "Update wikimedia/remex-html from 2.0.1 to 2.0.3"
jenkins-bot [Sun, 26 May 2019 21:33:10 +0000 (21:33 +0000)]
Merge "Update wikimedia/remex-html from 2.0.1 to 2.0.3"

2 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 May 2019 19:57:17 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icf713ed037b9895977bb5c908759ec379fd20fc1

2 years agoMake config-outdated-sqlite parameter numbers consistent with config-*-old
Reedy [Sun, 26 May 2019 19:14:03 +0000 (20:14 +0100)]
Make config-outdated-sqlite parameter numbers consistent with config-*-old

Bug: T224374
Change-Id: Iebfb8299234cc9c66db0ecc4abd0c0a32af63602

2 years agoFix typo of Minimum in variable name
Reedy [Sun, 26 May 2019 19:08:18 +0000 (20:08 +0100)]
Fix typo of Minimum in variable name

Change-Id: I0d0ef26f59721039b2c24ab322fa3bf6ab16fea1

2 years agoUpdate wikimedia/remex-html from 2.0.1 to 2.0.3
Reedy [Sun, 26 May 2019 18:40:06 +0000 (19:40 +0100)]
Update wikimedia/remex-html from 2.0.1 to 2.0.3

https://github.com/wikimedia/remex-html/releases/tag/2.0.3
https://github.com/wikimedia/remex-html/compare/2.0.1...2.0.3

Change-Id: Iaa7212a362b120ca4d9c91f229ad4cabc39cc578
Depends-On: I6b6a45c2cf6dcc1fa03f59bf54d4c759111b3385

2 years agoMerge "Switch empty username logging from warning to debug."
jenkins-bot [Sun, 26 May 2019 13:09:04 +0000 (13:09 +0000)]
Merge "Switch empty username logging from warning to debug."

2 years agoJob: Fix typo in exception message for invalid specification
Máté Szabó [Sun, 26 May 2019 12:22:45 +0000 (14:22 +0200)]
Job: Fix typo in exception message for invalid specification

The Job::factory method throws an InvalidArgumentException if a given
job specification is invalid. The error message for this exception was
worded in correctly. This patch improves the message to avoid confusion.

Change-Id: I6cab739263c1d3530c0650823db022dd5a4b60bc

2 years agoFix doc for $item of ApiQueryBase::addPageSubItem
Umherirrender [Fri, 17 May 2019 14:15:31 +0000 (16:15 +0200)]
Fix doc for $item of ApiQueryBase::addPageSubItem

ApiResult::addValue defines mixed for $value

Change-Id: I31881426ce7cb81f6430cccd4252881a154cd161

2 years agoMerge "Rename $search to $engine to match hook docs for SpecialSearchSetupEngine"
jenkins-bot [Sat, 25 May 2019 21:50:08 +0000 (21:50 +0000)]
Merge "Rename $search to $engine to match hook docs for SpecialSearchSetupEngine"

2 years agoMerge "Introduce TransactionRoundAwareUpdate interface"
jenkins-bot [Sat, 25 May 2019 21:37:35 +0000 (21:37 +0000)]
Merge "Introduce TransactionRoundAwareUpdate interface"

2 years agoMerge "rdbms: fix ChronologyProtector client IDs to not be empty"
jenkins-bot [Sat, 25 May 2019 21:36:36 +0000 (21:36 +0000)]
Merge "rdbms: fix ChronologyProtector client IDs to not be empty"

2 years agoRename $search to $engine to match hook docs for SpecialSearchSetupEngine
Reedy [Sat, 25 May 2019 21:12:45 +0000 (22:12 +0100)]
Rename $search to $engine to match hook docs for SpecialSearchSetupEngine

Bug: T224353
Change-Id: I9629840531183ffd53f2a1c568a8a72c91a30171

2 years agordbms: fix ChronologyProtector client IDs to not be empty
Aaron Schulz [Wed, 22 May 2019 18:00:55 +0000 (11:00 -0700)]
rdbms: fix ChronologyProtector client IDs to not be empty

Follow up to 8107fddd8fe3d5

Also improve debug logging and add some unit tests

Bug: T223310
Bug: T223978
Change-Id: I35484385e4da2912bc10f5e8d2fb07cb1097347e

2 years agoIntroduce TransactionRoundAwareUpdate interface
Aaron Schulz [Tue, 21 May 2019 21:52:57 +0000 (14:52 -0700)]
Introduce TransactionRoundAwareUpdate interface

Refactor the deferred update transaction round handling code to use
a new TransactionRoundAwareUpdate interface. Also, rename a few
DeferredUpdates methods so they do not give the impression that
doUpdates() is always called.

Change-Id: Idc4c6d81c4e2ca0ce41bca1e7800f797fa7e37f6

2 years agoSwitch empty username logging from warning to debug.
Bill Pirkle [Sat, 25 May 2019 02:14:42 +0000 (21:14 -0500)]
Switch empty username logging from warning to debug.

Change ddd1d4b9203a added logging when an empty username is
passed to various Linker.php functions. The logging revealed
this occuring on live, but it is occuring frequently and
causing distracting log noise. Switch the logging type from
warning to debug while the root cause is investigated.

Bug: T224050
Change-Id: I93826e486951e992afdf778f446792d3c209996a

2 years agoMerge "AllMessagesTablePager: Use $this->msg instead of wfMessage"
jenkins-bot [Fri, 24 May 2019 22:16:07 +0000 (22:16 +0000)]
Merge "AllMessagesTablePager: Use $this->msg instead of wfMessage"

2 years agoAllMessagesTablePager: Use $this->msg instead of wfMessage
Fomafix [Sat, 9 Jun 2018 17:05:15 +0000 (19:05 +0200)]
AllMessagesTablePager: Use $this->msg instead of wfMessage

Change-Id: I20850e20b2749e4fe3391d5d3fbdb7dadbfced8d

2 years agoMerge "API: Add IGNORE INDEX to avoid bad plan in ApiQueryRevisions"
jenkins-bot [Fri, 24 May 2019 21:56:57 +0000 (21:56 +0000)]
Merge "API: Add IGNORE INDEX to avoid bad plan in ApiQueryRevisions"

2 years agoMerge "Rename CDN config variables to be generic, deprecating the old names"
jenkins-bot [Fri, 24 May 2019 21:39:53 +0000 (21:39 +0000)]
Merge "Rename CDN config variables to be generic, deprecating the old names"

2 years agoMerge "changes: Remove unused FeedUtils::checkPurge method"
jenkins-bot [Fri, 24 May 2019 21:39:47 +0000 (21:39 +0000)]
Merge "changes: Remove unused FeedUtils::checkPurge method"

2 years agoRename CDN config variables to be generic, deprecating the old names
James D. Forrester [Wed, 1 Nov 2017 20:55:24 +0000 (13:55 -0700)]
Rename CDN config variables to be generic, deprecating the old names

Hook, methods, classes still to rename where appropriate.

Bug: T104148
Depends-On: Id34339dff88bc6d1863378ac94b96b2d590b891d
Depends-On: I4e2938395bcbf7956b83fff00978f09c61dcfa36
Change-Id: I7a725dae551c867a4fa7c213838d52c7fb862756

2 years agoMake MediaWiki::preOutputCommit() handle PRESEND deferred updates with the "run"...
Aaron Schulz [Fri, 24 May 2019 21:05:12 +0000 (14:05 -0700)]
Make MediaWiki::preOutputCommit() handle PRESEND deferred updates with the "run" parameter

This means that enqueuable updates (LinksUpdate, LinksDeletionUpdate) will run immediately
at this point rather than be enqueued as jobs. This only affects ApiPurge since the other
callers use either POSTSEND or "false".

Change-Id: I8b6ff6c9a68730374e6d83682e774e4f4bfbf52f

2 years agoCleanup DerivedPageDataUpdater::doSecondaryDataUpdates and remove redundant caller...
Aaron Schulz [Fri, 24 May 2019 21:01:17 +0000 (14:01 -0700)]
Cleanup DerivedPageDataUpdater::doSecondaryDataUpdates and remove redundant caller option

Change-Id: I8bbc6cd76d035635d47d1158df34c625879a8cc3

2 years agoMerge "languages: Hard deprecate Language::getExtraUserToggles() method"
jenkins-bot [Fri, 24 May 2019 18:17:21 +0000 (18:17 +0000)]
Merge "languages: Hard deprecate Language::getExtraUserToggles() method"

2 years agolanguages: Hard deprecate Language::getExtraUserToggles() method
Derick Alangi [Sat, 23 Feb 2019 17:38:51 +0000 (18:38 +0100)]
languages: Hard deprecate Language::getExtraUserToggles() method

This seems to be still used internally in core but in no extension. Also,
this function really doesn't do anything so hard deprecating in preparation
for removal.

Bug: T62260
Change-Id: I568789483084a97e5b3b462235f3d00c3cb87cf9

2 years agoMerge "Correct typo in Block::chooseBlock documentation"
jenkins-bot [Fri, 24 May 2019 14:56:29 +0000 (14:56 +0000)]
Merge "Correct typo in Block::chooseBlock documentation"

2 years agoMerge "SpecialBlockList: Merge stylesheet in into 'mediawiki.special' bundle"
jenkins-bot [Fri, 24 May 2019 14:51:59 +0000 (14:51 +0000)]
Merge "SpecialBlockList: Merge stylesheet in into 'mediawiki.special' bundle"

2 years agoSpecialBlockList: Merge stylesheet in into 'mediawiki.special' bundle
Timo Tijhof [Fri, 24 May 2019 14:10:27 +0000 (15:10 +0100)]
SpecialBlockList: Merge stylesheet in into 'mediawiki.special' bundle

Follows-up d87220349536 and (before that) 15eac4c27939c.

Bug: T191549
Change-Id: I60f227283526cf7e45b2e8e2be17d25bb73d9a27

2 years agoCorrect typo in Block::chooseBlock documentation
Thalia [Fri, 24 May 2019 13:52:16 +0000 (14:52 +0100)]
Correct typo in Block::chooseBlock documentation

Change-Id: Ie7cf0a833b38aac71b217f97d4934461acd249fd

2 years agoMerge "resourceloader: Use AND instead of OR for upsert conds in saveFileDependencies()"
jenkins-bot [Fri, 24 May 2019 13:37:43 +0000 (13:37 +0000)]
Merge "resourceloader: Use AND instead of OR for upsert conds in saveFileDependencies()"

2 years agochanges: Remove unused FeedUtils::checkPurge method
Timo Tijhof [Fri, 24 May 2019 13:09:51 +0000 (14:09 +0100)]
changes: Remove unused FeedUtils::checkPurge method

This introduced for use by ChangesFeed::execute(), which in turn
has also been unused for many years – and removed in 6f4d15e385807.

Change-Id: I5ba7ea2b6ff86e4d210b77bf05971c183352424c

2 years agoresourceloader: Use AND instead of OR for upsert conds in saveFileDependencies()
Reedy [Thu, 23 May 2019 23:16:42 +0000 (00:16 +0100)]
resourceloader: Use AND instead of OR for upsert conds in saveFileDependencies()

Follows-up e7b57d881a, which changed it from replace() to upsert()
but lost one of the wrapping arrays in doing so.

Previously updated many more rows than expected on Postgresql, when it
should only be updating individual rows, not all rows that match either
criteria.

SQL query before:
 WHERE ((md_module = 'jquery.makeCollapsible.styles') OR (md_skin = 'vector|en-gb'))

SQL query after:
 WHERE ((md_module = 'jquery.makeCollapsible.styles' AND md_skin = 'vector|en-gb'))

Not a problem on MySQL as upsert() is implemented differently there.

Bug: T222385
Change-Id: If8a458bf4543b297b3a06f31e09c0e77666bf7e6

2 years agochange phabricator URL
Eugene Gvozdetsky [Fri, 24 May 2019 10:37:27 +0000 (12:37 +0200)]
change phabricator URL

bugs.mediawiki.org was changed to phabricator.mediawiki.org because now it is the correct address

Change-Id: Ic7a728ce627ee7e6ef715d4144eb81aaf6f831dc

2 years agoMerge "jquery.suggestions: Trigger keypress on initializing"
jenkins-bot [Fri, 24 May 2019 00:24:48 +0000 (00:24 +0000)]
Merge "jquery.suggestions: Trigger keypress on initializing"

2 years agoMerge "Pass in __METHOD__ to upsert() in ResourceLoaderModule::saveFileDependencies()"
jenkins-bot [Thu, 23 May 2019 23:42:36 +0000 (23:42 +0000)]
Merge "Pass in __METHOD__ to upsert() in ResourceLoaderModule::saveFileDependencies()"

2 years agoPass in __METHOD__ to upsert() in ResourceLoaderModule::saveFileDependencies()
Reedy [Thu, 23 May 2019 22:59:42 +0000 (23:59 +0100)]
Pass in __METHOD__ to upsert() in ResourceLoaderModule::saveFileDependencies()

Change-Id: I9cc7636d14dbfc57ad9f21a0d8bbd7dd4c86760d

2 years agoMerge "Fix user talk checkbox enabling/disabling on Special:Block"
jenkins-bot [Thu, 23 May 2019 22:10:27 +0000 (22:10 +0000)]
Merge "Fix user talk checkbox enabling/disabling on Special:Block"

2 years agoMerge "Introduce MovePage::moveSubpages(IfAllowed)"
jenkins-bot [Thu, 23 May 2019 20:25:01 +0000 (20:25 +0000)]
Merge "Introduce MovePage::moveSubpages(IfAllowed)"

2 years agoMerge "logger: Produce traces for all Throwables"
jenkins-bot [Thu, 23 May 2019 20:20:46 +0000 (20:20 +0000)]
Merge "logger: Produce traces for all Throwables"

2 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 May 2019 20:13:29 +0000 (22:13 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icedbc0be6be532f0d6d3324dbcd2be43da25f5da

2 years agoFix user talk checkbox enabling/disabling on Special:Block
Thalia [Wed, 22 May 2019 21:47:54 +0000 (22:47 +0100)]
Fix user talk checkbox enabling/disabling on Special:Block

Partial blocks ignore the ipb_allow_usertalk field, so the user
talk checkbox should be disabled on Special:Block when creating
a partial block.

The checkbox is already disabled for partial blocks against
editing. This also disables the checkbox for partial blocks that
do not involve editing.

Bug: T224032
Change-Id: I2519ab30a90872d90f05861c65ab943d7937d9fa

2 years agoMerge "Fix variable in ApiQueryProtectedTitles"
jenkins-bot [Thu, 23 May 2019 18:40:21 +0000 (18:40 +0000)]
Merge "Fix variable in ApiQueryProtectedTitles"

2 years agoAPI: Add IGNORE INDEX to avoid bad plan in ApiQueryRevisions
Brad Jorsch [Thu, 23 May 2019 16:58:19 +0000 (12:58 -0400)]
API: Add IGNORE INDEX to avoid bad plan in ApiQueryRevisions

None of the queries generated by ApiQueryRevisions should be using the
`rev_timestamp` index, but MariaDB is insisting on doing so for one
particular query anyway.

Bug: T224017
Change-Id: I9476532d5896d9ba901c4c7398890bfecb1a318d

2 years agoMerge "ApiSandbox: Move labels outside progress bars"
jenkins-bot [Thu, 23 May 2019 17:56:06 +0000 (17:56 +0000)]
Merge "ApiSandbox: Move labels outside progress bars"

2 years agoFix variable in ApiQueryProtectedTitles
Matěj Suchánek [Wed, 22 May 2019 18:07:08 +0000 (20:07 +0200)]
Fix variable in ApiQueryProtectedTitles

Linker::formatComment accepts a Title object or null whereas
$titles is an array. I was working hard to reproduce a failure
but I couldn't since this code will only be executed with
an empty array (which evaluates to false when if-checked).
Per Anomie's suggestion, there should be no argument.

Discovered using phan.

Change-Id: I5a4df146d077cd879347709a399dce8303f41ccc

2 years agoMerge "ApiQueryRevisions: Fix error message key"
jenkins-bot [Thu, 23 May 2019 16:32:39 +0000 (16:32 +0000)]
Merge "ApiQueryRevisions: Fix error message key"

2 years agoMerge "ApiSandbox: Use CopyTextLayouts for snippets"
jenkins-bot [Thu, 23 May 2019 16:03:23 +0000 (16:03 +0000)]
Merge "ApiSandbox: Use CopyTextLayouts for snippets"

2 years agoMerge "CopyTextLayout: Support multiline text"
jenkins-bot [Thu, 23 May 2019 16:01:14 +0000 (16:01 +0000)]
Merge "CopyTextLayout: Support multiline text"

2 years agoMerge "Upstream CopyTextLayout from UrlShortener extension"
jenkins-bot [Thu, 23 May 2019 16:00:13 +0000 (16:00 +0000)]
Merge "Upstream CopyTextLayout from UrlShortener extension"

2 years agoMerge "Enable configuration to supply options for Special:Search form"
jenkins-bot [Thu, 23 May 2019 14:48:55 +0000 (14:48 +0000)]
Merge "Enable configuration to supply options for Special:Search form"

2 years agologger: Produce traces for all Throwables
Brad Jorsch [Thu, 23 May 2019 14:19:06 +0000 (10:19 -0400)]
logger: Produce traces for all Throwables

The code was checking for `Exception` to decide whether to produce traces,
so it wasn't providing them for PHP 7's new Errors. The code itself
works fine with any Throwable.

We have to keep parallel checks for Exception too for the time being,
because HHVM as used in Wikimedia production doesn't have Throwable.

Bug: T187147
Change-Id: Iec8a6718beb7ec09e45e332ee5762d0644ce17ab

2 years agoApiSandbox: Use CopyTextLayouts for snippets
Ed Sanders [Thu, 23 May 2019 11:55:42 +0000 (12:55 +0100)]
ApiSandbox: Use CopyTextLayouts for snippets

Change-Id: I1cdda7f5c1da9fed820ec9c39349457bb5060a7b

2 years agoCopyTextLayout: Support multiline text
Ed Sanders [Thu, 23 May 2019 11:54:58 +0000 (12:54 +0100)]
CopyTextLayout: Support multiline text

Change-Id: I9049f5a1c0d88680fc4a174e390dd08e27c0eee2

2 years agoUpstream CopyTextLayout from UrlShortener extension
Ed Sanders [Wed, 22 May 2019 18:54:04 +0000 (19:54 +0100)]
Upstream CopyTextLayout from UrlShortener extension

Provides a generic widget feature a read-only text input
and a copy button, that writes the text to the clipboard.

Change-Id: Ibeb5df2a2928a68297f4209562d7ab3f17cad6f0

2 years agoApiSandbox: Move labels outside progress bars
Ed Sanders [Thu, 23 May 2019 11:56:19 +0000 (12:56 +0100)]
ApiSandbox: Move labels outside progress bars

Change-Id: I3ebaae6733df85054679b4b7ff792039b50b4ef9

2 years agoMerge "HTMLForm: Improve method documentation for setCollapsibleOptions()"
jenkins-bot [Thu, 23 May 2019 09:26:17 +0000 (09:26 +0000)]
Merge "HTMLForm: Improve method documentation for setCollapsibleOptions()"

2 years agoImageListPager: Use explicit escaped() instead of implicit __toString()
Fomafix [Thu, 23 May 2019 07:00:53 +0000 (09:00 +0200)]
ImageListPager: Use explicit escaped() instead of implicit __toString()

For the messages listfiles-latestversion-yes and
listfiles-latestversion-no a wikitext parsing is not necessary.

Change-Id: I6f9268ebabaa64494d8680b04990944e7a463f32

2 years agoEnable configuration to supply options for Special:Search form
Stanislav Malyshev [Sun, 19 May 2019 14:12:14 +0000 (16:12 +0200)]
Enable configuration to supply options for Special:Search form

This for example will allow to display descriptions by setting:

$wgSpecialSearchFormOptions['showDescriptions'] = true;

Bug: T55652

Change-Id: Ifdbca4c508314cb950f2835ee65caea18e0af5b1

2 years agoHTMLForm: Improve method documentation for setCollapsibleOptions()
Timo Tijhof [Wed, 22 May 2019 22:38:45 +0000 (23:38 +0100)]
HTMLForm: Improve method documentation for setCollapsibleOptions()

Follows-up 36d33daa03a63.

Previously the method was described as "Set whether the form can be collapsed"
taking a single boolean.

Yet, the boolean did not influence whether the form can be collapsed, as one
might expect.

Rather, this method always enable collapsible mode. The thing that is set
based on the passed value is the default state of that (unconditionally)
enabled collapsible mode.

Change-Id: I2e73d5481c44ed43769553b2bc25543a702c19b8

2 years agoMerge "objectcache: make detectLocalServerCache() prefer apcu over apc"
jenkins-bot [Wed, 22 May 2019 22:37:14 +0000 (22:37 +0000)]
Merge "objectcache: make detectLocalServerCache() prefer apcu over apc"

2 years agoobjectcache: make detectLocalServerCache() prefer apcu over apc
Aaron Schulz [Wed, 22 May 2019 16:30:50 +0000 (09:30 -0700)]
objectcache: make detectLocalServerCache() prefer apcu over apc

Bug: T220470
Change-Id: I8b85859b3991d2360a74107299d44da2c60d0214

2 years agoMerge "resourceloader: Add tests for StartUpModule dep tree optimisation"
jenkins-bot [Wed, 22 May 2019 22:09:12 +0000 (22:09 +0000)]
Merge "resourceloader: Add tests for StartUpModule dep tree optimisation"

2 years agoMerge "registration: Add development requirements to extension.json"
jenkins-bot [Wed, 22 May 2019 21:41:48 +0000 (21:41 +0000)]
Merge "registration: Add development requirements to extension.json"

2 years agoMerge "resourceloader: Make MessageBlobStore global check key actually global"
jenkins-bot [Wed, 22 May 2019 21:27:38 +0000 (21:27 +0000)]
Merge "resourceloader: Make MessageBlobStore global check key actually global"

2 years agoresourceloader: Add tests for StartUpModule dep tree optimisation
Timo Tijhof [Wed, 22 May 2019 18:29:09 +0000 (19:29 +0100)]
resourceloader: Add tests for StartUpModule dep tree optimisation

Bug: T223402
Change-Id: I0450c052852068f3c78312f48a42645a8b77bc5c

2 years agoMerge "Fix some docs"
jenkins-bot [Wed, 22 May 2019 20:43:56 +0000 (20:43 +0000)]
Merge "Fix some docs"

2 years agoMerge "Work around disappearing Special:Preferences buttons on RTL in Edge"
jenkins-bot [Wed, 22 May 2019 20:35:31 +0000 (20:35 +0000)]
Merge "Work around disappearing Special:Preferences buttons on RTL in Edge"

2 years agoMerge "Reference T224165 when deprecating Parser::$mConf"
jenkins-bot [Wed, 22 May 2019 20:29:23 +0000 (20:29 +0000)]
Merge "Reference T224165 when deprecating Parser::$mConf"

2 years agoWork around disappearing Special:Preferences buttons on RTL in Edge
Bartosz Dziewoński [Wed, 22 May 2019 19:35:48 +0000 (21:35 +0200)]
Work around disappearing Special:Preferences buttons on RTL in Edge

Bug: T220706
Change-Id: If36dbade88f7594dea658f899f891e800c98529d

2 years agoMerge "npm: bump grunt-karma to 3.0.2"
jenkins-bot [Wed, 22 May 2019 20:01:19 +0000 (20:01 +0000)]
Merge "npm: bump grunt-karma to 3.0.2"

2 years agoMerge "Fix doc in maintenance/findHooks.php"
jenkins-bot [Wed, 22 May 2019 19:58:51 +0000 (19:58 +0000)]
Merge "Fix doc in maintenance/findHooks.php"

2 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 22 May 2019 19:58:06 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic10472cce88fd44322506beb2330cc49f5d22fb0