lhc/web/wiklou.git
6 years agoMerge "Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat"
jenkins-bot [Fri, 8 Dec 2017 17:26:35 +0000 (17:26 +0000)]
Merge "Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat"

6 years agoFix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat
Brad Jorsch [Fri, 8 Dec 2017 16:55:52 +0000 (11:55 -0500)]
Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat

When this test was added in Ifb2e392d3, it did not pass the correct
number of arguments to ApiFormatXml::recXmlPrint().

Bug: T182368
Change-Id: I63aee08307054137c6b50b6fbd271e03f6d4e45f

6 years agoAdd quotes to comment based strip markers
Phantom42 [Fri, 8 Dec 2017 14:58:04 +0000 (16:58 +0200)]
Add quotes to comment based strip markers

Bug: T180159
Change-Id: Ic9dbb8ef3948fe751d16c3963769b616b5db2fc7

6 years agoAdd overlay to list of changes
petarpetkovic [Tue, 7 Nov 2017 16:55:37 +0000 (17:55 +0100)]
Add overlay to list of changes

- Prevent users from accidentally clicking links on filtered results,
when RCFilters dropdown menu is opened, by adding overlay which closes
dropdown menu.
- Introduce MainWrapperWidget, to factor out some of the logic from
the init file.

Bug: T177626
Change-Id: Id55702ecbe6b96ee57453d4f86f20bd94a401d7c

6 years agoMerge "Fix maintenance script failure when run as a child of a FastCGI worker"
jenkins-bot [Fri, 8 Dec 2017 05:13:15 +0000 (05:13 +0000)]
Merge "Fix maintenance script failure when run as a child of a FastCGI worker"

6 years agoFix maintenance script failure when run as a child of a FastCGI worker
Tim Starling [Fri, 8 Dec 2017 04:34:23 +0000 (15:34 +1100)]
Fix maintenance script failure when run as a child of a FastCGI worker

Use PHP_SAPI==cli instead of checking $_SERVER['REQUEST_METHOD'],
since $_SERVER is populated from the environment when running HHVM in
CLI mode. Environment variables set by a FastCGI worker thus leak
through to child processes run via the shell, and cause this check to
fail.

When I wrote this check in March 2004 (r2803), I didn't know about
PHP_SAPI. Checking PHP_SAPI is quite sufficient to prevent web execution,
we use it in other places.

Bug: T111441
Change-Id: Iad8469ee25df4b0e0c2371e7975a300b1695dd8d

6 years agoMerge "Preferences: Display the default skin first in the list"
jenkins-bot [Fri, 8 Dec 2017 02:24:38 +0000 (02:24 +0000)]
Merge "Preferences: Display the default skin first in the list"

6 years agoMerge "Preferences: Sort list of skins by internal name"
jenkins-bot [Fri, 8 Dec 2017 02:20:27 +0000 (02:20 +0000)]
Merge "Preferences: Sort list of skins by internal name"

6 years agoMerge "Make travis test against PHP 7.2"
jenkins-bot [Fri, 8 Dec 2017 02:18:36 +0000 (02:18 +0000)]
Merge "Make travis test against PHP 7.2"

6 years agoMerge "Fix missing if from $wgDBssl comment"
jenkins-bot [Fri, 8 Dec 2017 02:18:13 +0000 (02:18 +0000)]
Merge "Fix missing if from $wgDBssl comment"

6 years agoFix missing if from $wgDBssl comment
Reedy [Fri, 8 Dec 2017 01:34:34 +0000 (01:34 +0000)]
Fix missing if from $wgDBssl comment

Change-Id: I46d1a87c990198090fd322da3193014487e871e6

6 years agoMerge "Add custom collation for Northern Sami"
jenkins-bot [Fri, 8 Dec 2017 00:16:41 +0000 (00:16 +0000)]
Merge "Add custom collation for Northern Sami"

6 years agoMake travis test against PHP 7.2
Reedy [Thu, 7 Dec 2017 23:10:17 +0000 (23:10 +0000)]
Make travis test against PHP 7.2

Change-Id: I3e77c383486550e116b4630b56d255ec6c043e2d

6 years agoMerge "SpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn"
jenkins-bot [Thu, 7 Dec 2017 22:13:22 +0000 (22:13 +0000)]
Merge "SpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn"

