lhc/web/wiklou.git
5 years agoAdd @var to class properties to clarify types
Umherirrender [Sat, 16 Feb 2019 20:21:03 +0000 (21:21 +0100)]
Add @var to class properties to clarify types

Change-Id: Ia6e9eb70c68b5922077c8e5940b436844fa36e25

5 years agoRemove deprecated Language::markNoConversion
Fomafix [Sat, 2 Mar 2019 11:14:28 +0000 (12:14 +0100)]
Remove deprecated Language::markNoConversion

Language::markNoConversion was hard-deprecated in 7de2c566d included in
1.32.

Change-Id: I2cc200d7a814e73d9c6138860190f44232a6bd3c

5 years agoMerge "Check normalization rules of usernames during signup"
jenkins-bot [Fri, 8 Mar 2019 08:15:51 +0000 (08:15 +0000)]
Merge "Check normalization rules of usernames during signup"

5 years agoMerge "build: Remove failing HHVM test from Travis CI config"
jenkins-bot [Fri, 8 Mar 2019 01:28:38 +0000 (01:28 +0000)]
Merge "build: Remove failing HHVM test from Travis CI config"

5 years agoMerge "objectcache: add $flags argument to BagOStuff::delete()"
jenkins-bot [Fri, 8 Mar 2019 00:51:25 +0000 (00:51 +0000)]
Merge "objectcache: add $flags argument to BagOStuff::delete()"

5 years agoMerge "rdbms: undeprecate DBReplicationWaitError to align with current use"
jenkins-bot [Fri, 8 Mar 2019 00:34:31 +0000 (00:34 +0000)]
Merge "rdbms: undeprecate DBReplicationWaitError to align with current use"

5 years agoMerge "Do not bother with WAN cache set options for immutable text blob keys"
jenkins-bot [Fri, 8 Mar 2019 00:05:37 +0000 (00:05 +0000)]
Merge "Do not bother with WAN cache set options for immutable text blob keys"

5 years agoMerge "Make IndexPager query direction code more readable"
jenkins-bot [Fri, 8 Mar 2019 00:05:31 +0000 (00:05 +0000)]
Merge "Make IndexPager query direction code more readable"

5 years agoMerge "objectcache: remove obsolete code from SqlBagOStuff::handleWriteError()"
jenkins-bot [Fri, 8 Mar 2019 00:05:26 +0000 (00:05 +0000)]
Merge "objectcache: remove obsolete code from SqlBagOStuff::handleWriteError()"

5 years agoMerge "Make ApiStashEdit use a separate key for the parser output due to size"
jenkins-bot [Thu, 7 Mar 2019 23:58:57 +0000 (23:58 +0000)]
Merge "Make ApiStashEdit use a separate key for the parser output due to size"

5 years agoMerge "objectcache: fix comment typo for addBusyCallback()"
jenkins-bot [Thu, 7 Mar 2019 23:58:51 +0000 (23:58 +0000)]
Merge "objectcache: fix comment typo for addBusyCallback()"

5 years agobuild: Remove failing HHVM test from Travis CI config
Timo Tijhof [Thu, 7 Mar 2019 23:17:59 +0000 (23:17 +0000)]
build: Remove failing HHVM test from Travis CI config

This is the only version of HHVM that MediaWiki still supports,
and while it is passing on WMF's Jenkins, its redundant counterpart
on Travis has been failing for months.

It doesn't appear to be adding value in its current form,
and it's unlikely that after failing so long, that someone would
invest in making it pass before support for HHVM is dropped later
this year (in master, which is the only branch we test in Travis).

It's also delayed feedback by a third (~10min -> 15min), because
it seems to be much slower than the others (unsure why).

Change-Id: I89bd09cb04afde89c8e8ec9a06f69ecb4b094714

5 years agoMerge "UserTest: correctly reset fake time"
jenkins-bot [Thu, 7 Mar 2019 21:51:27 +0000 (21:51 +0000)]
Merge "UserTest: correctly reset fake time"

5 years agoMerge "Add @var to Pager classes"
jenkins-bot [Thu, 7 Mar 2019 21:51:21 +0000 (21:51 +0000)]
Merge "Add @var to Pager classes"

5 years agoMerge "Added Id to the input box"
jenkins-bot [Thu, 7 Mar 2019 21:49:56 +0000 (21:49 +0000)]
Merge "Added Id to the input box"

