lhc/web/wiklou.git
6 years agoRevisionIntegrationTest for loadFromId & loadFromPageId
addshore [Sat, 14 Oct 2017 10:35:11 +0000 (11:35 +0100)]
RevisionIntegrationTest for loadFromId & loadFromPageId

Change-Id: I31431267d761b5d97d7e298c3451341358d54bba

6 years agoRevisionIntegrationTest for newFromArchiveRow with ContentHandlerUseDB
addshore [Sat, 14 Oct 2017 10:25:28 +0000 (11:25 +0100)]
RevisionIntegrationTest for newFromArchiveRow with ContentHandlerUseDB

Change-Id: I6edea4f1de69f5df33f6389f9d7a5be2717c0bb2

6 years agoRevisionIntegrationTest for newFromPageId
addshore [Sat, 14 Oct 2017 10:17:39 +0000 (11:17 +0100)]
RevisionIntegrationTest for newFromPageId

Change-Id: I09cf5fcbacab662e30acda1687ebcfe6b29f1900

6 years agoMerge "Cleanup page creation in RevisionIntegrationTest"
jenkins-bot [Tue, 17 Oct 2017 00:50:43 +0000 (00:50 +0000)]
Merge "Cleanup page creation in RevisionIntegrationTest"

6 years agoMerge "Split Revision tests into Unit & Integration classes"
jenkins-bot [Tue, 17 Oct 2017 00:48:50 +0000 (00:48 +0000)]
Merge "Split Revision tests into Unit & Integration classes"

6 years agoHard deprecate wfRunHooks()
Max Semenik [Sat, 9 Sep 2017 01:28:05 +0000 (18:28 -0700)]
Hard deprecate wfRunHooks()

Deprecated since 1.25, very few callers. Having to grep for 2
ways of calling a hook is harmful not only because it wastes developers'
time, but also because it makes it possible to forget to search for the
old way, resulting in mistakes. Better get rid of this.

Change-Id: Iab28bd5758475b780c2016847881757d64973862

6 years agoMerge "Fix tabindex applied twice on RC top section"
jenkins-bot [Mon, 16 Oct 2017 22:06:59 +0000 (22:06 +0000)]
Merge "Fix tabindex applied twice on RC top section"

6 years agoMerge "Fix changes list misaligned arrow"
jenkins-bot [Mon, 16 Oct 2017 20:25:50 +0000 (20:25 +0000)]
Merge "Fix changes list misaligned arrow"

6 years agoFix changes list misaligned arrow
petarpetkovic [Mon, 16 Oct 2017 15:09:00 +0000 (17:09 +0200)]
Fix changes list misaligned arrow

Bug: T176368
Change-Id: Ie2e938a1b869a58368bc1a5eeec054c90a90724f

6 years agoCleanup page creation in RevisionIntegrationTest
addshore [Fri, 13 Oct 2017 15:39:24 +0000 (16:39 +0100)]
Cleanup page creation in RevisionIntegrationTest

Use the page that is already created by MediaWikiTestCase
to save time in tests.
There is no need to create a second page or a page per test
and have the overhead of the extra db calls.

Change-Id: I6c88edac09b9912a6e8b0673f2229a8d0819bf81

6 years agoRemove mw.page
Fomafix [Sat, 7 Oct 2017 16:35:14 +0000 (18:35 +0200)]
Remove mw.page

mw.page was deprecated in b3fb2770 in MediaWiki 1.30.

Change-Id: Ia2f040549bb83445a8efcd5841bb64cfc5eee50e

6 years agoMerge "Add lowercase variants to the autoloader for legacy history blob classes"
jenkins-bot [Mon, 16 Oct 2017 14:05:20 +0000 (14:05 +0000)]
Merge "Add lowercase variants to the autoloader for legacy history blob classes"

6 years agoAdd lowercase variants to the autoloader for legacy history blob classes
Ori Livneh [Sat, 14 Oct 2017 20:57:38 +0000 (16:57 -0400)]
Add lowercase variants to the autoloader for legacy history blob classes

Blobs in the text table created by MediaWiki <1.5 running on PHP 4 had class
names coerced to lowercase. In order to succcessfully resolve these class
names, the autoloader creates a copy of the autoload class array with
lowercased keys, which is pretty inefficient. So instead, make sure the
auto-generated autoload map contains lowercase variants for these specific
classes.

