lhc/web/wiklou.git
6 years agobuild: Update mediawiki/mediawiki-codesniffer to 0.10.1
Kunal Mehta [Sun, 23 Jul 2017 01:24:09 +0000 (18:24 -0700)]
build: Update mediawiki/mediawiki-codesniffer to 0.10.1

And auto-fix all errors.

The `<exclude-pattern>` stanzas are now included in the default ruleset
and don't need to be repeated.

Change-Id: I928af549dc88ac2c6cb82058f64c7c7f3111598a

6 years agophpcs.xml: Escape . in exclude-pattern
Reedy [Sun, 23 Jul 2017 00:28:43 +0000 (01:28 +0100)]
phpcs.xml: Escape . in exclude-pattern

And fix errors in a file that was previously being excluded.

Bug: T129664
Change-Id: I60161b4037ca122ccd2f0730a4b4aa59d878e459

6 years agoMerge "Check headers_sent() before sending cpPosTime headers"
jenkins-bot [Sat, 22 Jul 2017 20:09:44 +0000 (20:09 +0000)]
Merge "Check headers_sent() before sending cpPosTime headers"

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Sat, 22 Jul 2017 20:02:16 +0000 (20:02 +0000)]
Merge "Localisation updates from https://translatewiki.net."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 22 Jul 2017 20:02:01 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idaf7df307423797d7bed4f911abcb8da9ddba271

6 years agoMerge "mediawiki.hlist: Add sensible defaults"
jenkins-bot [Sat, 22 Jul 2017 20:01:19 +0000 (20:01 +0000)]
Merge "mediawiki.hlist: Add sensible defaults"

6 years agoCheck headers_sent() before sending cpPosTime headers
Aaron Schulz [Sat, 22 Jul 2017 02:17:40 +0000 (19:17 -0700)]
Check headers_sent() before sending cpPosTime headers

Some entry points stream output and flush their own headers.
This avoids "headers already send" warnings in some cases.

Change-Id: Ifb232d4575486749bbbccba88f3f688972fe9c20

6 years agomediawiki.hlist: Add sensible defaults
jdlrobson [Fri, 21 Jul 2017 19:00:47 +0000 (12:00 -0700)]
mediawiki.hlist: Add sensible defaults

This allows skins to define how hlists appear (e.g. which pseudo
elements to use or whether to use them at all)  while
providing some sensible defaults.

Bug: T42062
Change-Id: I61b5f077d8b4a4c7fe845b7b6d1df98bb2dbafc8

6 years agoMerge "RCFilters: Add 'boolean' group"
jenkins-bot [Sat, 22 Jul 2017 00:29:34 +0000 (00:29 +0000)]
Merge "RCFilters: Add 'boolean' group"

6 years agoRCFilters: Add 'boolean' group
Moriel Schottlender [Thu, 20 Jul 2017 05:40:32 +0000 (22:40 -0700)]
RCFilters: Add 'boolean' group

The group allows filters to be represented 'directly' with their
selected values corresponding to their parameter "1" or "0" value.

Change-Id: I56e9b52ff79a46227de71c905b2ecd97a3823624

6 years agoMerge "RCFilters: Change loading animation"
jenkins-bot [Fri, 21 Jul 2017 21:44:02 +0000 (21:44 +0000)]
Merge "RCFilters: Change loading animation"

6 years agoMerge "API: Add deprecation warnings for Iae0e2ce3"
jenkins-bot [Fri, 21 Jul 2017 21:12:09 +0000 (21:12 +0000)]
Merge "API: Add deprecation warnings for Iae0e2ce3"

6 years agoRCFilters: Change loading animation
Moriel Schottlender [Fri, 21 Jul 2017 00:51:15 +0000 (17:51 -0700)]
RCFilters: Change loading animation

Bug: T165286
Change-Id: If816dd1e3a2677c36195546c51f87505ba883e04

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 21 Jul 2017 20:01:57 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9687475e5593765b7922a91838b78ba6b18c583c

6 years agoMerge "resourceloader: Add ResourceLoaderModule::shouldEmbedModule and use it"
jenkins-bot [Fri, 21 Jul 2017 18:11:02 +0000 (18:11 +0000)]
Merge "resourceloader: Add ResourceLoaderModule::shouldEmbedModule and use it"

6 years agoresourceloader: Add ResourceLoaderModule::shouldEmbedModule and use it
Brad Jorsch [Fri, 30 Jun 2017 18:19:38 +0000 (14:19 -0400)]
resourceloader: Add ResourceLoaderModule::shouldEmbedModule and use it

