lhc/web/wiklou.git
7 years agoUpdate psr/log to v1.0.2
Reedy [Thu, 9 Feb 2017 16:15:13 +0000 (16:15 +0000)]
Update psr/log to v1.0.2

https://github.com/php-fig/log/compare/1.0.0...1.0.2
https://github.com/php-fig/log/releases/tag/1.0.1
https://github.com/php-fig/log/releases/tag/1.0.2

Change-Id: I63bc43ec352d4fe756596cfcb46320e5e02edf7a
Depends-On: I7d4e1d7f61c56fb8951744e0a149b4a3df480e5b

7 years agoUpdated cssjanus to v1.1.3
Reedy [Wed, 8 Feb 2017 02:35:09 +0000 (02:35 +0000)]
Updated cssjanus to v1.1.3

https://github.com/cssjanus/php-cssjanus/releases/tag/v1.1.3
https://github.com/cssjanus/php-cssjanus/compare/v1.1.2...v1.1.3

Depends-On: I59d095b8fbeba1d60de3834bee68c4a524bf4f81
Change-Id: I4b3704e8552d4ea9a05ca67935ce02719d04995e

7 years agoUpdate OOjs UI to v0.19.1
Volker E [Wed, 8 Feb 2017 00:50:58 +0000 (16:50 -0800)]
Update OOjs UI to v0.19.1

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

Change-Id: I6ef09c5285f89feee040a894785c02dab728e6ad

7 years agoMerge "RCFilters UI: Fix filter list popup width"
jenkins-bot [Wed, 8 Feb 2017 00:11:02 +0000 (00:11 +0000)]
Merge "RCFilters UI: Fix filter list popup width"

7 years agoRCFilters UI: Fix filter list popup width
Moriel Schottlender [Tue, 7 Feb 2017 23:20:18 +0000 (15:20 -0800)]
RCFilters UI: Fix filter list popup width

Change-Id: Ic4dac749b97b12a121612b1c16188148e33a0959

7 years agoMerge "RCFilters UI: Add popup for capsule items"
jenkins-bot [Tue, 7 Feb 2017 23:15:39 +0000 (23:15 +0000)]
Merge "RCFilters UI: Add popup for capsule items"

7 years agoRCFilters UI: Add popup for capsule items
Moriel Schottlender [Tue, 24 Jan 2017 18:23:27 +0000 (10:23 -0800)]
RCFilters UI: Add popup for capsule items

Change-Id: Icdb5ef84929e5f7bf504e99f6e6987ef4e73ae60

7 years agoMerge "Expand RC filters search to include desc and group title"
jenkins-bot [Tue, 7 Feb 2017 22:34:43 +0000 (22:34 +0000)]
Merge "Expand RC filters search to include desc and group title"

7 years agoExpand RC filters search to include desc and group title
Stephane Bisson [Tue, 31 Jan 2017 15:41:23 +0000 (10:41 -0500)]
Expand RC filters search to include desc and group title

Bug: T156215
Change-Id: Ieb1c30d8403fcdf2e4d236211affdbb6199f84f6

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 7 Feb 2017 20:56:12 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I13aec863d647a9c93d80b13a55179cf463ac209f

7 years agoMerge "rdbms: Avoid declaration incompatibility IDEA warnings in safeWaitForMasterPos()"
jenkins-bot [Tue, 7 Feb 2017 18:48:13 +0000 (18:48 +0000)]
Merge "rdbms: Avoid declaration incompatibility IDEA warnings in safeWaitForMasterPos()"

7 years agoMerge "PHPUnit autoload file for PhpStorm"
jenkins-bot [Tue, 7 Feb 2017 18:36:10 +0000 (18:36 +0000)]
Merge "PHPUnit autoload file for PhpStorm"

7 years agordbms: Avoid declaration incompatibility IDEA warnings in safeWaitForMasterPos()
Aaron Schulz [Mon, 6 Feb 2017 21:39:32 +0000 (13:39 -0800)]
rdbms: Avoid declaration incompatibility IDEA warnings in safeWaitForMasterPos()

Change-Id: Id30105889b45c7448d8b095f0340796e577bd76a

7 years agoMove LikeMatch to Rdbms namespace
Aaron Schulz [Tue, 7 Feb 2017 05:20:39 +0000 (21:20 -0800)]
Move LikeMatch to Rdbms namespace

