lhc/web/wiklou.git
5 years agoSkinApi: Do not load 'mediawiki.searchSuggest'
Bartosz Dziewoński [Wed, 2 Jan 2019 19:21:18 +0000 (20:21 +0100)]
SkinApi: Do not load 'mediawiki.searchSuggest'

Bug: T212752
Change-Id: Ia6fba6934d0dfc528ad07a159bc5fbf03e9e9f24

5 years agoMerge "Sync up with Parsoid parserTests.txt"
jenkins-bot [Wed, 2 Jan 2019 16:49:44 +0000 (16:49 +0000)]
Merge "Sync up with Parsoid parserTests.txt"

5 years agoMerge "Add missing property declarations to LocalFileTest"
jenkins-bot [Wed, 2 Jan 2019 16:22:06 +0000 (16:22 +0000)]
Merge "Add missing property declarations to LocalFileTest"

5 years agoSync up with Parsoid parserTests.txt
Subramanya Sastry [Fri, 28 Dec 2018 16:27:08 +0000 (10:27 -0600)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit 391acbfe0c93d632727ea08cd2a10b4dba8c257f

Change-Id: I0e8c154eaf118f9cd5b58d657f64d0829a65c8f0

5 years agofilerepo: Replace confusing substr() with rtrim()
Thiemo Kreuz [Wed, 2 Jan 2019 15:29:04 +0000 (16:29 +0100)]
filerepo: Replace confusing substr() with rtrim()

I just looked at this code for ten minutes to understand what
sub-string is extracted here. Not only are the numbers hard to
understand: With 0 and -1 the last character is removed – that's
really all this does. Even more problematic is the fact there is
no check, hint, not even a comment explaining *which* character is
removed. If – for whatever reason – the code above returns a string
that does *not* end with a slash, the unconditional substr() call
must destroy this string.

rtrim() shows the character.

I checked and these strings are all guaranteed to use forward
slashes, never backwards (Windows) slashes.

Change-Id: I2e17fd583982920bb8a0ca73035094099e5e5d31

5 years agofilerepo: Avoid two pointless substr() in File
Thiemo Kreuz [Wed, 2 Jan 2019 15:27:09 +0000 (16:27 +0100)]
filerepo: Avoid two pointless substr() in File

In both cases the slash was added one line above, just to be cut off
again.

Change-Id: I15ff6b47821033f123f555f02c42fc8984ad9800

5 years agoMake use of \File::getArchiveRel to avoid code duplication
Thiemo Kreuz [Wed, 2 Jan 2019 15:24:56 +0000 (16:24 +0100)]
Make use of \File::getArchiveRel to avoid code duplication

Before, the string "archive/" was hard-coded in many places.

Change-Id: I62e4471711d183f37e89dc02f3709187164faf0e

5 years agoAdd missing property declarations to LocalFileTest
Thiemo Kreuz [Wed, 2 Jan 2019 14:25:44 +0000 (15:25 +0100)]
Add missing property declarations to LocalFileTest

Change-Id: I518a7a939042110f7ca67b0697e35e2e35105a08

5 years agoMerge "Remove unused line"
jenkins-bot [Wed, 2 Jan 2019 12:37:03 +0000 (12:37 +0000)]
Merge "Remove unused line"

5 years agologging: Correct $logId default value in LogPager.php
Alangi Derick [Mon, 3 Dec 2018 12:38:03 +0000 (13:38 +0100)]
logging: Correct $logId default value in LogPager.php

$logId holds the log entry ID of some specific log and the datatype
is an integer (int) which is correct but looking at the constructor,
it does take a bool (false) which contradicts the docs above. So per
@Thiemo's advice after review of prev PS, it would be better to replace
false with 0 and leave the docs untouched.

Change-Id: Ieceb79a6cbaa248e1b7a7d3c1d51eb26bb3a2d84

5 years agoMerge "Move exif messages to a separate i18n file"
jenkins-bot [Wed, 2 Jan 2019 11:03:18 +0000 (11:03 +0000)]
Merge "Move exif messages to a separate i18n file"

5 years agoMerge "Revert "build: Run minus-x to check for executable files that shouldn't be""
jenkins-bot [Wed, 2 Jan 2019 10:34:19 +0000 (10:34 +0000)]
Merge "Revert "build: Run minus-x to check for executable files that shouldn't be""

5 years agoRevert "build: Run minus-x to check for executable files that shouldn't be"
Jforrester [Wed, 2 Jan 2019 10:19:43 +0000 (10:19 +0000)]
Revert "build: Run minus-x to check for executable files that shouldn't be"

This reverts commit bd2a718cf09cc5826d5a1ef27b1fbb21741e4342.

Bug: T212766
Change-Id: Ic453d7e672ad6c1e39f33f7efd104483f95f5b89

5 years agoUnbreak Pbkdf2PasswordTest
Max Semenik [Wed, 2 Jan 2019 08:21:13 +0000 (00:21 -0800)]
Unbreak Pbkdf2PasswordTest

Due to https://github.com/sebastianbergmann/phpunit/issues/3459 it was
looking for a wrong function name and was skipping the test even when PHP
support was present.

Change-Id: I2508f192a76275286e95bd6a06e4628d98b11737

5 years agoRemove unused line
Max Semenik [Thu, 27 Dec 2018 06:16:32 +0000 (22:16 -0800)]
Remove unused line

Change-Id: I4bc6ec69b84b5f29e3c4c7833697f4d2be82e29a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 1 Jan 2019 20:55:56 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3ea23299dd3d8608c829977c8aa1f3dfe2505d3d

5 years agobuild: Run minus-x to check for executable files that shouldn't be
ryan10145 [Fri, 5 Jan 2018 03:16:23 +0000 (22:16 -0500)]
build: Run minus-x to check for executable files that shouldn't be

Bug: T175794
Change-Id: Ia94b3e832ff21f9f76bd63924bf289cd2afdefbc

5 years agomailmap: list new address not detected by updateCredits.php
MarcoAurelio [Tue, 1 Jan 2019 17:42:54 +0000 (18:42 +0100)]
mailmap: list new address not detected by updateCredits.php

Depends-On: Id54c1832313f489d9d1857d03f1663137d04ef60
Change-Id: I48073307b0fa76b159d358084601ba803d27bad2

5 years agoMerge "Revert "Cached HTML/JS shouldn't show two toggle links""
jenkins-bot [Tue, 1 Jan 2019 14:37:45 +0000 (14:37 +0000)]
Merge "Revert "Cached HTML/JS shouldn't show two toggle links""

5 years agoMerge "Mark constructors of IndexPager subclasses as public"
jenkins-bot [Tue, 1 Jan 2019 14:29:49 +0000 (14:29 +0000)]
Merge "Mark constructors of IndexPager subclasses as public"

5 years agoMerge "Improve documentation of wfDeprecated"
jenkins-bot [Tue, 1 Jan 2019 14:16:12 +0000 (14:16 +0000)]
Merge "Improve documentation of wfDeprecated"

5 years agoMerge "SpecialTags: Add <thead> and <tbody> in the sortable table"
jenkins-bot [Tue, 1 Jan 2019 14:12:04 +0000 (14:12 +0000)]
Merge "SpecialTags: Add <thead> and <tbody> in the sortable table"

5 years agoMerge "SpecialMediaStatistics: Add <thead> and <tbody> in the table"
jenkins-bot [Tue, 1 Jan 2019 14:10:45 +0000 (14:10 +0000)]
Merge "SpecialMediaStatistics: Add <thead> and <tbody> in the table"

5 years agoMerge "tablesorter: Simplify jQuery#removeClass usage by using array"
jenkins-bot [Tue, 1 Jan 2019 14:05:53 +0000 (14:05 +0000)]
Merge "tablesorter: Simplify jQuery#removeClass usage by using array"

5 years agoSpecialTags: Add <thead> and <tbody> in the sortable table
Fomafix [Sun, 30 Dec 2018 13:42:40 +0000 (14:42 +0100)]
SpecialTags: Add <thead> and <tbody> in the sortable table

This avoids that module 'jquery.tablesorter' has to add the elements.

With change I0b446d18f47428d8c0c4aed78b75de16fe106218 this also avoids
a flash of missing sorting buttons while loading.

Change-Id: If6368af27606ebdb6f8d6e3bbe742706ec45e4e6

5 years agoMerge "Use ContextSource::getConfig instead of globals"
jenkins-bot [Tue, 1 Jan 2019 13:50:45 +0000 (13:50 +0000)]
Merge "Use ContextSource::getConfig instead of globals"

5 years agotablesorter: Simplify jQuery#removeClass usage by using array
Fomafix [Sun, 30 Dec 2018 18:00:57 +0000 (19:00 +0100)]
tablesorter: Simplify jQuery#removeClass usage by using array

Since jQuery 3.3, .removeClass() supports arrays.
https://blog.jquery.com/2018/01/19/jquery-3-3-0-a-fragrant-bouquet-of-deprecations-and-is-that-a-new-feature/

Change-Id: I7302373357efe9fbd619cfeedfec364fd245b335

5 years agoUse ContextSource::getConfig instead of globals
Umherirrender [Mon, 31 Dec 2018 20:13:49 +0000 (21:13 +0100)]
Use ContextSource::getConfig instead of globals

Change-Id: I26dd9b1efc0292bbe0044d823f639a2ac5e339dd

5 years agoUse ContextSource::getConfig instead of globals in Skin.php
Umherirrender [Mon, 31 Dec 2018 20:14:59 +0000 (21:14 +0100)]
Use ContextSource::getConfig instead of globals in Skin.php

Change-Id: I2c1b8ab875ff8d671a7cad6c056fb1c23112e241

5 years agoSpecialMediaStatistics: Add <thead> and <tbody> in the table
Fomafix [Sat, 29 Dec 2018 21:16:36 +0000 (22:16 +0100)]
SpecialMediaStatistics: Add <thead> and <tbody> in the table

This avoids that jquery.tablesorter has to add the elements.

Change-Id: Iab7baa641113552720df022cd05d7c4970b4a886

5 years agoRevert "Cached HTML/JS shouldn't show two toggle links"
Fomafix [Sat, 29 Dec 2018 09:44:05 +0000 (10:44 +0100)]
Revert "Cached HTML/JS shouldn't show two toggle links"

This reverts commit 51edd7e9fa3a27e796498547044d063813886503.

All caches are now expired.

Bug: T195053
Change-Id: I16403b5cd57c3cc8acd3afaf6152e30ebb8d4a05

5 years agoMerge "auth: Follow up on e907d4328dc3e"
jenkins-bot [Sat, 29 Dec 2018 01:10:13 +0000 (01:10 +0000)]
Merge "auth: Follow up on e907d4328dc3e"

5 years agoMerge "Special:Search: Generate toggle buttons in HTML instead of JavaScript"
jenkins-bot [Fri, 28 Dec 2018 23:08:40 +0000 (23:08 +0000)]
Merge "Special:Search: Generate toggle buttons in HTML instead of JavaScript"

5 years agoSpecial:Search: Generate toggle buttons in HTML instead of JavaScript
Fomafix [Sun, 23 Dec 2018 14:13:00 +0000 (15:13 +0100)]
Special:Search: Generate toggle buttons in HTML instead of JavaScript

This change ensures that the toggle buttons are already present while
loading.

Depends-On: I41225ccdf8a95a7c501fb6eea99abbd08353f4ea
Change-Id: I3292cf48214b842542ba97730ad91a1e95d127fe

5 years agoImprove documentation of wfDeprecated
Reedy [Thu, 27 Dec 2018 20:29:14 +0000 (20:29 +0000)]
Improve documentation of wfDeprecated

Change-Id: I20b7724f0cf2b0221ae27412844e4019ae451b61

5 years agoDeprecate PasswordPolicyChecks::checkPopularPasswordBlacklist
Reedy [Thu, 27 Dec 2018 20:19:35 +0000 (20:19 +0000)]
Deprecate PasswordPolicyChecks::checkPopularPasswordBlacklist

Change-Id: I4c90e361b7538efeb0c5efa7ca61aed2e468591c

5 years agoSimplify default password policy
Gergő Tisza [Thu, 20 Dec 2018 22:51:14 +0000 (14:51 -0800)]
Simplify default password policy

* Remove PasswordNotInLargeBlacklist => false, it's a no-op
* Deduplicate PasswordCannotMatchUsername
* Remove PasswordCannotBePopular. There is no point in using both
  PasswordCannotBePopular (top 10K passwords from SecLists) and
  PasswordNotInLargeBlacklist (top 100K passwords from SecLists),
  and the CDB lookup is probably not that cheap.

Change-Id: I868846931988b88f06800e42861e82e2bb0bc427

5 years agoCorrect $magicWords for sa.wiki
Jayprakash12345 [Sat, 30 Jun 2018 13:20:44 +0000 (18:50 +0530)]
Correct $magicWords for sa.wiki

Bug: T102320
Change-Id: I4ef78dc7a41916a9af6aa259de455e3948662913

5 years agoUpdate CREDITS file to include new contributors
Martin Urbanec [Thu, 27 Dec 2018 15:43:15 +0000 (16:43 +0100)]
Update CREDITS file to include new contributors

Ran the updateCredits.php script to include new contributors of
MW and its extensions into the CREDITS file after a while. Keeping
the contributor list updated is useful.

Change-Id: Id54c1832313f489d9d1857d03f1663137d04ef60

5 years agoMove exif messages to a separate i18n file
Amir Aharoni [Wed, 5 Sep 2018 12:16:50 +0000 (15:16 +0300)]
Move exif messages to a separate i18n file

Bug: T167762
Change-Id: I17900ff07cd9b15f00c7118b4206cf1cdc074469

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Dec 2018 08:16:39 +0000 (09:16 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If00b12af3d4346114260c9e4312bcab489e9a622

5 years agoFix comments in language class tests
Fomafix [Tue, 25 Dec 2018 13:35:21 +0000 (14:35 +0100)]
Fix comments in language class tests

* Add `@covers LanguageGa`.
* Language code `bs` is for "Bosnian (bosanski)" and not for "Croatian
  (hrvatski)".

Change-Id: I605bdd254518dd708343e36a2dee65dd0aa17b63

5 years agoFix typo "maintainance"
MarcoAurelio [Mon, 24 Dec 2018 14:51:11 +0000 (15:51 +0100)]
Fix typo "maintainance"

Bug: T201491
Change-Id: I8724206404a461eaace3b60f91c7704bd6581ee2

5 years agoMerge "Update OOUI to v0.30.0"
jenkins-bot [Mon, 24 Dec 2018 01:51:37 +0000 (01:51 +0000)]
Merge "Update OOUI to v0.30.0"

5 years agoMerge "Add 'suppressrevision' right to new 'oversight' grant"
jenkins-bot [Sun, 23 Dec 2018 23:47:10 +0000 (23:47 +0000)]
Merge "Add 'suppressrevision' right to new 'oversight' grant"

5 years agoAdd 'suppressrevision' right to new 'oversight' grant
Martin Urbanec [Sat, 29 Sep 2018 18:40:33 +0000 (20:40 +0200)]
Add 'suppressrevision' right to new 'oversight' grant

Change-Id: Ic7eeff94ea533670c85c9e82801f38fded9e7a30

5 years agoUpdate OOUI to v0.30.0
James D. Forrester [Sat, 22 Dec 2018 11:36:59 +0000 (11:36 +0000)]
Update OOUI to v0.30.0

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

Bug: T150071
Bug: T150781
Bug: T183271
Bug: T190581
Bug: T196208
Bug: T208644
Bug: T208821
Bug: T210039
Bug: T210914
Bug: T211154
Bug: T211223
Bug: T212064
Bug: T212068
Bug: T212159
Bug: T212186
Bug: T212299
Bug: T212389
Depends-On: I00d3fa932de968019c6ad676237ed5e5077fb961
Change-Id: I00d3fa932de968019c6ad676237ed5e5077fb962

5 years agouser: Ensure returned user groups are sorted
Max Semenik [Fri, 28 Apr 2017 21:08:32 +0000 (14:08 -0700)]
user: Ensure returned user groups are sorted

Without it, Special:UserRights sometimes fails with a bogus conflict error
just because groups are somehow ordered differently.

Bug: T164211
Change-Id: I9c7f51338e0849d9e134dc780eb13c542960c655

5 years agoeval.php: write error messages to stderr
Mukunda Modell [Fri, 19 Oct 2018 18:45:54 +0000 (13:45 -0500)]
eval.php: write error messages to stderr

Error messages should go to stderr not stdout.

Bug: T121597
Change-Id: Ibde26059982d1e621a104694343682a2032ac844

5 years agoMerge "XmlSelect: Fix PHPDoc param comments for addOption() & formatOptions()"
jenkins-bot [Sat, 22 Dec 2018 00:25:15 +0000 (00:25 +0000)]
Merge "XmlSelect: Fix PHPDoc param comments for addOption() & formatOptions()"

5 years agoXmlSelect: Fix PHPDoc param comments for addOption() & formatOptions()
Alangi Derick [Mon, 17 Dec 2018 15:51:19 +0000 (16:51 +0100)]
XmlSelect: Fix PHPDoc param comments for addOption() & formatOptions()

Change-Id: I60f1bd78b3820510f9fbc497e1c703f9da7fd900

5 years agoMerge "Mark protected IndexPager properties also as protected in subclasses"
jenkins-bot [Fri, 21 Dec 2018 23:39:16 +0000 (23:39 +0000)]
Merge "Mark protected IndexPager properties also as protected in subclasses"

5 years agoMerge "Avoid expensive array_shift where possible"
jenkins-bot [Fri, 21 Dec 2018 23:33:07 +0000 (23:33 +0000)]
Merge "Avoid expensive array_shift where possible"

5 years agoMerge "Revision: Assert that $mRecord is never null in Revision"
jenkins-bot [Fri, 21 Dec 2018 23:33:01 +0000 (23:33 +0000)]
Merge "Revision: Assert that $mRecord is never null in Revision"

5 years agoMerge "Linker: Deprecate non-Language types for $lang of tocList() and generateTOC()"
jenkins-bot [Fri, 21 Dec 2018 23:29:59 +0000 (23:29 +0000)]
Merge "Linker: Deprecate non-Language types for $lang of tocList() and generateTOC()"

5 years agoRevision: Assert that $mRecord is never null in Revision
daniel [Thu, 20 Dec 2018 18:26:42 +0000 (19:26 +0100)]
Revision: Assert that $mRecord is never null in Revision

Bug: T187153
Change-Id: I828954855aa24114ec756e45d4dfe1468b2efa27

5 years agoMerge "objectcache: add expiration check callback to WANObjectCache::getWithSetCallback"
jenkins-bot [Fri, 21 Dec 2018 22:42:41 +0000 (22:42 +0000)]
Merge "objectcache: add expiration check callback to WANObjectCache::getWithSetCallback"

5 years agoMerge "rdbms: add trace to getLagFromPtHeartbeat() log entries"
jenkins-bot [Fri, 21 Dec 2018 22:42:08 +0000 (22:42 +0000)]
Merge "rdbms: add trace to getLagFromPtHeartbeat() log entries"

5 years agoMerge "Make thumbnail image decoding async"
Aaron Schulz [Fri, 21 Dec 2018 21:24:54 +0000 (21:24 +0000)]
Merge "Make thumbnail image decoding async"

5 years agoMark private properties in ContribsPager as "private"
Thiemo Kreuz [Thu, 20 Dec 2018 16:58:15 +0000 (17:58 +0100)]
Mark private properties in ContribsPager as "private"

There should not be any code accessing these. The way to set these
properties is via the constructor.

Change-Id: I8f2a8e88b8dfad53d0b16bc3f73974b894a031fb

5 years agoobjectcache: add expiration check callback to WANObjectCache::getWithSetCallback
Aaron Schulz [Wed, 5 Dec 2018 19:46:57 +0000 (14:46 -0500)]
objectcache: add expiration check callback to WANObjectCache::getWithSetCallback

This is useful when the timestamps to be checked depend on the value or are stored
in the database rather than as check keys.

Change-Id: I81ab08a943ee7d2f96a132d371965501941ed37f

5 years agoRemove redundant property declarations
Thiemo Kreuz [Thu, 20 Dec 2018 16:54:51 +0000 (17:54 +0100)]
Remove redundant property declarations

These are already declared and initialized in the base class. No need
to repeat this.

Change-Id: I4f83202cc9076bd68fa25490bdf8b4a2913b6b04

5 years agoAdd missing, dynamically declared properties in ContribsPager
Thiemo Kreuz [Thu, 20 Dec 2018 16:51:42 +0000 (17:51 +0100)]
Add missing, dynamically declared properties in ContribsPager

These are all set in the constructor, and don't need a default because
of this.

I'm also adding documentation for the class properties in this class as
good as I can (type, possible values, meaning, and behavior).

Change-Id: Ic2367ca7e8d8b2b7ae4f80ad04081a0db2821de5

5 years agordbms: add trace to getLagFromPtHeartbeat() log entries
Aaron Schulz [Fri, 21 Dec 2018 18:20:58 +0000 (10:20 -0800)]
rdbms: add trace to getLagFromPtHeartbeat() log entries

Change-Id: I677610c711443b787f7cea1be2dd9f01486b1324

5 years agoLinker: Deprecate non-Language types for $lang of tocList() and generateTOC()
Fomafix [Mon, 16 Jul 2018 08:44:54 +0000 (10:44 +0200)]
Linker: Deprecate non-Language types for $lang of tocList() and generateTOC()

$lang still defaults to $wgLang on unset parameter.

Change-Id: I15b65fec987641885374dfef9e1229ea405f7c30

5 years agoMerge "Deprecate User::getPasswordValidity()"
jenkins-bot [Fri, 21 Dec 2018 05:06:40 +0000 (05:06 +0000)]
Merge "Deprecate User::getPasswordValidity()"

5 years agoDeprecate User::getPasswordValidity()
Gergő Tisza [Thu, 20 Dec 2018 22:44:04 +0000 (14:44 -0800)]
Deprecate User::getPasswordValidity()

Unused, the return format does not seem useful.

Also improve the documentation of $wgPasswordPolicy
and PasswordPolicyChecks.

Change-Id: Ic01e80cfefc4cfb0eee1eccc6a66942f692278a0

5 years agoAdd warning if you give Html::openElement a name with a space
Brian Wolff [Tue, 4 Sep 2018 17:44:44 +0000 (17:44 +0000)]
Add warning if you give Html::openElement a name with a space

Bug: T201747
Change-Id: I7772f1e8c0c12bdf1fd60d62e015f2ec82d8ac90

5 years agoEmailNotification should provide a getter for pageStatus
Mark A. Hershberger [Wed, 6 Sep 2017 00:42:21 +0000 (20:42 -0400)]
EmailNotification should provide a getter for pageStatus

Extensions that have hooks for
UpdateUserMailerFormattedPageStatus (to provide additional
pageStatus indicators) need a way to make sure that, when their
hook is called in SendWatchlistemailNotification, they only
notifications handling their pageStatus indicator.  This allows them
to fetch the protected property.

Bug: T175104
Change-Id: I2beb5b3576f2cd739dab16b9adf613c96636edd3

5 years agoregistration: Add release notes for platform requirements
MGChecker [Thu, 20 Dec 2018 23:52:35 +0000 (00:52 +0100)]
registration: Add release notes for platform requirements

This adds release notes for I510de1e6d80 and I6744cc0be2.

Bug: T197535
Change-Id: I563012dd7f398c4892ec8a4ecab6144bc589d441

5 years agoMerge "localisation: Make PHP cache files slimmer"
jenkins-bot [Thu, 20 Dec 2018 22:13:28 +0000 (22:13 +0000)]
Merge "localisation: Make PHP cache files slimmer"

5 years agolocalisation: Make PHP cache files slimmer
Seb35 [Sun, 23 Sep 2018 22:52:56 +0000 (00:52 +0200)]
localisation: Make PHP cache files slimmer

The only difference is the scalar values are no longer encoded as an
array, but just the value itself. As a result, PHP localisation cache
files are about 2/3rds of their previous size and become slightly
smaller than CDB files.

Bug: T99740
Change-Id: Iaa5e32830dc1bb710b9e0f1a681afe91e521ece9

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

Change-Id: I6c5f1888a144fff4fd129244c43441535a47fd79

5 years agoMark constructors of IndexPager subclasses as public
Thiemo Kreuz [Thu, 20 Dec 2018 17:29:37 +0000 (18:29 +0100)]
Mark constructors of IndexPager subclasses as public

I believe this is uncontroversial. The constructor or the top-level
base class is public. Subclasses are not even allowed to change that.
So what this patch effectively does is basically documentation, but it
does not change anything.

Change-Id: Icd5da81de284bc4bf382bfdfd33dab428f1fab09

5 years agoMerge "Fix order on Special:Contributions when timestamps are identical"
jenkins-bot [Thu, 20 Dec 2018 17:56:36 +0000 (17:56 +0000)]
Merge "Fix order on Special:Contributions when timestamps are identical"

5 years agoMerge "Fix the cache timestamp for forced updates."
jenkins-bot [Thu, 20 Dec 2018 17:49:02 +0000 (17:49 +0000)]
Merge "Fix the cache timestamp for forced updates."

5 years agoMark protected IndexPager properties also as protected in subclasses
Thiemo Kreuz [Thu, 20 Dec 2018 17:25:19 +0000 (18:25 +0100)]
Mark protected IndexPager properties also as protected in subclasses

I'm intentionally only touching these protected properties and nothing
else, because I believe these are uncontroversial. They should be protected
according to modern SOLID standards, and actually are declared as
protected in the base class. What this patch effectively does is documenting
this fact, but it does not change anything.

Change-Id: I625307b58bd419c4a72e9842b2b46c08ed9b4f8e

5 years agoFix order on Special:Contributions when timestamps are identical
Thiemo Kreuz [Mon, 17 Dec 2018 14:03:44 +0000 (15:03 +0100)]
Fix order on Special:Contributions when timestamps are identical

Please see T200259#4827781 for a longer explanation why this is needed.

Bug: T200259
Change-Id: I1678f7ec994328a96eed208483421be2f82be0ce

5 years agoMerge "Include block ID in unblock log"
jenkins-bot [Thu, 20 Dec 2018 17:07:05 +0000 (17:07 +0000)]
Merge "Include block ID in unblock log"

5 years agoApiDelete: Handle batched deletions properly
Brad Jorsch [Thu, 20 Dec 2018 14:59:02 +0000 (09:59 -0500)]
ApiDelete: Handle batched deletions properly

When batched deletions via the job queue were added in Ie800fb5a, the
way this was reported caused ApiDelete to report an error. Instead it
should report success with appropriate signaling to the client.

Bug: T212356
Change-Id: I1ef66277e988572c6720cf3e3cb36b18530746b4

5 years agoMake thumbnail image decoding async
Gilles Dubuc [Thu, 20 Dec 2018 10:02:39 +0000 (11:02 +0100)]
Make thumbnail image decoding async

This is a browser hint indicating that decoding of the image can be done
asynchronously (instead of synchronously during the image's onload event).
Marking decoding as async enables the browser to display any other
non-image content that might be waiting to be rendered, without waiting
for the image to be decoding. This should allow text to appear sooner in
some situations, where the browser would have otherwise waited to
bundle its rendering with an image. The final result (non-image + image
content being displayed) will happen at the same time as before.

Given how text-heavy wiki context usually is, it makes sense to allow
users to see the text sooner in some situations, so they can start reading.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding
https://html.spec.whatwg.org/multipage/images.html#decoding-images

Bug: T212124
Change-Id: I3d738eba016bad486194f032a47ac6312f61c34e

5 years agoMerge "Add editing own JSON to editmyoptions grant"
jenkins-bot [Thu, 20 Dec 2018 07:35:09 +0000 (07:35 +0000)]
Merge "Add editing own JSON to editmyoptions grant"

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

Change-Id: I30701a3722177d2ded82027426fb8984dc7c8f67

5 years agoMerge "API: Add User-Agent to CORS allow list"
jenkins-bot [Wed, 19 Dec 2018 20:27:03 +0000 (20:27 +0000)]
Merge "API: Add User-Agent to CORS allow list"

5 years agoMerge "ApiBlock: Avoid PHP warning when partial blocks are enabled but not used"
jenkins-bot [Wed, 19 Dec 2018 20:20:47 +0000 (20:20 +0000)]
Merge "ApiBlock: Avoid PHP warning when partial blocks are enabled but not used"

5 years agoAPI: Add User-Agent to CORS allow list
Brad Jorsch [Thu, 13 Dec 2018 17:05:33 +0000 (12:05 -0500)]
API: Add User-Agent to CORS allow list

An updated spec[1] removed the User-Agent header from the list of forbidden
headers for XHR, so some clients are now requesting to use it.

[1] https://github.com/whatwg/fetch/commit/dab09b0c483

Change-Id: I43d42c3c3a6510721ff7e5fc406db797bf08ffae

5 years agoFix the cache timestamp for forced updates.
daniel [Sat, 24 Nov 2018 15:59:58 +0000 (16:59 +0100)]
Fix the cache timestamp for forced updates.

Without this patch, the forcelinksupdate parameter of ApiPurge
was inoperational, caused by the fact that RefreshLinksJob got
the original revision's timestamp in the rootJobTimestamp parameter,
instead of the time at which the new ParserOutput was created.

See <https://phabricator.wikimedia.org/T210307#4771586> for details.

Bug: T210307
Change-Id: I281d6d0ed112b35e160775e528d363ce4770990a

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 agoApiBlock: Avoid PHP warning when partial blocks are enabled but not used
Brad Jorsch [Wed, 19 Dec 2018 16:11:59 +0000 (11:11 -0500)]
ApiBlock: Avoid PHP warning when partial blocks are enabled but not used

If partial blocks are available but a sitewide block is being made,
$params['pagerestrictions'] is null and implode() raises a warning.
Since null casts to the empty array, it's easy enough to work around.

Also add a test hitting this case.

Change-Id: Id7e2559d7569031b7c1228adb0c0a14b3c1527c3

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 agoInclude block ID in unblock log
Gergő Tisza [Tue, 18 Dec 2018 07:50:05 +0000 (23:50 -0800)]
Include block ID in unblock log

Also change block log to only include the ID of the block.
Including autoblock IDs just makes analysis harder, and it is not
useful when searching for autoblocks since those created when a
blocked user tries to edit are not logged this way.

Bug: T210476
Change-Id: Iff1697be416abbb807227d0629cf41346bd379c2

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