lhc/web/wiklou.git
5 years agoLCStoreStaticArray: create cache directory when it doesn't exist
Edward Chernenko [Mon, 25 Jun 2018 15:40:25 +0000 (18:40 +0300)]
LCStoreStaticArray: create cache directory when it doesn't exist

Array store (LCStoreStaticArray) should behave as standard LCStoreCDB,
creating the target directory when it doesn't exist.

This fixes unexpected "No such file or directory" errors when
replacing 'files' with 'array' in $wgLocalisationCacheConf['store'].

Change-Id: Ie49cf03ca93ac47fc98665de36e6207bef287193

5 years agoMerge "Revert "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness""
jenkins-bot [Mon, 25 Jun 2018 13:04:27 +0000 (13:04 +0000)]
Merge "Revert "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness""

5 years agoRevert "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness"
Hashar [Mon, 25 Jun 2018 12:38:07 +0000 (12:38 +0000)]
Revert "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness"

This reverts commit 634c2ec2afd93827e5aaf571396eb76d35948188.

Reason for revert: that strips the PSR4 directories from the class.

Example:
$dir BlueSpiceFoundation/src/"
$file BlueSpiceFoundation/src/ConfigDefinition/IntSetting.php

$abbrFileName: IntSetting
$expectedClassName: BlueSpice\IntSetting

$abbrFileName should be relative to $dir and not just the filename.

Bug: T198077
Change-Id: Ie934e309fee0392439b4e26d86249f0650e5ea67

5 years agoMerge "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness"
jenkins-bot [Mon, 25 Jun 2018 12:05:26 +0000 (12:05 +0000)]
Merge "Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness"

5 years agoUse pathinfo() in AutoLoaderStructureTest::testPSR4Completeness
Antoine Musso [Mon, 25 Jun 2018 11:32:30 +0000 (13:32 +0200)]
Use pathinfo() in AutoLoaderStructureTest::testPSR4Completeness

When setting AutoloadNamespaces to './' in extension.json, the test
AutoLoaderStructureTest::testPSR4Completeness would fail. The directory
path is not made canonical while the file is, which causes the substr()
call being used to strip too many characters. For example:

  $dir : /mediawiki/extensions/Wikidata.org/./
  $file: /mediawiki/extensions/Wikidata.org/Hooks.php

$abbrFileName = substr( substr( $file, strlen( $dir ) ), 0, -4 );
>>> oks

Use pathinfo() to parse the filename. Yields 'Hooks' as expected.

Bug: T198077
Change-Id: Ia8a11d87788b32ddb426a16a61b410b05ff5f15e

5 years agoMerge "Make WikiPage::convertSelectType protected"
jenkins-bot [Mon, 25 Jun 2018 11:21:59 +0000 (11:21 +0000)]
Merge "Make WikiPage::convertSelectType protected"

5 years agoBrowser tests: use Util.getTestString in specialwatchlist.js
Jakob Warkotsch [Mon, 25 Jun 2018 10:14:25 +0000 (12:14 +0200)]
Browser tests: use Util.getTestString in specialwatchlist.js

Follow-up on I5c5e9b22af5406f347636b22e68657b2674db6c9 and
I0747c2d361e951f8b3765a3dca548e55edb72216

Change-Id: I35ad793e6d9fe4c3bf58df9b4fcf6471c0a81f70

5 years agoMerge "Browser tests: extract commonly used getTestString function"
jenkins-bot [Mon, 25 Jun 2018 09:51:52 +0000 (09:51 +0000)]
Merge "Browser tests: extract commonly used getTestString function"

5 years agoMerge "Add browser test for basic watchlist functionality"
jenkins-bot [Mon, 25 Jun 2018 09:49:02 +0000 (09:49 +0000)]
Merge "Add browser test for basic watchlist functionality"

5 years agoMerge "mediawiki.hook: Move mw.hook tests to new mediawiki.base.test.js file"
jenkins-bot [Mon, 25 Jun 2018 09:01:35 +0000 (09:01 +0000)]
Merge "mediawiki.hook: Move mw.hook tests to new mediawiki.base.test.js file"

5 years agoMerge "Remove deprecated 'dom-level2-shim' module"
jenkins-bot [Mon, 25 Jun 2018 08:14:13 +0000 (08:14 +0000)]
Merge "Remove deprecated 'dom-level2-shim' module"