Change-Id: I0cba263cd02fc5c4bfe8f063f38d1b4be28246b0

7 years agoMerge "Add class to diff and history links in Special:Contributions"
jenkins-bot [Tue, 7 Feb 2017 03:46:04 +0000 (03:46 +0000)]
Merge "Add class to diff and history links in Special:Contributions"

7 years agoThe correct method is parse, not parsed
Erik Bernhardson [Mon, 6 Feb 2017 22:22:07 +0000 (14:22 -0800)]
The correct method is parse, not parsed

A recent patch updated these two calls to use Message::parsed(),
but it should have used the Message::parse() message.

Change-Id: I5aba40576b89f21d2b1416ca0db0d28d2a088c39

7 years agoSwitch search-interwiki-caption i18n to parsed
Erik Bernhardson [Mon, 6 Feb 2017 21:58:44 +0000 (13:58 -0800)]
Switch search-interwiki-caption i18n to parsed

A recent refactor of the interwiki sidebar looks to have a small
regression, in that this message used to use ->parsed() but now
uses ->escaped(). Switch back so the interiwki results on beta
render appropriately.

Bug: T149806
Change-Id: I44d0b1cd3bcc0606a0fb14e171d51bec1c310a91

7 years agoMerge "Special:JavaScriptTest: send RL errors to the js console"
jenkins-bot [Mon, 6 Feb 2017 21:51:18 +0000 (21:51 +0000)]
Merge "Special:JavaScriptTest: send RL errors to the js console"

7 years agoMerge "rcfeed: Ensure formatter (and other params) is passed to RCFeedEngine"
jenkins-bot [Mon, 6 Feb 2017 21:18:19 +0000 (21:18 +0000)]
Merge "rcfeed: Ensure formatter (and other params) is passed to RCFeedEngine"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 6 Feb 2017 20:55:37 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3757684001fd0e4ce2a0299ec6b565e869a29aec

7 years agoMerge "jquery.suggestions: Correct @return documentation"
jenkins-bot [Mon, 6 Feb 2017 20:32:15 +0000 (20:32 +0000)]
Merge "jquery.suggestions: Correct @return documentation"

7 years agoMerge "mediawiki.action.edit.stash.js: Use formatversion=2 for API request"
jenkins-bot [Mon, 6 Feb 2017 20:14:55 +0000 (20:14 +0000)]
Merge "mediawiki.action.edit.stash.js: Use formatversion=2 for API request"

7 years agoMerge "Add flexbox mixin for flex-wrap"
jenkins-bot [Mon, 6 Feb 2017 20:05:41 +0000 (20:05 +0000)]
Merge "Add flexbox mixin for flex-wrap"

7 years agojquery.suggestions: Correct @return documentation
Bartosz Dziewoński [Mon, 6 Feb 2017 20:03:57 +0000 (21:03 +0100)]
jquery.suggestions: Correct @return documentation

Follow-up to 0dca42efb4a1ae7bcd029bf02dbc49a6d7fb57df.

Change-Id: Ia8c17d8169eb875d297b98a30002afb0eaa11233

7 years agoMerge "Move LBFactory to Rdbms namespace"
jenkins-bot [Mon, 6 Feb 2017 19:25:54 +0000 (19:25 +0000)]
Merge "Move LBFactory to Rdbms namespace"

7 years agoSpecial:JavaScriptTest: send RL errors to the js console
Stephane Bisson [Tue, 31 Jan 2017 16:21:00 +0000 (11:21 -0500)]
Special:JavaScriptTest: send RL errors to the js console

ResourceLoader errors, like invalid dependencies, are
hard to spot and only result in the special page
not finding any tests.

This is not a perfect solution but it would have
saved me a full day of troubleshooting.

Change-Id: I247174f89772b84b4cad31deffb03152921df020

7 years agojquery.suggestions: Only highlight prefix matches
Bartosz Dziewoński [Sat, 17 Dec 2016 03:44:05 +0000 (04:44 +0100)]
jquery.suggestions: Only highlight prefix matches

* jquery.highlightText: Add an option to highlight a prefix only.
* jquery.suggestions: Use the new option.

Bug: T27187
Change-Id: I097f012d2022334bbdb8cb32b256ae978aec57c7

7 years agoMerge "Allow wikilinks in "Powersearch-ns""
jenkins-bot [Mon, 6 Feb 2017 15:11:28 +0000 (15:11 +0000)]
Merge "Allow wikilinks in "Powersearch-ns""

