lhc/web/wiklou.git
5 years agoMerge "Use MediaWiki\SuppressWarnings around trigger_error('') instead @"
D3r1ck01 [Wed, 19 Dec 2018 17:15:17 +0000 (17:15 +0000)]
Merge "Use MediaWiki\SuppressWarnings around trigger_error('') instead @"

5 years agoMerge "Include bot password app ID in audit data"
jenkins-bot [Wed, 19 Dec 2018 16:37:46 +0000 (16:37 +0000)]
Merge "Include bot password app ID in audit data"

5 years agoMerge "Fix regular expression"
jenkins-bot [Wed, 19 Dec 2018 12:35:52 +0000 (12:35 +0000)]
Merge "Fix regular expression"

5 years agoClean ups of dropping tag_summary table
Amir Sarabadani [Tue, 18 Dec 2018 22:10:52 +0000 (23:10 +0100)]
Clean ups of dropping tag_summary table

Change-Id: I92dc906d0dfd870e6b77671e5d7cfd3f56090325

5 years agoMerge "travis: Add PHP 7.3 (allowed failure)"
jenkins-bot [Wed, 19 Dec 2018 04:49:21 +0000 (04:49 +0000)]
Merge "travis: Add PHP 7.3 (allowed failure)"

5 years agoMerge "Special:AllMessages: Improve zebra striping on hover"
jenkins-bot [Tue, 18 Dec 2018 22:43:11 +0000 (22:43 +0000)]
Merge "Special:AllMessages: Improve zebra striping on hover"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 18 Dec 2018 21:16:37 +0000 (22:16 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Idfb2f9b39fe0eacd31663f9c769be3e88c46353e

5 years agoDrop tag_summary and valid_tag tables
Amir Sarabadani [Wed, 12 Dec 2018 19:20:42 +0000 (20:20 +0100)]
Drop tag_summary and valid_tag tables

Bug: T209525
Change-Id: I153607239145a772f5ea47eefd3340096a494b4b

5 years agoChangesList separates content elements from presentation
jdlrobson [Wed, 21 Nov 2018 22:55:48 +0000 (14:55 -0800)]
ChangesList separates content elements from presentation

Special:RecentChanges and Special:Watchlist benefit from this change

Bug: T205581
Change-Id: If46d9ed904fdc6f01decbfde12ade0c47e282171

5 years agoFix copy-paste error
Amir Sarabadani [Tue, 18 Dec 2018 17:55:13 +0000 (18:55 +0100)]
Fix copy-paste error

It's actually adding the column on the wrong table

Change-Id: I2fd8ea50f3eb4b5da04fce2ea0348a2dc6329965

5 years agoOption to load restrictions from DB_MASTER
Elliott Eggleston [Fri, 14 Dec 2018 20:06:53 +0000 (15:06 -0500)]
Option to load restrictions from DB_MASTER

Adds a $readLatest parameter to Title::loadRestrictions that skips
the replica DBs and goes straight to the master DB to get the latest.

TODO: should I add $readLatest to all the getRestrictions* functions?

Bug: T210983
Change-Id: I834de033fb79870de7d081701693663fb6ee93d3

5 years agoMerge "HTMLForm OOUI Flatlist: Reduce `margin` slightly"
jenkins-bot [Tue, 18 Dec 2018 13:16:54 +0000 (13:16 +0000)]
Merge "HTMLForm OOUI Flatlist: Reduce `margin` slightly"

5 years agoMerge "MagicWordFactory: Follow-up on I5d2166f155e31900cb40c"
jenkins-bot [Tue, 18 Dec 2018 12:24:22 +0000 (12:24 +0000)]
Merge "MagicWordFactory: Follow-up on I5d2166f155e31900cb40c"

5 years agoMagicWordFactory: Follow-up on I5d2166f155e31900cb40c
Alangi Derick [Tue, 18 Dec 2018 10:11:20 +0000 (11:11 +0100)]
MagicWordFactory: Follow-up on I5d2166f155e31900cb40c

Applied comments from I5d2166f155e31900cb40c to improve on
the unit test. makeMagicWordFactory() makes passing "null"
optional (which is default, hence some cleanup for calls).

Change-Id: Ib9a096c519f0de7286aa244bf3bb842cc11740f9

5 years agoMerge "ApiComparePages: Don't error with no prev/next rev"
jenkins-bot [Tue, 18 Dec 2018 10:06:23 +0000 (10:06 +0000)]
Merge "ApiComparePages: Don't error with no prev/next rev"

5 years agoMerge "tests: Add PHPUnit tests for methods in MagicWordFactory::class"
jenkins-bot [Tue, 18 Dec 2018 09:13:38 +0000 (09:13 +0000)]
Merge "tests: Add PHPUnit tests for methods in MagicWordFactory::class"

5 years agotests: Add PHPUnit tests for methods in MagicWordFactory::class
Alangi Derick [Mon, 19 Nov 2018 19:07:30 +0000 (20:07 +0100)]
tests: Add PHPUnit tests for methods in MagicWordFactory::class

* testGetContentLanguage() - covers the getContentLanguage() method.
* testGet() - covers the get() method in the MagicWordFactory class.
* testGetVariableIDs() - covers the getVariableIDs method.
* testGetSubstIDs() - covers the getSubstIDs() method.
* testGetCacheTTL() - covers the getCacheTTL() method. This covers
  both paths when there is a valid and an invalid caching hint.
* makeMagicWordFactory() - a helper function for creating an object
  of the MagicWordFactory class.
* testGetDoubleUnderscoreArray() - covers getDoubleUnderscoreArray()
  method and also calls newArray() under the hood so that is also
  covered.

Change-Id: I5d2166f155e31900cb40c22fb976e81d0d545627

5 years agoHTMLForm OOUI Flatlist: Reduce `margin` slightly
Volker E [Tue, 18 Dec 2018 06:16:28 +0000 (22:16 -0800)]
HTMLForm OOUI Flatlist: Reduce `margin` slightly

When provided without label, flatlists are in general modificators
logically connected to the input above as seen on Special:BlockList
for example. Reducing the `margin` slightly helps to visually
emphasize the connection.

Bug: T177683
Change-Id: Ice666e54e440f97d177580ac258dfbed1577da0a

5 years agoUpgrade wikimedia/ip-set to 2.0.0
Kunal Mehta [Tue, 18 Dec 2018 04:00:19 +0000 (20:00 -0800)]
Upgrade wikimedia/ip-set to 2.0.0

Bug: T209756
Depends-On: I21a6032defb15b77519631b251b5e577207902a8
Change-Id: I424cf8871daf1e19b9d03511ace5f09d77746145

5 years agotravis: Add PHP 7.3 (allowed failure)
Kunal Mehta [Tue, 18 Dec 2018 03:57:22 +0000 (19:57 -0800)]
travis: Add PHP 7.3 (allowed failure)

Change-Id: I2205ae6b3543ec8fc094c043723c73ab1d1476b5

5 years agoMerge "Message: Don't include Title objects in the serialization (part 2)"
jenkins-bot [Tue, 18 Dec 2018 02:51:47 +0000 (02:51 +0000)]
Merge "Message: Don't include Title objects in the serialization (part 2)"

5 years agoMerge "ProfilerExcimer: allow early start"
jenkins-bot [Tue, 18 Dec 2018 02:27:03 +0000 (02:27 +0000)]
Merge "ProfilerExcimer: allow early start"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 17 Dec 2018 20:55:06 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I14d75d0d131a158d36055d612ab9139586258978

5 years agoMerge "DateTimeInputWidget: Fix UI/UX glitches"
jenkins-bot [Mon, 17 Dec 2018 20:40:09 +0000 (20:40 +0000)]
Merge "DateTimeInputWidget: Fix UI/UX glitches"

5 years agoMerge "Follow-up I2266ec0: Mark new method as an internal"
jenkins-bot [Mon, 17 Dec 2018 20:18:41 +0000 (20:18 +0000)]
Merge "Follow-up I2266ec0: Mark new method as an internal"

5 years agoMerge "Set default of sleep time in populateChangeTagDef to zero"
jenkins-bot [Mon, 17 Dec 2018 19:42:20 +0000 (19:42 +0000)]
Merge "Set default of sleep time in populateChangeTagDef to zero"

5 years agoSet API limits for page restrictions to 10
Thalia [Mon, 17 Dec 2018 17:53:27 +0000 (17:53 +0000)]
Set API limits for page restrictions to 10

Bug: T212142
Change-Id: Ide0f2f86df2101194155be53a4b9012ddefbbcaf

5 years agoMerge "Fix sql.php --json behavior"
jenkins-bot [Mon, 17 Dec 2018 13:26:21 +0000 (13:26 +0000)]
Merge "Fix sql.php --json behavior"

5 years agoMerge "DateTimeInputWidget: Use 'clear' icon to clear input"
jenkins-bot [Mon, 17 Dec 2018 12:49:23 +0000 (12:49 +0000)]
Merge "DateTimeInputWidget: Use 'clear' icon to clear input"

5 years agoMerge "Stop updating tag_summary table"
jenkins-bot [Mon, 17 Dec 2018 12:48:33 +0000 (12:48 +0000)]
Merge "Stop updating tag_summary table"

5 years agoSpecial:AllMessages: Improve zebra striping on hover
Bartosz Dziewoński [Tue, 13 Nov 2018 16:29:22 +0000 (17:29 +0100)]
Special:AllMessages: Improve zebra striping on hover

Previously, the full row (spanning two sub-rows) would not
get the hover effect when hovering over the second sub-row.

Inspired by <https://stackoverflow.com/a/15465002>.

Change-Id: Id698516da4fbe01f90cbe1499fb81721642a4dfd

5 years agoMerge "Special:AllMessages: Remove al_title and allmessages-customised classes"
jenkins-bot [Mon, 17 Dec 2018 09:39:52 +0000 (09:39 +0000)]
Merge "Special:AllMessages: Remove al_title and allmessages-customised classes"

5 years agoSpecial:AllMessages: Remove al_title and allmessages-customised classes
Timo Tijhof [Sun, 16 Dec 2018 23:16:26 +0000 (23:16 +0000)]
Special:AllMessages: Remove al_title and allmessages-customised classes

* The al_title class was unused, and thus removed.

* The allmessages-customised class was used in CSS to target
  elements with 'al_default' and 'al_actual' classses within it,
  which are in turn only used for that purpose.
  Change the HTML to match the needs of the CSS by only setting
  al_default/al_actual classes on customised messages and remove
  need for the parent element class.

On a plain install this reduced output by ~2K from 75.8K to 74.0K,
and allocate 100 (2x50) fewer attribute nodes.

Change-Id: If2dd4cf5c937935f03f30b8410a32b6821b0bf34

5 years agoFix sql.php --json behavior
Gergő Tisza [Mon, 17 Dec 2018 05:06:32 +0000 (21:06 -0800)]
Fix sql.php --json behavior

* return empty array when the query had no result (instead of
  falling back into non-JSON mode)
* return JSON for write queries as well
* retain legacy behavior in non-JSON mode for empty SELECTs, just in
  case somebody relied on it

Change-Id: Iaefbb443650a395278d1cc9ab6aa668b13b217c9

5 years agoProfilerExcimer: allow early start
Tim Starling [Fri, 7 Dec 2018 04:13:43 +0000 (15:13 +1100)]
ProfilerExcimer: allow early start

Allow the profiler to be started elsewhere and passed into
ProfilerExcimer via the configuration array. This allows the profiler to
be started in the auto_prepend_file. XHProf doesn't need this because it
has a single global profiler.

Change-Id: I348499a15d9cc42de0ba1a20afc2283b794931a3

5 years agoDateTimeInputWidget: Fix UI/UX glitches
Volker E [Sat, 15 Dec 2018 20:08:39 +0000 (12:08 -0800)]
DateTimeInputWidget: Fix UI/UX glitches

- Limiting focus state of inputs to datetime handle boundaries
- Showing clear button only when there's value to be cleared
- Distance clear button from input
- Removing focus outline from day and timezone values

Bug: T212047
Change-Id: I9b815f38abeacacf921873529117c51c187d7fb9

5 years agoMerge "Add ProfilerExcimer"
jenkins-bot [Sun, 16 Dec 2018 23:00:16 +0000 (23:00 +0000)]
Merge "Add ProfilerExcimer"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 15 Dec 2018 20:55:18 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I005fa8d24c284741e5b139e1228b6a3251407a65

5 years agoSet default of sleep time in populateChangeTagDef to zero
Amir Sarabadani [Sat, 15 Dec 2018 17:28:54 +0000 (18:28 +0100)]
Set default of sleep time in populateChangeTagDef to zero

The script already has waitForReplication(), that's good for non-WMF setups

Bug: T206568
Change-Id: I020a4472796eeff2561da6c17a817091d4e9af5a

5 years agoDateTimeInputWidget: Use 'clear' icon to clear input
Volker E [Sat, 15 Dec 2018 03:32:41 +0000 (19:32 -0800)]
DateTimeInputWidget: Use 'clear' icon to clear input

Also removing unnecessary indicator overrides.

Bug: T212022
Change-Id: Ie962138811aff03d72ea29eb260131c37067456b

5 years agoFix exception on certain http failures
Bill Pirkle [Fri, 14 Dec 2018 21:55:28 +0000 (15:55 -0600)]
Fix exception on certain http failures

Task T202110 included a change to recognize an HTTP status code
of 0 (zero) as an error, but it failed to set a status message,
resulting in an exception.  Changed to set a status message of
'Error' so that required value is not empty.

Bug: T212005
Change-Id: I5fb78555bfcaeccdd726432f4dfc70924a385c41

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 14 Dec 2018 20:55:22 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I20f67d42ea1cd74c732c87a50d4db04e16a5abc5

5 years agoMerge "PostgreSQL: Drop three unused columns"
jenkins-bot [Fri, 14 Dec 2018 18:18:12 +0000 (18:18 +0000)]
Merge "PostgreSQL: Drop three unused columns"

5 years agoMerge "Use SpecialPageFactory in ApiQueryQueryPage"
jenkins-bot [Fri, 14 Dec 2018 18:13:43 +0000 (18:13 +0000)]
Merge "Use SpecialPageFactory in ApiQueryQueryPage"

5 years agoPostgreSQL: Drop three unused columns
Kevin Israel [Mon, 9 Jul 2018 15:28:59 +0000 (11:28 -0400)]
PostgreSQL: Drop three unused columns

The columns dropped in this commit are:

* category.cat_hidden
  (for MySQL, dropped in 1.20 / 0cbc85494d47cdeb)
* site_stats.ss_admins
  (for MySQL, dropped in 1.21 / bd602d20833f435f)
* recentchanges.rc_cur_time
  (for MySQL, dropped in 1.24 / 2b441eba406f2c49)

Bug: T64103
Change-Id: I7a7e9a2ac5066a9c9ab2583419d507e14fdd8c2c

5 years agoUse SpecialPageFactory in ApiQueryQueryPage
Lucas Werkmeister [Fri, 14 Dec 2018 15:56:56 +0000 (16:56 +0100)]
Use SpecialPageFactory in ApiQueryQueryPage

Instead of assuming that all query page classes can be instantiated with
no constructor parameters, use a SpecialPageFactory.

This would not have prevented T208924 (that would just have resulted in
a later, different error), but it’s just a good idea in general.

Change-Id: I2473a53acd9fefdeffb1fa7ecb88873f3ee345cc

5 years agoMerge "eslint: Turn on reportUnusedDisableDirectives"
jenkins-bot [Fri, 14 Dec 2018 16:52:31 +0000 (16:52 +0000)]
Merge "eslint: Turn on reportUnusedDisableDirectives"

5 years agoMerge "Introduce TagMultiselectWidget.php"
jenkins-bot [Fri, 14 Dec 2018 15:45:22 +0000 (15:45 +0000)]
Merge "Introduce TagMultiselectWidget.php"

5 years agoIntroduce TagMultiselectWidget.php
Thalia [Wed, 12 Dec 2018 15:57:57 +0000 (15:57 +0000)]
Introduce TagMultiselectWidget.php

TitlesMultiselectWidget and UsersMultiselectWidget share
a lot of functionality, so implement a common base class.

This also adds some things to UsersMultiselectWidget:
* shows a pending element to users with JavaScript
* makes the input configurable

Change-Id: Ie6649b476c64e795254f457e3863fa7f14aa05ac

5 years agoeslint: Turn on reportUnusedDisableDirectives
Ed Sanders [Fri, 14 Dec 2018 14:22:26 +0000 (14:22 +0000)]
eslint: Turn on reportUnusedDisableDirectives

Change-Id: I3fb88324ba5a46e44041c13eb6447c8e33f4e79b

5 years agoMessage: Don't include Title objects in the serialization (part 2)
Brad Jorsch [Wed, 28 Nov 2018 15:41:17 +0000 (10:41 -0500)]
Message: Don't include Title objects in the serialization (part 2)

Stringify the title instead. This will help avoid running into the
PHP/HHVM serialization incompatibility described in T210528.

This is part 2: Once all servers have part 1 (and rollback is unlikely)
we can stop storing the Title objects.

Bug: T210528
Change-Id: If3acfeb42788bd675c3022cc1b49dccc9ac1ecbe

5 years agoMerge "Increase default minimum password length on privileged groups and bots"
jenkins-bot [Thu, 13 Dec 2018 23:41:51 +0000 (23:41 +0000)]
Merge "Increase default minimum password length on privileged groups and bots"

5 years agoIncrease default minimum password length on privileged groups and bots
Dayllan Maza [Mon, 10 Dec 2018 22:42:43 +0000 (17:42 -0500)]
Increase default minimum password length on privileged groups and bots

Minimum password length is now 10 by default on privileged
groups (bureaucrat, sysop, interface-admin), and bots.

Bug: T208246
Change-Id: I373c5c6865b90cdc5c4848266c5996dd190f6001

5 years agoMerge "Use username from last successful login in Special:PasswordReset"
jenkins-bot [Thu, 13 Dec 2018 23:03:07 +0000 (23:03 +0000)]
Merge "Use username from last successful login in Special:PasswordReset"

5 years agoMerge "Use singular they to refer to IP address"
jenkins-bot [Thu, 13 Dec 2018 22:14:29 +0000 (22:14 +0000)]
Merge "Use singular they to refer to IP address"

5 years agoFollow-up I2266ec0: Mark new method as an internal
James D. Forrester [Thu, 13 Dec 2018 21:52:28 +0000 (13:52 -0800)]
Follow-up I2266ec0: Mark new method as an internal

Per Krinkle.

Change-Id: I9720aea6a55a414d861b74edba7d7b421e06db2b

5 years agoMerge "Soft deprecate Title::getUserCaseDBKey()"
jenkins-bot [Thu, 13 Dec 2018 21:22:07 +0000 (21:22 +0000)]
Merge "Soft deprecate Title::getUserCaseDBKey()"

5 years agoSoft deprecate Title::getUserCaseDBKey()
Alangi Derick [Sun, 4 Nov 2018 13:40:55 +0000 (14:40 +0100)]
Soft deprecate Title::getUserCaseDBKey()

Identifiers of groups are encouraged to be in lowercases, so we'll
soft deprecate this rarely-used method now and remove it later.

Bug: T202094
Change-Id: Idee1b7f491dbe1114b4489fda3c16be70175f2d8

5 years agoMerge "Temporarily remove guzzle as default for HttpRequestFactory"
jenkins-bot [Thu, 13 Dec 2018 21:00:54 +0000 (21:00 +0000)]
Merge "Temporarily remove guzzle as default for HttpRequestFactory"

5 years agoMerge "Revert "ChangesListSpecialPage: Make maximum limit consistent (1000)""
jenkins-bot [Thu, 13 Dec 2018 20:05:17 +0000 (20:05 +0000)]
Merge "Revert "ChangesListSpecialPage: Make maximum limit consistent (1000)""

5 years agoRevert "ChangesListSpecialPage: Make maximum limit consistent (1000)"
Kosta Harlan [Thu, 13 Dec 2018 19:41:04 +0000 (19:41 +0000)]
Revert "ChangesListSpecialPage: Make maximum limit consistent (1000)"

This reverts commit ac2837c9b3ed8a7f242b371d072b75880f29f4e7.

Reason for revert: See T210897#4821559

Bug: T210897
Change-Id: Ifb6debe3eaddb4a2cb62ace5cfea59c06e77d141

5 years agoInclude bot password app ID in audit data
Gergő Tisza [Thu, 13 Dec 2018 00:51:25 +0000 (16:51 -0800)]
Include bot password app ID in audit data

Authentication audit logs should indicate whether a login is via the
normal password or a bot password (and which one). For failed logins
it could be included in the error message, and it usually is, but
for successful ones there is no message, so we'll send the app ID as
a new AuthManagerLoginAuthenticateAudit parameter.

Bug: T194338
Change-Id: I8aab48177b81a8e80dae118e6476a8f6a32089f1
Depends-On: Id482d2e2205960a0facd334e456d3a23bcad0ece

5 years agoTemporarily remove guzzle as default for HttpRequestFactory
Bill Pirkle [Thu, 13 Dec 2018 17:02:09 +0000 (11:02 -0600)]
Temporarily remove guzzle as default for HttpRequestFactory

Temporarily switching back to curl/php as the default for
HttpRequest objects, to resolve production issues until a
long-term fix for the out-of-memory issue from T211886 is implemented.

Bug: T211886
Change-Id: I6201ac1292b41f82d920a431376d791a666355e8

5 years agoUse singular they to refer to IP address
Lucas Werkmeister [Thu, 13 Dec 2018 16:38:42 +0000 (17:38 +0100)]
Use singular they to refer to IP address

The previous “him/her” does not cover all pronouns people might use, and
is also at odds with how MediaWiki usually addresses users whose gender
is not known.

Change-Id: I468fbd25ab80f21eb591c349117774fe8ce2d9dc

5 years agoMerge "ApiPageSet::initFromPageIds: Default $filterIds to true"
jenkins-bot [Thu, 13 Dec 2018 13:10:47 +0000 (13:10 +0000)]
Merge "ApiPageSet::initFromPageIds: Default $filterIds to true"

5 years agoMerge "objectcache: Fix WinCache keys longer than 150 chars"
jenkins-bot [Thu, 13 Dec 2018 02:25:22 +0000 (02:25 +0000)]
Merge "objectcache: Fix WinCache keys longer than 150 chars"

5 years agoMerge "Remove loading of module 'mediawiki.toc' in special pages"
jenkins-bot [Thu, 13 Dec 2018 01:57:34 +0000 (01:57 +0000)]
Merge "Remove loading of module 'mediawiki.toc' in special pages"

5 years agoFix guzzle InvalidArgumentException when body is passed as an array
Bill Pirkle [Thu, 13 Dec 2018 00:11:27 +0000 (18:11 -0600)]
Fix guzzle InvalidArgumentException when body is passed as an array

The postBody option to GuzzleHttpRequest can be passed as an array
or as a string.  We were previously handling the array case incorrectly.

Bug: T211806
Change-Id: I8f40b9de9d40a9361eb45103608bf3aaa943bf73

5 years agoMerge "Improve readability of SpecialBlock::checkUnblockSelf"
jenkins-bot [Wed, 12 Dec 2018 23:42:30 +0000 (23:42 +0000)]
Merge "Improve readability of SpecialBlock::checkUnblockSelf"

5 years agoMerge "Migrate SpecialUndelete and Diff from tag_summary to change_tag"
jenkins-bot [Wed, 12 Dec 2018 22:30:55 +0000 (22:30 +0000)]
Merge "Migrate SpecialUndelete and Diff from tag_summary to change_tag"

5 years agoMerge "Add TransactionProfiler::redefineExpectations and migrate appropriate callers"
jenkins-bot [Wed, 12 Dec 2018 21:02:26 +0000 (21:02 +0000)]
Merge "Add TransactionProfiler::redefineExpectations and migrate appropriate callers"

5 years agoMerge "filebackend: simplify code in FileBackendStore::getFileStat slightly"
jenkins-bot [Wed, 12 Dec 2018 21:02:22 +0000 (21:02 +0000)]
Merge "filebackend: simplify code in FileBackendStore::getFileStat slightly"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 12 Dec 2018 20:55:07 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iea258666b6ad7373ca01812dd23931e00c72f833

5 years agoStop updating tag_summary table
Amir Sarabadani [Tue, 4 Dec 2018 18:49:31 +0000 (19:49 +0100)]
Stop updating tag_summary table

This table will be dropped in favor of change_tag/change_tag_def

Bug: T209525
Change-Id: I9e305dc0f71a126cff57cade37180ad438838030

5 years agoobjectcache: Fix WinCache keys longer than 150 chars
Juan Osorio [Fri, 30 Nov 2018 22:29:28 +0000 (14:29 -0800)]
objectcache: Fix WinCache keys longer than 150 chars

Adds MD5 hashing to the generation of keys for WinCache. This
fixes the issue of keys (e.g. sub-headings) longer than 150
characters.

Bug: T210794
Change-Id: Ieabf6b014a0660198077a23760a05564bf268535

5 years agoApiPageSet::initFromPageIds: Default $filterIds to true
Brad Jorsch [Wed, 12 Dec 2018 18:12:57 +0000 (13:12 -0500)]
ApiPageSet::initFromPageIds: Default $filterIds to true

I have no idea why that was false in Ic1975220. Particularly when, of
the three calls, only one was changed to specify the parameter and that
was changed to pass false explicitly.

If it hadn't been false, it would have prevented T211804.

Bug: T211804
Change-Id: I8eea8936e9f57bf3e336f81b62bb11b9e2668788

5 years agoMerge "mw.Title.newFromUserInput: Rename vars, improve docs for double signature"
jenkins-bot [Wed, 12 Dec 2018 17:55:34 +0000 (17:55 +0000)]
Merge "mw.Title.newFromUserInput: Rename vars, improve docs for double signature"

5 years agoMerge "Replace $.type with typeof"
jenkins-bot [Wed, 12 Dec 2018 17:50:37 +0000 (17:50 +0000)]
Merge "Replace $.type with typeof"

5 years agomw.Title.newFromUserInput: Rename vars, improve docs for double signature
Ed Sanders [Wed, 12 Dec 2018 13:20:25 +0000 (13:20 +0000)]
mw.Title.newFromUserInput: Rename vars, improve docs for double signature

Also add tests to cover this usage.

Change-Id: I61c7e7377ac7d75073dac025f5f7ff4e599756cb

5 years agoReplace $.type with typeof
Ed Sanders [Wed, 12 Dec 2018 13:18:08 +0000 (13:18 +0000)]
Replace $.type with typeof

Change-Id: I75857eb205ce2fc3ba8f836f3f2ee66987b45748

5 years agoMerge "Remove unused /* global console */"
jenkins-bot [Wed, 12 Dec 2018 16:32:32 +0000 (16:32 +0000)]
Merge "Remove unused /* global console */"

5 years agoMerge "Link log entries to Special:Log on ApiFeedWatchlist"
jenkins-bot [Wed, 12 Dec 2018 16:20:36 +0000 (16:20 +0000)]
Merge "Link log entries to Special:Log on ApiFeedWatchlist"

5 years agoImageListPager: Don't query by oi_user
Brad Jorsch [Wed, 12 Dec 2018 15:31:40 +0000 (10:31 -0500)]
ImageListPager: Don't query by oi_user

For some reason we have indexes for `image` on `(img_user_text,img_timestamp)` and
`(img_user,img_timestamp)`, but for `oldimage` we only have
`(oi_user_text,oi_timestamp)`. Thus, when building the query in
ImageListPager, we have to be sure to avoid trying to use `oi_user`
rather than `oi_user_text` in the WHERE part.

Bug: T211774
Change-Id: Ibea058031f1cb3421e92e09f0a705ea00fb22008

5 years agoLink log entries to Special:Log on ApiFeedWatchlist
LukBukkit [Tue, 11 Dec 2018 22:17:53 +0000 (23:17 +0100)]
Link log entries to Special:Log on ApiFeedWatchlist

This prevents RSS readers from breaking, because there aren't
entries which contain a link to a zero diff anymore.

Bug: T210920
Change-Id: Ia5f57b4ab60873bf5d7b2fcf2a2b4f6f90c135b3

5 years agoRemove unused /* global console */
Ed Sanders [Wed, 12 Dec 2018 14:42:48 +0000 (14:42 +0000)]
Remove unused /* global console */

Change-Id: I330208689281cae251c1da9c147611a79b9b153a

5 years agoApiBase: Pass empty string, not null, for $conds to ->select
Brad Jorsch [Wed, 12 Dec 2018 14:25:00 +0000 (09:25 -0500)]
ApiBase: Pass empty string, not null, for $conds to ->select

Bug: T211769
Change-Id: I4cf224c19b340fac5fc895bbee7507d77fd3fdfa

5 years agoAPI: Use parenthesized join in ApiQueryBase::showHiddenUsersAddBlockInfo
Brad Jorsch [Mon, 3 Dec 2018 14:29:50 +0000 (09:29 -0500)]
API: Use parenthesized join in ApiQueryBase::showHiddenUsersAddBlockInfo

The query is LEFT JOINing ipblocks, so we need to properly scope the new
JOINs with the comment and actor tables to get the block reason and
by-actor.

Bug: T210937
Change-Id: I230a4ab78e3ba6e83008b0466eeca8d40013ba3d

5 years agoMerge "Have BotPassword::login() call AuthManagerLoginAuthenticateAudit"
jenkins-bot [Wed, 12 Dec 2018 01:29:41 +0000 (01:29 +0000)]
Merge "Have BotPassword::login() call AuthManagerLoginAuthenticateAudit"

5 years agoMerge "Add PHPUnit tests for methods in ViewAction::class"
jenkins-bot [Tue, 11 Dec 2018 23:50:44 +0000 (23:50 +0000)]
Merge "Add PHPUnit tests for methods in ViewAction::class"

5 years agoMerge "Support message parameters in JavaScript messages with uselang=qqx"
jenkins-bot [Tue, 11 Dec 2018 22:56:55 +0000 (22:56 +0000)]
Merge "Support message parameters in JavaScript messages with uselang=qqx"

5 years agoSupport message parameters in JavaScript messages with uselang=qqx
Bartosz Dziewoński [Sat, 27 Oct 2018 20:01:39 +0000 (22:01 +0200)]
Support message parameters in JavaScript messages with uselang=qqx

Change-Id: I2266ec0770f08e826892a28f52f3201dfd10191d

5 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Tue, 11 Dec 2018 20:58:56 +0000 (20:58 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 11 Dec 2018 20:57:35 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I78c4d9c910da554460b91b6871b5e268a3a32c27

5 years agoMerge "Improve layout of ExpiryInputWidget on mobile"
jenkins-bot [Tue, 11 Dec 2018 20:55:22 +0000 (20:55 +0000)]
Merge "Improve layout of ExpiryInputWidget on mobile"

5 years agoHave BotPassword::login() call AuthManagerLoginAuthenticateAudit
Brad Jorsch [Thu, 10 May 2018 14:01:06 +0000 (10:01 -0400)]
Have BotPassword::login() call AuthManagerLoginAuthenticateAudit

To facilitate logging all authentications, even ones not via
AuthManager, BotPassword::login() should call the
AuthManagerLoginAuthenticateAudit hook.

Bug: T194338
Change-Id: I27b75c56e060fcb8f71d84ddc2eb8e1533fef33a

5 years agoImprove layout of ExpiryInputWidget on mobile
Thalia [Tue, 27 Nov 2018 16:17:07 +0000 (16:17 +0000)]
Improve layout of ExpiryInputWidget on mobile

Bug: T208271
Change-Id: If3f9c417cd2fad98165b8a2eaef9a05673ce5b4d

5 years agofilebackend: simplify code in FileBackendStore::getFileStat slightly
Aaron Schulz [Tue, 11 Dec 2018 19:58:35 +0000 (14:58 -0500)]
filebackend: simplify code in FileBackendStore::getFileStat slightly

Change-Id: Ic888192b592a62f316fa076678a9fcef9bb8553b

5 years agoMerge "rdbms: reduce LoadBalancer replication log spam"
jenkins-bot [Tue, 11 Dec 2018 19:39:26 +0000 (19:39 +0000)]
Merge "rdbms: reduce LoadBalancer replication log spam"

5 years agoFix typo in message documentation
Thalia [Tue, 11 Dec 2018 14:07:18 +0000 (14:07 +0000)]
Fix typo in message documentation

Change-Id: I373c973f35bb8897a00c96c51d83371b2d9eca4a

5 years agoMerge "Add new rules when user is blocked for UTP"
jenkins-bot [Tue, 11 Dec 2018 13:18:14 +0000 (13:18 +0000)]
Merge "Add new rules when user is blocked for UTP"