5 years agoMerge "resourceloader: Add coverage for StartupModule::getDefinitionSummary"
jenkins-bot [Mon, 25 Jun 2018 08:05:31 +0000 (08:05 +0000)]
Merge "resourceloader: Add coverage for StartupModule::getDefinitionSummary"

5 years agoGitInfo: Don't try shelling out if it's disabled
Kunal Mehta [Sun, 24 Jun 2018 20:55:43 +0000 (23:55 +0300)]
GitInfo: Don't try shelling out if it's disabled

Bug: T198037
Change-Id: I364f9bc0e78439474101f4b2a171805c91f50a72

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 24 Jun 2018 20:07:51 +0000 (22:07 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9a6171181bfab383402ad99e1f59315d5aded560

5 years agoAdd the es-419 language code to support South American Spanish
Niklas Laxström [Wed, 13 Jun 2018 08:12:54 +0000 (10:12 +0200)]
Add the es-419 language code to support South American Spanish

This code is useful for targeting Spanish spoken in the Latin America
and the Caribbean region. There are no plans to make this available as
an interface language, hence I am not adding a language file with a
fallback to 'es'.

Bug: T112889
Change-Id: If7f0ed7a13f1cc86985ce5ce509dcf543cc1c0ff

5 years agoMake WikiPage::convertSelectType protected
Umherirrender [Sun, 24 Jun 2018 12:25:30 +0000 (14:25 +0200)]
Make WikiPage::convertSelectType protected

When override WikiPage this function is needed
to map the string to const

Change-Id: I4e4d597a77c859ad17bd6c29bed875fb4248b5fb

5 years agoMerge "rdbms: make some LBFactory fields private"
jenkins-bot [Sun, 24 Jun 2018 03:06:28 +0000 (03:06 +0000)]
Merge "rdbms: make some LBFactory fields private"

5 years agoRemove deprecated 'dom-level2-shim' module
Timo Tijhof [Sun, 20 May 2018 14:15:40 +0000 (16:15 +0200)]
Remove deprecated 'dom-level2-shim' module

This is an empty placeholder module that does nothing. It was kept
for backwards compatibility with older extensions that were still
supporting MediaWiki versions that in turn supported older browsers.

There is no longer any use of 'dom-level2-shim' anywhere in Wikimedia Git,
nor anywhere found by Codesearch,
nor anywhere on-wiki at WMF (including user scripts).

Bug: T127328
Change-Id: I416b216471c321d56d3b6d72bc9ef7dcc0f16093

5 years agoMerge "MWExceptionRenderer: Fix db error outage page"
jenkins-bot [Sun, 24 Jun 2018 02:22:09 +0000 (02:22 +0000)]
Merge "MWExceptionRenderer: Fix db error outage page"

5 years agoresourceloader: Add coverage for StartupModule::getDefinitionSummary
Timo Tijhof [Sun, 24 Jun 2018 01:59:44 +0000 (02:59 +0100)]
resourceloader: Add coverage for StartupModule::getDefinitionSummary

Change-Id: I913c8ecd5f51db851ef408c4281cdd75a0e0b239

5 years agoMerge "Make MessageCache::getMsgFromNamespace() process cache hook-defined keys"
jenkins-bot [Sun, 24 Jun 2018 01:47:52 +0000 (01:47 +0000)]
Merge "Make MessageCache::getMsgFromNamespace() process cache hook-defined keys"

5 years agoMerge "rdbms: rearrange LoadBalancer fields and make some private"
jenkins-bot [Sun, 24 Jun 2018 01:41:35 +0000 (01:41 +0000)]
Merge "rdbms: rearrange LoadBalancer fields and make some private"

5 years agordbms: rearrange LoadBalancer fields and make some private
Aaron Schulz [Thu, 21 Jun 2018 00:58:51 +0000 (01:58 +0100)]
rdbms: rearrange LoadBalancer fields and make some private

Put the object/callback fields first, followed by config fields
and then state fields, similar to LBFactory.

Change-Id: I40ceaa48842b505f15efe5e41ca7a6de437b6ff1

5 years agoUse \u{00A0} instead of   or  
Fomafix [Tue, 27 Dec 2016 21:14:16 +0000 (22:14 +0100)]
Use \u{00A0} instead of   or  

Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0) instead of
the HTML/XML entities   or   or  .

With the UTF-8 character the generated HTML is shorter and better to read.

Also change the special value for the label in HTMLForm from   to
U+00A0 but also support   for backward compability.

Bug: T154300
Change-Id: I882599ac1120789bb4e524c4394870680caca4f4