7 years agoMerge "Make 'groups' a data model in the FiltersViewModel"
jenkins-bot [Mon, 6 Feb 2017 11:59:14 +0000 (11:59 +0000)]
Merge "Make 'groups' a data model in the FiltersViewModel"

7 years agoMerge "ApiPurge: update description for POST requirement"
jenkins-bot [Mon, 6 Feb 2017 02:25:25 +0000 (02:25 +0000)]
Merge "ApiPurge: update description for POST requirement"

7 years agoMake 'groups' a data model in the FiltersViewModel
Moriel Schottlender [Tue, 31 Jan 2017 01:08:42 +0000 (17:08 -0800)]
Make 'groups' a data model in the FiltersViewModel

Transform the groups Object to a full data model that
handles events, and connect the FilterGroupWidget to
its model for responding to these events.

Bug: T156533
Change-Id: Iebde3138e16bac7f62e8f557e5ce08f41a9535cb

7 years agoAllow wikilinks in "Powersearch-ns"
Pmlineditor [Sun, 5 Feb 2017 21:57:35 +0000 (03:27 +0530)]
Allow wikilinks in "Powersearch-ns"

Changed use of escaped() to parse() to allow wikilinks in
MediaWiki:Powersearch-ns. Use case is provided in T157204.

Bug: T157204
Change-Id: Ic2eb28aaf735c31b50f3365176966e2e48091e54

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 5 Feb 2017 20:54:50 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I344edbc4a9319465e905d5c042932755f91bc07c

7 years agomediawiki.action.edit.stash.js: Use formatversion=2 for API request
Fomafix [Sun, 5 Feb 2017 20:17:10 +0000 (21:17 +0100)]
mediawiki.action.edit.stash.js: Use formatversion=2 for API request

Change-Id: I537e9fe915dcdc2827d463a9815138aa32e13ae4

7 years agoAdd flexbox mixin for flex-wrap
Isarra [Sun, 5 Feb 2017 19:16:02 +0000 (19:16 +0000)]
Add flexbox mixin for flex-wrap

Includes browser prefixes for old webkit (safaris, old iOS),
IE10, and ancient firefox

Change-Id: I6d3c82e1d1c526a1e307d9c33c576ae357834cb7

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 4 Feb 2017 20:55:13 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Icc9ce5b1bd8d544288454186dff4e4e963ec2140

7 years agorcfeed: Ensure formatter (and other params) is passed to RCFeedEngine
Timo Tijhof [Sat, 4 Feb 2017 03:31:44 +0000 (03:31 +0000)]
rcfeed: Ensure formatter (and other params) is passed to RCFeedEngine

Follows-up 39a6e3dc4d. Class-based feeds are always given their parameters
by RCFeed::factory. However because the old getEngine() method insists
on creating its own object, the constructor parameters were not given.

Add it as optional parameter and pass it through there.

This is backwards-compatible still because before the 39a6e3dc4d refactor,
an RCFeedEngine also was not given information about any formatter and it
was the callers responsibility to format the line before calling send().
CentralAuth still uses it this way and that works fine. The core-caller
that expected the construction parameters since 39a6e3dc4d is hereby fixed.

The test couldn't catch this because it constructed the class instance there,
since PHPUnit does not support a mock class that is instantiated by foreign
code, and the parameter is passed there.

Bug: T156996
Bug: T157106
Change-Id: I83433cf57b6e040cdb69f3ad8807a999c4f931a5

7 years agoAdd class to diff and history links in Special:Contributions
Amir Sarabadani [Sat, 4 Feb 2017 02:35:03 +0000 (06:05 +0330)]
Add class to diff and history links in Special:Contributions

Bug: T157178
Change-Id: I4fb26d55a0b7721e430b497440029c6de254dd8f

7 years agoApiPurge: update description for POST requirement
Ricordisamoa [Sat, 4 Feb 2017 03:19:39 +0000 (04:19 +0100)]
ApiPurge: update description for POST requirement

Follow-up to eada94090990f9d06a3b512efc1ca7e6eb4bb2f1.

Change-Id: I134e4df9ed478a5989e55a991fb739b9af28ffb9

7 years agoMove LBFactory to Rdbms namespace
Aaron Schulz [Thu, 26 Jan 2017 18:27:37 +0000 (10:27 -0800)]
Move LBFactory to Rdbms namespace

