lhc/web/wiklou.git
6 years agoAdd tests for ParserOptions
Brad Jorsch [Fri, 2 Jun 2017 16:45:55 +0000 (12:45 -0400)]
Add tests for ParserOptions

Change-Id: I3e2d945d109bbb0ebc31d65d9f6faaa7482deefe

6 years agoMerge "Add missing return value to getPendingUpdates() docs"
jenkins-bot [Fri, 2 Jun 2017 19:58:12 +0000 (19:58 +0000)]
Merge "Add missing return value to getPendingUpdates() docs"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 2 Jun 2017 19:53:44 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I06568b78ef084ebccf2769a56587a1d0e370949f

6 years agoMerge "Process content headers when metadata is empty"
jenkins-bot [Fri, 2 Jun 2017 19:07:38 +0000 (19:07 +0000)]
Merge "Process content headers when metadata is empty"

6 years agoMerge "mw.action.history.diff: Remove higher than necessary specific selectors"
jenkins-bot [Fri, 2 Jun 2017 18:59:39 +0000 (18:59 +0000)]
Merge "mw.action.history.diff: Remove higher than necessary specific selectors"

6 years agoMerge "Make sure URI comparisons include highlight states"
jenkins-bot [Fri, 2 Jun 2017 17:24:53 +0000 (17:24 +0000)]
Merge "Make sure URI comparisons include highlight states"

6 years agoProcess content headers when metadata is empty
Gilles Dubuc [Tue, 30 May 2017 11:19:49 +0000 (13:19 +0200)]
Process content headers when metadata is empty

The new width/height override means that files without
any metadata can get content headers.

Bug: T150741
Change-Id: I92199a4aa9e0408572ebf7d8e4c04cd0196f0d0a

6 years agomw.action.history.diff: Remove higher than necessary specific selectors
Prateek Saxena [Tue, 5 Jul 2016 13:20:17 +0000 (18:50 +0530)]
mw.action.history.diff: Remove higher than necessary specific selectors

Change-Id: I59b464d3c0939ec4bc581c11c5c3456d64a56a5e

6 years agoMake sure URI comparisons include highlight states
Moriel Schottlender [Thu, 1 Jun 2017 15:36:53 +0000 (18:36 +0300)]
Make sure URI comparisons include highlight states

When we compare URI states to see whether it is different,
we have to also take into account highlight states and the
highlight toggle.

Change-Id: Ic6bdd8b7d27280b028f6a40879de0dbeb2850dbd

6 years agoAdd missing return value to getPendingUpdates() docs
Aaron Schulz [Thu, 1 Jun 2017 07:11:44 +0000 (00:11 -0700)]
Add missing return value to getPendingUpdates() docs

Change-Id: I917a2eb97e6e99ccc895245b84717ba40b0c88f6

6 years agoMerge "Add a byte counter to the edit page's summary field"
jenkins-bot [Fri, 2 Jun 2017 00:58:33 +0000 (00:58 +0000)]
Merge "Add a byte counter to the edit page's summary field"

6 years agoMerge "RCFilters UI: Use backwards-aligned anchorless popups now that they work"
jenkins-bot [Fri, 2 Jun 2017 00:47:34 +0000 (00:47 +0000)]
Merge "RCFilters UI: Use backwards-aligned anchorless popups now that they work"

6 years agoMerge "RCFilters UI: Rename "Quick links" to "Saved filter settings""
jenkins-bot [Fri, 2 Jun 2017 00:47:31 +0000 (00:47 +0000)]
Merge "RCFilters UI: Rename "Quick links" to "Saved filter settings""

6 years agoMerge "resources: Add appropriate OOjs UI icon pack dependencies"
jenkins-bot [Fri, 2 Jun 2017 00:32:35 +0000 (00:32 +0000)]
Merge "resources: Add appropriate OOjs UI icon pack dependencies"

6 years agoresources: Add appropriate OOjs UI icon pack dependencies
James D. Forrester [Thu, 1 Jun 2017 23:45:09 +0000 (16:45 -0700)]
resources: Add appropriate OOjs UI icon pack dependencies

resources/src/mediawiki/mediawiki.filewarning.js
* Add 'alerts' as it uses 'alert'