Bug: T166759
Change-Id: I6d751ef516e936e04c056d70a1ecd17960a39ceb

6 years agoFix tabindex applied twice on RC top section
petarpetkovic [Mon, 16 Oct 2017 13:42:03 +0000 (15:42 +0200)]
Fix tabindex applied twice on RC top section

- Remove tabindex = 0 applied to ButtonElement and leave
only tabindex on ButtonElement-button, so keyboard focus
does not catch one time too much.

Bug: T175893
Change-Id: I5bf759dd2cdcb1a719f1ca7844253025813f8e9a

6 years agoMerge "RCFilters: Use mixins and variables in LESS files"
jenkins-bot [Mon, 16 Oct 2017 13:45:12 +0000 (13:45 +0000)]
Merge "RCFilters: Use mixins and variables in LESS files"

6 years agoMerge "Remove strong tag from "Other review tools""
jenkins-bot [Mon, 16 Oct 2017 13:27:31 +0000 (13:27 +0000)]
Merge "Remove strong tag from "Other review tools""

6 years agoRemove strong tag from "Other review tools"
petarpetkovic [Mon, 16 Oct 2017 11:30:20 +0000 (13:30 +0200)]
Remove strong tag from "Other review tools"

Bug: T175031
Change-Id: I0e9b75496d87c7312d0bb597650ed914a9dccf90

6 years agoImprove wording in Saved Filter Menu
petarpetkovic [Mon, 16 Oct 2017 11:09:05 +0000 (13:09 +0200)]
Improve wording in Saved Filter Menu

- Change user message in saved filter menu from "No links saved yet" to
more clear "No filters saved yet".

Bug: T177540
Change-Id: I39846159183f51fa40efb62f9c8f2fbc79a9c282

6 years agoRCFilters: Use mixins and variables in LESS files
petarpetkovic [Tue, 10 Oct 2017 13:57:38 +0000 (15:57 +0200)]
RCFilters: Use mixins and variables in LESS files

Bug: T156164
Change-Id: Ie979926fe2fb0f840e5bd5dacedf254312a0aa17

6 years agoMerge "Parser: Disable commafy for magic variables for month and day"
jenkins-bot [Mon, 16 Oct 2017 08:42:44 +0000 (08:42 +0000)]
Merge "Parser: Disable commafy for magic variables for month and day"

6 years agoParser: Disable commafy for magic variables for month and day
Santhosh Thottingal [Fri, 13 Oct 2017 11:43:22 +0000 (17:13 +0530)]
Parser: Disable commafy for magic variables for month and day

In Parser#getVariableValue for the following magic variables
Language#formatNum was called without commafy parameter:

currentmonth, currentmonth1, currentday, currentday2, localmonth,
localmonth1, localday, localday2

The default value for formatNum nocommafy is false, meaning formatNum
will do commafication. For the above context, commafy is not needed
since the passed values are often month values like 02, 03 etc.
Commafy is noop on this values.

Explicitly pass false value for formatNum's nocommafy argument.
Language#formatNum method documentation for nocommafy also recommends
setting it true in case of dates.

Change-Id: I3233d5458af8cef583e5d1d599d9408542ba08c9

6 years agoMerge "Fix escaping of i18n message shared-repo-from"
jenkins-bot [Mon, 16 Oct 2017 06:18:22 +0000 (06:18 +0000)]
Merge "Fix escaping of i18n message shared-repo-from"

6 years agoFix escaping of i18n message shared-repo-from
Brian Wolff [Mon, 16 Oct 2017 06:01:56 +0000 (06:01 +0000)]
Fix escaping of i18n message shared-repo-from

[Discovered using an experimental phan plugin]

Change-Id: Ia580dbd0646e2087c676f9e6989b5330d2149845

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 15 Oct 2017 19:59:41 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8954aa5cdc07ec35f19b319de34e1a5d47a3589d

6 years agoFix covers __constructor -> __construct
Reedy [Sun, 15 Oct 2017 17:36:53 +0000 (18:36 +0100)]
Fix covers __constructor -> __construct

Change-Id: I264154c7707def3986560901f3501756853fff11

6 years agoReplace HTTP by HTTPS in docs
Fomafix [Sun, 15 Oct 2017 08:52:43 +0000 (10:52 +0200)]
Replace HTTP by HTTPS in docs

