lhc/web/wiklou.git
6 years agoTitle: Make getOtherPage() check canHaveTalkPage()
Kunal Mehta [Tue, 29 Aug 2017 19:53:53 +0000 (12:53 -0700)]
Title: Make getOtherPage() check canHaveTalkPage()

Practically this doesn't make any difference, but once it's possible for
namespaces to not have talk pages, this function would have returned an
invalid Title.

Bug: T165149
Change-Id: I940433c22193d406d8b4a6cab0e6ad37e88e62c6

6 years agoAvoid using deprecated Title::canTalk()
Kunal Mehta [Tue, 29 Aug 2017 19:36:33 +0000 (12:36 -0700)]
Avoid using deprecated Title::canTalk()

Change-Id: Ibd224f9de595435524e683262882c9ebf2761abf

6 years agoMerge "Rename IP::isValidBlock to isValidRange, deprecating the former"
jenkins-bot [Tue, 29 Aug 2017 18:50:15 +0000 (18:50 +0000)]
Merge "Rename IP::isValidBlock to isValidRange, deprecating the former"

6 years agoMerge "Get better error message for duplicate names in MagicWordArray"
jenkins-bot [Tue, 29 Aug 2017 18:50:11 +0000 (18:50 +0000)]
Merge "Get better error message for duplicate names in MagicWordArray"

6 years agoRename IP::isValidBlock to isValidRange, deprecating the former
MusikAnimal [Wed, 23 Aug 2017 00:07:35 +0000 (20:07 -0400)]
Rename IP::isValidBlock to isValidRange, deprecating the former

This is to remove confusion with the MediaWiki Block class.

All instances of isValidBlock within MediaWiki core have been updated.

Usage of this function will be more widespread with this patch:
https://gerrit.wikimedia.org/r/#/c/349457/

Change-Id: Ice1bdae3d16cf365da14c6df0e8d91d2b914e067

6 years agoConvert UNIQUE keys into PRIMARY KEY
Reedy [Fri, 4 Aug 2017 12:43:50 +0000 (14:43 +0200)]
Convert UNIQUE keys into PRIMARY KEY

WMF DBAs have been doing a massive effort to convert UNIQUE KEYS into
PRIMARY KEY.

Having a PK is essential to do maintenance, specially on large tasks.
By not having a PK it is impossible to add it in a safe way if not done
directly on the master.

Having a PK means that we can easily change the PK into another one if
needed in the future. The ones we chose might not be the best ones, but
will allow us to get them changed.

Bug: T172514
Change-Id: Id635297838938c7c5dfe65d45285a4d16d65152d

6 years agoMerge "RCFilters: Target pushPin icon for size, not all icons"
jenkins-bot [Tue, 29 Aug 2017 12:27:26 +0000 (12:27 +0000)]
Merge "RCFilters: Target pushPin icon for size, not all icons"