resources/src/mediawiki/page/gallery-slideshow.js:
* Add 'movement' as it uses 'previous' and 'next'

resources/src/mediawiki.special/mediawiki.special.apisandbox.js:
* Add 'content' as it uses 'info'
* Add 'interactions' as it uses 'add' and 'help'
* Add 'editing-advanced' as it uses 'code'

resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js:
* Add 'movement' as it uses 'collapse', 'previous', and 'next'

includes/widget/SearchInputWidget.php and
resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js:
* Add 'interactions' as it uses 'search'

resources/src/mediawiki.widgets.datetime/CalendarWidget.js:
* Add 'movement' as it uses 'previous' and 'next'

Bug: T166730
Change-Id: I0618c681d06891621470ca1cb500dedfdf05f93b

6 years agoMerge "Better handling of jobs execution in post-connection shutdown"
jenkins-bot [Thu, 1 Jun 2017 23:51:11 +0000 (23:51 +0000)]
Merge "Better handling of jobs execution in post-connection shutdown"

6 years agoAdd styles specific for hlist inside warning/error/success boxes
jdlrobson [Thu, 1 Jun 2017 23:01:02 +0000 (16:01 -0700)]
Add styles specific for hlist inside warning/error/success boxes

hlists inside warningboxes should not have a left margin, nor
should they be crammed together.

Change-Id: I6895181135be92ff1943940f4c5688cad028783a

6 years agoRCFilters UI: Rename "Quick links" to "Saved filter settings"
Roan Kattouw [Thu, 1 Jun 2017 20:37:28 +0000 (13:37 -0700)]
RCFilters UI: Rename "Quick links" to "Saved filter settings"