Change-Id: I5ae10783228d0252284807c9562bc8e328d4becb

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 3 Feb 2017 21:12:11 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6ce3f477f4a80d15138744b2854202a5d0b9cab5

7 years agoMerge "Displaying interwiki results in sidebar"
jenkins-bot [Fri, 3 Feb 2017 19:04:54 +0000 (19:04 +0000)]
Merge "Displaying interwiki results in sidebar"

7 years agoDisplaying interwiki results in sidebar
Jan Drewniak [Wed, 18 Jan 2017 10:27:43 +0000 (11:27 +0100)]
Displaying interwiki results in sidebar

Displays newly designed interwiki search results in the
sidebar of the specialSearch page.

A prototype of this change can be viewed on this labs url:

http://sistersearch.wmflabs.org/w/index.php?title=Special:Search&search=mars

Bug: T149806

Change-Id: I66e4b6a502dae488d105f11cad73e145990c2327

7 years agoMerge "Avoid joining against page table when finding a page's oldest revision."
jenkins-bot [Fri, 3 Feb 2017 06:06:26 +0000 (06:06 +0000)]
Merge "Avoid joining against page table when finding a page's oldest revision."

7 years agoSet mCache in the second MessageCache::loadFromDatabase() caller
Aaron Schulz [Thu, 2 Feb 2017 22:06:33 +0000 (14:06 -0800)]
Set mCache in the second MessageCache::loadFromDatabase() caller

The member variable is needed in the next lines, which previously
just used the array with "LATEST" set and would be seen as invalid
and discarded next time.

Bug: T157033
Change-Id: I5b84b1ae4a9c7b710ee452c61d7d9d6076ec9e6a

7 years agorcfeed: FormattedRCFeed constructor should match parent class
Timo Tijhof [Thu, 2 Feb 2017 20:03:27 +0000 (20:03 +0000)]
rcfeed: FormattedRCFeed constructor should match parent class

I intentionally made the constructor parameter optional in the
new RCFeed class from 39a6e3dc4d84, however it was not optional
in the subclass, which the older classes are now based on top
of.

Bug: T156996
Change-Id: I05b9e15920bc39f27c402b023d1463cfbdd2efb8

7 years agoMerge "Move LoadMonitor to Rdbms namespace"
jenkins-bot [Thu, 2 Feb 2017 20:15:58 +0000 (20:15 +0000)]
Merge "Move LoadMonitor to Rdbms namespace"

7 years agoMerge "Do not linkify the namespace URI in 'uploadscriptednamespace' error message"
jenkins-bot [Thu, 2 Feb 2017 19:03:52 +0000 (19:03 +0000)]
Merge "Do not linkify the namespace URI in 'uploadscriptednamespace' error message"

7 years agoAdd release notes for I5ec8acf
Brad Jorsch [Thu, 2 Feb 2017 16:28:57 +0000 (11:28 -0500)]
Add release notes for I5ec8acf

Change-Id: Ifda13a82f831ee273aadab65f0e75ea9ce8998a8

7 years agoMerge "Make last remaining user_groups queries honor $wgDisableUserGroupExpiry"
jenkins-bot [Thu, 2 Feb 2017 02:18:41 +0000 (02:18 +0000)]
Merge "Make last remaining user_groups queries honor $wgDisableUserGroupExpiry"

7 years agoMerge "Update OOjs UI to v0.19.0"
jenkins-bot [Thu, 2 Feb 2017 00:21:39 +0000 (00:21 +0000)]
Merge "Update OOjs UI to v0.19.0"

7 years agoMake last remaining user_groups queries honor $wgDisableUserGroupExpiry
This, that and the other [Thu, 2 Feb 2017 00:15:38 +0000 (11:15 +1100)]
Make last remaining user_groups queries honor $wgDisableUserGroupExpiry

Follow-up to I94102ceb00398940965280d8742a2747631dcc87

Change-Id: I62952c42b2f6ee1bed0088e17826e19dfc23471c

7 years agomediawiki.api: Tweak deprecation logging
Bartosz Dziewoński [Tue, 31 Jan 2017 09:33:44 +0000 (10:33 +0100)]
mediawiki.api: Tweak deprecation logging

Follow-up to 15b5dc5d8eecb5a1784b0b7165a90a81e071d750.

Change-Id: I27ba2fe46086de1251cfd6017a51b736a4dabbf2