6 years agoMerge "Run Selenium tests for skins"
jenkins-bot [Tue, 29 Aug 2017 10:44:35 +0000 (10:44 +0000)]
Merge "Run Selenium tests for skins"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 29 Aug 2017 06:13:33 +0000 (08:13 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I31af5076f228c31072f4fca54e049eb4cf54feb0

6 years agoMerge "WLFilters: set default values"
jenkins-bot [Tue, 29 Aug 2017 00:50:06 +0000 (00:50 +0000)]
Merge "WLFilters: set default values"

6 years agoRCFilters: Target pushPin icon for size, not all icons
Moriel Schottlender [Mon, 28 Aug 2017 22:31:23 +0000 (15:31 -0700)]
RCFilters: Target pushPin icon for size, not all icons

Whoops.

Bug: T173264
Change-Id: Icb92c55a5b067d77138bae93f4db96309c72a223

6 years agoEnable mediawiki.hlist on mobile
jdlrobson [Mon, 28 Aug 2017 21:14:37 +0000 (16:14 -0500)]
Enable mediawiki.hlist on mobile

Bug: T42062
Change-Id: Iee059a6605cf12a073954378f49ddc721a7e016a

6 years agoRCFilters: Minimize saved query before comparison
Moriel Schottlender [Mon, 28 Aug 2017 20:06:31 +0000 (13:06 -0700)]
RCFilters: Minimize saved query before comparison

Bug: T174193
Change-Id: I8e9345e8899fd27565930896e62c4d3be235ad58

6 years agoMerge "EditPage: Remove temporary OOUI page class name"
jenkins-bot [Mon, 28 Aug 2017 18:45:01 +0000 (18:45 +0000)]
Merge "EditPage: Remove temporary OOUI page class name"

6 years agoMerge "Making sister search sidebar links blue"
jenkins-bot [Mon, 28 Aug 2017 18:11:40 +0000 (18:11 +0000)]
Merge "Making sister search sidebar links blue"

6 years agoEnable mediawiki.special.userlogin.common.styles on mobile and allow skins to style it
jdlrobson [Fri, 18 Aug 2017 19:34:00 +0000 (14:34 -0500)]
Enable mediawiki.special.userlogin.common.styles on mobile and allow skins to style it

Depends-On: I0fe9efcf98bbd8e188d91a29d4cfda897d47808d
Bug: T173597
Change-Id: I36e596e4d6060ef168464732028cd0dcbf21d0f8

6 years agoWLFilters: set default values
Stephane Bisson [Mon, 21 Aug 2017 19:28:23 +0000 (15:28 -0400)]
WLFilters: set default values

* Respect different default values for 'limit' and 'day'
  in RC and WL.

* Make 'latestrevision' respect 'watchlistextended'

Introducing 2 properties to ChangesListBooleanFilter
* activeValue: The value that defines when a filter is active.
  Most filters are active when they are set to 'true' but
  'extended' has no effect when it is 'true' and applies
  filtering when it is set to false.

* isVisible: Whether this filter is visible anywhere.
  'extended' is not visible in the legacy form but
  it is activated from preference or URL. When
  understanding form submission, it should not be assume
  to be 'false' when not present in the request.

Bug: T171134
Change-Id: I3e48a9f2d9b70f0b9f6d7c6329db9c8e8001ee49

6 years agoMerge "Consistent behavior of read-only reason"
jenkins-bot [Mon, 28 Aug 2017 16:36:24 +0000 (16:36 +0000)]
Merge "Consistent behavior of read-only reason"

6 years agoMerge "RCFilters: Adjust highlight for seen/unseen states in Watchlist"
jenkins-bot [Mon, 28 Aug 2017 16:05:56 +0000 (16:05 +0000)]
Merge "RCFilters: Adjust highlight for seen/unseen states in Watchlist"

6 years agoConsistent behavior of read-only reason
Florian Schmidt [Sat, 19 Aug 2017 16:21:40 +0000 (18:21 +0200)]
Consistent behavior of read-only reason

Before this commit, the reason set in the global $wgReadOnly was differently handled
on different special pages. While on most of them, like Special:Upload, the reason
is allowed to have HTML, which can be used in Wikitext, too, Special:CreateAccount
always outputted an escaped version of this reason.

Most special pages uses the ReadOnlyError exception to print a read-only error,
however, AuthManager uses Status objects to communicate between the backend and the
frontend. Therefore the same message and parameters were wrapped in a Status object
and, in the frontend, directly passed to the constructor of ErrorPageError. Unfortunately,
Status::getMessage() escapes the parameters of a message, which is the reason, why the
wiki is read-only. To bypass this restriction, AuthManager now creates a Message object
directly, does not escape the reason, and uses the resulting object to create a Status
object from.

Now the reason is not escaped on Special:CreateAccount anymore, like on most other
special pages.

The read-only message on the protection form is, also before this commit, not escaped and
already displayed correctly, as the read-only is checked in the constructor of the
protection form already and, if the Wiki is read only, handled as a permission error and
already displayed correctly. This commit fixes the behavior of WikiPage in case of it's used
somewhere else, subclassed or if the check in the frontend will be removed and the Status of
WikiPage will be used.

Bug: T157036
Change-Id: Idbfe556fcb90f8bda8fae9d728ca9dee5ea02f67

6 years agoRCFilters: Adjust highlight for seen/unseen states in Watchlist
Moriel Schottlender [Sat, 26 Aug 2017 01:02:48 +0000 (18:02 -0700)]
RCFilters: Adjust highlight for seen/unseen states in Watchlist

Bug: T171235
Change-Id: I33d059d2be83e4730e6dc82f689f49a514286874

6 years agoMerge "Add Atayal (tay) language"
jenkins-bot [Mon, 28 Aug 2017 13:33:06 +0000 (13:33 +0000)]
Merge "Add Atayal (tay) language"

6 years agoMerge "Produce RDF dump of all categories and subcategories in a wiki."
jenkins-bot [Mon, 28 Aug 2017 11:01:57 +0000 (11:01 +0000)]
Merge "Produce RDF dump of all categories and subcategories in a wiki."

6 years agoMerge "postEdit: Generate close button with CSS instead of HTML"
jenkins-bot [Mon, 28 Aug 2017 10:17:29 +0000 (10:17 +0000)]
Merge "postEdit: Generate close button with CSS instead of HTML"

6 years agoMerge "postEdit: Simplify close button"
jenkins-bot [Mon, 28 Aug 2017 10:16:38 +0000 (10:16 +0000)]
Merge "postEdit: Simplify close button"

6 years agoMerge "widgets: Replace outdated colors with WikimediaUI palette ones"
jenkins-bot [Mon, 28 Aug 2017 10:04:21 +0000 (10:04 +0000)]
Merge "widgets: Replace outdated colors with WikimediaUI palette ones"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Aug 2017 07:34:35 +0000 (09:34 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If6db589c4d0fdbff5c23ab467424a1f7e9cdaa6f

6 years agoProduce RDF dump of all categories and subcategories in a wiki.
Stanislav Malyshev [Fri, 16 Dec 2016 22:48:46 +0000 (14:48 -0800)]
Produce RDF dump of all categories and subcategories in a wiki.

Example:
http://en.wiki.local.wmftest.net:8080/wiki/Category:Ducks> a mediawiki:Category ;
        rdfs:label "Ducks" ;
        mediawiki:isInCategory <http://en.wiki.local.wmftest.net:8080/wiki/Category:Birds> .

Bug: T157676
Change-Id: I59b9603581b37af59d17dd6c38247c85aee44911

6 years agoAdd 1.27.3 to RELEASE-NOTES
Reedy [Sun, 27 Aug 2017 23:11:09 +0000 (00:11 +0100)]
Add 1.27.3 to RELEASE-NOTES

Change-Id: I56fddd375352ad42a315bc078e33edde50bdae66

6 years agopostEdit: Generate close button with CSS instead of HTML
Fomafix [Sun, 27 Aug 2017 17:35:11 +0000 (19:35 +0200)]
postEdit: Generate close button with CSS instead of HTML

Also remove :hover for cursor:pointer because cursor:pointer is always
shown on hovering.

Change-Id: Ib44f927a1764f703a8c31af363ebd5a8fca27375

6 years agopostEdit: Simplify close button
Fomafix [Sun, 27 Aug 2017 16:45:25 +0000 (18:45 +0200)]
postEdit: Simplify close button

Use <span> instead of <a href="#"> for the close button. This makes
resetting the CSS style and the preventDefault() superfluous and
prevents open a new tab on middle click and does not show an
unnecessary status bar on hover.

Change-Id: I8c60aae454d64803686088f1dbe0228b1ecc70be

6 years agoMerge "importDump.php: Declare uploadCount property"
jenkins-bot [Sat, 26 Aug 2017 20:11:32 +0000 (20:11 +0000)]
Merge "importDump.php: Declare uploadCount property"

6 years agoimportDump.php: Declare uploadCount property
Mark A. Hershberger [Sat, 26 Aug 2017 15:28:01 +0000 (11:28 -0400)]
importDump.php: Declare uploadCount property

Bug: T174255
Change-Id: Ic5014821a8f10ab29b729104cd7d4e434085e2f2

6 years agoInstaller: Fix "Array to string conversion" notice
Mark A. Hershberger [Sat, 26 Aug 2017 16:53:44 +0000 (12:53 -0400)]
Installer: Fix "Array to string conversion" notice

PHP Notice: Array to string conversion in .../includes/installer/Installer.php on line 1392

Follows-up fd8d75c1fd26e.

Bug: T174258
Change-Id: I6f8497a74a83aec183684bcb441191c32c67ccde

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 Aug 2017 06:16:29 +0000 (08:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia6cbcd04a82a4dc499bed0f9e94502631d4820db

6 years agoMerge "Fix old regression in HTMLCacheUpdate de-duplication"
jenkins-bot [Fri, 25 Aug 2017 23:29:02 +0000 (23:29 +0000)]
Merge "Fix old regression in HTMLCacheUpdate de-duplication"

6 years agoMerge "Avoid preemptive DB replication waits for farm cross-wiki redirects"
jenkins-bot [Fri, 25 Aug 2017 23:13:52 +0000 (23:13 +0000)]
Merge "Avoid preemptive DB replication waits for farm cross-wiki redirects"

6 years agoFix old regression in HTMLCacheUpdate de-duplication
Aaron Schulz [Fri, 25 Aug 2017 22:47:01 +0000 (15:47 -0700)]
Fix old regression in HTMLCacheUpdate de-duplication

* The condition timestamp should be the root job timestamp,
  as the comments imply, though that was not the case. Only
  the SET timestamp should be the current timestamp. As it
  was, jobs effectively did not "see" each other since each
  one would be expecting newer than the ones that ran prior.
  The page_touched condition for the UPDATE query was mostly
  useless, since it was always the current timestamp.
* This problem was a regression from f598ca81e3f40166.

Change-Id: I1398366e87c959be1c98e4db959c41309b0ac1b8

6 years agoMerge "WLFilters: Fix seen/unseen filters"
jenkins-bot [Fri, 25 Aug 2017 19:56:52 +0000 (19:56 +0000)]
Merge "WLFilters: Fix seen/unseen filters"

6 years agoMerge "Improve some timeout docs"
jenkins-bot [Fri, 25 Aug 2017 19:56:48 +0000 (19:56 +0000)]
Merge "Improve some timeout docs"

6 years agoAdd Atayal (tay) language
Amire80 [Thu, 17 Aug 2017 13:29:04 +0000 (16:29 +0300)]
Add Atayal (tay) language

Bug: T173383
Change-Id: Id0607ca4a748f88476fefd081864b1282e9bcb8d

6 years agoMerge "Ignore npm-debug.log"
jenkins-bot [Fri, 25 Aug 2017 19:44:34 +0000 (19:44 +0000)]
Merge "Ignore npm-debug.log"

6 years agoMerge "SpecialPageLanguage: Show current page language in the dropdown"
jenkins-bot [Fri, 25 Aug 2017 19:34:10 +0000 (19:34 +0000)]
Merge "SpecialPageLanguage: Show current page language in the dropdown"

6 years agoIgnore npm-debug.log
Arlo Breault [Fri, 25 Aug 2017 19:21:44 +0000 (15:21 -0400)]
Ignore npm-debug.log

Change-Id: Ia984f7baa2aa94e00b7be712d5dc4846d29ede85

6 years agoMerge "WLFilters: avoid querying the DB when filters are in conflict"
jenkins-bot [Fri, 25 Aug 2017 17:24:46 +0000 (17:24 +0000)]
Merge "WLFilters: avoid querying the DB when filters are in conflict"

6 years agoRun Selenium tests for skins
Željko Filipin [Fri, 25 Aug 2017 14:51:05 +0000 (16:51 +0200)]
Run Selenium tests for skins

So far, only extension had Selenium tests, but now MinervaNeue skin also has them.

Bug: T174018
Change-Id: I6bac14f44e677cb0b1fdefc6474d08fb17a0b911

6 years agoWLFilters: Fix seen/unseen filters
Stephane Bisson [Fri, 25 Aug 2017 12:59:26 +0000 (08:59 -0400)]
WLFilters: Fix seen/unseen filters

Handle the fact that wl_notificationtimestamp
can be null.

Always join with 'page' table to support highlight.

Bug: T171127
Change-Id: I150a41b131d64163e06bfa56bddbd762bb636655

6 years agoImprove some timeout docs
addshore [Fri, 25 Aug 2017 10:02:04 +0000 (13:02 +0300)]
Improve some timeout docs

Change-Id: I799ea1e647d4d67a3c7d0e8dfddff893aef32736

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Aug 2017 06:44:10 +0000 (08:44 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9e46d4a2a740433b768ef2d07139829de8bd587f

6 years agoMerge "widgets.TitleWidget: Use mediawiki.mixins `.box-sizing()`"
jenkins-bot [Fri, 25 Aug 2017 00:49:26 +0000 (00:49 +0000)]
Merge "widgets.TitleWidget: Use mediawiki.mixins `.box-sizing()`"

6 years agoMerge "widgets.StashedFileWidget: Simplify and reduce LESS code"
jenkins-bot [Fri, 25 Aug 2017 00:29:53 +0000 (00:29 +0000)]
Merge "widgets.StashedFileWidget: Simplify and reduce LESS code"

6 years agowidgets.TitleWidget: Use mediawiki.mixins `.box-sizing()`
Volker E [Fri, 25 Aug 2017 00:27:07 +0000 (17:27 -0700)]
widgets.TitleWidget: Use mediawiki.mixins `.box-sizing()`

Using general `box-sizing()` mixin from mediawiki.mixins instead of
decentral vendor prefixes.

Change-Id: I844dc28a627dc984540e9a013dae188187c4f151

6 years agowidgets.StashedFileWidget: Simplify and reduce LESS code
Volker E [Fri, 25 Aug 2017 00:13:22 +0000 (17:13 -0700)]
widgets.StashedFileWidget: Simplify and reduce LESS code

Simplifying and reducing LESS code where applicable.

Change-Id: Ic0f138d33064b4c8f2bb6253a20012a3b577372b

6 years agoAdd sslCAFile option to DatabaseMysqli
Aaron Schulz [Thu, 24 Aug 2017 23:54:19 +0000 (16:54 -0700)]
Add sslCAFile option to DatabaseMysqli

This makes all arguments to the mysqli::set_ssl() call be controllable.

Change-Id: I67ed742add633a77e97d08b812e420a73cd83a52

6 years agowidgets: Replace outdated colors with WikimediaUI palette ones
Volker E [Thu, 24 Aug 2017 23:19:20 +0000 (16:19 -0700)]
widgets: Replace outdated colors with WikimediaUI palette ones

Replacing outdated colors in core widgets with WikimediaUI color
palette ones. Also increasing contrast in one case ensuring
WCAG 2.0 level AA conformance.

Bug: T172850
Change-Id: Ic7cf0842275529372cdfbfddad4eb63fec4847ce

6 years agoMerge "Disable rebound CDN purges for backlinks in HTMLCacheUpdateJob"
jenkins-bot [Thu, 24 Aug 2017 22:37:16 +0000 (22:37 +0000)]
Merge "Disable rebound CDN purges for backlinks in HTMLCacheUpdateJob"

6 years agoMerge "RCFilters: Align remaining outdated greys to WikimediaUI palette ones"
jenkins-bot [Thu, 24 Aug 2017 22:32:32 +0000 (22:32 +0000)]
Merge "RCFilters: Align remaining outdated greys to WikimediaUI palette ones"

6 years agoMerge "RCFilters: Enable 'View newest'"
jenkins-bot [Thu, 24 Aug 2017 22:29:22 +0000 (22:29 +0000)]
Merge "RCFilters: Enable 'View newest'"

6 years agoDisable rebound CDN purges for backlinks in HTMLCacheUpdateJob
Aaron Schulz [Thu, 24 Aug 2017 22:10:19 +0000 (15:10 -0700)]
Disable rebound CDN purges for backlinks in HTMLCacheUpdateJob

These are there to handle regeneration race conditions due to
replication lag. If there happens to already be a huge amount
of purges, the cost of this can be too high. Also, if the queue
is backlogged, then it is already delayed, so extra delayed jobs
do not help and just add to the backlog in that scenario.

Bug: T173710
Change-Id: Ida0bf44233072e1356a9fe63866d522e4bb2d0ca

6 years agoRCFilters: Align remaining outdated greys to WikimediaUI palette ones
Volker E [Thu, 24 Aug 2017 19:42:56 +0000 (12:42 -0700)]
RCFilters: Align remaining outdated greys to WikimediaUI palette ones

Replacing abandoned grey colors with appropriate colors from WikimediaUI
color palette.

Additional changes:
* Also simplified selector specificity in one case as OOUI code has already
changed.

Bug: T172850
Change-Id: I01e84d9a4d03ba894cbb67114821036b0ffe1ddb

6 years agoRCFilters: Enable 'View newest'
Stephane Bisson [Thu, 24 Aug 2017 19:47:15 +0000 (15:47 -0400)]
RCFilters: Enable 'View newest'

Keep the feature flag for 'live update'
but enable 'view newest' by default on RC.

Bug: T163426
Change-Id: I733cf99bbeb6d90d3aa21e87507c513354b81791

6 years agoMerge "Prevent editing textarea from jumping when toolbar is loaded"
jenkins-bot [Thu, 24 Aug 2017 17:52:34 +0000 (17:52 +0000)]
Merge "Prevent editing textarea from jumping when toolbar is loaded"

6 years agoMerge "IP: Remove unused static member $proxyIpSet"
jenkins-bot [Thu, 24 Aug 2017 16:29:50 +0000 (16:29 +0000)]
Merge "IP: Remove unused static member $proxyIpSet"

6 years agoMerge "RCFilters: Truncate long saved query titles"
jenkins-bot [Thu, 24 Aug 2017 15:53:26 +0000 (15:53 +0000)]
Merge "RCFilters: Truncate long saved query titles"

6 years agoMerge "Skin: Remove more use of QuickTemplate::setRef()"
jenkins-bot [Thu, 24 Aug 2017 14:53:00 +0000 (14:53 +0000)]
Merge "Skin: Remove more use of QuickTemplate::setRef()"

6 years agoMerge "Make API multivalue limits configurable"
jenkins-bot [Thu, 24 Aug 2017 14:04:24 +0000 (14:04 +0000)]
Merge "Make API multivalue limits configurable"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 24 Aug 2017 06:34:16 +0000 (08:34 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4336d8b1d77bbdc7b169ec5fa0fdfe2518392b41

6 years agoMake API multivalue limits configurable
Gergő Tisza [Fri, 28 Jul 2017 17:41:13 +0000 (17:41 +0000)]
Make API multivalue limits configurable

Adds two new parameter settings, ApiBase::PARAM_ISMULTI_LIMIT1
and PARAM_ISMULTI_LIMIT2 for configuring the maximum number of values
that can be contained in a multivalue field (for unprivileged and
apihighlimits users, respectively). When present, these replace the
default 50/500.

Change-Id: Ic1b1bcc7ff556b7762c8d2375d910cc4fcb43087

6 years agoMerge "mediawiki.skinning: Vertical align inline media in Parsoid output"
jenkins-bot [Thu, 24 Aug 2017 01:55:10 +0000 (01:55 +0000)]
Merge "mediawiki.skinning: Vertical align inline media in Parsoid output"

6 years agomediawiki.skinning: Vertical align inline media in Parsoid output
Arlo Breault [Thu, 17 Aug 2017 16:01:33 +0000 (12:01 -0400)]
mediawiki.skinning: Vertical align inline media in Parsoid output

Change-Id: I56df80a25b43f9084e8cb5e537836ac773732259

6 years agoMerge "RCFilters: Adjust pushpin 'default' icon behavior and style"
jenkins-bot [Thu, 24 Aug 2017 00:23:47 +0000 (00:23 +0000)]
Merge "RCFilters: Adjust pushpin 'default' icon behavior and style"

6 years agoPrevent editing textarea from jumping when toolbar is loaded
Kaldari [Thu, 24 Aug 2017 00:16:32 +0000 (17:16 -0700)]
Prevent editing textarea from jumping when toolbar is loaded

If you're using the "classic" editor (not the WikiEditor editor),
the editing textarea jumps down when the toolbar loads, which can
take a few seconds on a slow connection. This can cause editors to
accidently click the toolbar instead of the editing textarea and
accidently insert markup into the article that they didn't mean to.

This rule has been on English Wikipedia's Common.css since 2007.

Change-Id: Ie4ac15c95554608c838ef0e112924fc6381a6f66

6 years agoRCFilters: Adjust pushpin 'default' icon behavior and style
Moriel Schottlender [Wed, 23 Aug 2017 23:10:23 +0000 (16:10 -0700)]
RCFilters: Adjust pushpin 'default' icon behavior and style

Bug: T173264
Change-Id: I8d977bb97e91a19c24527c66120f142738135730

6 years agoRCFilters: Hide saved queries from anonymous users
Moriel Schottlender [Wed, 23 Aug 2017 23:35:10 +0000 (16:35 -0700)]
RCFilters: Hide saved queries from anonymous users

Bug: T173992
Change-Id: I5acb9ca4dd20de83da5db42c7c9053fccb091da0

6 years agoMerge "Unit tests for CollationFa (0bfcbd724)"
jenkins-bot [Wed, 23 Aug 2017 22:46:40 +0000 (22:46 +0000)]
Merge "Unit tests for CollationFa (0bfcbd724)"

6 years agoAvoid preemptive DB replication waits for farm cross-wiki redirects
Aaron Schulz [Tue, 22 Aug 2017 21:36:15 +0000 (14:36 -0700)]
Avoid preemptive DB replication waits for farm cross-wiki redirects

This previously only worked if $wgLocalVirtualHosts was set, which
was too specific to check and not used by WMF. Use the more generic
WikiMap class.

Two methods have been added there to do the work of enumerating
canonical wiki farm URLs and checking them against a given URL.

Bug: T172357
Change-Id: Id2415bab5d7f5a08b9f536858c32d329138384a2

6 years agoSpecialPageLanguage: Show current page language in the dropdown
Bartosz Dziewoński [Wed, 23 Aug 2017 21:17:53 +0000 (23:17 +0200)]
SpecialPageLanguage: Show current page language in the dropdown

Also show canonical page title form while we're at it.

Bug: T74966
Change-Id: I52c19a0a018d76a4282c61c009b40b2f7e56b3d2

6 years agoMerge "RCFilters: Minimize vertical space"
jenkins-bot [Wed, 23 Aug 2017 21:07:23 +0000 (21:07 +0000)]
Merge "RCFilters: Minimize vertical space"

6 years agoMerge "mw.widgets.SelectWithInputWidget: Invisible invalid fields should not block...
jenkins-bot [Wed, 23 Aug 2017 20:54:02 +0000 (20:54 +0000)]
Merge "mw.widgets.SelectWithInputWidget: Invisible invalid fields should not block form submission"

6 years agoSkin: Remove more use of QuickTemplate::setRef()
Timo Tijhof [Wed, 23 Aug 2017 19:30:01 +0000 (20:30 +0100)]
Skin: Remove more use of QuickTemplate::setRef()

Follows-up 2c01147c13be.

* language_links: The local array variable is only used once to
  obtain the value from Skin::getLanguages(), and then never passed
  elsewhere or otherwise potentially changed, so this reference
  doesn't seem useful.
  The getLanguages() method itself also creates a new array every
  time it is called, so the reference from there can't change either.

* Same for content_navigation and content_actions. These are never
  modified, and the method that returns the array creates a new one
  on each call.
  Follows-up r3014 (f4755755daed1f8).

* Same for bodytext.

Presumably these were only set as references to save memory.

Bug: T140664
Change-Id: I1224a7a89c1d7ad05c73132ff73299fd78ade7fb

6 years agomw.widgets.SelectWithInputWidget: Invisible invalid fields should not block form...
Bartosz Dziewoński [Wed, 23 Aug 2017 18:55:20 +0000 (20:55 +0200)]
mw.widgets.SelectWithInputWidget: Invisible invalid fields should not block form submission

Same logic as in resources/src/mediawiki/htmlform/hide-if.js,
explanatory comment is copy-pasted from there.

Bug: T173839
Change-Id: I87603936d23165926d2ef4c64f3a61dca2062caf

6 years agoRCFilters: Minimize vertical space
Moriel Schottlender [Tue, 22 Aug 2017 23:24:58 +0000 (16:24 -0700)]
RCFilters: Minimize vertical space

Bug: T173265
Change-Id: I38821571450c59b18c753c8b20ad9f19f01b6276

6 years agoMake workItemCount() smarter for htmlCacheUpdate/refreshLinks
Aaron Schulz [Wed, 23 Aug 2017 17:35:04 +0000 (10:35 -0700)]
Make workItemCount() smarter for htmlCacheUpdate/refreshLinks

Do not count jobs that just make subdivide as having any
"work items". This makes $wgJobBackoffThrottling less
overzealous when used to limit these type of jobs.

The main reason to limit htmlCacheUpdate would be for
CDN purge rate limiting. For refreshLinks, it would
mostly be lag, though that is already handled for
leaf jobs and JobRunner itself.

Bug: T173710
Change-Id: Ide831b555e51e3111410929a598efb6c0afc0989

6 years agoMerge "Set line height to 1 for sup and sub elements in print"
jenkins-bot [Wed, 23 Aug 2017 16:52:17 +0000 (16:52 +0000)]
Merge "Set line height to 1 for sup and sub elements in print"

6 years agoSet line height to 1 for sup and sub elements in print
jdlrobson [Wed, 23 Aug 2017 15:59:44 +0000 (10:59 -0500)]
Set line height to 1 for sup and sub elements in print

It is already set in screen styles (shared.css).

Bug: T172501
Change-Id: I5a90e21f6eac300c57b6daddada0ae94fe579294

6 years agoMerge "mediawiki.skinning: Vertical alignment for traditional galleries in Parsoid...
jenkins-bot [Wed, 23 Aug 2017 16:40:07 +0000 (16:40 +0000)]
Merge "mediawiki.skinning: Vertical alignment for traditional galleries in Parsoid output"

6 years agoMerge "MediawikiUI: Introduce mw-ui-icon-large"
jenkins-bot [Wed, 23 Aug 2017 16:22:31 +0000 (16:22 +0000)]
Merge "MediawikiUI: Introduce mw-ui-icon-large"

6 years agomediawiki.skinning: Vertical alignment for traditional galleries in Parsoid output
Arlo Breault [Thu, 17 Aug 2017 18:03:39 +0000 (14:03 -0400)]
mediawiki.skinning: Vertical alignment for traditional galleries in Parsoid output

 * Note that this just an extraction of inline styles that are
   already present in the output.

Change-Id: I718f16dfbb2c4122ac9fb4a714b607da3e62d5a0

6 years agoMediawikiUI: Introduce mw-ui-icon-large
jdlrobson [Thu, 17 Aug 2017 15:30:51 +0000 (10:30 -0500)]
MediawikiUI: Introduce mw-ui-icon-large

This will allow MobileFrontend and Minerva to share rules for icons

See Ib29736dc80ac2f84747e920c5b5c30918df12978

Bug: T143264
Change-Id: I456714086d2548b2e10cceb2a05f7a0fadf94a3b

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 23 Aug 2017 06:29:09 +0000 (08:29 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6d08864f2cf81b605438d16d5ce272b77a4fb8b2

6 years agoMerge "Split common pre-setup code out of WebStart/doMaintenance"
jenkins-bot [Wed, 23 Aug 2017 05:35:27 +0000 (05:35 +0000)]
Merge "Split common pre-setup code out of WebStart/doMaintenance"

6 years agoSplit common pre-setup code out of WebStart/doMaintenance
Tim Starling [Wed, 23 Aug 2017 02:21:14 +0000 (12:21 +1000)]
Split common pre-setup code out of WebStart/doMaintenance

Introduce PreConfigSetup.php, which is common file-scope code run before
LocalSettings.php.

I'm not maintaining autoload.ide.php since it supports closed source
software which I don't have, and it apparently needs significant work to
make it not be weird and hacky.

Change-Id: I44ac69b6b00a51d015546b9766d89d1c59749334

6 years agoEditPage: Remove temporary OOUI page class name
James D. Forrester [Tue, 22 Aug 2017 23:46:02 +0000 (16:46 -0700)]
EditPage: Remove temporary OOUI page class name

Follow-up to I2b468c8b84, broken out for simplicity.

Change-Id: I16578dafafbcf7dfbbbb909ceb89cd64d5b40a82

6 years agoMerge "Remove two deprecated functions and one depreciated variable in a function...
jenkins-bot [Tue, 22 Aug 2017 23:25:57 +0000 (23:25 +0000)]
Merge "Remove two deprecated functions and one depreciated variable in a function call within Parser.php"

6 years agoMerge "Update OOjs UI to v0.22.5"
jenkins-bot [Tue, 22 Aug 2017 23:22:19 +0000 (23:22 +0000)]
Merge "Update OOjs UI to v0.22.5"

6 years agoRCFilters: Truncate long saved query titles
Moriel Schottlender [Tue, 22 Aug 2017 23:14:14 +0000 (16:14 -0700)]
RCFilters: Truncate long saved query titles

Bug: T171901
Change-Id: Ibb03d3aafe4b3b083a5da064f2a2e809ecd108ad

6 years agoRemove two deprecated functions and one depreciated variable in a function call withi...
Matthew Bowker [Wed, 16 Aug 2017 08:28:59 +0000 (02:28 -0600)]
Remove two deprecated functions and one depreciated variable in a function call within Parser.php

* Parser::getRandomString() (deprecated in 1.26) was removed.
* Parser::uniqPrefix() (deprecated in 1.26) was removed.
* Parser::extractTagsAndParams() now only accepts three arguments.  The fourth, $uniq_prefix was deprecated in 1.26 and has now been removed.

Bug: T61113
Change-Id: I7333fff4eb8b9a754b4596992f2a69bbdaac664d

6 years agoUpdate OOjs UI to v0.22.5
Volker E [Tue, 22 Aug 2017 22:50:49 +0000 (15:50 -0700)]
Update OOjs UI to v0.22.5

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

Depends-On: Icf08f8c12d91b74425df319e69df22330c7088a9
Change-Id: Ia3ba4989c573de8b458c209560f6658b8324b548

6 years agoMerge "EditPage: Remove legacy non-OOUI render mode"
jenkins-bot [Tue, 22 Aug 2017 22:54:26 +0000 (22:54 +0000)]
Merge "EditPage: Remove legacy non-OOUI render mode"

6 years agoMerge "resources: Provide the WikimediaUI LESS config vars for all OOjs UI users"
jenkins-bot [Tue, 22 Aug 2017 21:36:07 +0000 (21:36 +0000)]
Merge "resources: Provide the WikimediaUI LESS config vars for all OOjs UI users"