Bug: T166822
Change-Id: I67cd9f1872545ca2855ba6e75e65c375b9a5a274

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 1 Jun 2017 20:21:24 +0000 (22:21 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I31b05b2abb0437e28a2feacff7b343099f620a57

6 years agoRCFilters: Depend on the 'content' icon pack, for the 'history' icon
James D. Forrester [Thu, 1 Jun 2017 19:26:15 +0000 (12:26 -0700)]
RCFilters: Depend on the 'content' icon pack, for the 'history' icon

Change-Id: I93dcc4b0f0861a94ac6aa02a40276355f080e1bc

6 years agoMerge "Change "...." (four dots) to "..." (three dots) in the only two messages that...
jenkins-bot [Thu, 1 Jun 2017 18:40:37 +0000 (18:40 +0000)]
Merge "Change "...." (four dots) to "..." (three dots) in the only two messages that use it"

6 years agoChange "...." (four dots) to "..." (three dots) in the only two messages that use it
Roan Kattouw [Thu, 1 Jun 2017 00:34:06 +0000 (17:34 -0700)]
Change "...." (four dots) to "..." (three dots) in the only two messages that use it

Bug: T166377
Change-Id: Ia47d7aa27bcaf1ede08d762b243d7fe605f8b43d

6 years agoMerge "EditPage: Restore the old 'id' attributes in OOUI mode"
jenkins-bot [Thu, 1 Jun 2017 17:38:09 +0000 (17:38 +0000)]
Merge "EditPage: Restore the old 'id' attributes in OOUI mode"

6 years agoMerge "Refactor registration of OOjs UI resource modules"
jenkins-bot [Thu, 1 Jun 2017 17:37:28 +0000 (17:37 +0000)]
Merge "Refactor registration of OOjs UI resource modules"

6 years agoAdd a byte counter to the edit page's summary field
James D. Forrester [Sat, 20 May 2017 11:13:02 +0000 (13:13 +0200)]
Add a byte counter to the edit page's summary field

Blocked on T165866 as otherwise the rendering is broken.

Bug: T165856
Change-Id: I84213e6c134f55597340e77876f69063a37ed0a5

6 years agoEditPage: Restore the old 'id' attributes in OOUI mode
Bartosz Dziewoński [Sat, 20 May 2017 10:23:18 +0000 (12:23 +0200)]
EditPage: Restore the old 'id' attributes in OOUI mode

For compatibility with old scripts and extensions, we want the legacy
'id' on the `<input>` elements. There is really no good justification
for breaking all of them when we can easily support it.

The actual `<input>` elements have their ids back: 'wpSummary',
'wpSave', 'wpPreview', 'wpDiff', 'wpMinoredit', 'wpWatchthis'.

The widgets (wrapped `<div>`s) now use ids with 'Widget' appended.

Bug: T165854
Change-Id: I4d23f57fd0cda4b8539ffb17a2a19ecd822e077a

6 years agoMerge "mediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still...
jenkins-bot [Thu, 1 Jun 2017 15:43:10 +0000 (15:43 +0000)]
Merge "mediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still exists"

6 years agoMerge "mediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still...
jenkins-bot [Thu, 1 Jun 2017 15:43:06 +0000 (15:43 +0000)]
Merge "mediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still exists"

6 years agomediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still exists
James D. Forrester [Wed, 31 May 2017 23:44:24 +0000 (16:44 -0700)]
mediawiki.special/mediawiki.special.apisandbox: Use 'trash' icon which still exists

Bug: T166730
Change-Id: I38c526d2660aae8c221f74ce2927c2e338c01be1

6 years agomediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still exists
James D. Forrester [Wed, 31 May 2017 23:42:20 +0000 (16:42 -0700)]
mediawiki.widgets.datetime/DateTimeInputWidget: Use 'trash' icon which still exists

Bug: T166730
Change-Id: I30a833ee93d49bb9480f5cfed332a9aa8e306713

6 years agoRefactor registration of OOjs UI resource modules
Bartosz Dziewoński [Fri, 17 Mar 2017 01:32:59 +0000 (02:32 +0100)]
Refactor registration of OOjs UI resource modules

includes/resourceloader/ResourceLoaderOOUIModule.php
* New trait centralizing some logic for dealing with OOjs UI themes,
  previously duplicated in OutputPage, ResourcesOOUI.php and
  ResourceLoaderOOUIImageModule.
* Follow-up change I74362f0fc215b26f1f104ce7bdbbac1e106736ad uses this
  as a base to allow skins/extensions to define new OOjs UI themes.

resources/Resources.php
resources/ResourcesOOUI.php
includes/resourceloader/ResourceLoader.php
* OOjs UI resource module definitions are moved back to their rightly
  place in Resources.php. They are again (almost) normal and static.
* Theme-specific logic is now handled by the module code, definitions
  only specify 'themeScripts'/'themeStyles'/'themeImages'.
* ResourcesOOUI.php is deleted and no longer loaded by ResourceLoader.

includes/resourceloader/ResourceLoaderOOUIFileModule.php
includes/resourceloader/ResourceLoaderOOUIImageModule.php
* Glue code previously existing in ResourcesOOUI.php now lives here.
* Use the ResourceLoaderOOUIModule trait to avoid code duplication.

Change-Id: I39cc2a735d9625c87bf4ede6f5fb0ec441d47dcc

6 years agoOutputPage: Do not try to load non-existent 'oojs-ui.styles.icons' module
Bartosz Dziewoński [Thu, 1 Jun 2017 15:00:18 +0000 (17:00 +0200)]
OutputPage: Do not try to load non-existent 'oojs-ui.styles.icons' module

Follow-up to 0f2795d5bacda8d573dc1478fb2ea9d8f2ac4432.

Change-Id: I461fb179a494e00a14116361700020da577db494

6 years agoBetter handling of jobs execution in post-connection shutdown
Seb35 [Mon, 29 May 2017 22:58:56 +0000 (00:58 +0200)]
Better handling of jobs execution in post-connection shutdown

In the postprocessing, some jobs can be executed but given the deferred
updates were already "closed", any new DeferredUpdate were directly called
(as explained by Krinkle on T165714), and the transactions opened by
classical jobs are badly mixed with transactions (directly) executed by
DeferredUpdates jobs, issuing a DBError, avoiding the job, which stays
in a 'claimed' status even if failed.

Quite similarly, some DeferredUpdates callables use JobQueueGroup::lazyPush
so it is needed to really push the generated jobs.

This change removes the run-immediately-deferred-updates behaviour even
in the post-connection shutdown, and given there is a call to
DeferredUpdates::doUpdates in JobRunner::execute it is not necessary to
add another one and hence execution of Web jobs is more similar to execution
of CLI jobs. In the same spirit to reconcile Web jobs and CLI jobs, the
call to JobQueueGroup::pushLazyJobs is done in JobRunner::execute.

Bug: T165714
Bug: T100085
Change-Id: I721e7167eca5b0b6227234fe516005243ab22388

6 years agoMerge "Apply $wgShellLocale in Setup.php"
jenkins-bot [Thu, 1 Jun 2017 05:21:30 +0000 (05:21 +0000)]
Merge "Apply $wgShellLocale in Setup.php"

6 years agoApply $wgShellLocale in Setup.php
Brad Jorsch [Tue, 9 May 2017 16:12:41 +0000 (12:12 -0400)]
Apply $wgShellLocale in Setup.php

While most of MediaWiki ignores the shell's/C library's locale setting,
there are some things other than shell execs that use it (e.g. the
luasandbox PHP extension).

To provide a consistent environment, set the locale in Setup.php instead
of letting it be changed mid-request depending on whether something else
happened to have called certain functions.

Bug: T107128
Change-Id: I02943803d26d5b1b3ac00ef9216f69cdfa149585

6 years agoMerge "Follow-up 7668836236: oojs-ui.styles.icons is now gone"
jenkins-bot [Thu, 1 Jun 2017 01:01:36 +0000 (01:01 +0000)]
Merge "Follow-up 7668836236: oojs-ui.styles.icons is now gone"

6 years agoFollow-up 7668836236: oojs-ui.styles.icons is now gone
James D. Forrester [Thu, 1 Jun 2017 00:47:09 +0000 (17:47 -0700)]
Follow-up 7668836236: oojs-ui.styles.icons is now gone

Change-Id: If7fcde0cebe74998a31ca1e88f1d8d90ee1b1b80

6 years agoMerge "RCFilters UI: Make monobook override of the 'checkmark' more specific"
jenkins-bot [Thu, 1 Jun 2017 00:34:06 +0000 (00:34 +0000)]
Merge "RCFilters UI: Make monobook override of the 'checkmark' more specific"

6 years agoMWExceptionRenderer::useOutputPage: Don't bother if we have no Title context
Alex Monk [Tue, 27 Sep 2016 00:26:05 +0000 (01:26 +0100)]
MWExceptionRenderer::useOutputPage: Don't bother if we have no Title context

Change-Id: Ieb6d682a9f2fb4def4c01908ccd035fcce2e1895

6 years agoMerge "Update OOjs UI to v0.22.1"
jenkins-bot [Wed, 31 May 2017 20:12:46 +0000 (20:12 +0000)]
Merge "Update OOjs UI to v0.22.1"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 31 May 2017 19:53:56 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I22cc50259ac61e5e2e4c7f7cce190275713c641a

6 years agoUpdate OOjs UI to v0.22.1
James D. Forrester [Wed, 31 May 2017 19:26:04 +0000 (12:26 -0700)]
Update OOjs UI to v0.22.1

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

Depends-On: I4ee36222e67697a7290a1ac94788676e476ca768
Change-Id: I964a298018d837b1a05a1608a81ca0544f34a2c8

6 years agoUpdate documentation URL
Mark A. Hershberger [Wed, 31 May 2017 02:16:22 +0000 (22:16 -0400)]
Update documentation URL

Change-Id: I6a32689c5d224674fe96ad631b073f9efba47e3f

6 years agoMerge "Update OOjs to v2.1.0"
jenkins-bot [Tue, 30 May 2017 23:37:33 +0000 (23:37 +0000)]
Merge "Update OOjs to v2.1.0"

6 years agoMerge "RCFilters UI: Compare states instead of params when switching URL"
jenkins-bot [Tue, 30 May 2017 23:26:53 +0000 (23:26 +0000)]
Merge "RCFilters UI: Compare states instead of params when switching URL"

6 years agoUpdate OOjs to v2.1.0
James D. Forrester [Tue, 30 May 2017 23:23:58 +0000 (16:23 -0700)]
Update OOjs to v2.1.0

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJS/browse/master/History.md;v2.1.0

Change-Id: I63fb9c2145e1c3e63ce1acf5f020e9208ca21f04

6 years agoMerge "RCFilters: Minimize url string"
jenkins-bot [Tue, 30 May 2017 22:46:08 +0000 (22:46 +0000)]
Merge "RCFilters: Minimize url string"

6 years agoMerge "objectcache: respect process cache in getMultiWithSetCallback()"
jenkins-bot [Tue, 30 May 2017 22:14:05 +0000 (22:14 +0000)]
Merge "objectcache: respect process cache in getMultiWithSetCallback()"

6 years agoMerge "RCFilters: Hide server-side 'empty results' message"
jenkins-bot [Tue, 30 May 2017 21:12:33 +0000 (21:12 +0000)]
Merge "RCFilters: Hide server-side 'empty results' message"

6 years agoMerge "RCFilters: Blur input on 'escape' key"
jenkins-bot [Tue, 30 May 2017 21:06:05 +0000 (21:06 +0000)]
Merge "RCFilters: Blur input on 'escape' key"

6 years agoMerge "RCFilters: Unify 'highlight' and 'selected' items"
jenkins-bot [Tue, 30 May 2017 21:03:16 +0000 (21:03 +0000)]
Merge "RCFilters: Unify 'highlight' and 'selected' items"

6 years agoMerge "Show total number of autoblocks on top of Special:AutoblockList"
jenkins-bot [Tue, 30 May 2017 21:02:40 +0000 (21:02 +0000)]
Merge "Show total number of autoblocks on top of Special:AutoblockList"

6 years agoMerge "Use PHP DateInputWidget in Contribs and use for range filtering"
jenkins-bot [Tue, 30 May 2017 20:58:35 +0000 (20:58 +0000)]
Merge "Use PHP DateInputWidget in Contribs and use for range filtering"

6 years agoRCFilters UI: Use backwards-aligned anchorless popups now that they work
Roan Kattouw [Fri, 26 May 2017 20:14:45 +0000 (13:14 -0700)]
RCFilters UI: Use backwards-aligned anchorless popups now that they work

Bug: T159906
Depends-On: I14c65f115c704114ba2387d6a89ed7aed44f8238
Change-Id: Id83d9d9b6424bc98abcddf647c47b96baf02de3d

6 years agoRCFilters: Unify 'highlight' and 'selected' items
Moriel Schottlender [Tue, 30 May 2017 11:29:35 +0000 (14:29 +0300)]
RCFilters: Unify 'highlight' and 'selected' items

When moving with the arrows, we don't want a distinction between
the 'selected' and 'highlighted' states, since those don't quite
make sense in RCFilters system. We unify those by always using
'selected' state; this also means that when searching AND when
opening the popup, the first item is 'selected' so the user can
hit 'enter' and add it in, or hit the up/down arrow keys and
move up and down in the list.

Bug: T159768
Change-Id: Ife62e6e7241b96d846d8c5851b173a09a1f45fa4

6 years agoShow total number of autoblocks on top of Special:AutoblockList
Niharika Kohli [Fri, 26 May 2017 17:13:19 +0000 (22:43 +0530)]
Show total number of autoblocks on top of Special:AutoblockList

Bug: T163172
Change-Id: I51b1b7675c2f4ed68ccb725230ffecf3583cf65f

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 30 May 2017 19:56:06 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I07c848f6c5e0fb9267b5dd1e0900de899f88c911

6 years agoMerge "RCFilters UI: Migrate FloatingMenuSelectWidget to MenuSelectWidget"
jenkins-bot [Tue, 30 May 2017 19:10:53 +0000 (19:10 +0000)]
Merge "RCFilters UI: Migrate FloatingMenuSelectWidget to MenuSelectWidget"

6 years agoMerge "RCFilters: Add top spacing between RCFilters and top content"
jenkins-bot [Tue, 30 May 2017 19:10:49 +0000 (19:10 +0000)]
Merge "RCFilters: Add top spacing between RCFilters and top content"

6 years agoMerge "Parser: Better debugging of lock errors ("Did you call Parser::parse recursive...
jenkins-bot [Tue, 30 May 2017 19:01:45 +0000 (19:01 +0000)]
Merge "Parser: Better debugging of lock errors ("Did you call Parser::parse recursively?")"

6 years agoMerge "Don't fill in the skin's search box on Special:Search"
jenkins-bot [Tue, 30 May 2017 18:22:42 +0000 (18:22 +0000)]
Merge "Don't fill in the skin's search box on Special:Search"

6 years agoMerge "EditPage: Fix passing the save/publish button label to other messages"
jenkins-bot [Tue, 30 May 2017 17:48:17 +0000 (17:48 +0000)]
Merge "EditPage: Fix passing the save/publish button label to other messages"

6 years agoMerge "Avoid duplicate refreshCounts() updates"
jenkins-bot [Tue, 30 May 2017 13:28:47 +0000 (13:28 +0000)]
Merge "Avoid duplicate refreshCounts() updates"

6 years agoRCFilters: Blur input on 'escape' key
Moriel Schottlender [Tue, 30 May 2017 11:37:04 +0000 (14:37 +0300)]
RCFilters: Blur input on 'escape' key

Bug: T161493
Change-Id: Iae8f1e5dc5653f04708da74e137e35bd46cbf232

6 years agoRCFilters UI: Migrate FloatingMenuSelectWidget to MenuSelectWidget
Moriel Schottlender [Tue, 30 May 2017 10:55:59 +0000 (13:55 +0300)]
RCFilters UI: Migrate FloatingMenuSelectWidget to MenuSelectWidget

FloatingMenuSelectWidget has been deprecated in OOUI, moving to the
MenuSelectWidget widget instead.

Change-Id: Id4e5e4c551d50242ce19837c2e958b9773139906

6 years agoRCFilters: Add top spacing between RCFilters and top content
Moriel Schottlender [Tue, 30 May 2017 09:33:28 +0000 (12:33 +0300)]
RCFilters: Add top spacing between RCFilters and top content

Bug: T165095
Change-Id: I0cfafe700fd6548a27d510a5f624f7728327b490

6 years agoMerge "Refactor Statsd classes to enable null collector to work."
jenkins-bot [Tue, 30 May 2017 03:41:13 +0000 (03:41 +0000)]
Merge "Refactor Statsd classes to enable null collector to work."

6 years agoRefactor Statsd classes to enable null collector to work.
Stanislav Malyshev [Fri, 26 May 2017 00:23:44 +0000 (17:23 -0700)]
Refactor Statsd classes to enable null collector to work.

The following changes are added:
- Created MediawikiStatsdDataFactory interface
- Added hasData() method to see if there are any data to send
- Added getData() method to fetch data
- Made service infrastructure use MediawikiStatsdDataFactory interface
- Made wfLogProfilingData() use MediawikiStatsdDataFactory interface
- Added capability to enable/disable buffering collector

Bug: T166354
Change-Id: I2874175647e987996a9a399829b3319674471aaa

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Mon, 29 May 2017 20:03:40 +0000 (20:03 +0000)]
Merge "Localisation updates from https://translatewiki.net."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 29 May 2017 20:03:28 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2ac1e5176315ced37d1067e1616a3447592429f0