7 years agoUpdate OOjs UI to v0.19.0
Volker E [Wed, 1 Feb 2017 23:30:46 +0000 (15:30 -0800)]
Update OOjs UI to v0.19.0

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

Change-Id: I56c43ff1b49631d0e4c477a72d3e7cdd9d46c4c9

7 years agoMerge "Follow-up 873d3c9ff: make RCFilters widget input use interface directionality"
jenkins-bot [Wed, 1 Feb 2017 21:09:57 +0000 (21:09 +0000)]
Merge "Follow-up 873d3c9ff: make RCFilters widget input use interface directionality"

7 years agoMerge "Revert "Localisation updates from https://translatewiki.net.""
L10n-bot [Wed, 1 Feb 2017 21:03:19 +0000 (21:03 +0000)]
Merge "Revert "Localisation updates from https://translatewiki.net.""

7 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Wed, 1 Feb 2017 21:02:56 +0000 (21:02 +0000)]
Revert "Localisation updates from https://translatewiki.net."

Overwrites https://gerrit.wikimedia.org/r/#/c/335217/

This reverts commit 01d74c8810901976e8260d5c622b457922487605.

Change-Id: I3b344d8257b0c9dfe81c0f41a017424640f3994b

7 years agoMerge "API: Guard more ug_expiry queries with $wgDisableUserGroupExpiry checks"
jenkins-bot [Wed, 1 Feb 2017 21:02:38 +0000 (21:02 +0000)]
Merge "API: Guard more ug_expiry queries with $wgDisableUserGroupExpiry checks"

7 years agoMerge "ApiPurge: Require POST"
jenkins-bot [Wed, 1 Feb 2017 20:58:12 +0000 (20:58 +0000)]
Merge "ApiPurge: Require POST"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 1 Feb 2017 20:56:08 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1ff72c3903103266a6a1e71dc66b6663b3218240

7 years agoAPI: Guard more ug_expiry queries with $wgDisableUserGroupExpiry checks
Kunal Mehta [Wed, 1 Feb 2017 20:50:06 +0000 (12:50 -0800)]
API: Guard more ug_expiry queries with $wgDisableUserGroupExpiry checks

Change-Id: Ibaafd9dc49b8aebcf0a00a507712baeec8c11e42

7 years agoMerge "Prevent use of expiries to circumvent restrictions on removing user groups"
jenkins-bot [Wed, 1 Feb 2017 20:42:53 +0000 (20:42 +0000)]
Merge "Prevent use of expiries to circumvent restrictions on removing user groups"

7 years agoMerge "Don't try to drop ug_user_group index if it doesn't exist"
jenkins-bot [Wed, 1 Feb 2017 20:42:48 +0000 (20:42 +0000)]
Merge "Don't try to drop ug_user_group index if it doesn't exist"

7 years agoApiPurge: Require POST
Brad Jorsch [Wed, 1 Feb 2017 15:07:02 +0000 (10:07 -0500)]
ApiPurge: Require POST

This change was announced to mediawiki-api-announce on September 14,
2016,[1] and the remaining users were notified on December 28, 2016, and a
reminder was sent on the same day.[2] Time to do this.

[1]: https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2016-September/000118.html
[2]: https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2016-December/000124.html

Bug: T145649
Change-Id: I5ec8acfbd2cd705a7b4c81f36786149c3d9cba45

7 years agoDon't try to drop ug_user_group index if it doesn't exist
This, that and the other [Wed, 1 Feb 2017 14:57:09 +0000 (01:57 +1100)]
Don't try to drop ug_user_group index if it doesn't exist

This is needed for MySQL only.

Bug: T156901
Change-Id: I351fa1b7ce5a9b1c7b19ecb7d26d8a1f699d88f8

7 years agoMerge "UsersMultiselect widget and form field."
jenkins-bot [Wed, 1 Feb 2017 14:37:50 +0000 (14:37 +0000)]
Merge "UsersMultiselect widget and form field."

7 years agoAvoid joining against page table when finding a page's oldest revision.
daniel [Wed, 1 Feb 2017 11:47:20 +0000 (12:47 +0100)]
Avoid joining against page table when finding a page's oldest revision.

Bug: T156537
Change-Id: Ifd27710cada823318ac3662d3c16323eb9a78839