Rather than only the 'private' group triggering embedding, allow modules
to explicitly specify if they should be embedded.

The default is still to only embed when the group is 'private', and the
'private' group is still special in that ResourceLoader::respond() will
still refuse to serve it from load.php.

Change-Id: Ib9a043c566822e278baecc15e87f9c5cebc2eb98

6 years agoRCFilters: Make the pulsating animation on the live update button not block clicks
Roan Kattouw [Fri, 21 Jul 2017 17:45:29 +0000 (10:45 -0700)]
RCFilters: Make the pulsating animation on the live update button not block clicks

Change-Id: I37b06b1464ae9ca70f5f85277cc46ac102aa0ec3

6 years agoMerge "Remove auto-generated "Constructor" documentation on constructors"
jenkins-bot [Fri, 21 Jul 2017 13:19:44 +0000 (13:19 +0000)]
Merge "Remove auto-generated "Constructor" documentation on constructors"

6 years agoRemove auto-generated "Constructor" documentation on constructors
Thiemo Mättig [Fri, 21 Jul 2017 10:19:30 +0000 (12:19 +0200)]
Remove auto-generated "Constructor" documentation on constructors

Having such comments is worse than not having them. They add zero
information. But you must read the text to understand there is
nothing you don't already know from the class and the method name.

This is similar to I994d11e. Even more trivial, because this here is
about comments that don't say anything but "constructor".

Change-Id: I474dcdb5997bea3aafd11c0760ee072dfaff124c

6 years agoMerge "rdbms: Refactor DatabaseTest"
jenkins-bot [Fri, 21 Jul 2017 04:25:05 +0000 (04:25 +0000)]
Merge "rdbms: Refactor DatabaseTest"

6 years agoMerge "rdbms: Move DatabaseMysqlBaseTest to libs tests"
jenkins-bot [Fri, 21 Jul 2017 04:19:08 +0000 (04:19 +0000)]
Merge "rdbms: Move DatabaseMysqlBaseTest to libs tests"

6 years agordbms: Refactor DatabaseTest
Timo Tijhof [Thu, 20 Jul 2017 20:17:11 +0000 (13:17 -0700)]
rdbms: Refactor DatabaseTest

* Move DatabaseTest and DatabaseSQLTest to libs,
  and remove MediaWikiTestCase dependency.

* Refactor DatabaseTest to be a test of the Database abstract class,
  not of whatever current DB backend is configured by LocalSettings.

  - Remove most switches/conditionals and other tests for specific
    database backends. Move those to individual test classes for
    those backends instead.
  - Some tests appear to have been integration tests for the PHP driver
    and/or the db backend itself. Moved to a new DatabaseIntegrationTest.
  - Now that only the abstract Database is invoked, the test runs a bit
    faster (no real connections/queries).

* Add missing @covers tags, and remove or fix broken ones
  (follows-up 26e52f0c491a4).

Change-Id: I9dc4a558e701d00e95789e7eb8e02926783b65ad

6 years agoMerge "RCFilters: Make sure single_option always has 1 item selected"
jenkins-bot [Fri, 21 Jul 2017 00:34:16 +0000 (00:34 +0000)]
Merge "RCFilters: Make sure single_option always has 1 item selected"

6 years agordbms: Move DatabaseMysqlBaseTest to libs tests
Timo Tijhof [Fri, 21 Jul 2017 00:14:52 +0000 (17:14 -0700)]
rdbms: Move DatabaseMysqlBaseTest to libs tests

* Remove MediaWikiTestCase dependency.
* Add missing @covers tags.
* Add missing visibility/static declarations.

Change-Id: I2d81a9265016174e7b4ff810f140f7d031ce9f14

6 years agoRCFilters: Make sure single_option always has 1 item selected
Moriel Schottlender [Fri, 21 Jul 2017 00:02:55 +0000 (17:02 -0700)]
RCFilters: Make sure single_option always has 1 item selected

Bug: T171081
Change-Id: I82b6cf9660dfd5ee006197504557be366e148244

6 years agoRCFilters: Exclude 'hidden' filters from 'areCurrentFiltersEmpty' query
Moriel Schottlender [Thu, 20 Jul 2017 23:05:34 +0000 (16:05 -0700)]
RCFilters: Exclude 'hidden' filters from 'areCurrentFiltersEmpty' query

Bug: T171129
Change-Id: I831692efbc5562d0f1d7433b9933118c7a9f6f14

6 years agoMerge "qunit: Prepare testrunner for QUnit 2"
jenkins-bot [Thu, 20 Jul 2017 21:04:41 +0000 (21:04 +0000)]
Merge "qunit: Prepare testrunner for QUnit 2"