6 years agoMerge "Do not output invalid links for deleted names on Special:Contributions"
jenkins-bot [Mon, 29 May 2017 20:03:00 +0000 (20:03 +0000)]
Merge "Do not output invalid links for deleted names on Special:Contributions"

6 years agoEditPage: Fix passing the save/publish button label to other messages
Bartosz Dziewoński [Mon, 29 May 2017 18:46:24 +0000 (20:46 +0200)]
EditPage: Fix passing the save/publish button label to other messages

We were passing the message key, instead of the message text.
Follow-up to 44f596231397eb9ea2a5fe345c79ae952d6a1247.

Bug: T166478
Change-Id: Iaf33b0e6fba71ebf1130fc067210ed49c1b06011

6 years agoUse PHP DateInputWidget in Contribs and use for range filtering
Geoffrey Mon [Mon, 12 Dec 2016 14:26:15 +0000 (09:26 -0500)]
Use PHP DateInputWidget in Contribs and use for range filtering

* Add two DateInputWidgets to Special:Contributions, one for start and
  one for end
** If start input is empty but end input is not, display edits up to end
   input, and vice versa
** If both inputs are specified, display edits between the two dates
** If both inputs are empty, no date range is used
* Legacy options (year=/month=) are converted to use for the end
  timestamp, so URLs with them should still work.
