lhc/web/wiklou.git
6 years agoMerge "CSSMin: Skip #default#behaviorName when detecting local files"
jenkins-bot [Mon, 24 Jul 2017 19:49:32 +0000 (19:49 +0000)]
Merge "CSSMin: Skip #default#behaviorName when detecting local files"

6 years agoAdd doc for showEditTools method
WMDE-Fisch [Mon, 24 Jul 2017 16:58:18 +0000 (18:58 +0200)]
Add doc for showEditTools method

Change-Id: Ic6931ed6cdecb7b42e2c47b7c8b34b6d1d23be13

6 years agoMerge "Show legend of Special:SpecialPages more gradually"
jenkins-bot [Mon, 24 Jul 2017 15:44:30 +0000 (15:44 +0000)]
Merge "Show legend of Special:SpecialPages more gradually"

6 years agoShow legend of Special:SpecialPages more gradually
Umherirrender [Fri, 7 Jul 2017 15:15:43 +0000 (17:15 +0200)]
Show legend of Special:SpecialPages more gradually

The legend is shown when restricted or cached pages are shown, but for
cached pages the legend does not contains a text, because there is no
default styling of cached special pages.
Break the note into two messages and disable the message for cached
pages by default. Wikis having style for cached pages can use this
message to create a legend.

Change-Id: Iec429d450ba7019bbd2cd2301a8280a562341387

6 years agoMerge "Article: Remove unused variable"
jenkins-bot [Mon, 24 Jul 2017 14:48:05 +0000 (14:48 +0000)]
Merge "Article: Remove unused variable"

6 years agoMerge "UserPager: Use multiple checkboxes instead of multiselect"
jenkins-bot [Mon, 24 Jul 2017 11:00:00 +0000 (11:00 +0000)]
Merge "UserPager: Use multiple checkboxes instead of multiselect"

6 years agoArticle: Remove unused variable
Bartosz Dziewoński [Mon, 24 Jul 2017 09:18:54 +0000 (11:18 +0200)]
Article: Remove unused variable

Follow-up to 97a8fb78faa4ca2d9604140e5547f5deae5a2524.

Change-Id: I8822742f15c3972cec3ac2ec47a2f594453b8672

6 years agoMerge "WebInstaller: Use <div> instead of <span>"
jenkins-bot [Mon, 24 Jul 2017 07:48:59 +0000 (07:48 +0000)]
Merge "WebInstaller: Use <div> instead of <span>"

6 years agoMerge "RCFilters: Don't empty the changes list on first load"
jenkins-bot [Mon, 24 Jul 2017 07:19:29 +0000 (07:19 +0000)]
Merge "RCFilters: Don't empty the changes list on first load"

6 years agoWebInstaller: Use <div> instead of <span>
Fomafix [Mon, 24 Jul 2017 05:28:57 +0000 (07:28 +0200)]
WebInstaller: Use <div> instead of <span>

The parser output is enclosed by a <div> and must not enclosed into a
<span> because of an HTML validation error.

Bug: T171423
Change-Id: I034d54436a622803fe07d3c93483b9fe705bc925

6 years ago[SECURITY] Restore ability to suppress pages while deleting
Kunal Mehta [Sun, 23 Jul 2017 22:21:12 +0000 (15:21 -0700)]
[SECURITY] Restore ability to suppress pages while deleting

The OOUI refactor in 97a8fb78fa lost the ability to suppress pages while
deleting.

This converts the suppress checkbox into a OOUI one, and then modifies
the detection of whether the checkbox was used to use
WebRequest::getCheck().

Bug: T171405
Change-Id: I8c388808c08b8804689b41876fd2bcdeff7f0e70

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

Change-Id: I134586d9e08c971826e4a8a019985ac34ddf13e0

6 years agoMerge "config: Add tests for EtcdConfig::fetchAllFromEtcdServer"
jenkins-bot [Sun, 23 Jul 2017 02:21:04 +0000 (02:21 +0000)]
Merge "config: Add tests for EtcdConfig::fetchAllFromEtcdServer"