6 years agoqunit: Prepare testrunner for QUnit 2
Timo Tijhof [Mon, 17 Jul 2017 19:29:11 +0000 (14:29 -0500)]
qunit: Prepare testrunner for QUnit 2

* Nested modules:
  - Support for Sinon extension was fixed by Ib17bbbef45b2bd.
  - Support for Fixture extension was still broken, masked by the use
    of a local variable that made the handler not fail when setup ran twice
    in a row. Fixed using the same moduleStack.length check.
  - Add regression test.

* beforeEach/afterEach:
  - Added in 1.16, with compat for setup/teardown.
    Our wrapper adds its own setup/teardown, and preserves any original one.
    However, it didn't account for beforeEach/afterEach, so it ends up
    sending both but only one is used.
  - Fix to support both on the incoming localEnv object, and also switch
    our wrapper to use beforeEach/afterEach in prep for QUnit 2.0.
  - Fix our wrappers to preserve return value since QUnit 2 allows beforeEach
    and afterEach hooks to be asynchronous by returning a Promise, similar
    to how one can do from QUnit.test().
  - Add regression test.

* Centralise makeSafeEnv logic
  - We always create our own env object to pass to orgModule().
    Document why this is (to avoid recursion).
  - Add regression test.

* Custom assertion methods:
  - Use this.pushResult instead of the deprecated QUnit.push() method.
    This also improves the in-browser reporting of errors by properly
    supporting 'negative' results for notHtmlEqual reporter.

Bug: T170515
Change-Id: If4141df10eae55cbe8a5ca7a26707be1cd7b9217

6 years agoMerge "Refactor LoadBalancer::setDomainPrefix() to use forEachOpen* method"
jenkins-bot [Thu, 20 Jul 2017 20:27:54 +0000 (20:27 +0000)]
Merge "Refactor LoadBalancer::setDomainPrefix() to use forEachOpen* method"

6 years agoRefactor LoadBalancer::setDomainPrefix() to use forEachOpen* method
Aaron Schulz [Thu, 20 Jul 2017 05:05:18 +0000 (22:05 -0700)]
Refactor LoadBalancer::setDomainPrefix() to use forEachOpen* method

This makes the code more consistent with the other class methods
that iterate over connection handles and less fragile.