* Unit tests!

Bug: T120733
Change-Id: Id15f2b2ce2954fe98dfbbb7b0e86c0e4e5713f5e

6 years agomw.widgets.DateInputWidget: Remove accidental 'user-select' on PHP widget's input
Bartosz Dziewoński [Mon, 29 May 2017 16:22:33 +0000 (18:22 +0200)]
mw.widgets.DateInputWidget: Remove accidental 'user-select' on PHP widget's input

This is only meant to apply to the JS widget's handle.

Also moved another block of CSS only meant to apply to the JS widget.
This wasn't causing any actual issues though.

Bug: T166416
Change-Id: I6e58a38a1d5a8fb4b581734b02cc4f12640b4a75

6 years agoMerge "Making the default toggle look clickable again"
jenkins-bot [Mon, 29 May 2017 15:44:50 +0000 (15:44 +0000)]
Merge "Making the default toggle look clickable again"

6 years agoMerge "ImagePage: Do not parse message 'imgmultipageprev'"
jenkins-bot [Mon, 29 May 2017 15:23:11 +0000 (15:23 +0000)]
Merge "ImagePage: Do not parse message 'imgmultipageprev'"

6 years agoMerge "Return 400 on invalid CSP reports"
jenkins-bot [Mon, 29 May 2017 14:50:48 +0000 (14:50 +0000)]
Merge "Return 400 on invalid CSP reports"

