lhc/web/wiklou.git
5 years agobenchmarker: Implement setupEach for per-iteration setup
Kunal Mehta [Mon, 20 Aug 2018 07:21:49 +0000 (00:21 -0700)]
benchmarker: Implement setupEach for per-iteration setup

To bypass caches in legacy code where injection doesn't easily work,
support a per-iteration setup function, 'setupEach', which runs right
before the actual function is timed and called.

And use it in benchmarkTitleValue, where I mistakenly assumed that
'setup' did what I wanted.

Bug: T201992
Change-Id: I2d01d899bf63576df2833705667f1a16604ab4cc

5 years agoMerge "Simplify redirect linking in InfoAction"
jenkins-bot [Mon, 20 Aug 2018 01:35:01 +0000 (01:35 +0000)]
Merge "Simplify redirect linking in InfoAction"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 19 Aug 2018 19:53:50 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0a824a0c317de91546f123d42158f818113f63b0

5 years agoMerge "Improve StaticArrayWriterTest and add missing @covers tag"
jenkins-bot [Sun, 19 Aug 2018 17:07:13 +0000 (17:07 +0000)]
Merge "Improve StaticArrayWriterTest and add missing @covers tag"

5 years agoMerge "Create and use PrefixingStatsdDataFactoryProxy in PerDbNameStatsdDataFactory"
jenkins-bot [Sun, 19 Aug 2018 07:51:39 +0000 (07:51 +0000)]
Merge "Create and use PrefixingStatsdDataFactoryProxy in PerDbNameStatsdDataFactory"

5 years agoMerge "CSP: In tests, use setMwGlobals() instead of manual set+undo"
jenkins-bot [Sun, 19 Aug 2018 07:40:05 +0000 (07:40 +0000)]
Merge "CSP: In tests, use setMwGlobals() instead of manual set+undo"

5 years agoCreate and use PrefixingStatsdDataFactoryProxy in PerDbNameStatsdDataFactory
addshore [Sat, 18 Aug 2018 10:22:38 +0000 (11:22 +0100)]
Create and use PrefixingStatsdDataFactoryProxy in PerDbNameStatsdDataFactory

MediaWiki::emitBufferedStatsdData() is never called for the PerDbName factory,
so stats were being dropped. Instead of having two factories, turn the
PerDbName one into a proxy/wrapper around the main factory that just adds a
prefix in front of all of the keys.

Bug: T202144
Change-Id: I31e376446abb58e41353b4ca3814120d2e914104

5 years agoImprove StaticArrayWriterTest and add missing @covers tag
Kunal Mehta [Sun, 19 Aug 2018 07:06:35 +0000 (00:06 -0700)]
Improve StaticArrayWriterTest and add missing @covers tag

Checking for proper quoting was suggested by Krinkle in CR.

Change-Id: I7fa599767017a5cfc82899bc4178de6cb34bdd02

5 years agoCSP: In tests, use setMwGlobals() instead of manual set+undo
Timo Tijhof [Sun, 19 Aug 2018 00:42:58 +0000 (01:42 +0100)]
CSP: In tests, use setMwGlobals() instead of manual set+undo

This is the idiom as used in other PHPUnit tests for MediaWiki.

Change-Id: I285e5abe57bad8b9a8a3b35d81bb3a9f5f3dbe85

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 18 Aug 2018 19:53:37 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia8ac63807e9d30d524349ab38e4c66f3f840ce57

5 years agoRemove wfMakeStaticArrayFile()
Kunal Mehta [Sat, 18 Aug 2018 05:32:19 +0000 (22:32 -0700)]
Remove wfMakeStaticArrayFile()

Replaced by the StaticArrayWriter class.

Bug: T200626
Change-Id: I7c02cf3a7dda2804d2eb8d51716254bd78b7544c

5 years agoMove wfMakeStaticArrayFile() into a class
Kunal Mehta [Sat, 18 Aug 2018 05:31:36 +0000 (22:31 -0700)]
Move wfMakeStaticArrayFile() into a class

And include tests :)

This code is independent of MediaWiki, but not really large enough to be
worth librarizing right now.

Bug: T200626
Change-Id: I022c074e8a708fb5219bc4ff4b53e7e31f60dc4b