5 years agoresourceloader: move using() from mediawiki.js to the base module
Aaron Schulz [Wed, 20 Jun 2018 15:05:08 +0000 (16:05 +0100)]
resourceloader: move using() from mediawiki.js to the base module

Bug: T192623
Change-Id: I9095749a013cf97bff45d6d11afd9b2cee7e189b

5 years agoresourceloader: remove internal use of using() in mediawiki.js
Aaron Schulz [Wed, 20 Jun 2018 14:48:32 +0000 (15:48 +0100)]
resourceloader: remove internal use of using() in mediawiki.js

Bug: T192623
Change-Id: Id10ddf9f98661a8e328f40717b12cc08cbc04064

5 years agoMake MessageCache::getMsgFromNamespace() process cache hook-defined keys
Aaron Schulz [Sat, 23 Jun 2018 16:59:12 +0000 (17:59 +0100)]
Make MessageCache::getMsgFromNamespace() process cache hook-defined keys

Change-Id: I6f8a0c002b54dc48bc3e6902ab1ba41b2f99412a

5 years ago[MCR] Rollback for all slots
daniel [Fri, 27 Apr 2018 14:04:36 +0000 (16:04 +0200)]
[MCR] Rollback for all slots

Bug: T194034
Change-Id: Ifd23bc1cd64ddc090e1c1c26aacda37e8ba7a18b

5 years agoMerge "Make undo fail if more than just the main slot is affected."
jenkins-bot [Sat, 23 Jun 2018 08:59:37 +0000 (08:59 +0000)]
Merge "Make undo fail if more than just the main slot is affected."

5 years agomediawiki.hook: Move mw.hook tests to new mediawiki.base.test.js file
Timo Tijhof [Fri, 22 Jun 2018 18:56:00 +0000 (19:56 +0100)]
mediawiki.hook: Move mw.hook tests to new mediawiki.base.test.js file

Follows-up 3801e54c29a.

Also:

* Split the test into smaller more dedicated tests.
* Make minor changes so as to only assert values in the tests'
  outer scope. Assertions within callbacks are an anti-pattern
  that is fragile and can easily miss or mask problems. Using a
  single state observer that is modified by the callbacks makes
  for strict assertions with no implied or untested behaviour.
  Callbacks running in a different order or a different number of
  times now cause assertion failures - instead of causing the
  assertion to not be run, or to be run multiple times, which
  would pass.

Bug: T192623
Change-Id: Ice1560b754f8df29ca583eea19f559020fafaf12

5 years agoMerge "API: Check assert parameters earlier in the request"
jenkins-bot [Fri, 22 Jun 2018 21:36:36 +0000 (21:36 +0000)]
Merge "API: Check assert parameters earlier in the request"

5 years agoMerge "RCFilters: Fix saved filter name truncation for Firefox"
jenkins-bot [Fri, 22 Jun 2018 19:09:35 +0000 (19:09 +0000)]
Merge "RCFilters: Fix saved filter name truncation for Firefox"

5 years agoRCFilters: Fix saved filter name truncation for Firefox
Moriel Schottlender [Wed, 20 Jun 2018 22:14:23 +0000 (15:14 -0700)]
RCFilters: Fix saved filter name truncation for Firefox

Firefox seem to have a bit of trouble with variable-width flexbox
div that need to be truncated with an ellipses.

This fix includes a couple of changes:
* Split the three elements of the title into three separate divs,
  and define the flex divs properly for a variable-width one in
  the middle.
* Taking advantage of #1, clean up the class names too (move to
  under '-top-xxx' classes for better organization in the LESS
  file too.
* Add a max-width: 100% rule to the label that gets
  truncated; this seems to force Firefox to recalculate its proper
  width while in flexbox and actually add the ellipses.

Bug: T197835
Change-Id: Ibe2002a5fe9006f262b2256cae222fed9e9a8fd0

5 years agoMerge "Only use languages with localisation in the installer"
jenkins-bot [Fri, 22 Jun 2018 14:42:13 +0000 (14:42 +0000)]
Merge "Only use languages with localisation in the installer"

5 years agoMerge "MCR: rename $baseRevId paramter to match actual semantics."
jenkins-bot [Fri, 22 Jun 2018 14:42:07 +0000 (14:42 +0000)]
Merge "MCR: rename $baseRevId paramter to match actual semantics."

5 years agoMake undo fail if more than just the main slot is affected.
daniel [Tue, 19 Jun 2018 17:20:53 +0000 (19:20 +0200)]
Make undo fail if more than just the main slot is affected.