6 years agoImagePage: Do not parse message 'imgmultipageprev'
Bartosz Dziewoński [Mon, 29 May 2017 13:22:03 +0000 (15:22 +0200)]
ImagePage: Do not parse message 'imgmultipageprev'

This message is used as alt text for an image thumbnail, and so it
can't contain HTML tags anyway. This matches the 'imgmultipagenext'
message now. (This inconsistency has been present ever since the
feature was introduced in 2006: 7f7e79022bfd421e49084b089e74c7a16b77bc03.)

Due to using OutputPage::parse() instead of Message::parse(), an
incorrect `<div class="mw-parser-output">` wrapper was also being added.

Bug: T166508
Change-Id: I092887cc91e2c800685d4e55177aed814bb3fce9

6 years agoMerge "Make running Selenium tests using Sauce Labs easy"
jenkins-bot [Mon, 29 May 2017 10:54:40 +0000 (10:54 +0000)]
Merge "Make running Selenium tests using Sauce Labs easy"

6 years agoRCFilters: Hide server-side 'empty results' message
Moriel Schottlender [Mon, 29 May 2017 09:49:17 +0000 (12:49 +0300)]
RCFilters: Hide server-side 'empty results' message

RCFilters uses its own empty-results message that also relates to
the reason of why the results are empty (in case of conflicts, etc).
We want to make sure the server-side message is hidden and gone
while we load, and manage the empty-results message ourselves.