5 years agoMerge "Reduce calls to MediaWikiServices::getInstance()"
jenkins-bot [Sat, 18 Aug 2018 05:03:47 +0000 (05:03 +0000)]
Merge "Reduce calls to MediaWikiServices::getInstance()"

5 years agoMerge "Use Title::makeName in Special:Export to simplify code"
jenkins-bot [Sat, 18 Aug 2018 04:10:00 +0000 (04:10 +0000)]
Merge "Use Title::makeName in Special:Export to simplify code"

5 years agoReduce calls to MediaWikiServices::getInstance()
Umherirrender [Sat, 18 Aug 2018 04:02:39 +0000 (06:02 +0200)]
Reduce calls to MediaWikiServices::getInstance()

In some functions MediaWikiServices::getInstance() was called twices or
in loops. Extract the variable to reduce calls.

Change-Id: I2705db11d7a9ea73efb9b5a5c40747ab0b3ea36f

5 years agoUse Title::makeName in Special:Export to simplify code
Umherirrender [Sat, 18 Aug 2018 03:10:24 +0000 (05:10 +0200)]
Use Title::makeName in Special:Export to simplify code

Also adjust param docs

Change-Id: Ia938b38c86da25e73b91a55506d660bc9ca9384f

5 years agoMerge "TitleFormatter: Remove indirection from getText()"
jenkins-bot [Sat, 18 Aug 2018 01:18:38 +0000 (01:18 +0000)]
Merge "TitleFormatter: Remove indirection from getText()"

5 years agoMerge "TitleFormatter: Don't look up namespace name for ns 0"
jenkins-bot [Sat, 18 Aug 2018 01:14:51 +0000 (01:14 +0000)]
Merge "TitleFormatter: Don't look up namespace name for ns 0"

5 years agoMerge "TitleValue: Avoid function call for internal property"
jenkins-bot [Sat, 18 Aug 2018 01:05:28 +0000 (01:05 +0000)]
Merge "TitleValue: Avoid function call for internal property"

5 years agoMerge "test: Assert that API generators have unique prefixes"
jenkins-bot [Sat, 18 Aug 2018 01:04:31 +0000 (01:04 +0000)]
Merge "test: Assert that API generators have unique prefixes"

5 years agoMerge "Turn ApiPrefixUniquenessTest into a structure test"
jenkins-bot [Sat, 18 Aug 2018 00:55:18 +0000 (00:55 +0000)]
Merge "Turn ApiPrefixUniquenessTest into a structure test"

5 years agotest: Assert that API generators have unique prefixes
Antoine Musso [Tue, 19 Jun 2018 07:50:12 +0000 (09:50 +0200)]
test: Assert that API generators have unique prefixes

Signed-off-by: Brad Jorsch <bjorsch@wikimedia.org>
Change-Id: I30758f2ac95fd8ae361ef8079abdfb0a82d92e34

5 years agoTitleFormatter: Remove indirection from getText()
Kunal Mehta [Fri, 17 Aug 2018 23:41:02 +0000 (16:41 -0700)]
TitleFormatter: Remove indirection from getText()

At the end of the day, the output is identical to LinkTarget::getText().

Change-Id: Ifddafb79d7602ba5e368cc40f99c56e22a56d506

5 years agoTitleFormatter: Don't look up namespace name for ns 0
Kunal Mehta [Fri, 17 Aug 2018 23:21:27 +0000 (16:21 -0700)]
TitleFormatter: Don't look up namespace name for ns 0

It's hardcoded to empty string, so we can skip some code.

Profiling (after switching the benchmark script to use NS_MAIN) showed
no noticable improvements in getPrefixedText().

Change-Id: Id6b044a51648d0a3f58331ac0427f9d5cd9d8f0f

5 years agoTitleValue: Avoid function call for internal property
Kunal Mehta [Fri, 17 Aug 2018 23:15:20 +0000 (16:15 -0700)]
TitleValue: Avoid function call for internal property

Change-Id: I16342469a8122bd46cada11fd1f1d3f88d2e8d1e

5 years agoMerge "Inject SpecialPageFactory into Parser"
jenkins-bot [Fri, 17 Aug 2018 21:42:39 +0000 (21:42 +0000)]
Merge "Inject SpecialPageFactory into Parser"

5 years agoMerge "Pass through 'helpInline' to OOUI FieldLayout and make true by default"
jenkins-bot [Fri, 17 Aug 2018 21:22:58 +0000 (21:22 +0000)]
Merge "Pass through 'helpInline' to OOUI FieldLayout and make true by default"