Bug: T194412
Change-Id: Ifdf9bc9d884844f9ffeb8019d9b13d5737862063

5 years agoMCR: rename $baseRevId paramter to match actual semantics.
daniel [Tue, 19 Jun 2018 14:09:01 +0000 (16:09 +0200)]
MCR: rename $baseRevId paramter to match actual semantics.

The $baseRevId in WikiPage::doEditContent is used only to indicate what
revision an edit reverted to. It is not used to indicate the actual base
revision of an edit in any sense. Specifically, EditPage never sets it.

So, this change renames the parameter to $originalRevId to match $undidRevId.
It also renames PageUpdater::setBaseRevisionId to setOriginalRevisionId.
Further, this introduces a paramter to PageUpdater::hasEditConflict():

Before this change, PageUpdater::hasEditConflict() was based on the
revision set via PageUpdater::setBaseRevisionId(), assuming the semantics
of "base revision" used by EditPage. However, this is NOT how the $baseRevId
parameter in WikiPage works.

Bug: T197685
Change-Id: Ib78257d4d6ee7c4ec093d5706904c599b02c73e0

5 years agoMerge "Fix Special:Userrights temp groups with no non-temp groups"
jenkins-bot [Fri, 22 Jun 2018 01:24:53 +0000 (01:24 +0000)]
Merge "Fix Special:Userrights temp groups with no non-temp groups"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 21 Jun 2018 20:09:18 +0000 (22:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibd413089aba90336bcc5bd0be2fdccb78130781c

5 years agoFix Special:Userrights temp groups with no non-temp groups
Brad Jorsch [Thu, 21 Jun 2018 20:08:56 +0000 (16:08 -0400)]
Fix Special:Userrights temp groups with no non-temp groups

Special:Userrights was only checking the count of non-temporary groups
when deciding whether to show the list of temporary and non-temporary
groups. It needs to check both.

Bug: T197860
Change-Id: Ie8a9caad01f1a610584fb4a1272ad3800e9c8e6a

5 years agoAPI: Check assert parameters earlier in the request
Brad Jorsch [Wed, 20 Jun 2018 14:32:03 +0000 (10:32 -0400)]
API: Check assert parameters earlier in the request

Specifically, check the assert and assertuser parameters before setting
up the action module, so errors in parsing the module's parameters due
to being logged out don't override the client's intended "am I logged
in?" check.

Note this means that assertion failures will no longer use custom module
output formatters. This seems like an acceptable tradeoff: on Wikimedia
sites in May 2018 there were no requests that would have been affected
by this change.

Bug: T197672
Change-Id: I02a71395d5ed9f445e57162f2136292825f8dbb5

5 years agoSet $linkTrail for Abkhazian.
tacsipacsi [Mon, 2 Apr 2018 19:15:40 +0000 (21:15 +0200)]
Set $linkTrail for Abkhazian.

Set $linkTrail for Abkhazian. I don't speak the language, just copied
the characters from the referenced Phabricator task.

Bug: T189923
Change-Id: I0db35e9ac46aea19d082c1e9fa35a9120034e4bd

5 years agoMerge "RCFilters: Readjust welcome text so results don't jump after load"
jenkins-bot [Thu, 21 Jun 2018 16:54:50 +0000 (16:54 +0000)]
Merge "RCFilters: Readjust welcome text so results don't jump after load"

5 years agoMerge "LanguageConverter: Fix @return description"
jenkins-bot [Thu, 21 Jun 2018 16:15:13 +0000 (16:15 +0000)]
Merge "LanguageConverter: Fix @return description"

5 years agoRCFilters: Readjust welcome text so results don't jump after load
Moriel Schottlender [Wed, 20 Jun 2018 21:45:58 +0000 (14:45 -0700)]
RCFilters: Readjust welcome text so results don't jump after load

Bug: T197833
Change-Id: If3a433c84c53d80a4470fbc112b75c00cae20bac

5 years agoRemove PageContentSaveComplete hook subscriber that won't work..
Reedy [Thu, 21 Jun 2018 10:50:54 +0000 (11:50 +0100)]
Remove PageContentSaveComplete hook subscriber that won't work..

Change-Id: Ib68ea80e9db85e79589699cbbc6a731bc37f52a3

5 years agoReduce indenting, remove else conditions
Reedy [Thu, 21 Jun 2018 10:50:27 +0000 (11:50 +0100)]
Reduce indenting, remove else conditions

Change-Id: If39ed94f12108dee231ff99dbe740418d192f349

5 years agoTurning change_tag_def store to a service
Amir Sarabadani [Thu, 21 Jun 2018 06:59:02 +0000 (08:59 +0200)]
Turning change_tag_def store to a service

This will be useful when reading the table.

Bug: T194162
Change-Id: I8c0a0075910a79465a648a052b4e7fbc888b10e7

5 years agordbms: make some LBFactory fields private
Aaron Schulz [Thu, 21 Jun 2018 00:27:49 +0000 (01:27 +0100)]
rdbms: make some LBFactory fields private

Change-Id: I3fbd35048556593e298731cb497cc83335c5ad8e

5 years agoMerge "Xhprof: support tideways-xhprof extension"
jenkins-bot [Wed, 20 Jun 2018 22:55:26 +0000 (22:55 +0000)]
Merge "Xhprof: support tideways-xhprof extension"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 20 Jun 2018 20:54:25 +0000 (22:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I07213bede472c7fc7f22596703492b8dace4360d

5 years agoMerge "Blob can't be false"
jenkins-bot [Wed, 20 Jun 2018 20:04:10 +0000 (20:04 +0000)]
Merge "Blob can't be false"

5 years agoMerge "RCFilters: Preserve collapsed state and adjust display"
jenkins-bot [Wed, 20 Jun 2018 19:39:30 +0000 (19:39 +0000)]
Merge "RCFilters: Preserve collapsed state and adjust display"

5 years agoRCFilters: Preserve collapsed state and adjust display
Moriel Schottlender [Mon, 18 Jun 2018 22:04:47 +0000 (15:04 -0700)]
RCFilters: Preserve collapsed state and adjust display

When collapsed, make sure we are adjusting the 'min-height' on the
'rcfilters-head' div so that it actually takes the space it should.

Make sure the preference of whether the area is collapsed or not is
preserved for the user, per RC or WL pages, and that it is loaded
properly with the correct minimum height dimensions depending on
which state is in the preferences, so to prevent "jump" of the
result list after load.

Bug: T177206
Change-Id: I82c3042cd1bb85dedcd6b5458b157fed94def808

5 years agoLanguageConverter: Fix @return description
Fomafix [Wed, 20 Jun 2018 16:32:34 +0000 (18:32 +0200)]
LanguageConverter: Fix @return description

validateVariant returns null, not false.

Change-Id: I5241205da9f4d6266f09b361df856e50ddd96a7d

5 years agoMerge "objectcache: change "miss" to "renew" in metric name for preemptive refreshes"
jenkins-bot [Wed, 20 Jun 2018 15:42:39 +0000 (15:42 +0000)]
Merge "objectcache: change "miss" to "renew" in metric name for preemptive refreshes"

5 years agoBlob can't be false
daniel [Fri, 12 Jan 2018 15:03:47 +0000 (16:03 +0100)]
Blob can't be false

Change-Id: Ic06fcfaac71128c0ff7e9079685eac18206f2004

5 years agoMerge "API: Use param-per-value for meta=filerepoinfo's friprop docs"
jenkins-bot [Wed, 20 Jun 2018 15:30:40 +0000 (15:30 +0000)]
Merge "API: Use param-per-value for meta=filerepoinfo's friprop docs"

5 years agoobjectcache: change "miss" to "renew" in metric name for preemptive refreshes
Aaron Schulz [Wed, 20 Jun 2018 11:43:10 +0000 (12:43 +0100)]
objectcache: change "miss" to "renew" in metric name for preemptive refreshes

This will usually let one distinguish asynchronous preemptive cache refreshes
from synchronous value recomputations due to actual cache misses.

Change-Id: I3424a89cc96a12fe283460eeaf722ee0cf299534

5 years agoAPI: Use param-per-value for meta=filerepoinfo's friprop docs
Brad Jorsch [Wed, 20 Jun 2018 14:08:26 +0000 (10:08 -0400)]
API: Use param-per-value for meta=filerepoinfo's friprop docs

This avoids documenting properties that may not be valid on the local
wiki, depending on which repos are actually available.

This patch also documents the other values available from repo types
available in MediaWiki core.

Bug: T197730
Change-Id: I6bf9fbf4ac29042d9f7524c6c1a5990051150cd3

5 years agoOnly use languages with localisation in the installer
Niklas Laxström [Sun, 17 Jun 2018 16:26:24 +0000 (18:26 +0200)]
Only use languages with localisation in the installer

To match recent change to Special:Preferences, only allow languages
with localisation as interface or content language.

Bug: T188030
Change-Id: I8acae47ee70feb98bcde982d9b0e3637daf96ffb

5 years agoMerge "Improve documentation of fields in EditPage"
jenkins-bot [Wed, 20 Jun 2018 14:06:23 +0000 (14:06 +0000)]
Merge "Improve documentation of fields in EditPage"

5 years agoMerge "Selenium: run Wikibase repo tests"
jenkins-bot [Wed, 20 Jun 2018 11:45:55 +0000 (11:45 +0000)]
Merge "Selenium: run Wikibase repo tests"

5 years agoBrowser tests: extract commonly used getTestString function
Jakob Warkotsch [Wed, 20 Jun 2018 11:06:45 +0000 (13:06 +0200)]
Browser tests: extract commonly used getTestString function

Extracting this function into a Util module reduces redundancy for
existing and future tests in core and extensions.

Change-Id: I5c5e9b22af5406f347636b22e68657b2674db6c9

5 years agoImprove documentation of fields in EditPage
daniel [Tue, 19 Jun 2018 16:35:11 +0000 (18:35 +0200)]
Improve documentation of fields in EditPage

This is an attempt to clarify the semantics of several fields
and methods in EditPage that represent some kind of parent or base
revision.

Bug: T197685
Change-Id: I37b3803fc558fecc0c7b0c3cfb4ec93dce6997a5

5 years agoMerge "Maintenance::finalSetup: Make sure we re-create LBFactory"
jenkins-bot [Wed, 20 Jun 2018 05:02:12 +0000 (05:02 +0000)]
Merge "Maintenance::finalSetup: Make sure we re-create LBFactory"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 19 Jun 2018 20:02:49 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I84f0d16eb74abe7d6b1a85bb3861fd95018101b5

5 years agoMaintenance::finalSetup: Make sure we re-create LBFactory
Marius Hoch [Tue, 19 Jun 2018 17:46:01 +0000 (19:46 +0200)]
Maintenance::finalSetup: Make sure we re-create LBFactory

This seems to work anyway (as no connections are needed at
this time), but I guess it's more robust to explicitly
destroy any existing instances.

Bug: T147169
Change-Id: Id56a62d1830fc1464a80dd4420ffddd797bf8b51

5 years agoMerge "mediawiki.base: Move $j alias to mediawiki.base.js"
jenkins-bot [Tue, 19 Jun 2018 15:12:38 +0000 (15:12 +0000)]
Merge "mediawiki.base: Move $j alias to mediawiki.base.js"

5 years agoSelenium: run Wikibase repo tests
Željko Filipin [Tue, 19 Jun 2018 15:04:09 +0000 (17:04 +0200)]
Selenium: run Wikibase repo tests

Similar to custom location of VisualEditor tests, Wikibase has tests in repo and client folders.

Bug: T180228
Change-Id: I3debe8bed9a760aea374529dbe007aa5a72421aa

5 years agoXhprof: support tideways-xhprof extension
Edward Chernenko [Sun, 17 Jun 2018 15:09:49 +0000 (18:09 +0300)]
Xhprof: support tideways-xhprof extension

The "tideways" extension was renamed by their developers, see
https://tideways.com/profiler/blog/releasing-new-tideways-xhprof-extension

While doing so, they also renamed enable/disable functions:
tideways_enable -> tideways_xhprof_enable
tideways_disable -> tideways_xhprof_disable

Change-Id: I63bc97dba461dd46241a094dfc59439c0d28a219

5 years agoAdd browser test for basic watchlist functionality
Jakob Warkotsch [Mon, 18 Jun 2018 14:13:42 +0000 (16:13 +0200)]
Add browser test for basic watchlist functionality

Will be used to test more advanced title/link formatters downstream.

Bug: T191601
Change-Id: I0747c2d361e951f8b3765a3dca548e55edb72216

5 years agoselenium: RecentChanges page object
Pablo Grass [Tue, 19 Jun 2018 13:31:07 +0000 (15:31 +0200)]
selenium: RecentChanges page object

Return DOM element(s) to specs instead of creating another level of
inflection and to be more in line with other implementations.
Follow-up for I916516d5055c3ce9be071a75e5c3af2b3547d4ba

Bug: T191600
Change-Id: I03b0cd4af7adca23dd34173710b995629f833a1a

5 years agoMerge "When encountering bad blobs, log the text row id."
jenkins-bot [Tue, 19 Jun 2018 12:32:44 +0000 (12:32 +0000)]
Merge "When encountering bad blobs, log the text row id."

5 years agoWhen encountering bad blobs, log the text row id.
daniel [Tue, 19 Jun 2018 11:37:35 +0000 (13:37 +0200)]
When encountering bad blobs, log the text row id.

Change-Id: Ie7c932f229854fd3582d507fa7cc154ffdd21f55

5 years agoMerge "Allow passing the default DB group to use in Maintenance scripts"
jenkins-bot [Tue, 19 Jun 2018 05:22:44 +0000 (05:22 +0000)]
Merge "Allow passing the default DB group to use in Maintenance scripts"

5 years agoFix PHP warnings "preg_replace(): [...] invalid range in character class"
Edward Chernenko [Mon, 18 Jun 2018 22:53:52 +0000 (01:53 +0300)]
Fix PHP warnings "preg_replace(): [...] invalid range in character class"

This was spotted when running tests on Travis (PHP 7.3 nighly, trusty).

Two expressions inside preg_replace() contained non-escaped "-" inside [],
where this "-" meant an actual "-" character.
The warning is because "-" has special meaning inside [] ("a-z" for range),
and things like [\w-.] are considered "invalid range".

Solution is to escape "-" like this: [\w\-.]

Change-Id: I41cc217081f00f54d957b6d8052ee209412f5ff6

5 years agoMerge "Revert "Use type Language instead of string for $lang of doEditSectionLink""
jenkins-bot [Mon, 18 Jun 2018 23:29:29 +0000 (23:29 +0000)]
Merge "Revert "Use type Language instead of string for $lang of doEditSectionLink""

5 years agoRevert "Use type Language instead of string for $lang of doEditSectionLink"
Legoktm [Mon, 18 Jun 2018 23:11:17 +0000 (23:11 +0000)]
Revert "Use type Language instead of string for $lang of doEditSectionLink"

This reverts commit 531e71acdab55df6f567ef43ffaccf4615fe5e66.

Was a breaking change that did not following the deprecation
policy.

Change-Id: Idefd38e1f42ee849a09da0fc5793fb7f051b2a4c

5 years agoMerge "Adjust layout for saved filters empty state"
jenkins-bot [Mon, 18 Jun 2018 23:07:17 +0000 (23:07 +0000)]
Merge "Adjust layout for saved filters empty state"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 18 Jun 2018 19:54:31 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idafba5d45cb472eb430092517016d0666fe0f30d

5 years agoAdjust layout for saved filters empty state
Hagar Shilo [Wed, 13 Jun 2018 08:09:25 +0000 (11:09 +0300)]
Adjust layout for saved filters empty state

Bug: T191534
Change-Id: Ia3f9509dce41a7fec44c93eb02239257a491499d

5 years agoMerge "docs/hooks.txt: fix incorrect description of UploadForm:* hooks"
jenkins-bot [Mon, 18 Jun 2018 18:07:33 +0000 (18:07 +0000)]
Merge "docs/hooks.txt: fix incorrect description of UploadForm:* hooks"

5 years agoMove lbFactory defintion from construct to execute in populateChangeTagDef
Amir Sarabadani [Mon, 18 Jun 2018 16:34:48 +0000 (18:34 +0200)]
Move lbFactory defintion from construct to execute in populateChangeTagDef

It seems the class doesn't load needed classes in construct so we get
Uncaught Error: Class 'MediaWiki\MediaWikiServices' not found

Bug: T193871
Change-Id: I0d6a49232cbc256a34ab49e8a4e41f6cc942fe4b

5 years agoMerge "Make ChangeTag use NameTableStore for change_tag_def table"
jenkins-bot [Mon, 18 Jun 2018 15:37:20 +0000 (15:37 +0000)]
Merge "Make ChangeTag use NameTableStore for change_tag_def table"

5 years agoMerge "Use type Language instead of string for $lang of doEditSectionLink"
jenkins-bot [Mon, 18 Jun 2018 01:14:30 +0000 (01:14 +0000)]
Merge "Use type Language instead of string for $lang of doEditSectionLink"

5 years agoMerge "Title: Use directly Language::factory instead of wfGetLangObj"
jenkins-bot [Mon, 18 Jun 2018 01:12:07 +0000 (01:12 +0000)]
Merge "Title: Use directly Language::factory instead of wfGetLangObj"

5 years agodocs/hooks.txt: fix incorrect description of UploadForm:* hooks
Edward Chernenko [Wed, 30 May 2018 16:48:25 +0000 (19:48 +0300)]
docs/hooks.txt: fix incorrect description of UploadForm:* hooks

Hooks [UploadForm:BeforeProcessing] and [UploadForm:initial] get SpecialUpload
object as their parameter (NOT the UploadForm object).

Also replaced obsolete note "use UploadVerification and UploadVerifyFile"
with modern "use UploadVerifyUpload".

Change-Id: I09ac5b238c8619c94978bdc771653127d3a6264d

5 years agoUse type Language instead of string for $lang of doEditSectionLink
Fomafix [Wed, 30 May 2018 04:33:01 +0000 (06:33 +0200)]
Use type Language instead of string for $lang of doEditSectionLink

The call of wfGetLangObj( $lang ) is not necessary anymore.

Keep $lang as optional parameter to avoid the coding style check error
 Required argument follows optional

Depends-On: Ibe295e7020e995eea52e319feaf59c635f8bb4dc
Change-Id: Id49201957e716ef8a2ea930b3616ca4fe6e35633

5 years agoMake ChangeTag use NameTableStore for change_tag_def table
Amir Sarabadani [Thu, 14 Jun 2018 16:37:19 +0000 (18:37 +0200)]
Make ChangeTag use NameTableStore for change_tag_def table

Also adding a regression test to fix upsert AUTO_INCREMENT issue

Bug: T193868
Change-Id: I0363c93a824c41d12b33aedb05e92e1d9943c40d

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 17 Jun 2018 20:00:00 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I98ff6cea4c6f300ddbe91e383d709e65da2fdcfd

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 16 Jun 2018 19:52:56 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9c4e0d3ae69eae41d25bf120e93954d93e127037

5 years agoMerge "Remove inadequate render-blocking styles for jquery.tablesorter"
jenkins-bot [Sat, 16 Jun 2018 17:44:06 +0000 (17:44 +0000)]
Merge "Remove inadequate render-blocking styles for jquery.tablesorter"

5 years agoMerge "Add maintenance to populate change_tag_def table and ct_tag_id field"
jenkins-bot [Sat, 16 Jun 2018 12:59:28 +0000 (12:59 +0000)]
Merge "Add maintenance to populate change_tag_def table and ct_tag_id field"

5 years agoMerge "Improve timeouts in MultiHttpClient"
jenkins-bot [Fri, 15 Jun 2018 23:28:12 +0000 (23:28 +0000)]
Merge "Improve timeouts in MultiHttpClient"

5 years agoMerge "stats: Hard-deprecate BufferingStatsdDataFactory::getBuffer()"
jenkins-bot [Fri, 15 Jun 2018 23:20:20 +0000 (23:20 +0000)]
Merge "stats: Hard-deprecate BufferingStatsdDataFactory::getBuffer()"

5 years agostats: Hard-deprecate BufferingStatsdDataFactory::getBuffer()
Timo Tijhof [Fri, 15 Jun 2018 22:15:26 +0000 (23:15 +0100)]
stats: Hard-deprecate BufferingStatsdDataFactory::getBuffer()

Follows-up 7fdc3d09a3b6. Also document the getData method.

This method seems unused from a quick glance at Code Search, but
there's a lot of false positives from Monolog instances.

To play safe, rather than removing, add hard-deprecation for
a few days just in case we find another hit.

Change-Id: I8aab93744e66c1a583c67f0bbac27a45250a8fbb

5 years agoMerge "mw.special.contributions: Do not infuse the date input while it has user focus"
jenkins-bot [Fri, 15 Jun 2018 22:12:30 +0000 (22:12 +0000)]
Merge "mw.special.contributions: Do not infuse the date input while it has user focus"

5 years agomediawiki.base: Move $j alias to mediawiki.base.js
Timo Tijhof [Fri, 15 Jun 2018 21:26:48 +0000 (22:26 +0100)]
mediawiki.base: Move $j alias to mediawiki.base.js

This isn't used by mw.loader internally so it can be deferred
to the file that loads right after it (but still before any
other module).

Bug: T192623
Change-Id: I65162567f48670221861af92080ca116f52dde39

5 years agoMerge "resourceloader: move hook() and html() from mediawiki.js to base module"
jenkins-bot [Fri, 15 Jun 2018 21:09:57 +0000 (21:09 +0000)]
Merge "resourceloader: move hook() and html() from mediawiki.js to base module"