6 years agoSpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn
Fomafix [Sun, 3 Dec 2017 19:24:11 +0000 (20:24 +0100)]
SpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn

The two-column layout has on skin Timeless currently a different top
margin on the first and on the second column. This change fixes this.

Bug: T181947
Change-Id: If995845c6cab58fe24b1d9b7859c0614db75ceb7

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 7 Dec 2017 21:38:17 +0000 (22:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I42ccf64af59b022731649b95edd0f6eff33146e6

6 years agoAdd custom collation for Northern Sami
jhsoby [Thu, 7 Dec 2017 13:47:24 +0000 (14:47 +0100)]
Add custom collation for Northern Sami

This commit adds a custom collation order for
Northern Sami ('se'). Northern Sami exists in ICU,
but the version of ICU that Wikimedia uses is a
few years old, and does *not* include Northern
Sami. It could be years before Wikimedia's production
servers use the one that includes Northern Sami (see
bug), so this is a temporary workaround to amend this
issue.

Bug: T181503
Change-Id: Ib8a48b8db99bef8ec4b05144aace5dbdcacfeded

6 years agoMerge "Changed Instances of rawParams() to plaintextParams()"
jenkins-bot [Thu, 7 Dec 2017 20:36:29 +0000 (20:36 +0000)]
Merge "Changed Instances of rawParams() to plaintextParams()"

6 years agoChanged Instances of rawParams() to plaintextParams()
ryan10145 [Thu, 7 Dec 2017 02:54:03 +0000 (21:54 -0500)]
Changed Instances of rawParams() to plaintextParams()

Bug: T182213
Change-Id: Ibf24dee5ea19092e8a38e57f34c98f513d4c9b21

6 years agoPreferences: Display the default skin first in the list
Bartosz Dziewoński [Thu, 7 Dec 2017 18:56:48 +0000 (19:56 +0100)]
Preferences: Display the default skin first in the list

Bug: T181112
Change-Id: If3de084b2a5f214f7d6d05b86daed151a23678a4

6 years agoPreferences: Sort list of skins by internal name
Bartosz Dziewoński [Thu, 7 Dec 2017 18:37:08 +0000 (19:37 +0100)]
Preferences: Sort list of skins by internal name

Sort by the internal name, so that the ordering is the same for each
display language, especially if some skin names are translated to use
a different alphabet and some are not.

Bug: T181112
Change-Id: I763150cc578e9aa70990a53895c032f17d96e97a

6 years agoMerge "Fix "Save current filter settings" menu and legend overlap"
jenkins-bot [Thu, 7 Dec 2017 18:25:38 +0000 (18:25 +0000)]
Merge "Fix "Save current filter settings" menu and legend overlap"

6 years agoMerge "GitInfo: Fix shell restrictions for submodules"
jenkins-bot [Thu, 7 Dec 2017 18:10:40 +0000 (18:10 +0000)]
Merge "GitInfo: Fix shell restrictions for submodules"

6 years agoMerge "WLFilters: Correctly check if RCFilters should be enabled on WL"
jenkins-bot [Thu, 7 Dec 2017 16:31:41 +0000 (16:31 +0000)]
Merge "WLFilters: Correctly check if RCFilters should be enabled on WL"

6 years agoImageListPager: Don't stomp on $join_conds
Brad Jorsch [Thu, 7 Dec 2017 15:14:35 +0000 (10:14 -0500)]
ImageListPager: Don't stomp on $join_conds

When adding a join to the oldimage table to get counts, don't stomp on
any existing values in $join_conds. Just add the condition.

Bug: T182245
Change-Id: I4cd3332355f9974bdf35dc083be5bba537fcfb5f

6 years agoMerge "RCFilters: Set up conditional views for RCLinked"
jenkins-bot [Thu, 7 Dec 2017 14:02:29 +0000 (14:02 +0000)]
Merge "RCFilters: Set up conditional views for RCLinked"

6 years agoWLFilters: Correctly check if RCFilters should be enabled on WL
Stephane Bisson [Thu, 7 Dec 2017 13:26:02 +0000 (08:26 -0500)]
WLFilters: Correctly check if RCFilters should be enabled on WL

Side-effect of Ib933de3a3f9e876924386e80f315506f60f8af54

ChangesListSpecialPage#isStructuredFilterUiEnabled needs
to call static::checkStructuredFilterUiEnabled() to reach
the implementation from SpecialWatchlist.

Bug: T182318
Change-Id: I1e90d7e29f9e7fc5acece6466ed818210058dd2c

6 years agoMerge "placeholder-message for html form should be ->text() not ->parse()"
jenkins-bot [Thu, 7 Dec 2017 07:14:11 +0000 (07:14 +0000)]
Merge "placeholder-message for html form should be ->text() not ->parse()"

6 years agoLocalSettingsGenerator: Fix typo in exception message
Hoto Cocoa [Thu, 7 Dec 2017 06:06:13 +0000 (15:06 +0900)]
LocalSettingsGenerator: Fix typo in exception message

Change-Id: I61fe67468eec659f312fb9aa4c20ec9bf083e78b

6 years agoMerge "Always return a string from Language::formatNum()"
jenkins-bot [Thu, 7 Dec 2017 06:12:17 +0000 (06:12 +0000)]
Merge "Always return a string from Language::formatNum()"

6 years agoAlways return a string from Language::formatNum()
Sam Wilson [Wed, 6 Dec 2017 22:55:08 +0000 (06:55 +0800)]
Always return a string from Language::formatNum()

It says it returns a string, and so it should.

Bug: T182277
Change-Id: Ic68c65c634c2557a1d07281623cd6c971b000323

6 years agoRCFilters: Set up conditional views for RCLinked
Moriel Schottlender [Thu, 7 Dec 2017 00:40:36 +0000 (16:40 -0800)]
RCFilters: Set up conditional views for RCLinked

The views that are only meant for specific pages should be set up
conditionally only when we are in that specific page, to prevent
issues with saved queries or param overload.

Change-Id: Id0bf89ce397ff8a54ce0a30d1ba7d8f9bbdd14a3

6 years agoWikiPageTest: Fix typo in @covers
Kunal Mehta [Thu, 7 Dec 2017 04:19:25 +0000 (20:19 -0800)]
WikiPageTest: Fix typo in @covers

Change-Id: I3f3a3b2a1f5e5aed61cd71db17ae6a6a01fe2ecb

6 years agoFix "Save current filter settings" menu and legend overlap
petarpetkovic [Thu, 7 Dec 2017 02:06:48 +0000 (03:06 +0100)]
Fix "Save current filter settings" menu and legend overlap

Pass overlay to SaveFiltersPopupButtonWidget, so it gets onto same
stacking context as the rest of popup widgets.

Bug: T182269
Change-Id: I2c45f82840f651c39a0e572e003c82cbbd8c1c2e

6 years agoplaceholder-message for html form should be ->text() not ->parse()
Brian Wolff [Thu, 7 Dec 2017 01:42:24 +0000 (01:42 +0000)]
placeholder-message for html form should be ->text() not ->parse()

placeholder is an html attribute, it does not support arbitrary
html, so ->text() is most appropriate, not full parse.

Follow up d3cd609e

Change-Id: Ia2aa5a001e19ee90e99936ef4f0dc879f182999f

6 years agoMerge "RCLFilters: Make 'target' and 'to/from' sticky"
jenkins-bot [Wed, 6 Dec 2017 22:50:14 +0000 (22:50 +0000)]
Merge "RCLFilters: Make 'target' and 'to/from' sticky"

6 years agomedia: Ensure there ie enough data to extract software version
Sébastien Santoro [Thu, 12 Oct 2017 23:54:29 +0000 (23:54 +0000)]
media: Ensure there ie enough data to extract software version

The Software EXIF / other metadata field was expected to contain
the software name followed by the version number.

There are occurences in Wikimedia production logs of errors showing
that's not always the case.

Bug: T178130
Change-Id: I4187a41b5fd8d7b5574ab50523668d8feb11bccc

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 6 Dec 2017 21:07:58 +0000 (22:07 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6a56314c866bd36b92a85362bae533992a04df79

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 6 Dec 2017 21:01:19 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic9f1eafc6ea82af6eabedff7dea438f773a420cf

6 years agoRCLFilters: Make 'target' and 'to/from' sticky
Stephane Bisson [Wed, 6 Dec 2017 20:33:10 +0000 (15:33 -0500)]
RCLFilters: Make 'target' and 'to/from' sticky

Make these parameters sticky to exclude them
from Saved Queries and related features
(empty, restoreDefaults).

Bug: T172161
Change-Id: Ib8b3ecd34c6af9e0983573586485a9a9f503c060

6 years agoMerge "RCLFilters: UI tweaks"
jenkins-bot [Wed, 6 Dec 2017 19:47:13 +0000 (19:47 +0000)]
Merge "RCLFilters: UI tweaks"

6 years agoMerge "Prevent results from wiggling"
jenkins-bot [Wed, 6 Dec 2017 19:41:55 +0000 (19:41 +0000)]
Merge "Prevent results from wiggling"

6 years agoRCFilters: Reserve space between filters and results
petarpetkovic [Wed, 6 Dec 2017 17:56:23 +0000 (18:56 +0100)]
RCFilters: Reserve space between filters and results

- Add bottom margin to RCFilters head. There is no more reserved space
for "View newest changes" link, so we need to make sure we have enough
white space separator between head and results.

Bug: T182149
Change-Id: I592ab7bb1f12785d5bd802bb16f11b4e74fb26b7

6 years agoRCLFilters: UI tweaks
Stephane Bisson [Wed, 6 Dec 2017 12:05:24 +0000 (07:05 -0500)]
RCLFilters: UI tweaks

Follow-up to I96af7ba583d03e6ff9833ac3b5f4b80cfd0ee626

* Reword 'Recentchangeslinked-summary'
* Bold ToOrFrom selector label
* Bold 'FROM' in 'rcfilters-filter-showlinkedfrom-option-label'
* Bold 'TO' in 'rcfilters-filter-showlinkedto-option-label'
* Reword target page selector placeholder
* Prevent title suggestions from showing duplicate entries
* Show a specific message when there is no results
  because no target page is specified.

Bug: T172161
Change-Id: I1b1ee793b3eff4183039acc27fe6cca042ee57d0

6 years agoAdded file icon for mp3 files
Cormac Parle [Wed, 6 Dec 2017 16:10:47 +0000 (16:10 +0000)]
Added file icon for mp3 files

Bug: T182139
Change-Id: Ib834ef5b0bb15b3981288b2e711107830dcb5af8

6 years agoMerge "Allow wikilinks in "show/hide <type of change>" labels on Watchlist and Recent...
jenkins-bot [Wed, 6 Dec 2017 13:23:47 +0000 (13:23 +0000)]
Merge "Allow wikilinks in "show/hide <type of change>" labels on Watchlist and RecentChanges"

6 years agoMerge "Add missing @throws in Importers"
jenkins-bot [Wed, 6 Dec 2017 12:49:50 +0000 (12:49 +0000)]
Merge "Add missing @throws in Importers"

6 years agoAdd missing @throws in Importers
WMDE-Fisch [Tue, 14 Nov 2017 10:32:59 +0000 (11:32 +0100)]
Add missing @throws in Importers

Change-Id: I02760e59d73f4278cca87483ab4578b6e76b2324

6 years agoGet conflict results from diff3
WMDE-Fisch [Thu, 29 Dec 2016 14:08:54 +0000 (15:08 +0100)]
Get conflict results from diff3

This patch extends the global wfMerge function to also return the
result of the first merge attempt that detects merge conflicts.

The additional output explicitly names the conflicting lines and
could help when solving edit conflicts.

Bug: T151320
Change-Id: I97acebdc87b31779200c7fde4dd4449cd1ee8ead

6 years agoRevert "Support changing icon variants on hover"
VolkerE [Wed, 6 Dec 2017 00:33:35 +0000 (00:33 +0000)]
Revert "Support changing icon variants on hover"

This reverts commit 46c62ff5f474c6fe7a409863058e81bb678229b2. After reconsidering menu item treatment under UI Standardization perspective, we don't need and shouldn't use such pattern.

Bug: T110051
Change-Id: I0e8b6035f516e6629010b4f18471445c8833156e

6 years agoPrevent results from wiggling
petarpetkovic [Tue, 5 Dec 2017 22:12:51 +0000 (23:12 +0100)]
Prevent results from wiggling

The patch Ifecaaff572 introduces clearing to the right for the first
result list item, when grouping is disabled. The difference between
cleared vs non-cleared result becomes visible when legend is toggled,
causing really small (around a pixel), but annoying wiggle.

Change-Id: Ida6fb6f8ad0caf666258e3f1e770c6da9e24af58

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 5 Dec 2017 21:09:39 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3432086a7a800e4c50609eb2a20cca9c314725af

6 years agoTests for WikiPage::insertOn
addshore [Mon, 4 Dec 2017 16:09:54 +0000 (17:09 +0100)]
Tests for WikiPage::insertOn

Change-Id: I1bf7d19c4baaf0f720fcd6a1d9c16bf7489b5392

6 years agoTests for WikiPage::updateIfNewerOn
addshore [Mon, 4 Dec 2017 15:39:49 +0000 (16:39 +0100)]
Tests for WikiPage::updateIfNewerOn

This method is deprecated but due to refactoring
we should still test it.

Change-Id: I171ab731fff48ddd9fa54ef433881154377a2c7f

6 years agoTests for WikiPage::updateRevisionOn
addshore [Mon, 4 Dec 2017 15:31:57 +0000 (16:31 +0100)]
Tests for WikiPage::updateRevisionOn

Bug: T180989
Change-Id: I245d9d467e3113bf49e06ee5c725205d4225671a

6 years agoTest for WikiPge::insertProtectNullRevision
addshore [Mon, 4 Dec 2017 15:00:17 +0000 (16:00 +0100)]
Test for WikiPge::insertProtectNullRevision

Bug: T180989
Change-Id: Iffee0bbe9fb18bb6c7f7af10b6405007468ac0b9

6 years agoTests for WikiPage::newFromID
addshore [Mon, 4 Dec 2017 14:14:12 +0000 (15:14 +0100)]
Tests for WikiPage::newFromID

Bug: T180989
Change-Id: Idb4d7ce8ccc27226b0f00e2127acef6158dd32a9

6 years agoTest for WikiPage::newFromRow
addshore [Mon, 4 Dec 2017 14:03:41 +0000 (15:03 +0100)]
Test for WikiPage::newFromRow

Bug: T180989
Change-Id: If630e3e3561ac2017a2b7c82ade842e86f8cb22e

6 years agoImprove phpdoc of 'OldRestrictions' in Title
addshore [Mon, 4 Dec 2017 13:29:14 +0000 (14:29 +0100)]
Improve phpdoc of 'OldRestrictions' in Title

The previous version of the phpdoc simply says
that the field contains a comma seperated list of
page restrictions, which is wrong.
The field is actually a colon seperated list of comma
seperated lists.

The new phpdoc and example have been pulled from mw.org
and checked against what actually exists in a real db.

Change-Id: I6bfdfd87120150e4b53e1b4c49e95041f55d8c97

6 years agoMerge "Tests for WikiPage::insertRedirectEntry"
jenkins-bot [Tue, 5 Dec 2017 19:23:56 +0000 (19:23 +0000)]
Merge "Tests for WikiPage::insertRedirectEntry"

6 years agoMerge "RCLFilters: Show images and descriptions with page suggestions"
jenkins-bot [Tue, 5 Dec 2017 18:12:25 +0000 (18:12 +0000)]
Merge "RCLFilters: Show images and descriptions with page suggestions"

6 years agoMerge "ImagePage: Make metadata table's initial collapse CSS-only"
jenkins-bot [Tue, 5 Dec 2017 17:38:29 +0000 (17:38 +0000)]
Merge "ImagePage: Make metadata table's initial collapse CSS-only"

6 years agoMerge "Absolutely position "legend" on grouped results"
jenkins-bot [Tue, 5 Dec 2017 17:24:48 +0000 (17:24 +0000)]
Merge "Absolutely position "legend" on grouped results"

6 years agoMerge "Warn for uploads with new name but same content as local file"
jenkins-bot [Tue, 5 Dec 2017 14:58:34 +0000 (14:58 +0000)]
Merge "Warn for uploads with new name but same content as local file"

6 years agoMerge "ImagePage: Clean up metadata.js collapsing"
jenkins-bot [Tue, 5 Dec 2017 14:50:10 +0000 (14:50 +0000)]
Merge "ImagePage: Clean up metadata.js collapsing"

6 years agoRCLFilters: Show images and descriptions with page suggestions
Stephane Bisson [Tue, 5 Dec 2017 13:43:05 +0000 (08:43 -0500)]
RCLFilters: Show images and descriptions with page suggestions

Bug: T172161
Change-Id: I1a5501eefdb721367436db50be0787c8f6a78d47

6 years agoMerge "RCFilters: Update invert URL param when toggled"
jenkins-bot [Tue, 5 Dec 2017 11:49:33 +0000 (11:49 +0000)]
Merge "RCFilters: Update invert URL param when toggled"

6 years agoMerge "RCLFilters: convert related changes tool to new UX"
jenkins-bot [Tue, 5 Dec 2017 11:46:45 +0000 (11:46 +0000)]
Merge "RCLFilters: convert related changes tool to new UX"

6 years agoMerge "RCFilters: Clarify 'hidden' and 'sticky' filters"
jenkins-bot [Tue, 5 Dec 2017 11:46:41 +0000 (11:46 +0000)]
Merge "RCFilters: Clarify 'hidden' and 'sticky' filters"

6 years agoMerge "RCFilters: Make 'days' and 'limit' sticky"
jenkins-bot [Tue, 5 Dec 2017 11:46:36 +0000 (11:46 +0000)]
Merge "RCFilters: Make 'days' and 'limit' sticky"

6 years agoTests for WikiPage::insertRedirectEntry
addshore [Mon, 4 Dec 2017 12:59:15 +0000 (13:59 +0100)]
Tests for WikiPage::insertRedirectEntry

Bug: T180989
Change-Id: I677202b22594c7fc8fcf97b805ae69726945f96d

6 years agoImagePage: Make metadata table's initial collapse CSS-only
Timo Tijhof [Tue, 5 Dec 2017 00:09:06 +0000 (00:09 +0000)]
ImagePage: Make metadata table's initial collapse CSS-only

Make the initial collapse of the metadata table not depend on
JavaScript. This eliminates the FOUC, and will also reduce JS
footprint once compat can be removed.

* Move the 'display: none;' styles from metadata.css to
  filepage.css so that they are part of the base styles for
  file pages (metadata.css is only for supporting metadata.js,
  which is loaded dynamically).

* Apply "collapsed" class from the PHP side immediately,
  instead of calling "addClass" in JavaScript.

* Restrict hide-styles to only apply under .client-js to make
  sure the rows remain visible in no-js mode.

* Declare dependency between metadata.js and filepage.css.
  This is just for documentation purposes, as they are both
  already separately loaded on all file pages.

Change-Id: If22bf7acb47b59151dc3b0843a62507c100e548b

6 years agoImagePage: Clean up metadata.js collapsing
Timo Tijhof [Mon, 4 Dec 2017 23:50:06 +0000 (23:50 +0000)]
ImagePage: Clean up metadata.js collapsing

In preparation for trying out a CSS-only approach for the initial
collapse that doesn't cause the expanded view to flash first.

Bug: T182047
Change-Id: I42941ccb05d5525599a0209f0f33db9fe836580b

6 years agoRCFilters: Update invert URL param when toggled
Moriel Schottlender [Tue, 5 Dec 2017 00:39:01 +0000 (16:39 -0800)]
RCFilters: Update invert URL param when toggled

Bug: T182045
Change-Id: Ia9a8afb336305969ac8b5c2e7ffab146844ad9ee

6 years agoMerge "API: Account for PHP 7.2 change"
jenkins-bot [Tue, 5 Dec 2017 00:06:19 +0000 (00:06 +0000)]
Merge "API: Account for PHP 7.2 change"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 4 Dec 2017 21:23:14 +0000 (22:23 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib8affd4b492c3be56458b54d28e4c02cb7ecfc9c

6 years agoRCLFilters: convert related changes tool to new UX
Stephane Bisson [Wed, 6 Sep 2017 10:28:05 +0000 (06:28 -0400)]
RCLFilters: convert related changes tool to new UX

Bug: T172161
Change-Id: I96af7ba583d03e6ff9833ac3b5f4b80cfd0ee626

6 years agoMerge "A few doc comment fixups"
jenkins-bot [Mon, 4 Dec 2017 20:22:10 +0000 (20:22 +0000)]
Merge "A few doc comment fixups"

6 years agoAllow wikilinks in "show/hide <type of change>" labels on Watchlist and RecentChanges
Pppery [Sun, 3 Dec 2017 03:34:12 +0000 (22:34 -0500)]
Allow wikilinks in "show/hide <type of change>" labels on Watchlist and RecentChanges

This is done by treating the messages as wikitext rather than plain
text

Bug: T142406
Change-Id: I5342b9491df47bbb549e91ebba9d0a8b273a7d17

6 years agoMerge "Test for WikiPage::updateRedirectOn"
jenkins-bot [Mon, 4 Dec 2017 19:09:47 +0000 (19:09 +0000)]
Merge "Test for WikiPage::updateRedirectOn"

6 years agoMerge "Add test for WikiPage::updateCategoryCounts"
jenkins-bot [Mon, 4 Dec 2017 19:05:29 +0000 (19:05 +0000)]
Merge "Add test for WikiPage::updateCategoryCounts"

6 years agoMerge "Refactor test for WikiPage::doRollback"
jenkins-bot [Mon, 4 Dec 2017 18:59:06 +0000 (18:59 +0000)]
Merge "Refactor test for WikiPage::doRollback"

6 years agoMerge "WikiPage tests @covers for doDeleteArticleReal & commitRollback"
jenkins-bot [Mon, 4 Dec 2017 18:59:01 +0000 (18:59 +0000)]
Merge "WikiPage tests @covers for doDeleteArticleReal & commitRollback"

6 years agoMerge "Split WikiPageTest into ContentHandler & NoContentHandler tests"
jenkins-bot [Mon, 4 Dec 2017 18:55:16 +0000 (18:55 +0000)]
Merge "Split WikiPageTest into ContentHandler & NoContentHandler tests"

6 years agoAPI: Account for PHP 7.2 change
Brad Jorsch [Mon, 4 Dec 2017 18:36:48 +0000 (13:36 -0500)]
API: Account for PHP 7.2 change

PHP 7.2 broke existing functionality in making count( null ) raise a
warning. So add tests for null all over the place, or change tests where
we know the value is null or an array (but not false, empty-string, or
0) to just cast to boolean.

Bug: T182004
Change-Id: Idfe23a07daa9f60eee72f2daf04304be87057a29

6 years agoMerge "objectcache: various cleanups to WANObjectCache"
jenkins-bot [Mon, 4 Dec 2017 18:38:09 +0000 (18:38 +0000)]
Merge "objectcache: various cleanups to WANObjectCache"

6 years agoMerge "Replace some Special:Undelete button with OOUI ones"
jenkins-bot [Mon, 4 Dec 2017 18:25:29 +0000 (18:25 +0000)]
Merge "Replace some Special:Undelete button with OOUI ones"

6 years agoReplace some Special:Undelete button with OOUI ones
Albert221 [Mon, 4 Dec 2017 16:43:29 +0000 (17:43 +0100)]
Replace some Special:Undelete button with OOUI ones

Bug: T180207
Change-Id: Icb550a6ad8f90d7718441ec17a1026a2cfb9d754

6 years agoRCFilters: Clarify 'hidden' and 'sticky' filters
Stephane Bisson [Fri, 3 Nov 2017 20:20:10 +0000 (16:20 -0400)]
RCFilters: Clarify 'hidden' and 'sticky' filters

Clarify the meaning and behavior of sticky and hidden filters
according to the following definitions:

When 'sticky' is false, the filter is saved in Saved Queries. Its
state is considered and altered by the 'Clear all filters' and
'Restore default filters' buttons.

When 'sticky' is true, the filter state is only changed using its
associated control (i.e. Number of days selector).

'hidden' simply means it is not shown as a capsule in the active
filters area.

Change-Id: I7ccb7c202e21917eb288055c509c9f904a0d01bb

6 years agoMerge "Only send statsd data for WAN cache in non-CLI mode"
jenkins-bot [Mon, 4 Dec 2017 17:31:48 +0000 (17:31 +0000)]
Merge "Only send statsd data for WAN cache in non-CLI mode"

6 years agoMerge "Remove unuseful debug messages"
jenkins-bot [Mon, 4 Dec 2017 16:00:21 +0000 (16:00 +0000)]
Merge "Remove unuseful debug messages"

6 years agoAbsolutely position "legend" on grouped results
petarpetkovic [Wed, 29 Nov 2017 15:28:36 +0000 (16:28 +0100)]
Absolutely position "legend" on grouped results

- When results are grouped by page, on pages where new RC filters
are enabled, apply position: absolute to legend, to avoid top
result entries being pushed too much.

Bug: T174728
Change-Id: Ifecaaff5727905b3c4e860555ba094f71aac6f80

6 years agoTest for WikiPage::updateRedirectOn
addshore [Mon, 4 Dec 2017 12:11:26 +0000 (13:11 +0100)]
Test for WikiPage::updateRedirectOn

Bug: T180989
Change-Id: I798ded72142503e52395b45fe9ec71a215d5ab92

6 years agoRemove unuseful debug messages
Niklas Laxström [Mon, 4 Dec 2017 10:12:51 +0000 (11:12 +0100)]
Remove unuseful debug messages

I spotted one of these in my debug log. Without context it is not
useful nor informative. Given it can actually come from three places,
it is useless.

Change-Id: Ic293d8944e9a1a8152c5a5e0b695c5ddc07ee6aa

6 years agoAdd test for WikiPage::updateCategoryCounts
addshore [Thu, 30 Nov 2017 18:23:01 +0000 (19:23 +0100)]
Add test for WikiPage::updateCategoryCounts

Bug: T180989
Change-Id: Iff4bb885e5d385a7b3ec6169ee9a3e1e82d7d993

6 years agoRefactor test for WikiPage::doRollback
addshore [Tue, 28 Nov 2017 14:04:01 +0000 (14:04 +0000)]
Refactor test for WikiPage::doRollback

This test was not running and a comment said
it was broken.
This patch refactors the test.

Bug: T180989
Change-Id: I46b73371e5fd65860fce6cc101bad6abfa20e91d

6 years agoWikiPage tests @covers for doDeleteArticleReal & commitRollback
addshore [Tue, 28 Nov 2017 13:41:07 +0000 (13:41 +0000)]
WikiPage tests @covers for doDeleteArticleReal & commitRollback

Bug: T180989
Change-Id: I70dcad9d527be4d91a88a14fe9787c53a7cf7d2f

6 years agoSplit WikiPageTest into ContentHandler & NoContentHandler tests
addshore [Mon, 27 Nov 2017 14:39:20 +0000 (14:39 +0000)]
Split WikiPageTest into ContentHandler & NoContentHandler tests

Follow up to Iccdcd4a4f72c8b1329d36ff2e8699ba6b23c9ae7

Bug: T180989
Change-Id: Ib37a058586c7222ffe3ee5dc5f0e134ee18f0ff7

6 years agoFix phpdoc for WikiPage::updateRedirectOn $redirectTitle param
addshore [Mon, 4 Dec 2017 09:43:01 +0000 (10:43 +0100)]
Fix phpdoc for WikiPage::updateRedirectOn $redirectTitle param

Change-Id: I8e666db2a7502bd1773252aa71db47819f63f08b

6 years agoA few doc comment fixups
Tim Starling [Fri, 1 Dec 2017 10:02:26 +0000 (21:02 +1100)]
A few doc comment fixups

* Remove some creation dates, they are not protected by GPL
* Remove duplicate @defgroup API
* Remove @ingroup from some @file doc comments on class files. It is not
  useful to list class files alongside classes in the doxygen module menu.
  Add @ingroup to some more class files that had @ingroup on their file,
  that was probably the author's intent.
* In PackedOverlayImageGallery, use the file comment as a class comment
* Don't put @defgroup and @file in the same comment. @defgroup makes the
  whole doc comment describe the group.
* Instead of putting AnsiTermColorer in two groups, use hierarchical
  groups.

Change-Id: If54f6e0b2bc1ea6de42045885cf836ee67b8e961