5 years agordbms: undeprecate DBReplicationWaitError to align with current use
Aaron Schulz [Thu, 7 Mar 2019 21:25:06 +0000 (13:25 -0800)]
rdbms: undeprecate DBReplicationWaitError to align with current use

Change-Id: I2a180558b1a8cfaccf72bec7a809158de25eebc4

5 years agoMerge "Update OOUI to v0.30.4"
jenkins-bot [Thu, 7 Mar 2019 21:24:54 +0000 (21:24 +0000)]
Merge "Update OOUI to v0.30.4"

5 years agoobjectcache: remove obsolete code from SqlBagOStuff::handleWriteError()
Aaron Schulz [Thu, 7 Mar 2019 21:21:41 +0000 (13:21 -0800)]
objectcache: remove obsolete code from SqlBagOStuff::handleWriteError()

Given that the DB classes already check read-only mode and bad
transaction states are already handled by 3975e04cf4d, this
code was not useful.

Change-Id: I4b6e8909196448a12cf74598de0272fa43bdfc62

5 years agoUserTest: correctly reset fake time
Stephane Bisson [Thu, 7 Mar 2019 21:18:22 +0000 (16:18 -0500)]
UserTest: correctly reset fake time

Change-Id: I5fc64506781fbc40e81719aa03441643c38d4e54
Follows-Up: Ica3e6e7165496bdc9b8f12972cf93847ecfffa50
Bug: T216631

5 years agoobjectcache: add $flags argument to BagOStuff::delete()
Aaron Schulz [Thu, 7 Mar 2019 21:15:29 +0000 (13:15 -0800)]
objectcache: add $flags argument to BagOStuff::delete()

This makes it consistent with set() and merge(). Also, one subclass
was already using the field in this manner.

Clean up the code related to WRITE_SYNC in SqlBagOStuff.

Change-Id: I0fb84f4475311889507d3ef98afd4476fb81174f

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 7 Mar 2019 21:02:11 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I28265dca10ec71e558c1df9135430c9d9c498a4e

5 years agoMerge "Use short assignment operator in PHP"
jenkins-bot [Thu, 7 Mar 2019 20:52:45 +0000 (20:52 +0000)]
Merge "Use short assignment operator in PHP"

5 years agoobjectcache: fix comment typo for addBusyCallback()
Aaron Schulz [Thu, 7 Mar 2019 20:25:02 +0000 (12:25 -0800)]
objectcache: fix comment typo for addBusyCallback()

Change-Id: I05a4d84d40b81ba25b89238b36cdb64c71e2de1e

5 years agoIntroducing User::getLatestEditTimestamp()
Stephane Bisson [Wed, 6 Mar 2019 16:28:51 +0000 (11:28 -0500)]
Introducing User::getLatestEditTimestamp()

This will be used by the GrowthExperiments
Mentorship module to show when a user made their
latest contribution.

* Introduce a private function to reduce duplication with
  getFirstEditTimestamp()
* Add unit tests for both

Bug: T216631
Change-Id: Ica3e6e7165496bdc9b8f12972cf93847ecfffa50

5 years agoMerge "Normalize "LEFT OUTER JOIN" to "LEFT JOIN" in SQL queries"
jenkins-bot [Thu, 7 Mar 2019 19:44:11 +0000 (19:44 +0000)]
Merge "Normalize "LEFT OUTER JOIN" to "LEFT JOIN" in SQL queries"

5 years agoAdd @var to Pager classes
Umherirrender [Thu, 3 Jan 2019 15:15:07 +0000 (16:15 +0100)]
Add @var to Pager classes

Some are needed to make better results with phan in extensions

For example:
File CentralNoticeCampaignLogPager.php line 12:
Assigning array{0:20,1:50,2:100} to property but
\CentralNoticeCampaignLogPager->mLimitsShown is
array{0:20,1:50,2:100,3:250,4:500}
[PhanTypeMismatchProperty]

With "@var int[]" the type is correct

Change-Id: Ic68910bf17344852ad11fcc000a47891e4bf0179

5 years agoUpdate PHPDoc types in several maintenance scripts and related
Thiemo Kreuz [Thu, 28 Feb 2019 11:33:47 +0000 (12:33 +0100)]
Update PHPDoc types in several maintenance scripts and related

There is like a billion of these in our core codebase. I would love to
update them all. But I don't have the time, at least not to do them all
at once.

TL;DR: It's an improvement. :-)

Change-Id: I0a9c51bdcf0f261f971586bb8703f418324b0f98