Change-Id: Ie2d8efb80a66a5c87b5b3edd64cb6bc4268fa911

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 20 Jul 2017 20:05:42 +0000 (22:05 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2cb7798cbaa72ddbb752f70483c55d38e20c8bff

6 years agoUse constants for LoadBalancer connection array keys
Aaron Schulz [Thu, 20 Jul 2017 03:00:36 +0000 (20:00 -0700)]
Use constants for LoadBalancer connection array keys

Also renamed "foreignUsed" to "foreignInUse" for clarity.

Change-Id: Ida35042979a87417b38d256610b726611555d7b2

6 years agoMerge "Fix docs for LoadBalancer::openConnection()"
jenkins-bot [Thu, 20 Jul 2017 19:34:35 +0000 (19:34 +0000)]
Merge "Fix docs for LoadBalancer::openConnection()"

6 years agoMerge "mw.widgets.visibleByteLimit: Temporarily disable whilst OOjs UI label bug...
jenkins-bot [Thu, 20 Jul 2017 17:09:31 +0000 (17:09 +0000)]
Merge "mw.widgets.visibleByteLimit: Temporarily disable whilst OOjs UI label bug is fixed"

6 years agoMerge "Adjust hidden element rules for printed view"
jenkins-bot [Thu, 20 Jul 2017 16:47:45 +0000 (16:47 +0000)]
Merge "Adjust hidden element rules for printed view"

6 years agoAdjust hidden element rules for printed view
jdlrobson [Wed, 19 Jul 2017 19:24:07 +0000 (12:24 -0700)]
Adjust hidden element rules for printed view

This change updates the hidden element list
for the printed view.

Elements hidden:
* Indicators
* Category links
* Redirect header hidden from all namespaces

Remove selectors that are not inside core. Due to
a miscommunication with Volker these were unintentionally
added in I9aa92a3e70991126c56df0a6db408d1c6f84f172:
* `#coordinates` is added by templates and should be in
MediaWiki:Print.css
* `.play-btn-large` is added by TimedMediaHandler and should
be removed in that extension
* `.noexcerpt` should not be used in this context. It's meant for
marking content up that should be hidden from extracts not for
content that should be hidden from print view - that's what `.noprint`
is for

Bug: T169823
Change-Id: I8b37a6b00618abda7267f92e4712169b22c20b94

6 years agoMerge "RC Filters: Tweak i18n for latest/not latest revision filter"
jenkins-bot [Thu, 20 Jul 2017 15:42:19 +0000 (15:42 +0000)]
Merge "RC Filters: Tweak i18n for latest/not latest revision filter"

6 years agomw.widgets.visibleByteLimit: Temporarily disable whilst OOjs UI label bug is fixed
James D. Forrester [Thu, 20 Jul 2017 15:11:10 +0000 (08:11 -0700)]
mw.widgets.visibleByteLimit: Temporarily disable whilst OOjs UI label bug is fixed

Bug: T169982
Change-Id: If5d2b3d705b121c450f99d3ef61b535e7fc89c04

6 years agoMerge "Change OO.ui.isMobile test to detect MF, not minerva"
jenkins-bot [Thu, 20 Jul 2017 14:47:15 +0000 (14:47 +0000)]
Merge "Change OO.ui.isMobile test to detect MF, not minerva"

6 years agoChange OO.ui.isMobile test to detect MF, not minerva
Ed Sanders [Thu, 20 Jul 2017 13:21:04 +0000 (14:21 +0100)]
Change OO.ui.isMobile test to detect MF, not minerva

Minerva can now be used on desktop, so this test is
no longer good enough.

Change-Id: I80d7aa6479809a5a8882cdd232ec0636f7adad77

6 years agoFix docs for LoadBalancer::openConnection()
Aaron Schulz [Thu, 20 Jul 2017 02:22:28 +0000 (19:22 -0700)]
Fix docs for LoadBalancer::openConnection()

Change-Id: Ib05d98cb3670899a688d9882a2dc364f18e1d4bd

6 years agoMerge "maintenance: Consistently use hasOption() for boolean options"
jenkins-bot [Wed, 19 Jul 2017 22:08:02 +0000 (22:08 +0000)]
Merge "maintenance: Consistently use hasOption() for boolean options"

6 years agoMerge "Add link to Special:PrefixIndex in delete dialog"
jenkins-bot [Wed, 19 Jul 2017 22:02:04 +0000 (22:02 +0000)]
Merge "Add link to Special:PrefixIndex in delete dialog"

6 years agoMerge "Revert "Make mw.widgets.SearchInputWidget extend OO.ui.SearchInputWidget""
Tjones [Wed, 19 Jul 2017 21:51:17 +0000 (21:51 +0000)]
Merge "Revert "Make mw.widgets.SearchInputWidget extend OO.ui.SearchInputWidget""

6 years agoAdd link to Special:PrefixIndex in delete dialog
Étienne Beaulé [Fri, 1 Aug 2014 02:56:27 +0000 (22:56 -0400)]
Add link to Special:PrefixIndex in delete dialog

This change adds a warning to ?action=delete with a link to a
Special:PrefixIndex of the page being deleted if the page being deleted
has subpages.

If there are less than 50 subpages, the exact count will be mentioned in
the message.

Bug: T32666
Change-Id: Ibd705ed77452a55f782ed855c676d7ee23e9ad61

6 years agoRevert "Make mw.widgets.SearchInputWidget extend OO.ui.SearchInputWidget"
EBernhardson [Wed, 19 Jul 2017 21:36:17 +0000 (21:36 +0000)]
Revert "Make mw.widgets.SearchInputWidget extend OO.ui.SearchInputWidget"

Typing a search query into the main box on Special:Search
causes the search to be performed for the first autocomplete
result, rather than the typed query. The first autocomplet
result should only be searched for if explicitly selected with
the mouse or arrow key.

This reverts commit 7882e3b66060f7bbd37e15688baf4dd30954b1b7.

Bug: T171112
Change-Id: I1af6ba90542fafe3ed1aeca420e9d6df6612f7d0

6 years agoMerge "IcuCollation: Fix diacritic characters for Aromanian (rup) and Moldovan (mo...
jenkins-bot [Wed, 19 Jul 2017 20:11:42 +0000 (20:11 +0000)]
Merge "IcuCollation: Fix diacritic characters for Aromanian (rup) and Moldovan (mo) headings"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 19 Jul 2017 20:00:38 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If2ca75be14878eb12f54f36e6365872b15c5f7e3

6 years agoMerge "Simplify print styles"
jenkins-bot [Wed, 19 Jul 2017 19:57:48 +0000 (19:57 +0000)]
Merge "Simplify print styles"

6 years agomaintenance: Consistently use hasOption() for boolean options
Timo Tijhof [Wed, 19 Jul 2017 19:51:30 +0000 (14:51 -0500)]
maintenance: Consistently use hasOption() for boolean options

We already do this in many places, but there were also still plenty
of getOption(, false) calls. Change these to hasOption() for consistency.

Change-Id: I74f91a5bf5a8036496ab1f493e5862a04d27ec0f

6 years agoIcuCollation: Fix diacritic characters for Aromanian (rup) and Moldovan (mo) headings
Bartosz Dziewoński [Wed, 19 Jul 2017 19:48:56 +0000 (21:48 +0200)]
IcuCollation: Fix diacritic characters for Aromanian (rup) and Moldovan (mo) headings

They should be Ș, Ț (comma-below) and instead they were cedilla-below (Ş, Ţ).
Same as for Romanian (ro) in 486f64f28302ecceed04977180fd21470cb54c81.

Both of these languages are unsupported by libicu and so the collations
are unlikely to have been used in practice.

Bug: T171043
Bug: T171044
Change-Id: Idd0d593e73cd784fbef7b75e8985f988f5555e26

6 years agoSimplify print styles
Volker E [Thu, 10 Nov 2016 04:49:49 +0000 (20:49 -0800)]
Simplify print styles

Simplifying CSS code by
- merging similar selectors,
- reordering them by CSS specificity and within selectors alphabetically &
- applying simpler `line-height` units dependent on `font-size` instead
of absolute.

Bug: T135022
Bug: T169823
Change-Id: I9aa92a3e70991126c56df0a6db408d1c6f84f172

6 years agoMerge "Set batch size to 1000 in updateRestrictions"
jenkins-bot [Wed, 19 Jul 2017 19:18:29 +0000 (19:18 +0000)]
Merge "Set batch size to 1000 in updateRestrictions"

6 years agoRC Filters: Tweak i18n for latest/not latest revision filter
James D. Forrester [Wed, 19 Jul 2017 19:01:31 +0000 (12:01 -0700)]
RC Filters: Tweak i18n for latest/not latest revision filter

Bug: T166600
Change-Id: I5237cb0f87b3a340eb3fb8198a4ba39d679c6fe3

6 years agoRCFilters: proper group name for user experience level
Stephane Bisson [Wed, 19 Jul 2017 18:49:18 +0000 (14:49 -0400)]
RCFilters: proper group name for user experience level

It's "User registration and experience",
not "Experience registration and experience".

Bug: T165160
Change-Id: Ie28de2ace687acb0cdd2a4d9c5de1158be3647e8

6 years agoUpdate FIRST_LETTER_VERSION for rowiki changes
Brian Wolff [Wed, 19 Jul 2017 17:37:29 +0000 (17:37 +0000)]
Update FIRST_LETTER_VERSION for rowiki changes

Can't just clear cache on production, as this
now uses per-server apc instance.

Follow-up 486f64f28302ecceed04977

Change-Id: I88df6d5a91c86ef687543d1a6988e0ec050bbfce

6 years agoMerge "IcuCollation: Fix diacritic characters for Romanian (ro) headings"
jenkins-bot [Wed, 19 Jul 2017 17:41:09 +0000 (17:41 +0000)]
Merge "IcuCollation: Fix diacritic characters for Romanian (ro) headings"

6 years agoSet batch size to 1000 in updateRestrictions
Reedy [Wed, 19 Jul 2017 17:35:02 +0000 (18:35 +0100)]
Set batch size to 1000 in updateRestrictions

As far as can be seen on enwiki, very few rows to update

Change-Id: Idf8dee951a5240c4ebaa73fc02c1248a6737b3f8

6 years agoIcuCollation: Fix diacritic characters for Romanian (ro) headings
Bartosz Dziewoński [Wed, 19 Jul 2017 14:27:50 +0000 (16:27 +0200)]
IcuCollation: Fix diacritic characters for Romanian (ro) headings

They should be Ș, Ț (comma-below) and instead they were cedilla-below (Ş, Ţ).

Bug: T168711
Change-Id: I6dc873c3ce93bca3e425439f70d0fb30aecc9533

6 years agoMerge "Support custom offsets from SearchResultSet"
jenkins-bot [Wed, 19 Jul 2017 10:57:28 +0000 (10:57 +0000)]
Merge "Support custom offsets from SearchResultSet"

6 years agoReturn a typed object from WikiPage::prepareContentForEdit
Kunal Mehta [Mon, 17 Jul 2017 21:44:53 +0000 (14:44 -0700)]
Return a typed object from WikiPage::prepareContentForEdit

This makes it easier to figure out what values are available and
includes documentation about each field.

This will also allow us to add deprecation warnings for deprecated
properties via __get() in the future.

Change-Id: I4ecc900372546013253256749563aaa203ff8963

6 years agoSupport custom offsets from SearchResultSet
Erik Bernhardson [Wed, 19 Jul 2017 04:19:48 +0000 (21:19 -0700)]
Support custom offsets from SearchResultSet

Work to support interleaved AB testing of search will display
interleaved results of two search configurations on the first page of
results, but standard results on all pages other than the first page.
This means that while 20 results may be requested, the next 'new' result
of the primary query may be at position 10. Allow the SearchResultSet
to declare what the new offset is.

Bug: T150032
Change-Id: I14c0c33249fcdb66f72f5966e2aa72781a34daee

6 years agoMerge "RCFilters: Emphasize UI when saved query is loaded"
jenkins-bot [Wed, 19 Jul 2017 02:52:26 +0000 (02:52 +0000)]
Merge "RCFilters: Emphasize UI when saved query is loaded"

6 years agoMerge "RCFilters: Increase the initial height of the loading box"
jenkins-bot [Wed, 19 Jul 2017 02:35:04 +0000 (02:35 +0000)]
Merge "RCFilters: Increase the initial height of the loading box"

6 years agoRCFilters: Emphasize UI when saved query is loaded
Moriel Schottlender [Fri, 14 Jul 2017 01:45:36 +0000 (20:45 -0500)]
RCFilters: Emphasize UI when saved query is loaded

Bug: T169063
Change-Id: Ia300ca7bb4afb7d8e247e57e53ecff826ddf0d7e

6 years agoMerge "RCFilters: Add range group filters - limit, days and hours"
jenkins-bot [Wed, 19 Jul 2017 02:32:21 +0000 (02:32 +0000)]
Merge "RCFilters: Add range group filters - limit, days and hours"

6 years agoRCFilters: Add range group filters - limit, days and hours
Moriel Schottlender [Fri, 23 Jun 2017 22:35:03 +0000 (15:35 -0700)]
RCFilters: Add range group filters - limit, days and hours

- Add 'hidden' groups that have base defaults but are not
  viewed in the filter drop-down.
- Add a UI for days, hours and limit selections, based on their
  group models.
- Clean up the fieldset form to remove redundant line breaks
  and empty objects.
- Add 'hours' as a subset of days, where the UI can split itself
  by picking up values >=1 and <1
- Add the ability to allow 'arbitrary' information from the URL
  values, but also make sure there is a validation method
  and a possibility to re-sort the values that are added in.

Bug: T162784
Bug: T162786
Change-Id: I8068a7cc411eef40ddb8af4eef1d4f1e5f2a2b82

6 years agoMerge "RCFilters: Don't emit wikipage.content on first load"
jenkins-bot [Tue, 18 Jul 2017 23:18:51 +0000 (23:18 +0000)]
Merge "RCFilters: Don't emit wikipage.content on first load"

6 years agoMerge "RCFilters: Change `What's this?` i18n based on user testing"
jenkins-bot [Tue, 18 Jul 2017 23:17:41 +0000 (23:17 +0000)]
Merge "RCFilters: Change `What's this?` i18n based on user testing"

6 years agoMerge "RCFilters: Only open one 'Whats This' popup at a time"
jenkins-bot [Tue, 18 Jul 2017 23:10:35 +0000 (23:10 +0000)]
Merge "RCFilters: Only open one 'Whats This' popup at a time"

6 years agoRCFilters: Don't emit wikipage.content on first load
Moriel Schottlender [Mon, 17 Jul 2017 21:38:58 +0000 (14:38 -0700)]
RCFilters: Don't emit wikipage.content on first load

If the first load uses existing DOM elements, don't emit that
hook. Only emit if we're pulling from the server for new results.

Bug: T165350
Change-Id: Ib17fdd16a908808f99fe8506c50c61d90ad4addc

6 years agoRCFilters: Change `What's this?` i18n based on user testing
James D. Forrester [Tue, 18 Jul 2017 23:06:09 +0000 (16:06 -0700)]
RCFilters: Change `What's this?` i18n based on user testing

Also minor tweak to the qqq to help translators understand.

Bug: T169053
Change-Id: If5aebae20d2e0037b28090d85cd9b076ac4b3178

6 years agoMerge "RCFilters: Log filter groupings"
jenkins-bot [Tue, 18 Jul 2017 23:04:10 +0000 (23:04 +0000)]
Merge "RCFilters: Log filter groupings"

6 years agoRCFilters: Only open one 'Whats This' popup at a time
Moriel Schottlender [Tue, 18 Jul 2017 22:19:40 +0000 (15:19 -0700)]
RCFilters: Only open one 'Whats This' popup at a time

Remove 'overlay' and this.$element from the $autoCloseIgnore, since
the entire popup is in the overlay anyways.

Bug: T169047
Change-Id: I57300413297d86eca9bcc3d49766f4e41ab628be

6 years agoRCFilters: Increase the initial height of the loading box
Moriel Schottlender [Tue, 18 Jul 2017 22:05:00 +0000 (15:05 -0700)]
RCFilters: Increase the initial height of the loading box

Bug: T168651
Change-Id: Ia4a079c9d177ad024611112a212a60f725ea1943

6 years agoMerge "maintenance: Add --dry-run option to deleteDefaultMessages.php"
jenkins-bot [Tue, 18 Jul 2017 21:36:14 +0000 (21:36 +0000)]
Merge "maintenance: Add --dry-run option to deleteDefaultMessages.php"

6 years agomaintenance: Add --dry-run option to deleteDefaultMessages.php
Timo Tijhof [Tue, 18 Jul 2017 19:59:24 +0000 (14:59 -0500)]
maintenance: Add --dry-run option to deleteDefaultMessages.php

For back-compat, keep the default as-is, because it is also
used as a post-update script by the installer.

But for convenience and safe manual use, do add a dry-run option.
(Ideally this would be a --delete option and dry-run by default.)

Change-Id: I3ca70f15f50b66f9d19fa705cef9a4aae2dd4e5c

6 years agoMerge "Revert "Localisation updates from https://translatewiki.net.""
L10n-bot [Tue, 18 Jul 2017 20:13:57 +0000 (20:13 +0000)]
Merge "Revert "Localisation updates from https://translatewiki.net.""

6 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Tue, 18 Jul 2017 20:13:46 +0000 (20:13 +0000)]
Revert "Localisation updates from https://translatewiki.net."