7 years agoIb315fc5f to RELEASE-NOTES-1.29
MarcoAurelio [Wed, 1 Feb 2017 10:20:35 +0000 (11:20 +0100)]
Ib315fc5f to RELEASE-NOTES-1.29

Bug: T155957
Change-Id: I0b2cca66bc16cf05871674a468da778cc0c84f59

7 years agoMerge "Amend $namespaces in core for Javanese (jv)"
jenkins-bot [Wed, 1 Feb 2017 09:02:10 +0000 (09:02 +0000)]
Merge "Amend $namespaces in core for Javanese (jv)"

7 years agoMerge "Replace use of &$this"
jenkins-bot [Wed, 1 Feb 2017 04:38:53 +0000 (04:38 +0000)]
Merge "Replace use of &$this"

7 years agoRefactor RCFeed configuration (backwards compatible)
Timo Tijhof [Fri, 6 Jan 2017 01:27:43 +0000 (17:27 -0800)]
Refactor RCFeed configuration (backwards compatible)

Previously:
* Engines had to be registered in $wgRCEngines.
* The RCFeedEngine classes took no constructor arguments and
  were expected to send whatever text is previously formatted
  without any information about it. This generic design was
  flexible in allowing one to use any formatter with any engine
  with minimal configuration and no need for additional classes.
* Each feed configured their destination by setting a 'uri'
  option that encodes the name of the engine in PHP as the uri
  scheme. Other uri components had to be used for any other
  parameters to the engine (host, port, path). While fairly
  limited, it was sufficient for the default engines in core.

Changes:
* Allow feed classes to be directly associated with a feed in $wgRCFeeds
  via a new 'class' option - without the indirection of 'uri' and
  $wgRCEngines. All options are passed to the given class constructor.
  This matches the design used elsewhere in MediaWiki. (ObjectCache,
  FileRepo, FileBackend, JobQueue, LBFactory, etc.)

  This means we no longer enforce a 1:1 mapping of internet protocols
  to a specific feed engine, and it allows settings to be passed
  without being encoded as a URI neccecarily.

  Main use case for this refactor is EventBus (see I7edc4d57fa),

  Interestingly, this matches the (then incorrect) documentation
  written for $wgRCFeeds in 2961884b43 (which mentions an 'engine'
  property that would do the same thing).

* Move the default 'omit' filters and unrestricted 'formatter' handling
  to a new FormattedRCFeed class, which remains the default.

* Deprecate RecentChange::getEngine() in favour of RCFeed::factory().

* Document wgRCEngines as "@since 1.22". Follows 2961884b43ffc71cb6af.

Change-Id: I8be497c623c5d928762e3d3406a388f4d91add9a

7 years agoMerge "EditPage: Factor stats collection into private methods"
jenkins-bot [Wed, 1 Feb 2017 04:08:42 +0000 (04:08 +0000)]
Merge "EditPage: Factor stats collection into private methods"

7 years agoReplace use of &$this
Brad Jorsch [Wed, 1 Feb 2017 04:01:54 +0000 (23:01 -0500)]
Replace use of &$this

Use of &$this doesn't work in PHP 7.1. For callbacks to methods like
array_map() it's completely unnecessary, while for hooks we still need
to pass a reference and so we need to copy $this into a local variable.

Bug: T153505
Change-Id: I8bbb26e248cd6f213fd0e7460d6d6935a3f9e468

7 years agoMove LoadMonitor to Rdbms namespace
Aaron Schulz [Thu, 26 Jan 2017 17:59:18 +0000 (09:59 -0800)]
Move LoadMonitor to Rdbms namespace

Change-Id: Icc178acb5ba0e21d1a8e857c43724c694c7ebeb1

7 years agoPrevent use of expiries to circumvent restrictions on removing user groups
This, that and the other [Wed, 1 Feb 2017 03:22:37 +0000 (14:22 +1100)]
Prevent use of expiries to circumvent restrictions on removing user groups

I hadn't thought through what happens if a user has permission to add but
not remove a user group, or vice versa. This cleans up the UI logic,
showing controls that are available to users and vice versa, and the data
validation as well.

In particular, if user B can add users to the 'sysop' group but not remove
them from it, and user X is a sysop expiring in 1 year, user B should not
be allowed to modify the expiry to 1 second (which has the same effect as
removing the group). With this patch, user B can only extend user X's
sysop rights, perhaps to renew their temporary adminship for another year;
they can no longer bring forward the expiry date.