5 years agoMerge "Remove various references to cURL in code comments"
jenkins-bot [Thu, 7 Mar 2019 10:39:22 +0000 (10:39 +0000)]
Merge "Remove various references to cURL in code comments"

5 years agoUpdate OOUI to v0.30.4
James D. Forrester [Thu, 7 Mar 2019 09:22:27 +0000 (09:22 +0000)]
Update OOUI to v0.30.4

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

Bug: T92026
Bug: T145674
Bug: T206729
Bug: T213884
Bug: T216780
Bug: T217014
Bug: T217213
Bug: T217381
Bug: T217790
Depends-On: Id50f068908accd022c7847c40795286c32199b4e
Change-Id: Id50f068908accd022c7847c40795286c32199b4a

5 years agoUse short assignment operator in PHP
Fomafix [Mon, 1 May 2017 17:18:38 +0000 (19:18 +0200)]
Use short assignment operator in PHP

Use
  $var .= $foo
instead of
  $var = $var . $foo

Change-Id: I5dcdd7278e618c14968e5ac1fb8ea43ac2200deb

5 years agoMerge "Report logs for each individual test failure"
jenkins-bot [Thu, 7 Mar 2019 00:07:40 +0000 (00:07 +0000)]
Merge "Report logs for each individual test failure"

5 years agoMerge "Title: Minor clean up for stricter checks, casting style, and doc types"
jenkins-bot [Thu, 7 Mar 2019 00:07:34 +0000 (00:07 +0000)]
Merge "Title: Minor clean up for stricter checks, casting style, and doc types"

5 years agoReport logs for each individual test failure
Erik Bernhardson [Mon, 4 Mar 2019 21:44:39 +0000 (13:44 -0800)]
Report logs for each individual test failure

The initial implementation of reporting logs with test failures was
incorrect, it always reported the logs of the most recent test run.
Attach logs to the Test when a failure is reported and pull them
back out in the result printer.

Bug: T217489
Change-Id: I5aa55d6fa7a7ec03a2e71636b6b0366ea40605cb

5 years agoMerge "Use the .= operator to concatenate a var with another"
jenkins-bot [Wed, 6 Mar 2019 23:02:42 +0000 (23:02 +0000)]
Merge "Use the .= operator to concatenate a var with another"

5 years agoDo not bother with WAN cache set options for immutable text blob keys
Aaron Schulz [Wed, 6 Mar 2019 22:19:41 +0000 (14:19 -0800)]
Do not bother with WAN cache set options for immutable text blob keys

Doing so can only result in occasional needless set() call rejections
or automatically lowered TTLs.

Change-Id: I2f007ba88e8f9c9f1ac3cd3d2daf3cd2289e315a

5 years agoMake IndexPager query direction code more readable
Aaron Schulz [Wed, 6 Mar 2019 18:51:43 +0000 (10:51 -0800)]
Make IndexPager query direction code more readable

Rename $descending variable in doQuery() to $order, along with the
$descending argument to reallyDoQuery() and buildQueryInfo(). Use
new IndexPager::QUERY_* constants for checking and inverting such
values. Fix the comments so that they do not imply the opposite of
what is true anymore.

For compatibility, the constants are boolean values such that any
subclass defining reallyDoQuery()/buildQueryInfo() can use that
argument the same way as before.