Bug: T163577
Change-Id: I1d0f07068653f369dea181f5c4f9964fd6d7cd58

6 years agoRCFilters UI: Make monobook override of the 'checkmark' more specific
Moriel Schottlender [Mon, 29 May 2017 08:22:40 +0000 (11:22 +0300)]
RCFilters UI: Make monobook override of the 'checkmark' more specific

Bug: T165444
Bug: T165446
Change-Id: I6412fb84767332259955462e53bde8dffe17e905
Depends-On: Ibe4b4fc92de1a864059d9cd37168c7ef33b6d874

6 years agoMerge "RCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets"
jenkins-bot [Mon, 29 May 2017 08:03:56 +0000 (08:03 +0000)]
Merge "RCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets"

6 years agoMerge "Swap default page title for Special:BlankPage in Spanish"
jenkins-bot [Mon, 29 May 2017 06:57:46 +0000 (06:57 +0000)]
Merge "Swap default page title for Special:BlankPage in Spanish"

6 years agoRCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets
Moriel Schottlender [Sun, 28 May 2017 20:09:39 +0000 (23:09 +0300)]
RCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets

Bug: T165446
Change-Id: I8188b34675e7e49f3603e7b7154e4e0800e94c37

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 28 May 2017 19:54:06 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id10e621f71f0522f6dcb16369cca50d95abf33dc