6 years agoMerge "rdbms: Complete DatabaseDomain code coverage"
jenkins-bot [Sun, 23 Jul 2017 02:16:50 +0000 (02:16 +0000)]
Merge "rdbms: Complete DatabaseDomain code coverage"

6 years agoMerge "config: Complete coverage for Config class"
jenkins-bot [Sun, 23 Jul 2017 02:07:13 +0000 (02:07 +0000)]
Merge "config: Complete coverage for Config class"

6 years agoMerge "phpunit: Remove skins/ from coverage index"
jenkins-bot [Sun, 23 Jul 2017 02:07:10 +0000 (02:07 +0000)]
Merge "phpunit: Remove skins/ from coverage index"

6 years agoconfig: Add tests for EtcdConfig::fetchAllFromEtcdServer
Timo Tijhof [Sun, 23 Jul 2017 01:24:33 +0000 (18:24 -0700)]
config: Add tests for EtcdConfig::fetchAllFromEtcdServer

Follows-up 9b459d29e0110a21ea18.

Bug: T156924
Change-Id: Ib68c55ea3386a12e707f6d7d732da9fe727ccc2f

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 agoUserPager: Use multiple checkboxes instead of multiselect
Prateek Saxena [Sun, 23 Jul 2017 00:40:42 +0000 (06:10 +0530)]
UserPager: Use multiple checkboxes instead of multiselect

The URL from the serialized form was something like:

    &wpoptions%5B%5D=editsOnly

whereas we needed:

    &editsOnly=1

Bug: T171332
Change-Id: Iaec223195e121dab83b5605a3dfaffa8e1f93684

6 years agoconfig: Complete coverage for Config class
Timo Tijhof [Sun, 23 Jul 2017 00:33:16 +0000 (17:33 -0700)]
config: Complete coverage for Config class

* Fix @covers for testSalvage and testGetConfigNames.
* Add missing coverage for registering an object directly.

Change-Id: Ib42b8333a1716d2a4747c25ab3f6cd795e546f3e

6 years agophpunit: Remove skins/ from coverage index
Timo Tijhof [Sun, 23 Jul 2017 00:23:24 +0000 (17:23 -0700)]
phpunit: Remove skins/ from coverage index

As of a few releases ago, there are no longer any skins in core
in that directory (base classes and fallback are under includes/).

Removing this makes running phpunit coverage faster locally,
when there are skins installed. This should be excluded, similar
to how extensions/ is not indexed for the core report, either.

Change-Id: Idc01578bf22febc684dbcb7aeb9ec9475e930ae4

6 years agoCSSMin: Skip #default#behaviorName when detecting local files
Julien Girault [Thu, 27 Apr 2017 21:33:35 +0000 (14:33 -0700)]
CSSMin: Skip #default#behaviorName when detecting local files

Bug: T162973
Change-Id: If76869910f308f8a91c73f287e7e74c214f02e9b

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 agordbms: Complete DatabaseDomain code coverage
Timo Tijhof [Sat, 22 Jul 2017 03:05:48 +0000 (20:05 -0700)]
rdbms: Complete DatabaseDomain code coverage

Add missing coverage for:
* DatabaseDomain::equals()
* DatabaseDomain::newUnspecified()
* DatabaseDomain::__toString()

Change-Id: I38863c5652ec395e7194bfb85b3485e3343a3b7e

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 agoRCFilters: Don't empty the changes list on first load
Moriel Schottlender [Fri, 21 Jul 2017 21:50:30 +0000 (14:50 -0700)]
RCFilters: Don't empty the changes list on first load

jQuery.empty() apparently also unattaches event handlers.
Only empty before we re-append if we are not in the first
load of the changes list.

Bug: T171085
Change-Id: I68754e99a6c5c821be47b1b1e8e22f23db85746c

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