Change-Id: I912d3678c755c25463a2fadbec6888f3a87d4215

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 6 Mar 2019 22:26:10 +0000 (23:26 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I337a2609e45ccd9b3bb71c7d60e3847e320b5db6

5 years agoUse the .= operator to concatenate a var with another
Derick Alangi [Wed, 6 Mar 2019 22:20:56 +0000 (23:20 +0100)]
Use the .= operator to concatenate a var with another

Rather than using $var = $var . $foo, to avoid the redundancy, use
$var .= $foo which is a valid PHP syntax and popularly used.

Change-Id: Idbbdb31a7b5561ed97f9ba0f05f6ac78c9419f82

5 years agoMerge "ActiveUsersPager: Fix ordering and return 0-action users"
jenkins-bot [Wed, 6 Mar 2019 22:11:00 +0000 (22:11 +0000)]
Merge "ActiveUsersPager: Fix ordering and return 0-action users"

5 years agoNormalize "LEFT OUTER JOIN" to "LEFT JOIN" in SQL queries
Aaron Schulz [Wed, 6 Mar 2019 22:01:20 +0000 (14:01 -0800)]
Normalize "LEFT OUTER JOIN" to "LEFT JOIN" in SQL queries

Change-Id: I4de7f0527d9e16f9128ef3b24567511d4c74245d

5 years agoMerge "Stash WatchedItem changes so that the jobs run from the queue"
jenkins-bot [Wed, 6 Mar 2019 21:18:00 +0000 (21:18 +0000)]
Merge "Stash WatchedItem changes so that the jobs run from the queue"

5 years agoMerge "resourceloader: Remove wgAvailableSkins from mw.config"
jenkins-bot [Wed, 6 Mar 2019 20:51:50 +0000 (20:51 +0000)]
Merge "resourceloader: Remove wgAvailableSkins from mw.config"

5 years agoMerge "Normalize use of "INNER JOIN" to "JOIN" in database queries"
jenkins-bot [Wed, 6 Mar 2019 20:20:22 +0000 (20:20 +0000)]
Merge "Normalize use of "INNER JOIN" to "JOIN" in database queries"

5 years agoresourceloader: Remove wgAvailableSkins from mw.config
Timo Tijhof [Wed, 6 Mar 2019 15:00:47 +0000 (15:00 +0000)]
resourceloader: Remove wgAvailableSkins from mw.config

Added in 2011 for use in QUnit tests (r80790, r80792).

That was a terrible idea in hindsight, which I removed again in
2015 with 6b758fc982972e, and 0f9e4ca0fb7c.

If a need for it were to arise in the future, we'd export it
within the file module that needs it, or via addJsConfigVars()
on only the pages that need it – not globally.

Bug: T217772
Change-Id: I3885cacaa9b33e6947dbaf26f9b6839e19588603

5 years agoActiveUsersPager: Fix ordering and return 0-action users
Brad Jorsch [Mon, 4 Mar 2019 04:01:29 +0000 (23:01 -0500)]
ActiveUsersPager: Fix ordering and return 0-action users

Ia9d2ff00 introduced two incompatibilities with what the base classes
were trying to do:

* The $descending flag passed to buildQueryInfo() does not actually mean
  DESC if $this->mIsBackwards is set. The old code just blindly assumed
  that was the case.
* For paging to work right, we must return all $limit rows, we can't
  filter out users with 0 actions. Thus we need to LEFT JOIN
  recentchanges (and move some conditions around to cope)..

Bug: T217525
Change-Id: Iba105a31ff61fbb14931bf8903538bfe7b0ba48b

5 years agoMerge "resourceloader: Remove ResourceLoaderMaxQueryLength from mw.config"
jenkins-bot [Wed, 6 Mar 2019 18:54:05 +0000 (18:54 +0000)]
Merge "resourceloader: Remove ResourceLoaderMaxQueryLength from mw.config"

5 years agoMerge "resourceloader: Use local var for getConfig() calls in StartUpModule"
jenkins-bot [Wed, 6 Mar 2019 18:13:59 +0000 (18:13 +0000)]
Merge "resourceloader: Use local var for getConfig() calls in StartUpModule"

5 years agoMerge "Fix HeaderCallback failing on headers without a colon"
jenkins-bot [Wed, 6 Mar 2019 17:45:51 +0000 (17:45 +0000)]
Merge "Fix HeaderCallback failing on headers without a colon"

5 years agoMerge "Add help text to "partial" and "sitewide" options on Special:Block"
jenkins-bot [Wed, 6 Mar 2019 17:26:26 +0000 (17:26 +0000)]
Merge "Add help text to "partial" and "sitewide" options on Special:Block"

5 years agoNormalize use of "INNER JOIN" to "JOIN" in database queries
Aaron Schulz [Wed, 6 Mar 2019 17:17:27 +0000 (09:17 -0800)]
Normalize use of "INNER JOIN" to "JOIN" in database queries

The ANSI SQL default join type is INNER and this might save
some line breaks here and there.

Change-Id: Ibd39976f46ca3f9b71190d3b60b76ca085787a00

5 years agoMake ApiStashEdit use a separate key for the parser output due to size
Aaron Schulz [Sat, 2 Mar 2019 02:30:29 +0000 (18:30 -0800)]
Make ApiStashEdit use a separate key for the parser output due to size

Bug: T204742
Change-Id: Ibab189c8e0dee5e840770bdb0336516fdfc75e4b

5 years agoMerge "Make LinksUpdate::getPropertyDeletions private"
jenkins-bot [Wed, 6 Mar 2019 16:38:02 +0000 (16:38 +0000)]
Merge "Make LinksUpdate::getPropertyDeletions private"

5 years agoMerge "Add more documentation to DeferredUpdates::doUpdates"
jenkins-bot [Wed, 6 Mar 2019 16:36:29 +0000 (16:36 +0000)]
Merge "Add more documentation to DeferredUpdates::doUpdates"

5 years agoAdd help text to "partial" and "sitewide" options on Special:Block
Thalia [Wed, 27 Feb 2019 22:11:40 +0000 (22:11 +0000)]
Add help text to "partial" and "sitewide" options on Special:Block

Describe the differences between sitewide and partial blocks under the
respective radio options.

Bug: T213101
Change-Id: Ibf098c6becaf4824f8da2cade22e23f4ce00283b

5 years agoresourceloader: Remove ResourceLoaderMaxQueryLength from mw.config
Timo Tijhof [Wed, 6 Mar 2019 15:46:44 +0000 (15:46 +0000)]
resourceloader: Remove ResourceLoaderMaxQueryLength from mw.config

This is only used internally. It doesn't need to be exported
as part of mw.config.

Change-Id: If4206d797b5d426eb999c34ad5dde3ba141c6f05

5 years agoresourceloader: Use local var for getConfig() calls in StartUpModule
Timo Tijhof [Wed, 6 Mar 2019 15:45:55 +0000 (15:45 +0000)]
resourceloader: Use local var for getConfig() calls in StartUpModule

Change-Id: I53af241454872fd228869b45dc74175c56026d6e

5 years agoMerge "Hard deprecate MWNamespace::canTalk()"
jenkins-bot [Wed, 6 Mar 2019 15:11:07 +0000 (15:11 +0000)]
Merge "Hard deprecate MWNamespace::canTalk()"

5 years agoTitle: Minor clean up for stricter checks, casting style, and doc types
Derick Alangi [Sat, 2 Mar 2019 15:47:40 +0000 (16:47 +0100)]
Title: Minor clean up for stricter checks, casting style, and doc types

These improvements touch areas around cleaning up deprecated functions
such as intval(), strval() into casting with (int), (string), etc.

If such improvements is welcomed into the Title class, I can make more
of such but for now, I've just made a few, like 1/20 of these kind of
changes in the file so that, if it's merged and encouraged to continue,
I'll cleanup the file. Or as proposed on this patch, phpcs rules can be
used to handle such cases.

Change-Id: Ib90e880cb124e765379ddad531d4c89289d364de

5 years agoMerge "user_group, the nonexistent table that keeps on giving"
jenkins-bot [Wed, 6 Mar 2019 09:58:52 +0000 (09:58 +0000)]
Merge "user_group, the nonexistent table that keeps on giving"

5 years agoMake LinksUpdate::getPropertyDeletions private
Aaron Schulz [Wed, 6 Mar 2019 09:23:22 +0000 (01:23 -0800)]
Make LinksUpdate::getPropertyDeletions private

Change-Id: Iec1ae929566e25a278ef918f9f6b22343dce6cec

5 years agouser_group, the nonexistent table that keeps on giving
Jack Phoenix [Wed, 6 Mar 2019 09:07:26 +0000 (11:07 +0200)]
user_group, the nonexistent table that keeps on giving

Follow-up to 27c61fb1e94da9114314468fd00bcf129ec064b6.

Bug: T199474

Change-Id: Ie8e054f5898209c51538669149e966bee7754f1e

5 years agoRevert "Convert MultiHttpClient to use Guzzle"
Antoine Musso [Wed, 6 Mar 2019 08:52:34 +0000 (08:52 +0000)]
Revert "Convert MultiHttpClient to use Guzzle"

That breaks on Wikimedia beta cluster (T217733):

Warning: Invalid argument: option: 6 in
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 56

Warning: Invalid argument: option: 6 in
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 56

Warning: Invalid argument: function: not string, closure, or array in
vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php on line 108

Fatal error: Uncaught exception 'ConfigException'
Failed to load configuration from etcd: cURL error 23: Failed writing
header

This reverts commit 1e048a08b565ae909e85465f8b09a27ed8480ce2.

Bug: T202352
Bug: T217733
Change-Id: I2384355043896128d3f191941e8da00fdc62361e

5 years agoAdd more documentation to DeferredUpdates::doUpdates
Aaron Schulz [Wed, 6 Mar 2019 08:04:12 +0000 (00:04 -0800)]
Add more documentation to DeferredUpdates::doUpdates

Change-Id: Id2f1fb624d03943e5eb4bed49d3435cf9c99fc25

5 years agoMerge "resourceloader: Minor clean up in saveFileDependencies()"
jenkins-bot [Wed, 6 Mar 2019 04:25:11 +0000 (04:25 +0000)]
Merge "resourceloader: Minor clean up in saveFileDependencies()"

5 years agoresourceloader: Minor clean up in saveFileDependencies()
Timo Tijhof [Wed, 6 Mar 2019 01:35:05 +0000 (01:35 +0000)]
resourceloader: Minor clean up in saveFileDependencies()

* Use early return instead of all-encapsulating conditional.

* Document why the try/catch is so big.

Change-Id: Ie19e18556e7ac0a12ad6b979367f8c6b786bbe31

5 years agoRemove various references to cURL in code comments
Timo Tijhof [Tue, 5 Mar 2019 23:55:03 +0000 (23:55 +0000)]
Remove various references to cURL in code comments

Given we now use Guzzle as well, and don't require cURL for any
features at a basic level, our code should not be as assumptious
about the backend being curl. Such assumptions may be wrong
and lead to confusion and/or bugs.

Bug: T137926
Change-Id: I6ad7f76768348e1eb8c1fb46c8125cce9285dc22

5 years agoMerge "Fix a rather fatal typo in rebuildrecentchanges.php"
jenkins-bot [Tue, 5 Mar 2019 23:38:56 +0000 (23:38 +0000)]
Merge "Fix a rather fatal typo in rebuildrecentchanges.php"

5 years agoMerge "API: Avoid duplicate logs to api-feature-usage"
jenkins-bot [Tue, 5 Mar 2019 23:14:19 +0000 (23:14 +0000)]
Merge "API: Avoid duplicate logs to api-feature-usage"

5 years agoFix a rather fatal typo in rebuildrecentchanges.php
Jack Phoenix [Tue, 5 Mar 2019 23:13:59 +0000 (01:13 +0200)]
Fix a rather fatal typo in rebuildrecentchanges.php

The JOIN condition was being ignored because there is no table called "user_group" in MediaWiki core.
Thus if and when using $wgSharedDB, the query would end up listing *all* registered users from the shared user table.
And even without $wgSharedDB, running rebuildrecentchanges.php would result in everyone's edits being marked as bot edits (recentchanges.rc_bot = 1) and thus hidden from the Special:RecentChanges page.

Thanks to Lcawte for reporting this bug.

Follow-up to 27c61fb1e94da9114314468fd00bcf129ec064b6

Change-Id: I18d658b67c50f2200341f732783c2e7524dd27f1

5 years agoMerge "Block Special pages only if the user is sitewide blocked"
jenkins-bot [Tue, 5 Mar 2019 23:03:49 +0000 (23:03 +0000)]
Merge "Block Special pages only if the user is sitewide blocked"

5 years agoAPI: Avoid duplicate logs to api-feature-usage
Brad Jorsch [Tue, 5 Mar 2019 22:43:16 +0000 (17:43 -0500)]
API: Avoid duplicate logs to api-feature-usage

It can wind up logging deprecations twice if extractRequestParams() is
called with different values for 'parseLimit', for example.

Change-Id: I921777089fb8cfb4339af6fd08ee3475ed31b7f6

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 5 Mar 2019 21:01:23 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I82b2f9fbde2a8c7524bd2de7ee207c829941a2cf

5 years agoMerge "Clear cached HTML artifacts"
jenkins-bot [Tue, 5 Mar 2019 20:34:53 +0000 (20:34 +0000)]
Merge "Clear cached HTML artifacts"

5 years agoMerge "Convert MultiHttpClient to use Guzzle"
jenkins-bot [Tue, 5 Mar 2019 19:58:48 +0000 (19:58 +0000)]
Merge "Convert MultiHttpClient to use Guzzle"

5 years agoMerge "resources: Provide the moment gom-Latn i18n to gom as well"
jenkins-bot [Tue, 5 Mar 2019 19:57:37 +0000 (19:57 +0000)]
Merge "resources: Provide the moment gom-Latn i18n to gom as well"

5 years agoMerge "Specify licence of mediawiki ontology.owl"
jenkins-bot [Tue, 5 Mar 2019 19:45:10 +0000 (19:45 +0000)]
Merge "Specify licence of mediawiki ontology.owl"

5 years agoConvert MultiHttpClient to use Guzzle
Bill Pirkle [Tue, 21 Aug 2018 18:54:43 +0000 (13:54 -0500)]
Convert MultiHttpClient to use Guzzle

Convert MultiHttpClient to use the Guzzle library.
Guzzle includes built-in support for concurrency, and automatic
fallback to php streams if curl is unavailable.

Bug: T202352
Change-Id: I703af901f9da33d20b5e0989941f3f7fd6609298

5 years agoMerge "resourceloader: Remove addModuleScripts, and deprecate getModuleScripts."
jenkins-bot [Tue, 5 Mar 2019 18:54:38 +0000 (18:54 +0000)]
Merge "resourceloader: Remove addModuleScripts, and deprecate getModuleScripts."

5 years agoresourceloader: Remove addModuleScripts, and deprecate getModuleScripts.
Timo Tijhof [Sun, 3 Mar 2019 19:19:51 +0000 (19:19 +0000)]
resourceloader: Remove addModuleScripts, and deprecate getModuleScripts.

The addModuleScripts() methods were deprecated in 1.31 and 1.32,
these are now removed.

The getModuleScripts() are now deprecated as well, always returning
an empty array. To be removed in 1.34.

Depends on commits for bundled/wmf-deployed extensions that
remove the last few remaining callers to the deprecated functions
in: 3D, Collection, Flow, GlobalUserPage, and Wikibase.

Bug: T188689
Depends-On: If9f0bc6aef85117587fa1929f34f8861c8d80314
Depends-On: Ia8d41b97fbf6822f5f8f7ac889408acce1ac9a3a
Depends-On: I503b919739ea474ff33726815b0da55e2f7e2724
Depends-On: I236ef637fd03b810a46eb361e25067a037e9d183
Depends-On: I62e17779753b977a452cc0c9694947941e999cc3
Change-Id: I5a19b8f164ccf666485d2971202194b747f882df

5 years agoresources: Provide the moment gom-Latn i18n to gom as well
James D. Forrester [Tue, 5 Mar 2019 16:00:38 +0000 (16:00 +0000)]
resources: Provide the moment gom-Latn i18n to gom as well

Bug: T191339
Change-Id: Icf7556a1fa71e12dd1029765f81914a36a3c1c22

5 years agoMerge "objectcache: optimize WAN cache key updates during HOLDOFF_TTL"
jenkins-bot [Tue, 5 Mar 2019 13:26:44 +0000 (13:26 +0000)]
Merge "objectcache: optimize WAN cache key updates during HOLDOFF_TTL"

5 years agoMerge "Remove references to obsolete special page and messages"
jenkins-bot [Tue, 5 Mar 2019 12:37:47 +0000 (12:37 +0000)]
Merge "Remove references to obsolete special page and messages"

5 years agoMerge "Various small code and comment cleanups to IndexPager"
jenkins-bot [Tue, 5 Mar 2019 12:26:18 +0000 (12:26 +0000)]
Merge "Various small code and comment cleanups to IndexPager"

5 years agoresources: Remove deprecated 'jquery.hidpi' module
Timo Tijhof [Sun, 3 Mar 2019 01:51:50 +0000 (01:51 +0000)]
resources: Remove deprecated 'jquery.hidpi' module

Deprecated in 1.32 and has no further purpose in its current
form as a jQuery plugin for <img srcset>, which we now use
natively without fallback.

The remaining logic for bracketed window.devicePixelRatio is
simple enough to inline as needed without the cruft and overhead
that comes with a centralised approach.

Bug: T202154
Change-Id: I729dfabcbb40a0a794d6b166a584f45a64ac0338

5 years agoMerge "logging: Remove 'null' return from ManualLogEntry::getTags()"
jenkins-bot [Tue, 5 Mar 2019 11:07:04 +0000 (11:07 +0000)]
Merge "logging: Remove 'null' return from ManualLogEntry::getTags()"

5 years agoVarious small code and comment cleanups to IndexPager
Aaron Schulz [Tue, 5 Mar 2019 09:41:55 +0000 (01:41 -0800)]
Various small code and comment cleanups to IndexPager

Change-Id: I351c12d51468bd428207017929fec1e796097206

5 years agoDrop AuthPlugin and related code, deprecated in 1.27
James D. Forrester [Mon, 11 Feb 2019 21:18:13 +0000 (13:18 -0800)]
Drop AuthPlugin and related code, deprecated in 1.27

Bug: T215843
Depends-On: Ie49709faa6f67b0a31bd546823d29dbfea0a70eb
Depends-On: If8109dbfdeeb88a6265f4cd79d1ae81bff48d934
Depends-On: I36b195fa2d6c23a76631ebaf869c787e44427d60
Depends-On: Iaa171b085fde331eab7d85c7de74523e27fc625a
Change-Id: I330b30d6582034a233fed204c0680b1ce84eec6e

5 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Tue, 5 Mar 2019 06:49:20 +0000 (06:49 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoMerge "Recentchanges: Hide instead of disable namespace selector checkboxes"
jenkins-bot [Mon, 4 Mar 2019 23:22:17 +0000 (23:22 +0000)]
Merge "Recentchanges: Hide instead of disable namespace selector checkboxes"

5 years agoMerge "Set api-request log http.request_headers properly"
Ottomata [Mon, 4 Mar 2019 21:41:55 +0000 (21:41 +0000)]
Merge "Set api-request log http.request_headers properly"

5 years agoSet api-request log http.request_headers properly
Andrew Otto [Mon, 4 Mar 2019 20:47:01 +0000 (15:47 -0500)]
Set api-request log http.request_headers properly

$request->getHeader( 'Api-user-agent' ) was returning false,
and we can only accept string header values.

Bug: T214080
Change-Id: I3de8a455ad7dab9e3a67e24439e95f4968c93243

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 4 Mar 2019 20:54:19 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If706f62773b164f4c26a0eedb1e6709971c77b17

5 years agoClear cached HTML artifacts
jdlrobson [Wed, 13 Feb 2019 22:02:00 +0000 (14:02 -0800)]
Clear cached HTML artifacts

Follow up to I6aad563e48f41c783df8b176a4f437e60a1255cc
Can be merged when that patch has been in production for a week.

Change-Id: I9f6b523f3ece055f8e6e45dfbfeb9852bebe4772

5 years agoRemove outdated reference to design.txt
Lucas Werkmeister [Mon, 4 Mar 2019 16:49:42 +0000 (17:49 +0100)]
Remove outdated reference to design.txt

docs/design.txt was removed half a year ago in change I85be15a68f
(commit 6760216e10), and was long outdated even then, so let’s stop
pointing people at it.

Change-Id: I165ff1e12fb79c480930289d25833992be61b891

5 years agoMerge "resourceloader: Remove warning for handled localStorage error"
jenkins-bot [Mon, 4 Mar 2019 16:41:32 +0000 (16:41 +0000)]
Merge "resourceloader: Remove warning for handled localStorage error"

5 years agoBlock Special pages only if the user is sitewide blocked
David Barratt [Thu, 21 Feb 2019 17:54:35 +0000 (12:54 -0500)]
Block Special pages only if the user is sitewide blocked

Update the default implementation of FormSpecialPage::checkExecutePermissions()
so that a Special page is only blocked if the user has a sitewide block.

This change allows the user to continue performing critical functions (like
resetting their password) even if they are partially blocked.

Bug: T209097
Change-Id: I5190297b7b235b6ebbdfa522323ce9bbd46b6729

5 years agoAllows to add subsections to special pages groups on special page "Specialpages"
Karsten Hoffmeyer [Sat, 2 Mar 2019 11:03:49 +0000 (12:03 +0100)]
Allows to add subsections to special pages groups on special page "Specialpages"

Adding all pages into one section creates some inconsistencies where users
cannot clearly distinguish pages. Thus extensions and extension suites like,
e.g. semantic extensions, translation extensions or social profile extensions
can improve the situation.

Bug: T216467
Change-Id: Iddc28e040fe975f8f823c84919fa476d2a13af0a

5 years agoMerge "Document the 'sitewide' option for the Block class"
jenkins-bot [Mon, 4 Mar 2019 15:20:37 +0000 (15:20 +0000)]
Merge "Document the 'sitewide' option for the Block class"

5 years agoSpecify licence of mediawiki ontology.owl
Greta Doçi [Mon, 4 Mar 2019 15:12:13 +0000 (16:12 +0100)]
Specify licence of mediawiki ontology.owl

Bug: T216842
Change-Id: Ide976016bc5d421458cfe4ad661d88bb32da61a6

5 years agoMerge "Fix typo in Priority Hints static variable name"
jenkins-bot [Mon, 4 Mar 2019 13:47:43 +0000 (13:47 +0000)]
Merge "Fix typo in Priority Hints static variable name"