5 years agoTurn ApiPrefixUniquenessTest into a structure test
Kunal Mehta [Mon, 11 Jun 2018 23:51:42 +0000 (16:51 -0700)]
Turn ApiPrefixUniquenessTest into a structure test

This way it gets run during extension test runs as well.

Temporarily add a hack allowing 'wbeu' duplicates until T196962 is fixed.

Change-Id: Ic89a22a2ff4525585de9e290a1d47d22cfaaac5e

5 years agoMerge "mediawiki.util: Only call $.fn.updateTooltipAccessKeys if accesskey is set"
jenkins-bot [Fri, 17 Aug 2018 21:18:22 +0000 (21:18 +0000)]
Merge "mediawiki.util: Only call $.fn.updateTooltipAccessKeys if accesskey is set"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 17 Aug 2018 21:12:20 +0000 (23:12 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie7ab020ed7722038335b1a27c6faaaa7e07f8f3f

5 years agoMerge "Mass conversion to SpecialPageFactory service"
jenkins-bot [Fri, 17 Aug 2018 21:02:58 +0000 (21:02 +0000)]
Merge "Mass conversion to SpecialPageFactory service"

5 years agoMerge "Add index on rc_this_oldid"
jenkins-bot [Fri, 17 Aug 2018 20:45:43 +0000 (20:45 +0000)]
Merge "Add index on rc_this_oldid"

5 years agoMerge "Improve profileinfo.php documentation"
jenkins-bot [Fri, 17 Aug 2018 20:40:47 +0000 (20:40 +0000)]
Merge "Improve profileinfo.php documentation"

5 years agoPass through 'helpInline' to OOUI FieldLayout and make true by default
Ed Sanders [Tue, 12 Jun 2018 14:46:48 +0000 (15:46 +0100)]
Pass through 'helpInline' to OOUI FieldLayout and make true by default

This change is meant to improve the layout of Special:Preferences in
particular, but it will affect any OOUI form using help messages. It
should be a harmless or beneficial change for most of them.

Previous behavior can be restored by passing `'help-inline' => false`
to the HTMLForm factory after 'help-message'/'help-messages'/'help'.

For example:

* Special:Preferences?ooui=1#mw-prefsection-watchlist
  * Before: https://phabricator.wikimedia.org/F25025213
  * After:  https://phabricator.wikimedia.org/F25025181

* Special:ChangeEmail
  * Before: https://phabricator.wikimedia.org/F25073327
  * After:  https://phabricator.wikimedia.org/F25073328

* Special:BotPasswords/foo
  * Before: https://phabricator.wikimedia.org/F25073324
  * After:  https://phabricator.wikimedia.org/F25073326

Bug: T181854
Change-Id: Ica67fe4081dfaa8eb9e8f56fdb93530750e47012

5 years agoMerge "jquery.expandableField: Remove module unused since 1.22"
jenkins-bot [Fri, 17 Aug 2018 19:32:28 +0000 (19:32 +0000)]
Merge "jquery.expandableField: Remove module unused since 1.22"

5 years agoMerge "resourceloader: Increase minification cache version"
jenkins-bot [Fri, 17 Aug 2018 19:26:42 +0000 (19:26 +0000)]
Merge "resourceloader: Increase minification cache version"

5 years agoMerge "JavaScriptMinifier: Fix bad state after ternary in object literal"
jenkins-bot [Fri, 17 Aug 2018 19:10:10 +0000 (19:10 +0000)]
Merge "JavaScriptMinifier: Fix bad state after ternary in object literal"

5 years agoMerge "jquery.suggestions: Remove dead code for returning options"
jenkins-bot [Fri, 17 Aug 2018 19:08:37 +0000 (19:08 +0000)]
Merge "jquery.suggestions: Remove dead code for returning options"

5 years agojquery.expandableField: Remove module unused since 1.22
Timo Tijhof [Fri, 17 Aug 2018 18:24:01 +0000 (19:24 +0100)]
jquery.expandableField: Remove module unused since 1.22

Was originally created for Vector, which was originally part
of MediaWiki core. It hasn't been used for a while, and Vector
is in its own repository now.

Found 0 uses of this anywhere in Wikimedia Git, nor elsewhere
indexed by MediaWiki Codesearch.

Bug: T202154
Change-Id: I72ab5ad7f25be87b2f6d2f5f41a672b6a48b8005

5 years agoInject SpecialPageFactory into Parser
Kunal Mehta [Wed, 15 Aug 2018 01:11:59 +0000 (18:11 -0700)]
Inject SpecialPageFactory into Parser

Change-Id: I6a6a94cbdafdc724ce02408cd9e744e7b3eda92b

5 years agoMass conversion to SpecialPageFactory service
Aryeh Gregor [Sun, 12 Aug 2018 09:08:58 +0000 (12:08 +0300)]
Mass conversion to SpecialPageFactory service

Change-Id: Ia6e1e819ec6cbe8bf75b820109f51d47863e31fc

5 years agoMerge "Make SpecialPageFactory a service"
jenkins-bot [Fri, 17 Aug 2018 18:53:27 +0000 (18:53 +0000)]
Merge "Make SpecialPageFactory a service"

5 years agoMerge "Deprecate wfGetCache() and wfGetMainCache()"
jenkins-bot [Fri, 17 Aug 2018 18:41:58 +0000 (18:41 +0000)]
Merge "Deprecate wfGetCache() and wfGetMainCache()"

5 years agoMerge "Deprecate $wgParser"
jenkins-bot [Fri, 17 Aug 2018 18:28:38 +0000 (18:28 +0000)]
Merge "Deprecate $wgParser"

5 years agoMerge "Add release notes for $wgContLang deprecation"
jenkins-bot [Fri, 17 Aug 2018 18:19:48 +0000 (18:19 +0000)]
Merge "Add release notes for $wgContLang deprecation"

5 years agoMake SpecialPageFactory a service
Aryeh Gregor [Tue, 7 Aug 2018 10:58:31 +0000 (13:58 +0300)]
Make SpecialPageFactory a service

Calling SpecialPageFactory methods statically is now soft-deprecated.

SpecialPageFactory::resetList() is a no-op, and I changed tests
in core to use overrideMwServices() instead.

Methods that fell back to $wgUser now require a User object being passed.

Depends-On: Ie1f80315871085b9fd4763a265b588849d94414d
Change-Id: Id8a92d57743f790b7d8c377c033cef38d1bb24de

5 years agoDeprecate wfGetCache() and wfGetMainCache()
Kunal Mehta [Tue, 14 Aug 2018 23:43:25 +0000 (16:43 -0700)]
Deprecate wfGetCache() and wfGetMainCache()

The former is already a wrapper around ObjectCache::getInstance().

The latter was identical to ObjectCache::getLocalClusterInstance().

Bug: T115890
Change-Id: Ib4e43bc8d3f4ac9f7a453e36dcce9b3d962666ba

5 years agoDeprecate $wgParser
Kunal Mehta [Tue, 14 Aug 2018 23:22:15 +0000 (16:22 -0700)]
Deprecate $wgParser

Bug: T160811
Change-Id: I7bcf4bbd14268ec069d97848c016e0098eaf0be4

5 years agojquery.suggestions: Remove dead code for returning options
Timo Tijhof [Fri, 17 Aug 2018 17:50:36 +0000 (18:50 +0100)]
jquery.suggestions: Remove dead code for returning options

    returnValue = (key in obj) ? undefined : obj[key];

By standard, this cannot return anything other undefined.
This code has been broken since the introduction of the module
in 2012 (32377424b, r72349).

The functionality also didn't have test (naturally), and isn't
used anywhere in Wikimedia Git. Simply remove it.

Also remove the confusing $() wrapping of the non-getter return
value that provides chainability.

The 'this' inside a jQuery method is already an instance of jQuery,
pulling it through $() again achieves very little.

Change-Id: Id13861d42b65a759d74670d8c5850aecee4daf7d

5 years agoAdd release notes for $wgContLang deprecation
Kunal Mehta [Tue, 14 Aug 2018 23:21:20 +0000 (16:21 -0700)]
Add release notes for $wgContLang deprecation

Bug: T160815
Change-Id: I4dfdd8516b243f3eeccb69fe518a932178534aa2

5 years agomediawiki.util: Only call $.fn.updateTooltipAccessKeys if accesskey is set
Timo Tijhof [Fri, 17 Aug 2018 17:23:00 +0000 (18:23 +0100)]
mediawiki.util: Only call $.fn.updateTooltipAccessKeys if accesskey is set

Avoids overhead of mw.Message#parse, jqueryMsg.parser, and various
other DOM operations.

Bug: T202151
Change-Id: Id6304c9223806af6d469d9b4c67e60263f4b17ac

5 years agoSimplify redirect linking in InfoAction
Umherirrender [Fri, 17 Aug 2018 17:11:54 +0000 (19:11 +0200)]
Simplify redirect linking in InfoAction

- Only call WikiPage::getRedirectTarget once
- Use the result of getRedirectTarget to determine if the page info must
be shown,
  because sometimes Title::isRedirect gets wrong state, see T172016 for
more information

Bug: T172016
Change-Id: Ic789207ba00d057a35e82a4c22628207eeb7b5fd

5 years agoMessage: Fix error on getTitle() without language
Fomafix [Fri, 17 Aug 2018 16:06:47 +0000 (18:06 +0200)]
Message: Fix error on getTitle() without language

Steps to reproduce:

Old:
> $msg = new Message( 'brackets' )
> print $msg->getTitle()
Error from line 478 of /.../includes/Message.php: Call to a member function equals() on boolean

New:
> $msg = new Message( 'brackets' )
> print $msg->getTitle()
MediaWiki:Brackets

This got broken in 796d62d0.

Change-Id: I52cde36787e348378c4df18d90aa577a5600e06b

5 years agoImprove profileinfo.php documentation
Timo Tijhof [Fri, 17 Aug 2018 14:58:57 +0000 (15:58 +0100)]
Improve profileinfo.php documentation

* Move $wgEnableProfileInfo to DefaultSettings.php

* The configuration variable to enable the entry point was added
  together with the entry point itself in 9af3c09e5c (r9846).

* Change references to StartProfiler.php to refer to LocalSettings.php,
  given the former is deprecated since 1.31 (I4e8dd9558132).

Change-Id: I7ca5f2deace8645f06bebd915630c1de05c84bc5

5 years agoMerge "Html: Add test coverage for inlineScript()"
jenkins-bot [Fri, 17 Aug 2018 01:08:26 +0000 (01:08 +0000)]
Merge "Html: Add test coverage for inlineScript()"

5 years agoMerge "languages: Add coverage for 'ar' and 'ml' normalize()"
jenkins-bot [Fri, 17 Aug 2018 00:27:13 +0000 (00:27 +0000)]
Merge "languages: Add coverage for 'ar' and 'ml' normalize()"

5 years agoMerge "mediawiki.jqueryMsg: Combine the two generated data scripts"
jenkins-bot [Fri, 17 Aug 2018 00:09:10 +0000 (00:09 +0000)]
Merge "mediawiki.jqueryMsg: Combine the two generated data scripts"

5 years agoMerge "mw.ForeignStructuredUpload: Use 'helpInline' instead of custom styles"
jenkins-bot [Thu, 16 Aug 2018 23:40:39 +0000 (23:40 +0000)]
Merge "mw.ForeignStructuredUpload: Use 'helpInline' instead of custom styles"

5 years agoMerge "Fix eslint warnings and switch to error code"
jenkins-bot [Thu, 16 Aug 2018 22:31:26 +0000 (22:31 +0000)]
Merge "Fix eslint warnings and switch to error code"

5 years agoMerge "Warn against certain jQuery methods"
jenkins-bot [Thu, 16 Aug 2018 22:21:36 +0000 (22:21 +0000)]
Merge "Warn against certain jQuery methods"

5 years agoMerge "benchmarks: Create $normBenchs before the run instead of during"
jenkins-bot [Thu, 16 Aug 2018 22:10:54 +0000 (22:10 +0000)]
Merge "benchmarks: Create $normBenchs before the run instead of during"

5 years agomw.ForeignStructuredUpload: Use 'helpInline' instead of custom styles
Bartosz Dziewoński [Thu, 16 Aug 2018 20:51:18 +0000 (22:51 +0200)]
mw.ForeignStructuredUpload: Use 'helpInline' instead of custom styles

Before: https://phabricator.wikimedia.org/F25025765
After: https://phabricator.wikimedia.org/F25025764

Change-Id: I423c786e30570b8febc888b61450e8fce9185ba6

5 years agoMerge "Remove incorrect timezone conversion from date parameters"
jenkins-bot [Thu, 16 Aug 2018 20:28:10 +0000 (20:28 +0000)]
Merge "Remove incorrect timezone conversion from date parameters"

5 years agomediawiki.jqueryMsg: Combine the two generated data scripts
Timo Tijhof [Thu, 16 Aug 2018 20:09:59 +0000 (21:09 +0100)]
mediawiki.jqueryMsg: Combine the two generated data scripts

No need to output two mw.jqueryMsg.setParserDefaults() calls.
Follows-up 7e65b6b3a766c1.

Also:
* Fix an inline comment that referred to a non-existent method.
* Document why we pass deep=true.

Change-Id: I7414d4188a4d933e2132f80135cbda87241580c0

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 16 Aug 2018 20:06:27 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icc72d5230b3c3c09c5095b52cc3d2191751a109f

5 years agoMerge "rdbms: remove some dead code in LoadBalancer::setDomainPrefix"
jenkins-bot [Thu, 16 Aug 2018 17:22:03 +0000 (17:22 +0000)]
Merge "rdbms: remove some dead code in LoadBalancer::setDomainPrefix"

5 years agobenchmarks: Create $normBenchs before the run instead of during
Timo Tijhof [Thu, 16 Aug 2018 17:11:14 +0000 (18:11 +0100)]
benchmarks: Create $normBenchs before the run instead of during

Separates the concerns a bit better, and also makes the code easier
to debug with less distracting steps during the running of the
benchmark.

Change-Id: Ia5a18216cb77d39fd60cd76b23ebceee7324a250

5 years agoresourceloader: Increase minification cache version
Timo Tijhof [Sat, 11 Aug 2018 16:31:45 +0000 (17:31 +0100)]
resourceloader: Increase minification cache version

Follows-up 1f5f6fc204.

Bug: T201606
Change-Id: I0b5af067d1d44880c8122343f8e4a1b47e998619

5 years agoJavaScriptMinifier: Fix bad state after ternary in object literal
Timo Tijhof [Mon, 13 Aug 2018 17:38:14 +0000 (18:38 +0100)]
JavaScriptMinifier: Fix bad state after ternary in object literal

The following pattern of input (found in jquery.js) triggered
this bug:

    call( {
        key: 1 ? 0 : function () {
            return this;
        }
    } );

The open brace changes state to PROPERTY_ASSIGNMENT (for object literals).
The colon after 'key' sets state to PROPERTY_EXPRESSION.

Each individual parts of an expression (identifiers and literal values)
is recognised with state *_EXPRESSION_OP, such as PROPERTY_EXPRESSION_OP.

The '1' after 'key:' correctly sets the state to PROPERTY_EXPRESSION_OP.
Upto there it goes well, but after that it goes wrong.

The question mark (TYPE_HOOK) in this context was wrongly switching
back to PROPERTY_EXPRESSION. That is a problem because that does not
handle TYPE_COLON, which meant '0: function' was seen together as a
sequence of continuous PROPERTY_EXPRESSION_OP where TYPE_FUNC may
not be handled.

Fixed by changing handling of TYPE_HOOK in PROPERTY_EXPRESSION to
switch states to EXPRESSION_TERNARY, and also performing a push
so that ternary handling can pop back to the property expression.

This mirrors the handling that already exists for ternaries in
the regular handling of EXPRESSION/EXPRESSION_OP (as opposed to
the variant for object literal properties).

Bug: T201606
Change-Id: I6104c839cfc3416257543b54a91b74cb4aa4193b

5 years agordbms: remove some dead code in LoadBalancer::setDomainPrefix
Aaron Schulz [Thu, 16 Aug 2018 13:31:11 +0000 (06:31 -0700)]
rdbms: remove some dead code in LoadBalancer::setDomainPrefix

Change-Id: I594a390b446c00eb604b0be63f67b2c8cbd45758

5 years agotitle: Disable the failing tests from TitlePermissionTest
Timo Tijhof [Wed, 15 Aug 2018 23:03:19 +0000 (00:03 +0100)]
title: Disable the failing tests from TitlePermissionTest

Bug: T201776
Change-Id: I088bd797225e0c60c66de4d4d1aa12d0b5bf67d8

5 years agoMerge "Set getEditConflictMainTextBox parameter type to array"
jenkins-bot [Thu, 16 Aug 2018 10:02:18 +0000 (10:02 +0000)]
Merge "Set getEditConflictMainTextBox parameter type to array"

5 years agoMerge "selenium: undo page"
jenkins-bot [Thu, 16 Aug 2018 09:56:57 +0000 (09:56 +0000)]
Merge "selenium: undo page"

5 years agoSet getEditConflictMainTextBox parameter type to array
WMDE-Fisch [Thu, 16 Aug 2018 09:00:06 +0000 (11:00 +0200)]
Set getEditConflictMainTextBox parameter type to array

This is only called at one place in core and used in the TwoColConf
extention. The passed argument is always an array.

Change-Id: I4ca94442b79dc8871ed72943be733d100e093e44

5 years agoUnbreak Special:JavaScriptTest
Niklas Laxström [Thu, 16 Aug 2018 06:28:17 +0000 (08:28 +0200)]
Unbreak Special:JavaScriptTest

Follow-up to dec8009

Change-Id: I812253cc1a504a8bb876700026dbfd35a727458b

5 years agoMerge "rdbms: use Database::getDomainId for transaction logging calls"
jenkins-bot [Thu, 16 Aug 2018 05:54:35 +0000 (05:54 +0000)]
Merge "rdbms: use Database::getDomainId for transaction logging calls"

5 years agoMerge "Fix spelling of word "necessary""
jenkins-bot [Thu, 16 Aug 2018 05:37:02 +0000 (05:37 +0000)]
Merge "Fix spelling of word "necessary""

5 years agoMerge "rdbms: Disable DBConnRef::selectDB() for sanity"
jenkins-bot [Thu, 16 Aug 2018 04:33:58 +0000 (04:33 +0000)]
Merge "rdbms: Disable DBConnRef::selectDB() for sanity"

5 years agoFix spelling of word "necessary"
petarpetkovic [Wed, 15 Aug 2018 23:33:12 +0000 (01:33 +0200)]
Fix spelling of word "necessary"

Bug: T201491
Change-Id: Ic983889a5702b8b8552c88ebc4d676f35e9fe61e

5 years agoFix some of the common typos
petarpetkovic [Mon, 13 Aug 2018 17:07:14 +0000 (19:07 +0200)]
Fix some of the common typos

* supress -> suppress (Except in backup_LogTest.php)
* recomend -> recommend
* becuase -> because
* accross -> across

Bug: T201491
Change-Id: I8faa4e6cc688b3ee204b3f79ab55eb7b65cc1fdd

5 years agoMerge "Have WANCacheReapUpdate::getEventAffectedKeys() accept LinkTarget"
jenkins-bot [Wed, 15 Aug 2018 22:34:18 +0000 (22:34 +0000)]
Merge "Have WANCacheReapUpdate::getEventAffectedKeys() accept LinkTarget"

5 years agoMerge "Actually inject InterwikiLookup into MediaWikiTitleCodec"
jenkins-bot [Wed, 15 Aug 2018 20:32:21 +0000 (20:32 +0000)]
Merge "Actually inject InterwikiLookup into MediaWikiTitleCodec"

5 years agoMerge "Have LinkCache::getMutableCacheKeys() accept LinkTarget"
jenkins-bot [Wed, 15 Aug 2018 20:32:16 +0000 (20:32 +0000)]
Merge "Have LinkCache::getMutableCacheKeys() accept LinkTarget"

5 years agoMerge "Title: Access properties directly instead of wrapper functions"
jenkins-bot [Wed, 15 Aug 2018 20:13:08 +0000 (20:13 +0000)]
Merge "Title: Access properties directly instead of wrapper functions"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 15 Aug 2018 20:03:09 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4b07075f2c8b2965f542f08cfbb62d71b23d9099

5 years agoMerge "Make LinkBatch::setCaller chainable"
jenkins-bot [Wed, 15 Aug 2018 19:57:26 +0000 (19:57 +0000)]
Merge "Make LinkBatch::setCaller chainable"

5 years agoMerge "Update OOUI to v0.28.0"
jenkins-bot [Wed, 15 Aug 2018 17:56:16 +0000 (17:56 +0000)]
Merge "Update OOUI to v0.28.0"

5 years agoUpdate OOUI to v0.28.0
Volker E [Tue, 14 Aug 2018 23:55:10 +0000 (16:55 -0700)]
Update OOUI to v0.28.0

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

Bug: T109529
Bug: T183601
Bug: T183645
Bug: T185751
Bug: T189113
Bug: T189953
Bug: T190441
Bug: T190581
Bug: T194104
Bug: T197004
Bug: T198845
Bug: T201329
Bug: T201871
Depends-on: I3c000504661e190ac8752f69419bed28785601b5
Change-Id: I0c101a942011f6095678ffbd90f9bd536132091c

5 years agoMerge "Add option to populateChangeTagDef not to update the count"
jenkins-bot [Wed, 15 Aug 2018 15:06:03 +0000 (15:06 +0000)]
Merge "Add option to populateChangeTagDef not to update the count"

5 years agoMerge "Remove dead code from Title::secureAndSplit()"
jenkins-bot [Wed, 15 Aug 2018 15:01:32 +0000 (15:01 +0000)]
Merge "Remove dead code from Title::secureAndSplit()"

5 years agoMerge "TitleValue: Don't use Assert for basic type checks"
jenkins-bot [Wed, 15 Aug 2018 14:48:05 +0000 (14:48 +0000)]
Merge "TitleValue: Don't use Assert for basic type checks"

5 years agoMerge "Have TitleParser::parseTitle() default to NS_MAIN to match Title"
jenkins-bot [Wed, 15 Aug 2018 14:43:44 +0000 (14:43 +0000)]
Merge "Have TitleParser::parseTitle() default to NS_MAIN to match Title"

5 years agoAdd option to populateChangeTagDef not to update the count
Amir Sarabadani [Mon, 13 Aug 2018 10:44:11 +0000 (12:44 +0200)]
Add option to populateChangeTagDef not to update the count

I need this when I'm picking this up to continue populating

Change-Id: I52c74d3c1c59ee966027d5d9cb1a2bd3cf6dfc7a

5 years agoHave WANCacheReapUpdate::getEventAffectedKeys() accept LinkTarget
Kunal Mehta [Wed, 15 Aug 2018 09:28:51 +0000 (02:28 -0700)]
Have WANCacheReapUpdate::getEventAffectedKeys() accept LinkTarget

Nothing specifically requires TitleValue here.

Change-Id: I62ee1995c49071db2871149b941277b29836a94a

5 years agoMake LinkBatch::setCaller chainable
Niklas Laxström [Wed, 15 Aug 2018 08:57:21 +0000 (10:57 +0200)]
Make LinkBatch::setCaller chainable

To allow for one-liners such as $lb->setCaller( __METHOD__ )->execute();

Change-Id: I45cd81d9e583f09aacb578ffb87d7c11b0e13d57

5 years agordbms: use Database::getDomainId for transaction logging calls
Aaron Schulz [Wed, 15 Aug 2018 08:20:30 +0000 (01:20 -0700)]
rdbms: use Database::getDomainId for transaction logging calls

Change-Id: I360ca633b145dc8e510bb00b542ac44933283943

5 years agoActually inject InterwikiLookup into MediaWikiTitleCodec
Kunal Mehta [Wed, 15 Aug 2018 07:15:04 +0000 (00:15 -0700)]
Actually inject InterwikiLookup into MediaWikiTitleCodec

Change-Id: Ic469f0fb8068bfb06b741d957b21e66dfa839cd6

5 years agoMerge "rdbms: split out private LoadBalancer::openLocalConnection method"
jenkins-bot [Wed, 15 Aug 2018 06:06:02 +0000 (06:06 +0000)]
Merge "rdbms: split out private LoadBalancer::openLocalConnection method"

5 years agoHave LinkCache::getMutableCacheKeys() accept LinkTarget
Kunal Mehta [Wed, 15 Aug 2018 05:56:27 +0000 (22:56 -0700)]
Have LinkCache::getMutableCacheKeys() accept LinkTarget

Change-Id: Id84590b3aa285e31a358877167fe8ff502077f3c

5 years agoTitle: Access properties directly instead of wrapper functions
Kunal Mehta [Wed, 15 Aug 2018 05:33:56 +0000 (22:33 -0700)]
Title: Access properties directly instead of wrapper functions

Since this is pretty hot code, avoid the performance hit of a function
call when we can directly access the property.

Change-Id: I287de5eb003582b5704e9d93e2fc99d16c0ffb2a