I'm omitting this check from the API on purpose. The API's validation
of the expiry dates seems to be there solely to reject bogus/invalid data.
Notably, the API doesn't throw an error when the user passes a group that
they can't add or remove.

Also added a # in the UI to show groups whose expiry cannot be brought
forward.

Bug: T156784
Change-Id: I0c0dadc2035c0cdf19accd5a97f08e33151a08ba

7 years agoMerge "Add TestLogger::setCollectContext and fluent interface"
jenkins-bot [Wed, 1 Feb 2017 01:25:50 +0000 (01:25 +0000)]
Merge "Add TestLogger::setCollectContext and fluent interface"

7 years agoAdd TestLogger::setCollectContext and fluent interface
Antoine Musso [Tue, 31 Jan 2017 14:42:44 +0000 (15:42 +0100)]
Add TestLogger::setCollectContext and fluent interface

TestLogger has a setCollect() but lacked a similar method for the
$collectContext introduced with:
    7b85b6b09e - Optionally collect context in TestLogger

Document $collectContext on __construct()
Add setCollectContext()
Make both setCollect() and setCollectContext() to return $this for
fluent interface:

  $logger = new \TestLogger();
  $logger
      ->setCollect( true ),
      ->setCollectContext( true );

Change-Id: I806b07cfddbc7b428d41e3d619ef4d1db16f6747

7 years agoUsersMultiselect widget and form field.
Phantom42 [Sun, 8 Jan 2017 02:37:29 +0000 (04:37 +0200)]
UsersMultiselect widget and form field.

New widget and html form field, which allows selecting multiple
users using convenient single-line input (CapsuleMultiselectWidget)

Bug: T131492
Change-Id: I7b6ffe7fb47e0a7083e2a956156ab0f142444398

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 31 Jan 2017 20:54:06 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If6140720728447ed5b4a80b4df8cb5f6b9269f96

7 years agoAmend $namespaces in core for Javanese (jv)
MarcoAurelio [Mon, 23 Jan 2017 09:24:59 +0000 (10:24 +0100)]
Amend $namespaces in core for Javanese (jv)

Bug: T155957
Change-Id: Ib315fc5f894ffc8af3b4dbac4ddb022e7f3c80ed

7 years agoPHPUnit autoload file for PhpStorm
Aleksey Bekh-Ivanov (WMDE) [Wed, 21 Dec 2016 15:15:15 +0000 (16:15 +0100)]
PHPUnit autoload file for PhpStorm

`autoload.ide.php` is PhpUnit entry point for PhpStorm IDE
and other JetBrains IDEs.
This file should be set in `Languages and frameworks > PHP > PhpUnit`
select `Use Composer autoloader` and set `Path to script` to `tests/phpunit/autoload.ide.php`

After that, tests can be run in PhpStorm using Right-click > Run
or `Ctrl + Shift + F10`. Also, tests can be run with debugger.

`autoload.ide.php` basically  does almost the same thing
as `tests/phpunit/phpunit.php`,
except that all code is executed inside some function, so some hacks
needed to make old code to be executed as if it was executed on top
of the execution stack.

PS: Mostly it is copy-paste from `phpunit.php` and `doMaintenance.php`.

Change-Id: Idcee38d149542f747ed52c8c9491c6651a0581d9

7 years agoMerge "Option for DateInputWidget to display full month and day names"
jenkins-bot [Tue, 31 Jan 2017 18:40:50 +0000 (18:40 +0000)]
Merge "Option for DateInputWidget to display full month and day names"

7 years agoMerge "Don't return expired user groups in UserRightsProxy"
jenkins-bot [Tue, 31 Jan 2017 17:02:15 +0000 (17:02 +0000)]
Merge "Don't return expired user groups in UserRightsProxy"

7 years agoMerge "Merge duplicate SpecialSearchTest files"
jenkins-bot [Tue, 31 Jan 2017 14:39:48 +0000 (14:39 +0000)]
Merge "Merge duplicate SpecialSearchTest files"

7 years agoMerge "Add release notes for recent language fallback changes"
jenkins-bot [Tue, 31 Jan 2017 14:26:27 +0000 (14:26 +0000)]
Merge "Add release notes for recent language fallback changes"

7 years agoMerge "Add explicit GENDER support to userrights-*usergroup"
jenkins-bot [Tue, 31 Jan 2017 14:24:53 +0000 (14:24 +0000)]
Merge "Add explicit GENDER support to userrights-*usergroup"