Change-Id: I311c40f8aa90f308a0817f4c3ce1b9449b1f5ca7

6 years agoFix letter-case of several namespace and class names
Ori Livneh [Sun, 15 Oct 2017 01:41:58 +0000 (21:41 -0400)]
Fix letter-case of several namespace and class names

'Mediawiki\Widget\SelectWithInputWidget' is the only one that shows up
in the logs, but I tidied up a few others I came across.

Change-Id: I700dec858007a8013e6d7b9e37ddf518f223d8b7

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 14 Oct 2017 19:54:47 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1d8fca497113f640cf8e90ab6ca2a5e2d4ebeb55

6 years agoMerge "RCFilters: Fix RC jumpiness due to expanded/collapsed community links"
jenkins-bot [Sat, 14 Oct 2017 05:14:54 +0000 (05:14 +0000)]
Merge "RCFilters: Fix RC jumpiness due to expanded/collapsed community links"

6 years agoSpecialRunJobs: Use MediaWiki's built-in async/post-send mode
Timo Tijhof [Thu, 12 Oct 2017 00:01:58 +0000 (01:01 +0100)]
SpecialRunJobs: Use MediaWiki's built-in async/post-send mode

Disabling OutputPage is fine, but disabling MediaWiki's own
output handling from MediaWiki.php as well (with ignore_user_abort
and ob_flush) made this code incompatible with becoming an API module.

Make use of DeferredUpdates instead, MediaWiki's built-in post-send
mechanism.

Bug: T175146
Change-Id: Ia131341d447fd6501a070da89cd3a2af470e0f7d

6 years agoRCFilters: Fix RC jumpiness due to expanded/collapsed community links
Moriel Schottlender [Fri, 13 Oct 2017 23:20:33 +0000 (16:20 -0700)]
RCFilters: Fix RC jumpiness due to expanded/collapsed community links

Bug: T177117
Change-Id: Ie0761613ff8c731226e26a78afa500aef9619d01

6 years agoMerge "deferred: Introduce TransactionRoundDefiningUpdate"
jenkins-bot [Fri, 13 Oct 2017 21:54:02 +0000 (21:54 +0000)]
Merge "deferred: Introduce TransactionRoundDefiningUpdate"

6 years agodeferred: Introduce TransactionRoundDefiningUpdate
Timo Tijhof [Thu, 12 Oct 2017 20:19:56 +0000 (21:19 +0100)]
deferred: Introduce TransactionRoundDefiningUpdate

This allows scheduling of updates that need to start their own
transaction round. Specifically for cases where the ability to
commit early is not enough (which is already possible via LBFactory
getEmptyTransactionTicket and commitAndWaitForReplication).

Change-Id: I0910587b61c8ddf825f91e92c2f93582cc7ebd80

6 years agoFix margin of #jump-to-nav
Derk-Jan Hartman [Fri, 13 Oct 2017 20:34:00 +0000 (22:34 +0200)]
Fix margin of #jump-to-nav

The top margin is a correction for the bottom margin.
Follow-up to: Id58972b

Bug: T176444
Change-Id: Icfedfa1ede49de96210b8662a1886ab52c78b006

6 years agoMerge "Simplify OutputPage constructor"
jenkins-bot [Fri, 13 Oct 2017 20:10:43 +0000 (20:10 +0000)]
Merge "Simplify OutputPage constructor"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 13 Oct 2017 19:56:25 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie065cfcf32cbd7f8e341766b545ac0f893cc508b

6 years agoSimplify OutputPage constructor
Max Semenik [Sat, 9 Sep 2017 02:12:37 +0000 (19:12 -0700)]
Simplify OutputPage constructor

Make it impossible to instantiate this class without passing it
context. This appears to be the oldest wfDeprecated() in MediaWiki.
All callers have been updated.

Change-Id: I00b9e283ad22c6274b358063b9f9e60fe93d5ee7

6 years agoMerge "Remove old workaround for HHVM"
jenkins-bot [Fri, 13 Oct 2017 19:42:22 +0000 (19:42 +0000)]
Merge "Remove old workaround for HHVM"

6 years agoMerge "Split sql fulltext index creation into two statements"
jenkins-bot [Fri, 13 Oct 2017 19:00:12 +0000 (19:00 +0000)]
Merge "Split sql fulltext index creation into two statements"