Overwrites https://gerrit.wikimedia.org/r/365234

This reverts commit 467a1167a78fc7177957865a081a3f4487a5c061.

Change-Id: Icb4177ffbcc541dd5140c80a4133b868eb8f5169

6 years agoMerge "Remove excess getExternalLB() argument"
jenkins-bot [Tue, 18 Jul 2017 20:13:14 +0000 (20:13 +0000)]
Merge "Remove excess getExternalLB() argument"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 18 Jul 2017 20:11:38 +0000 (22:11 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5888335a51fcc80cdcf19ec6fa59c1cf06434065

6 years agoMerge "RC Filters: combine user registration and experience level filters"
jenkins-bot [Tue, 18 Jul 2017 19:30:55 +0000 (19:30 +0000)]
Merge "RC Filters: combine user registration and experience level filters"

6 years agoMerge "Remove newline at end of MWExceptionRenderer::getShowBacktraceError"
jenkins-bot [Tue, 18 Jul 2017 19:23:40 +0000 (19:23 +0000)]
Merge "Remove newline at end of MWExceptionRenderer::getShowBacktraceError"

6 years agoMerge "build: Upgrade grunt-eslint from 19.0.0 to 20.0.0"
jenkins-bot [Tue, 18 Jul 2017 18:10:48 +0000 (18:10 +0000)]
Merge "build: Upgrade grunt-eslint from 19.0.0 to 20.0.0"

6 years agoMerge "HTMLSelectAndOtherField/HTMLSelectOrOtherField: Add OOUI implementation"
jenkins-bot [Tue, 18 Jul 2017 16:26:11 +0000 (16:26 +0000)]
Merge "HTMLSelectAndOtherField/HTMLSelectOrOtherField: Add OOUI implementation"

6 years agoMerge "DateTimeInputWidget: Ignore wheel when not focused"
jenkins-bot [Tue, 18 Jul 2017 16:11:56 +0000 (16:11 +0000)]
Merge "DateTimeInputWidget: Ignore wheel when not focused"

6 years agobuild: Upgrade grunt-eslint from 19.0.0 to 20.0.0
Ed Sanders [Tue, 18 Jul 2017 13:02:42 +0000 (14:02 +0100)]
build: Upgrade grunt-eslint from 19.0.0 to 20.0.0

Most indent and escaping fixes.

Change-Id: I210e2fc3c0ce3148327ef81f824e1ce9f1e269b6

6 years agoMerge "Export revision IDs to JS config on diff pages"
jenkins-bot [Tue, 18 Jul 2017 15:40:00 +0000 (15:40 +0000)]
Merge "Export revision IDs to JS config on diff pages"

6 years agoRC Filters: combine user registration and experience level filters
Stephane Bisson [Fri, 14 Jul 2017 12:07:41 +0000 (08:07 -0400)]
RC Filters: combine user registration and experience level filters

Add 'registered' and 'unregistered' filters to
user experience group.

Keep minimal definitions of user registration to
support hideanons and hideliu for no-js and
users who are not using ERI filters.

Reword all user experience levels description according
to the phab task.

Bug: T165160
Change-Id: Ie6b1795d7cbdb1692f8eeb13db7afb89ea4e5bbc

6 years agoMerge "Avoid globals in EditPage::__construct()"
jenkins-bot [Tue, 18 Jul 2017 14:44:28 +0000 (14:44 +0000)]
Merge "Avoid globals in EditPage::__construct()"

6 years agoMerge "Introduce config var for moved-paragraph-detection threshold"
jenkins-bot [Tue, 18 Jul 2017 14:20:00 +0000 (14:20 +0000)]
Merge "Introduce config var for moved-paragraph-detection threshold"

6 years agobuild: Update grunt-stylelint
Ed Sanders [Tue, 18 Jul 2017 13:16:24 +0000 (14:16 +0100)]
build: Update grunt-stylelint

Change-Id: I05e48d3eb749d192ccd4b837e4b8dc6307d761af

6 years agoMerge "ChangesListStringOptionsFilter: Make isSelected() respect ALL"
jenkins-bot [Tue, 18 Jul 2017 12:28:25 +0000 (12:28 +0000)]
Merge "ChangesListStringOptionsFilter: Make isSelected() respect ALL"

6 years agoMerge "RCFilters: Correct language for invert button"
jenkins-bot [Tue, 18 Jul 2017 12:23:18 +0000 (12:23 +0000)]
Merge "RCFilters: Correct language for invert button"

6 years agoRemove newline at end of MWExceptionRenderer::getShowBacktraceError
Fomafix [Mon, 3 Jul 2017 14:21:49 +0000 (16:21 +0200)]
Remove newline at end of MWExceptionRenderer::getShowBacktraceError

Also add a period at the end of the sentence.

This changes the HTML comment from

<!-- Set $wgShowExceptionDetails = true; at the bottom
of LocalSettings.php to show detailed debugging
information
 -->

to

<!-- Set $wgShowExceptionDetails = true; at the bottom
of LocalSettings.php to show detailed debugging
information. -->

This is a follow-up to 842b7a1769 (T162315).

Change-Id: I45ff4f856ad1c0dc72066fce7771077ff4663785

6 years agoExport revision IDs to JS config on diff pages
Ed Sanders [Mon, 17 Jul 2017 20:19:33 +0000 (21:19 +0100)]
Export revision IDs to JS config on diff pages

Bug: T169574
Change-Id: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6

6 years agoIntroduce config var for moved-paragraph-detection threshold
Tobias Gritschacher [Thu, 8 Jun 2017 14:59:21 +0000 (16:59 +0200)]
Introduce config var for moved-paragraph-detection threshold

This introduces a configuration variable for the bailout threshold for
the moved-paragraph-detection in wikidiff2.
This allows to rollout a new version of wikidiff2 that supports
detecting changes in moved paragraphs without changing behaviour of all
wikis in production as the default value of the setting (0) will leave the
new feature disabled.
Compatibility with older versions of wikidiff2 is retained by checking for
the version number of wikidiff2 and calling the method without the 4th
parameter if the version is < 0.3.0.

Bug: T166571
Change-Id: Ic01054354a4fbba410e58c9873edcbde797f883d

6 years agoRCFilters: Log filter groupings
Moriel Schottlender [Wed, 12 Jul 2017 23:30:12 +0000 (18:30 -0500)]
RCFilters: Log filter groupings

Depends-On: Ib9df52d708993f2ed29633251365d4af2b6a4761
Change-Id: I09b2d45cdca323d43cf91d0b21bed06f2db8183c

6 years agoMerge "Special:Contributions: Open "To date" widget after selecting a "From date""
jenkins-bot [Tue, 18 Jul 2017 04:02:11 +0000 (04:02 +0000)]
Merge "Special:Contributions: Open "To date" widget after selecting a "From date""

6 years agoMerge "doc: Fix a few Example docs for PHP classes"
jenkins-bot [Tue, 18 Jul 2017 01:50:14 +0000 (01:50 +0000)]
Merge "doc: Fix a few Example docs for PHP classes"