7 years agoOption for DateInputWidget to display full month and day names
Geoffrey Mon [Tue, 31 Jan 2017 14:18:03 +0000 (09:18 -0500)]
Option for DateInputWidget to display full month and day names

Add a "longDisplayFormat" config option to DateInputWidget to show
full month and day names when using the default locale-specific
display format.

Bug: T120733
Change-Id: I2db6892720abf86dfc9655291b1070aa7f7bf77b

7 years agoMerge duplicate SpecialSearchTest files
This, that and the other [Tue, 31 Jan 2017 13:54:35 +0000 (00:54 +1100)]
Merge duplicate SpecialSearchTest files

Change-Id: I1d6be3f6c32102ee8c7f4ee3dc6f0c752ef05534

7 years agoDon't return expired user groups in UserRightsProxy
This, that and the other [Tue, 31 Jan 2017 10:24:20 +0000 (21:24 +1100)]
Don't return expired user groups in UserRightsProxy

Also add a missing type hint in UserGroupMembership.

Bug: T156779
Change-Id: Ica31541f59115db3db92de82592e6a9422082bba

7 years agoMerge "registration: Allow properties in "requires" from v2"
jenkins-bot [Tue, 31 Jan 2017 06:02:20 +0000 (06:02 +0000)]
Merge "registration: Allow properties in "requires" from v2"

7 years agoMerge "parser test editor: Fix emitting of !! hooks"
jenkins-bot [Tue, 31 Jan 2017 04:11:01 +0000 (04:11 +0000)]
Merge "parser test editor: Fix emitting of !! hooks"

7 years agoMerge "Move ChronologyProtector/TransactionProfiler to Rdbms namespace"
jenkins-bot [Tue, 31 Jan 2017 04:00:23 +0000 (04:00 +0000)]
Merge "Move ChronologyProtector/TransactionProfiler to Rdbms namespace"

7 years agoMerge "objectcache: Avoid using deprecated ScopedCallback alias"
jenkins-bot [Tue, 31 Jan 2017 03:59:38 +0000 (03:59 +0000)]
Merge "objectcache: Avoid using deprecated ScopedCallback alias"

7 years agoparser test editor: Fix emitting of !! hooks
Kunal Mehta [Sun, 29 Jan 2017 09:56:43 +0000 (01:56 -0800)]
parser test editor: Fix emitting of !! hooks

The first newline was missing so a block like:
 !! hooks
 source
 !! endhooks

would turn into:
 !! hookssource
 !! endhooks

Change-Id: I2a4c5e52050d55fb0c9b4f5d0494eb00e34b233c

7 years agoobjectcache: Avoid using deprecated ScopedCallback alias
Aaron Schulz [Sun, 29 Jan 2017 16:44:29 +0000 (08:44 -0800)]
objectcache: Avoid using deprecated ScopedCallback alias

Change-Id: Ica8a066c3f28adc710ee11919c07dd188144beb5

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 30 Jan 2017 20:59:36 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id9bbcde94cbbd77e360022504b3114629525527e

7 years agoMerge "EditPage: switch from NS_CATEGORY check to instanceof CategoryPage"
jenkins-bot [Mon, 30 Jan 2017 19:57:40 +0000 (19:57 +0000)]
Merge "EditPage: switch from NS_CATEGORY check to instanceof CategoryPage"

7 years agoMerge "EditPage: Mark public functions"
jenkins-bot [Mon, 30 Jan 2017 19:35:34 +0000 (19:35 +0000)]
Merge "EditPage: Mark public functions"

7 years agoregistration: Allow properties in "requires" from v2
Umherirrender [Mon, 30 Jan 2017 17:51:16 +0000 (18:51 +0100)]
registration: Allow properties in "requires" from v2

v2 of the schema allows extensions and skins to be definied under
"requires". This is also used by some extensions in extension.json for
v1.
It works, so allow the same properties in v1 as in v2.

Change-Id: I9b5f1986cadbd714d6f3460ac3e1db3bf7aae65d

7 years agoMerge "PHAN: lock phpstorm-stubs at a specific hash in composer.json"
jenkins-bot [Mon, 30 Jan 2017 17:40:29 +0000 (17:40 +0000)]
Merge "PHAN: lock phpstorm-stubs at a specific hash in composer.json"