6 years agoSplit sql fulltext index creation into two statements
Erik Bernhardson [Tue, 10 Oct 2017 16:51:39 +0000 (09:51 -0700)]
Split sql fulltext index creation into two statements

MySQL prior to 5.6.8 (https://bugs.mysql.com/bug.php?id=67004) did
not support adding multiple fulltext indices at the same time on InnoDB.
Split them into two statements to work around this limitation.

Bug: T177477
Change-Id: Ib366fa04724abac6d740bea017274ad62730b9e5

6 years agoMerge "Hard deprecate wfBaseConvert()"
jenkins-bot [Fri, 13 Oct 2017 18:15:34 +0000 (18:15 +0000)]
Merge "Hard deprecate wfBaseConvert()"

6 years agoMerge "RCFilters: Don't reload when removing highlighted item"
jenkins-bot [Fri, 13 Oct 2017 15:11:45 +0000 (15:11 +0000)]
Merge "RCFilters: Don't reload when removing highlighted item"

6 years agoMerge "Add missing retrun in getSummaryInputOOUI()"
jenkins-bot [Fri, 13 Oct 2017 15:11:31 +0000 (15:11 +0000)]
Merge "Add missing retrun in getSummaryInputOOUI()"

6 years agoMerge "RCFilters: Use GroupWidget for grouping buttons and aggregating events"
jenkins-bot [Fri, 13 Oct 2017 15:04:11 +0000 (15:04 +0000)]
Merge "RCFilters: Use GroupWidget for grouping buttons and aggregating events"

6 years agoSplit Revision tests into Unit & Integration classes
addshore [Thu, 12 Oct 2017 12:23:33 +0000 (13:23 +0100)]
Split Revision tests into Unit & Integration classes

Change-Id: If10b102a1a0d680b5f067bf34c0fafcb59c09048

6 years agoAdd missing retrun in getSummaryInputOOUI()
WMDE-Fisch [Fri, 13 Oct 2017 11:20:12 +0000 (13:20 +0200)]
Add missing retrun in getSummaryInputOOUI()

Change-Id: I26ad5bd4ed7e4d0e690c48354dc281f4636becd7

6 years agoMerge "Remove maintenance/checkSyntax.php"
jenkins-bot [Fri, 13 Oct 2017 06:58:19 +0000 (06:58 +0000)]
Merge "Remove maintenance/checkSyntax.php"

6 years agoMerge "Update PsySh from 0.8.5 to 0.8.11"
jenkins-bot [Fri, 13 Oct 2017 06:47:05 +0000 (06:47 +0000)]
Merge "Update PsySh from 0.8.5 to 0.8.11"

6 years agoMerge "Move wfCountDown() into Maintenance class"
jenkins-bot [Fri, 13 Oct 2017 04:24:59 +0000 (04:24 +0000)]
Merge "Move wfCountDown() into Maintenance class"

6 years agoRemove maintenance/checkSyntax.php
Max Semenik [Fri, 13 Oct 2017 02:54:05 +0000 (19:54 -0700)]
Remove maintenance/checkSyntax.php

Was useful years ago, but now we have much better tools.
Not used anywhere search can find.

Change-Id: Iaa094a686aeefd9a6071abc843ffc33c8daf2a5a

6 years agoHard deprecate wfBaseConvert()
Max Semenik [Fri, 13 Oct 2017 02:38:26 +0000 (19:38 -0700)]
Hard deprecate wfBaseConvert()

No callers anywhere.

Change-Id: If804d1153ca8e9e82eda3af4d992e395ab112158

6 years agoRemove old workaround for HHVM
Max Semenik [Fri, 13 Oct 2017 00:38:34 +0000 (17:38 -0700)]
Remove old workaround for HHVM

The bug in question was fixed in HHVM 3.6.0, our minimum requirement is 3.6.5.

Change-Id: Id1d65cf438c7148064d747f09728ef4cb5f51b52

6 years agoRCFilters: Use GroupWidget for grouping buttons and aggregating events
Moriel Schottlender [Fri, 13 Oct 2017 00:27:39 +0000 (17:27 -0700)]
RCFilters: Use GroupWidget for grouping buttons and aggregating events

Bug: T168849
Change-Id: I3d68121aa4b281751f6ea6cce2c68147855d6c68

6 years agoApiQueryLinks: Avoid MySQL order-by bug
Brad Jorsch [Wed, 12 Apr 2017 15:38:20 +0000 (11:38 -0400)]
ApiQueryLinks: Avoid MySQL order-by bug

MySQL (and MariaDB) have a strange bug where it will often get confused
and insist on filesorting if a field that is constant in the WHERE
clause is also present in ORDER BY. We've worked around this in several
places in the API, and in fact it was done in this very module in r34720
and r37250.

But when r67450 added the pltitles and tltemplates parameters, it didn't
adjust the logic for avoiding the DB bug. This does that now.

Change-Id: I9f37f8812a94cdd088d3940da43d1046ebd455d6

6 years agoMove wfCountDown() into Maintenance class
Max Semenik [Fri, 13 Oct 2017 00:24:46 +0000 (17:24 -0700)]
Move wfCountDown() into Maintenance class

Doing this allows to restrict it to maintenance scripts and support
quiet mode.

Change-Id: Iad0858ce1fdd64f746d5f9d4a7d6ed96f21e94df

6 years agoMerge "Update email mute copy on preferences page"
jenkins-bot [Fri, 13 Oct 2017 00:04:42 +0000 (00:04 +0000)]
Merge "Update email mute copy on preferences page"

6 years agoUpdate PsySh from 0.8.5 to 0.8.11
Gergő Tisza [Thu, 12 Oct 2017 23:25:09 +0000 (16:25 -0700)]
Update PsySh from 0.8.5 to 0.8.11

0.8.11 adds bracketed paste support for readline,
meaning that it can differentiate between
interaction-triggering characters (such as newline
or tab) which have been entered manually, and ones
which have been pasted so their special effect should
be suppressed. Also a bunch of small bugfixes and features.

Release summaries: https://github.com/bobthecow/psysh/releases
All changes: https://github.com/bobthecow/psysh/compare/v0.8.5...v0.8.11?expand=1

There are no dependency changes; I've skimmed the code
changes and all seem harmless.

Change-Id: I33456904787fd86458249ddfbb00c6b55592da07

6 years agoMerge "mw.rcfilters.Controller: Avoid ES6 method String#endsWith"
jenkins-bot [Thu, 12 Oct 2017 22:43:55 +0000 (22:43 +0000)]
Merge "mw.rcfilters.Controller: Avoid ES6 method String#endsWith"

6 years agoMerge "Update OOjs UI to v0.23.5"
jenkins-bot [Thu, 12 Oct 2017 22:38:41 +0000 (22:38 +0000)]
Merge "Update OOjs UI to v0.23.5"

6 years agomw.rcfilters.Controller: Avoid ES6 method String#endsWith
Bartosz Dziewoński [Thu, 12 Oct 2017 22:17:11 +0000 (00:17 +0200)]
mw.rcfilters.Controller: Avoid ES6 method String#endsWith

We still support ES5 browsers such as Internet Explorer 11 and Opera 12.

Bug: T178120
Change-Id: Ic85063dfbbcf26a99d343845c9fb801f1888d750

6 years agoMerge "Skin: Make skins aware of their registered skin name"
jenkins-bot [Thu, 12 Oct 2017 21:55:35 +0000 (21:55 +0000)]
Merge "Skin: Make skins aware of their registered skin name"

6 years agoUpdate OOjs UI to v0.23.5
James D. Forrester [Thu, 12 Oct 2017 21:36:40 +0000 (14:36 -0700)]
Update OOjs UI to v0.23.5

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

Also, replace uses of `OOUI\TextInputWidget( [ 'multiline' => true ] )`
with `OOUI\MultilineTextInputWidget()` to avoid deprecation warnings
(which cause unit tests to fail).

Depends-on: I990b14982ffb72fe981040d02c7023d13f721aaa
Change-Id: If8312c60e1547a6177f5491011badb6576f54b21

6 years agoUpdate email mute copy on preferences page
Dayllan Maza [Thu, 12 Oct 2017 16:25:18 +0000 (12:25 -0400)]
Update email mute copy on preferences page

Bug: T176365
Change-Id: Iabe26fe12ee212217ab6b05016638a683df94b05

6 years agoMerge "deferred: Improve DeferredUpdates test coverage"
jenkins-bot [Thu, 12 Oct 2017 21:23:19 +0000 (21:23 +0000)]
Merge "deferred: Improve DeferredUpdates test coverage"

6 years agoMerge "shell: Deduplicate code in Command.php by combining else paths"
jenkins-bot [Thu, 12 Oct 2017 20:53:18 +0000 (20:53 +0000)]
Merge "shell: Deduplicate code in Command.php by combining else paths"

6 years agoshell: Deduplicate code in Command.php by combining else paths
Fomafix [Thu, 12 Oct 2017 10:51:05 +0000 (12:51 +0200)]
shell: Deduplicate code in Command.php by combining else paths

Also reduce indenting.

Change-Id: I33f83786c38bba0919372df0d5cdfa806d4361fc

6 years agodeferred: Improve DeferredUpdates test coverage
Timo Tijhof [Thu, 12 Oct 2017 18:58:33 +0000 (19:58 +0100)]
deferred: Improve DeferredUpdates test coverage

From 1% of lines to 12% in deferred/.
From 6% of lines to 68% in DeferredUpdates.php.

* Adding relevant @covers tags to existing tests.
* Add coverage for MWCallableUpdate.
* Add coverage for MergeableUpdate.

Also:
* Make MergeableUpdate extend DeferrableUpdate.
  1. Because PHPUnit doesn't support implementing multiple interfaces
     in a mock, and would make the mock fail the typehint at run-time.
  2. It DeferredUpdates doesn't support having a MergeableUpdate that isn't
     itself a DeferrableUpdate given the only way to reach that code is past
     methods that are type-hinted with DeferrableUpdate.
  3. Making the interface extend DeferrableUpdate helps produce better and
     earlier errors. Instead of run-time error:
     > Argument 1 passed to addUpdate() must implement interface DeferrableUpdate
     > instance of MergeableUpdate given
     We get:
     > Fatal error: Class .. contains 1 abstract method and must therefore be
     > declared abstract or implement the remaining methods (doUpdate)

Change-Id: Ie384bf849a96bb37dc3e4a4154da2b02889e9fc8

6 years agoFollow-up d25a944635: fix PHP notice
Roan Kattouw [Thu, 12 Oct 2017 19:32:26 +0000 (12:32 -0700)]
Follow-up d25a944635: fix PHP notice

Change-Id: Id4d58f4eb2a26cb2f9cf6d36194f3e0ae9c84135

6 years agoMerge "SpecialRunJobs: Remove unused JSON response"
jenkins-bot [Thu, 12 Oct 2017 19:29:24 +0000 (19:29 +0000)]
Merge "SpecialRunJobs: Remove unused JSON response"

6 years agoMerge "Remove useless commit calls in JobRunner"
jenkins-bot [Thu, 12 Oct 2017 19:29:20 +0000 (19:29 +0000)]
Merge "Remove useless commit calls in JobRunner"

6 years agoRemove useless commit calls in JobRunner
Aaron Schulz [Thu, 12 Oct 2017 19:00:07 +0000 (12:00 -0700)]
Remove useless commit calls in JobRunner

These were meant as sanity checks, but would fail in those
unusual cases anyway with exceptions. Instead, have an
early check to make sure no explicit transaction rounds
are active when JobRunner:run is called.

Change-Id: I723c77c8d3ef7ec4dcf09ce6d549b4fd57bdf1c2

6 years agoMerge "Drop call of deprecated IE8-support method"
jenkins-bot [Thu, 12 Oct 2017 17:35:08 +0000 (17:35 +0000)]
Merge "Drop call of deprecated IE8-support method"

6 years agoSpecialRunJobs: Remove unused JSON response
Timo Tijhof [Wed, 11 Oct 2017 23:47:28 +0000 (00:47 +0100)]
SpecialRunJobs: Remove unused JSON response

In preparation of making SpecialRunJobs a normal special page
that doesn't override output handling, but instead uses normal
HTML-based responses for sync, and DeferredUpdates for async,
start by removing the text/plain JSON response it currently
has (also to verify that it really isn't used).

Bug: T175146
Change-Id: I8621c4e2ba94a7d312adaf04a46e1a214af909fe

6 years agoAPI: Handle pltitles/tltemplates/clcategories/imimages with only invalid titles
Brad Jorsch [Wed, 12 Apr 2017 16:04:50 +0000 (12:04 -0400)]
API: Handle pltitles/tltemplates/clcategories/imimages with only invalid titles

If the parameter contains only invalid titles, it shouldn't be ignored.

Bug: T162816
Change-Id: I3ee6aeab421db5732b652fed21292d8509f8d757

6 years agoDrop call of deprecated IE8-support method
Ed Sanders [Thu, 12 Oct 2017 15:11:25 +0000 (16:11 +0100)]
Drop call of deprecated IE8-support method

Bug: T123219
Change-Id: Ie85dd4442e93f1f1745227f5f3f9d7ddefcd2d46

6 years agoMerge "Return stderr from Shell\Command"
jenkins-bot [Thu, 12 Oct 2017 09:21:08 +0000 (09:21 +0000)]
Merge "Return stderr from Shell\Command"

6 years agoReturn stderr from Shell\Command
Max Semenik [Sat, 3 Dec 2016 00:12:59 +0000 (16:12 -0800)]
Return stderr from Shell\Command

Change-Id: I5551ae4bbe7b539b528a734aa82198b11f103871

6 years agoMerge "Fix inconsistent i18n escaping in category paging links."
jenkins-bot [Thu, 12 Oct 2017 07:52:02 +0000 (07:52 +0000)]
Merge "Fix inconsistent i18n escaping in category paging links."

6 years agoMerge "Delete RevisionStorageTestContentHandlerUseDB"
jenkins-bot [Thu, 12 Oct 2017 07:11:26 +0000 (07:11 +0000)]
Merge "Delete RevisionStorageTestContentHandlerUseDB"

6 years agoMerge "RevisionStorageTest: use MediaWikiTestCase methods for setting globals"
jenkins-bot [Thu, 12 Oct 2017 07:11:23 +0000 (07:11 +0000)]
Merge "RevisionStorageTest: use MediaWikiTestCase methods for setting globals"

6 years agoDelete RevisionStorageTestContentHandlerUseDB
addshore [Wed, 11 Oct 2017 14:55:04 +0000 (15:55 +0100)]
Delete RevisionStorageTestContentHandlerUseDB

Due to this test file not ending in Test.php it doesn't
get run with all of the other phpunit tests.

When changing the name so that the test are run they fail:
https://gerrit.wikimedia.org/r/#/c/383587/
I119e80c6674b22dc3eb02a023a346f842ef8cd21

It is likely these tests have actually never run.

Rather than try to fix these 5 year olds tests lets just scrap
them and start fresh.

Change-Id: I0318614127d6b4d9661b875ab53af3f6e286ac95

6 years agoMerge "RevisionStorageTest: Add tests for Revision::newFromTitle()"
jenkins-bot [Thu, 12 Oct 2017 07:02:16 +0000 (07:02 +0000)]
Merge "RevisionStorageTest: Add tests for Revision::newFromTitle()"

6 years agoRevisionStorageTest: use MediaWikiTestCase methods for setting globals
addshore [Wed, 11 Oct 2017 14:02:38 +0000 (15:02 +0100)]
RevisionStorageTest: use MediaWikiTestCase methods for setting globals

Change-Id: I8712517b50c5b552fe2d0e248b5735945a98fba4

6 years agoRevisionStorageTest: Add tests for Revision::newFromTitle()
addshore [Wed, 11 Oct 2017 13:56:37 +0000 (14:56 +0100)]
RevisionStorageTest: Add tests for Revision::newFromTitle()

Change-Id: I131b033d72cd4775618b972dbaf40b9f28dd3374

6 years agoMerge "Fix PostgreSQL patch-add-3d.sql by replacing it"
jenkins-bot [Thu, 12 Oct 2017 03:34:45 +0000 (03:34 +0000)]
Merge "Fix PostgreSQL patch-add-3d.sql by replacing it"

6 years agoMerge "Have CommentStore limit the maximum character length of comments"
jenkins-bot [Thu, 12 Oct 2017 03:28:17 +0000 (03:28 +0000)]
Merge "Have CommentStore limit the maximum character length of comments"

6 years agoFix PostgreSQL patch-add-3d.sql by replacing it
Brad Jorsch [Fri, 15 Sep 2017 16:12:21 +0000 (12:12 -0400)]
Fix PostgreSQL patch-add-3d.sql by replacing it

Follows-up 6260545feea2f5d05ae8. (T157348)

If updates are run for the first time on an installation that already
has '3D' in the enum (e.g. because it's a fresh install), the update
fails.

Instead of blindly running a patch file, we instead add a method that
checks whether the enum type already contains the value before adding
it.

Bug: T177417
Change-Id: Iad10cb88cf1cb35cfb95ce98a556b33688158a88

6 years agoHard deprecate wfShellExecDisabled()
Max Semenik [Thu, 12 Oct 2017 02:42:18 +0000 (19:42 -0700)]
Hard deprecate wfShellExecDisabled()

No users anywhere, only ever had 1 caller outside of core.

Change-Id: I1361d3b555b642b75ec58f071a02407a611b44f9

6 years agoMerge "Revision split __construct method"
jenkins-bot [Thu, 12 Oct 2017 01:17:07 +0000 (01:17 +0000)]
Merge "Revision split __construct method"

6 years agoMerge "Revision: test and fix __construct exceptions"
jenkins-bot [Thu, 12 Oct 2017 01:15:50 +0000 (01:15 +0000)]
Merge "Revision: test and fix __construct exceptions"

6 years agoRevision split __construct method
addshore [Wed, 11 Oct 2017 12:57:47 +0000 (13:57 +0100)]
Revision split __construct method

This makes the logic much easier to follow and each type of
construction easier to see.
This also emphisises the testing of construction being split
into row object vs array

Change-Id: Ie3aa6ec4c026f0249ccd438903fec27fcd266b67

6 years agoRevision: test and fix __construct exceptions
addshore [Wed, 11 Oct 2017 12:40:03 +0000 (13:40 +0100)]
Revision: test and fix __construct exceptions

This adds tests for each exception that can be thrown
in the Revision constructor.
It also fixes where the exception for the content part of a row
not containing a content object is thrown.
Prior to this ->getModel() could be called on the content row
element before the check had actually occoured.

Change-Id: Ia2d2cfdca01871fc6dbb96707d781db33d7d0a40

6 years agoMerge "RevisionStorageTest: code style fixes"
jenkins-bot [Thu, 12 Oct 2017 00:07:01 +0000 (00:07 +0000)]
Merge "RevisionStorageTest: code style fixes"

6 years agoRCFilters: Don't reload when removing highlighted item
Moriel Schottlender [Thu, 12 Oct 2017 00:05:03 +0000 (17:05 -0700)]
RCFilters: Don't reload when removing highlighted item

Bug: T164131
Change-Id: I1f50276a60b8aae3034409664dd77f6ba1d5d87c

6 years agoMerge "RevisionTest: refactor test dataProviders"
jenkins-bot [Thu, 12 Oct 2017 00:01:57 +0000 (00:01 +0000)]
Merge "RevisionTest: refactor test dataProviders"

6 years agoMerge "phpcs.xml: Remove missing functions from PrefixedGlobalFunctions 'ignoreList'"
jenkins-bot [Wed, 11 Oct 2017 23:59:43 +0000 (23:59 +0000)]
Merge "phpcs.xml: Remove missing functions from PrefixedGlobalFunctions 'ignoreList'"

6 years agoRevisionStorageTest: code style fixes
addshore [Tue, 10 Oct 2017 16:58:13 +0000 (17:58 +0100)]
RevisionStorageTest: code style fixes

Change-Id: I0d8e6e58c74c3ba849f9cb4a3a159a62049604a3

6 years agoRevisionTest: refactor test dataProviders
addshore [Tue, 10 Oct 2017 16:38:31 +0000 (17:38 +0100)]
RevisionTest: refactor test dataProviders

Change-Id: I238d0294de7112a78ef18ffba195c0c175d6d735

6 years agoDeprecate $wgEnableAPI and $wgEnableWriteAPI
Tim Starling [Wed, 11 Oct 2017 23:02:05 +0000 (10:02 +1100)]
Deprecate $wgEnableAPI and $wgEnableWriteAPI

$wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in
a future version. The API is now considered to be stable, secure and
essential.

Bug: T115414
Change-Id: I8c98ce63afd82677ecf662f8159e58be1759bde0

6 years agoMerge "RCFilters: Store invert as a standard filter/parameter"
jenkins-bot [Wed, 11 Oct 2017 20:30:41 +0000 (20:30 +0000)]
Merge "RCFilters: Store invert as a standard filter/parameter"