6 years agoRCFilters UI: Compare states instead of params when switching URL
Moriel Schottlender [Fri, 26 May 2017 20:45:09 +0000 (23:45 +0300)]
RCFilters UI: Compare states instead of params when switching URL

For empty url (initial load) and for cases where the URL is
minimized (upcoming) the method should check filter states
to recognize whether there's a difference between current and
requested URL.

Bug: T166347
Change-Id: I9dcc82ce7dbc0ad7c6cf3169cee7269234c95298

6 years agoSwap default page title for Special:BlankPage in Spanish
Jesús Martínez Novo [Sun, 28 May 2017 17:23:58 +0000 (19:23 +0200)]
Swap default page title for Special:BlankPage in Spanish

"Blanquear página" is a wrong translation in this context.
"Blanquear" is using "blank" as the verb and means "to blank a page",
but this page should translate "blank" as an adjective "this page is blank"

This was already in the list of aliases so I've swapped them so the correct
one is first and is picked as the default page name in wikis with Spanish
content language.

Change-Id: I29c2b02937878c09df09460eedbc5df697e51e34

6 years agoRCFilters: Minimize url string
Moriel Schottlender [Mon, 15 May 2017 21:43:33 +0000 (14:43 -0700)]
RCFilters: Minimize url string

In order to minimize the URL query, we use a base representation of the
parameters as if they were all '0' or '' and internally expand on it.

- Only display parameters with a value that is not empty or '0' in the
  URI. Any parameter that is missing from the URI is presumed to have
  an empty value.
- Stop pushing defaultParameters everywhere. Default parameters should
  only be considered either on load (when/if needed) or when the user
  actively requests for them.
- Minimize parameters to the URL, and expand when reading into the model.

Similar to using base filters, we can use a representation of base
parameters to make the URL small but the representation all-encompassing.

Bug: T165445
Change-Id: I1d21c38137fde51fcd561e2de24592722bf532c6

6 years agoMerge "Add fr (French) as fallback for kbp (Kabiyè)"
jenkins-bot [Sat, 27 May 2017 20:05:57 +0000 (20:05 +0000)]
Merge "Add fr (French) as fallback for kbp (Kabiyè)"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 27 May 2017 20:04:18 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I62626aff6dbf017f7fb0fa3b6d33d3cc9ae2c249

6 years agoMerge "Fix incomplete Language::getDatePreferences() documentation"
jenkins-bot [Sat, 27 May 2017 18:40:10 +0000 (18:40 +0000)]
Merge "Fix incomplete Language::getDatePreferences() documentation"

6 years agoMaking the default toggle look clickable again
Moritz Oberhauser [Sat, 27 May 2017 11:20:35 +0000 (13:20 +0200)]
Making the default toggle look clickable again

The toggle should now look same same prior to the premade toggle changes. The brackets are not part of the link, but the text inbetween. The link has no href property, so the toggle action is still triggered.

Bug: T166359
Change-Id: I38698cd66d380626728eae9b8a9da1e465b207a6

6 years agoMerge "wfIsBadImage: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 03:40:32 +0000 (03:40 +0000)]
Merge "wfIsBadImage: Avoid deprecated wfMemcKey()"

6 years agoMerge "User: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 03:40:14 +0000 (03:40 +0000)]
Merge "User: Avoid deprecated wfMemcKey()"

6 years agoMerge "parser: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 03:40:10 +0000 (03:40 +0000)]
Merge "parser: Avoid deprecated wfMemcKey()"

6 years agoMerge "LanguageConverter: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 00:16:07 +0000 (00:16 +0000)]
Merge "LanguageConverter: Avoid deprecated wfMemcKey()"

6 years agoMerge "CachingSiteStore: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 00:16:03 +0000 (00:16 +0000)]
Merge "CachingSiteStore: Avoid deprecated wfMemcKey()"

6 years agoMerge "User: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:53:00 +0000 (23:53 +0000)]
Merge "User: Avoid deprecated wfMemcKey()"

6 years agoMerge "UploadBase: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:48:29 +0000 (23:48 +0000)]
Merge "UploadBase: Avoid deprecated wfMemcKey()"

6 years agoMerge "SpecialVersion: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:07:27 +0000 (23:07 +0000)]
Merge "SpecialVersion: Avoid deprecated wfMemcKey()"