lhc/web/wiklou.git
6 years agoUse IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)
Roan Kattouw [Wed, 3 May 2017 15:00:08 +0000 (08:00 -0700)]
Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)

ls_field_val was renamed to PRIMARY, but this is only partially
complete in WMF production. There is only one other index on the
log_search table, so ignoring that one is equivalent to forcing
the other one.

Bug: T17441
Change-Id: I63182a9f94eabb4cc47414d86b02c82bde1e58b0

6 years agoMerge "Add mw-content-ltr|rtl to file redirect pages"
jenkins-bot [Wed, 3 May 2017 14:21:38 +0000 (14:21 +0000)]
Merge "Add mw-content-ltr|rtl to file redirect pages"

6 years agoMerge "Fix small typo in documentation of IDatabase"
jenkins-bot [Wed, 3 May 2017 14:10:55 +0000 (14:10 +0000)]
Merge "Fix small typo in documentation of IDatabase"

6 years agoMake "eval.php -d 2" work again
Tim Starling [Fri, 28 Apr 2017 01:50:10 +0000 (11:50 +1000)]
Make "eval.php -d 2" work again

Instead of iterating through load balancer info, just set the flag in
the master and replica connections, since that seems more robust.

Deprecate LoadBalancer::setServerInfo() and
LoadBalancer::getServerInfo(), no remaining callers in core or
in-tree extensions, I think I added the function just for this feature.

Do a service reset, since Logger instances are injected into
LoadBalancer by ServiceWiring (via MWLBFactory::applyDefaultConfig()).
Similarly CryptRand, MimeAnalyzer.

Fix the usage text for shell.php

Change-Id: I3e85a6e8cfa1243a0371cfb3ce1c18665e8c711d

6 years agoFix small typo in documentation of IDatabase
Amir Sarabadani [Wed, 3 May 2017 13:30:38 +0000 (18:00 +0430)]
Fix small typo in documentation of IDatabase

Change-Id: Ic9ac07700ded26e8a14f457428a7fd52a693923f

6 years agoAdd mw-content-ltr|rtl to file redirect pages
Derk-Jan Hartman [Tue, 26 Jan 2016 19:35:29 +0000 (20:35 +0100)]
Add mw-content-ltr|rtl to file redirect pages

28ea73bc3a07a4588f1b5fde4f5c41522eaa9518 added NS_FILE to the list,
because most of the content is user language. That does not
really apply for #REDIRECT, however.

As a side effect, this also makes the redirect arrows visible on File
redirect pages, because their CSS depends on these classes.

Another side effect is that now "additional" content will show for the
redirect as reported broken in T29857.

Bug: T60955
Change-Id: I6b14c17a4b74ff5964ea61554aa3afb197d206bf

6 years agoMerge "Convert mwdoc-filter.php to Maintenance class so --wiki works"
jenkins-bot [Wed, 3 May 2017 03:45:05 +0000 (03:45 +0000)]
Merge "Convert mwdoc-filter.php to Maintenance class so --wiki works"

6 years agoConvert mwdoc-filter.php to Maintenance class so --wiki works
Matthew Flaschen [Wed, 3 May 2017 02:02:06 +0000 (22:02 -0400)]
Convert mwdoc-filter.php to Maintenance class so --wiki works

Change-Id: Ie2fc4109bc2e7a23a6549d9705be44cf2eb858b9

6 years agoMerge "maintenance/resources/update-oojs-ui: Copy across map files for debug mode"
jenkins-bot [Wed, 3 May 2017 00:09:47 +0000 (00:09 +0000)]
Merge "maintenance/resources/update-oojs-ui: Copy across map files for debug mode"

6 years agoMerge "Move RELEASE-NOTES-1.29 to HISTORY"
jenkins-bot [Wed, 3 May 2017 00:08:10 +0000 (00:08 +0000)]
Merge "Move RELEASE-NOTES-1.29 to HISTORY"

6 years agoMerge "Follow-up 14cffee7: Correct deprecation version comment"
jenkins-bot [Wed, 3 May 2017 00:06:21 +0000 (00:06 +0000)]
Merge "Follow-up 14cffee7: Correct deprecation version comment"

6 years agoMerge "EditPage: Vary 'save button' label for appropriate i18n"
jenkins-bot [Wed, 3 May 2017 00:03:16 +0000 (00:03 +0000)]
Merge "EditPage: Vary 'save button' label for appropriate i18n"

6 years agoRCFilters: Override highlighted background
Moriel Schottlender [Tue, 2 May 2017 23:41:13 +0000 (16:41 -0700)]
RCFilters: Override highlighted background

Muted state has overridden the 'highlighted' state which meant that
arrow movement weren't visible on items that were muted. This fix
corrects that.

Bug: T159768
Change-Id: I9d853eb3de1e482bd01e27635e92af505176eef5

6 years agoMove RELEASE-NOTES-1.29 to HISTORY
James D. Forrester [Thu, 27 Apr 2017 21:02:10 +0000 (14:02 -0700)]
Move RELEASE-NOTES-1.29 to HISTORY

Changes to master that are going to be immediately backported to
REL1_29 before release should write changes to HISTORY directly.

Change-Id: Ia3e02293b13406e7a4741ef14897dd83bca98d46

6 years agoRCFilter UI: allow getParametersFromFilters to accept filter list
Moriel Schottlender [Tue, 2 May 2017 21:17:45 +0000 (14:17 -0700)]
RCFilter UI: allow getParametersFromFilters to accept filter list

Up until now we assumed that this method should output the parameters
from the state of the system, which meant that even if it accepted an
external list, it required that it be the format of this.groups.

Instead, allow the method to accept a "flat" list of filter name/values
and translate that to a parameter state without changing the model state.

Change-Id: Ib41da620a16d874326fe73220ae7a0114c555639

6 years agoMerge "RC Filters: watch filter highlight"
jenkins-bot [Tue, 2 May 2017 21:26:38 +0000 (21:26 +0000)]
Merge "RC Filters: watch filter highlight"

6 years agoMerge "Document "What's This" group UI feature"
jenkins-bot [Tue, 2 May 2017 20:16:54 +0000 (20:16 +0000)]
Merge "Document "What's This" group UI feature"

6 years agoMerge "Toggle logo preloading via the skin"
jenkins-bot [Tue, 2 May 2017 20:13:36 +0000 (20:13 +0000)]
Merge "Toggle logo preloading via the skin"

6 years agoRC Filters: watch filter highlight
Stephane Bisson [Tue, 2 May 2017 20:09:27 +0000 (16:09 -0400)]
RC Filters: watch filter highlight

When checking if lines are 'watchednew' for highlight purposes,
make sure 'rc_timestamp' and 'wl_notificationtimestamp' are truthy.

Bug: T163964
Change-Id: I3cd6cc9835db01229b8d1cc6ccfc371a36709ef2

6 years agoDocument "What's This" group UI feature
Matthew Flaschen [Tue, 2 May 2017 20:06:37 +0000 (16:06 -0400)]
Document "What's This" group UI feature

Bug: T163069
Change-Id: I1100dbea1549ee208dc0a1e9bcd56d8c93775302

6 years agoMerge "RC Filters: Support multiple tag filters"
jenkins-bot [Tue, 2 May 2017 20:02:02 +0000 (20:02 +0000)]
Merge "RC Filters: Support multiple tag filters"

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Tue, 2 May 2017 19:59:02 +0000 (19:59 +0000)]
Merge "Localisation updates from https://translatewiki.net."

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

Change-Id: I036a25f9df1810a9a484e05389bd82a0a70e5457

6 years agoMerge "RC Filters: support multiple namespaces"
jenkins-bot [Tue, 2 May 2017 19:58:27 +0000 (19:58 +0000)]
Merge "RC Filters: support multiple namespaces"

6 years agoMerge "userExpLevel test: use $tables from function under tests"
jenkins-bot [Tue, 2 May 2017 19:58:22 +0000 (19:58 +0000)]
Merge "userExpLevel test: use $tables from function under tests"

6 years agoRC Filters: Support multiple tag filters
Stephane Bisson [Tue, 2 May 2017 19:29:24 +0000 (15:29 -0400)]
RC Filters: Support multiple tag filters

Bug: T164133
Change-Id: Id9404940644197bac235202a45324b201613303d

6 years agoRemove unused var assign in Parser::getTemplateDom
Umherirrender [Tue, 2 May 2017 19:18:39 +0000 (21:18 +0200)]
Remove unused var assign in Parser::getTemplateDom

Change-Id: If11d7a2568d4235df6888e4001500bdf45f58eae

6 years agoMerge "userExpLevel test: use a single time()"
jenkins-bot [Tue, 2 May 2017 18:43:45 +0000 (18:43 +0000)]
Merge "userExpLevel test: use a single time()"

6 years agoRC Filters: support multiple namespaces
Stephane Bisson [Tue, 2 May 2017 17:47:17 +0000 (13:47 -0400)]
RC Filters: support multiple namespaces

Make the namespace filter support multiple values separated by ','.

Bug: T164132
Change-Id: I6a83eafef69ea416dd9ba8cecc524efbd85db438

6 years agoMerge "RC Filters: watchlist"
jenkins-bot [Tue, 2 May 2017 17:42:04 +0000 (17:42 +0000)]
Merge "RC Filters: watchlist"

6 years agoMerge "RC Filters: group.allSelected consider subsets"
jenkins-bot [Tue, 2 May 2017 17:40:31 +0000 (17:40 +0000)]
Merge "RC Filters: group.allSelected consider subsets"

6 years agomw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout
Brad Jorsch [Tue, 2 May 2017 16:35:27 +0000 (12:35 -0400)]
mw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout

They removed that functionality. Instead, access the FieldLayout's
$label property to attach the click event handler we need. It's not
documented (I think), but seems stable.

Bug: T164149
Change-Id: I30e7ad51dc1a484203138919c19a55f77552f330

6 years agoMerge "RC Filters: don't bind onMenuToggle twice"
jenkins-bot [Tue, 2 May 2017 16:28:10 +0000 (16:28 +0000)]
Merge "RC Filters: don't bind onMenuToggle twice"

6 years agomw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups
Brad Jorsch [Tue, 2 May 2017 16:08:26 +0000 (12:08 -0400)]
mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups

Bug: T133710
Change-Id: Id6b05aa3d589040efeb7baf4ac9d4176182f538b

6 years agoApiSandbox: Specify a $overlay for menu-using widgets
Brad Jorsch [Wed, 9 Mar 2016 21:12:15 +0000 (16:12 -0500)]
ApiSandbox: Specify a $overlay for menu-using widgets

This makes the menu work more sensibly when the widget is inside a
scrolling box of some sort.

Bug: T129308
Change-Id: Ic3b26883984030bb0ab37fcca8acd8b8c4535c2d

6 years agoRC Filters: don't bind onMenuToggle twice
Stephane Bisson [Tue, 2 May 2017 14:46:54 +0000 (10:46 -0400)]
RC Filters: don't bind onMenuToggle twice

Having 2 event handlers for onMenuToggle means
double-counting popup openings, which breaks
the highlight guided tour prompt schedule.

Bug: T164228
Change-Id: Ia6855e6b07e1364ff76c2bccd82c33b21b82619b

6 years agoRC Filters: group.allSelected consider subsets
Stephane Bisson [Tue, 2 May 2017 13:25:33 +0000 (09:25 -0400)]
RC Filters: group.allSelected consider subsets

Consider a group to be all selected if its unselected
items are subsets of selected items.

This allows the watchlist group to show as no-effect
when 'watched' and 'notwatched' are selected but
'watchednow' is not selected.

Bug: T163964
Change-Id: I40d2a02ab074bc87f8a6f2498834b89fbbe55771

6 years agoToggle logo preloading via the skin
Gilles Dubuc [Tue, 2 May 2017 12:58:06 +0000 (14:58 +0200)]
Toggle logo preloading via the skin

Bug: T100999
Change-Id: I0e18dc7fdbf133f3e4002f48f3040604687571dc

6 years agoRC Filters: watchlist
Stephane Bisson [Mon, 1 May 2017 20:38:35 +0000 (16:38 -0400)]
RC Filters: watchlist

Introducing filtering on watchlist status
  watchlist=watched|watchednew|notwatched

'watchednew' is a subset of 'watched

Bug: T163964
Change-Id: I04df40c8399e15a03a400b4a24afedf1df242a93

6 years agoMerge "Check supportsDirectEditing when suggesting page creation"
jenkins-bot [Tue, 2 May 2017 11:39:48 +0000 (11:39 +0000)]
Merge "Check supportsDirectEditing when suggesting page creation"

6 years agomediawiki.user: Remove deprecated mw.user.bucket
Fomafix [Wed, 19 Apr 2017 07:21:02 +0000 (09:21 +0200)]
mediawiki.user: Remove deprecated mw.user.bucket

The function mw.user.bucket is already deprecated since MediaWiki 1.23.

Change-Id: I2589dc7ce94004504a7aad080374877391f20057

6 years agoresourceloader: Bump severity of style queue violation to Warning
Timo Tijhof [Tue, 2 May 2017 00:28:32 +0000 (17:28 -0700)]
resourceloader: Bump severity of style queue violation to Warning

Previously it was only in debug logs (which are enabled in Jenkins,
MediaWiki-Vagrant, Beta, and for mwdebug hosts in wmf-production).

Turning it into a warning() will log it for regular requests as well
which is the last step before we can consider hard enforcement.

Bug: T92459
Change-Id: I87c7794c5cfe35521bf76cc42f94907001e9d24b

6 years agoMerge "Adding explantation for why to use User::incEditCount()"
jenkins-bot [Mon, 1 May 2017 23:49:26 +0000 (23:49 +0000)]
Merge "Adding explantation for why to use User::incEditCount()"

6 years agoMerge "RC Filters: Last revision filter group"
jenkins-bot [Mon, 1 May 2017 23:48:11 +0000 (23:48 +0000)]
Merge "RC Filters: Last revision filter group"

6 years agoMerge "RC Filters: Make filters header sticky"
jenkins-bot [Mon, 1 May 2017 23:48:06 +0000 (23:48 +0000)]
Merge "RC Filters: Make filters header sticky"

6 years agoMerge "config: Use less generic cache key, and not fragmented by wiki"
jenkins-bot [Mon, 1 May 2017 23:31:21 +0000 (23:31 +0000)]
Merge "config: Use less generic cache key, and not fragmented by wiki"

6 years agoMerge "config: Add unit tests for EtcdConfig"
jenkins-bot [Mon, 1 May 2017 23:30:49 +0000 (23:30 +0000)]
Merge "config: Add unit tests for EtcdConfig"

6 years agoMerge "Avoid master queries in loadAndLazyInit() for miser mode"
jenkins-bot [Mon, 1 May 2017 23:24:36 +0000 (23:24 +0000)]
Merge "Avoid master queries in loadAndLazyInit() for miser mode"

6 years agoEditPage: Vary 'save button' label for appropriate i18n
James D. Forrester [Tue, 18 Apr 2017 15:38:12 +0000 (08:38 -0700)]
EditPage: Vary 'save button' label for appropriate i18n

Change-Id: I0fd2995aa3178d383aa099cb0852336a1c67893d

6 years agoMerge "Use isSpecialPage() where possible"
jenkins-bot [Mon, 1 May 2017 23:08:07 +0000 (23:08 +0000)]
Merge "Use isSpecialPage() where possible"

6 years agoMerge "api: Use NS_SPECIAL instead of -1 in ApiPageSet"
jenkins-bot [Mon, 1 May 2017 23:07:37 +0000 (23:07 +0000)]
Merge "api: Use NS_SPECIAL instead of -1 in ApiPageSet"

6 years agoapi: Use NS_SPECIAL instead of -1 in ApiPageSet
Fomafix [Sat, 29 Apr 2017 20:50:33 +0000 (22:50 +0200)]
api: Use NS_SPECIAL instead of -1 in ApiPageSet

Follows-up e2055fe0a55c.

Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b

6 years agoUse IPSet for checking of wgProxyList
Florian Schmidt [Sat, 15 Apr 2017 23:52:23 +0000 (01:52 +0200)]
Use IPSet for checking of wgProxyList

Instead of using array_* functions, use the IPSet for checking, if a
specific IP address matches a set of addresses.

This also deprecates a backward-compatibility functionality, that
the wgProxyList array could also be an associative array, where the blocked
IP address is set as a key of the array insted of a value. All IP address
keys will be mved to values on-the-fly, however a deprecation warning will
be emitted. A notice in the Release notes was added, too.

Bug: T161580
Change-Id: I69d9534942c415ab044177969ecd54160079b593

6 years agoconfig: Use less generic cache key, and not fragmented by wiki
Timo Tijhof [Mon, 1 May 2017 21:51:57 +0000 (14:51 -0700)]
config: Use less generic cache key, and not fragmented by wiki

* Use makeGlobalKey instead of makeKey to avoid fragmenting
  the cache by the wiki-specific key space.

* Add "EtcdConfig" and $this->host to the cache key to make
  it less generic and less likely to conflict with unrelated values
  in case multiple instances exist somewhere in the MediaWiki run
  time (or during testing/debugging).

Adding $this->host should be fine given we were already including
the directory within that host. Although I do recognise that we
may want to encourage slow cache rollover instead of instance
cache rollover in case the host name needs to changed. Perhaps
we should have some kind of canonical name for the instance for
the purpose of caching so that directory or host can be changed
without changing the cache key, and thus have cache roll over
normally over the course of 10 seconds, instead of immediately.

On the other hand, deployment will likely already spread things
out a little bit.

In addition, due to the cache being kept indefinitely this means
the old key will stay indefinitely. Perhaps not an issue given
it's just one key, which will clear on restart eventually?

Bug: T156924
Change-Id: I622e6618f2d4171626e4b272bcb11a97a85cb770

6 years agoconfig: Add unit tests for EtcdConfig
Timo Tijhof [Thu, 27 Apr 2017 04:15:51 +0000 (21:15 -0700)]
config: Add unit tests for EtcdConfig

Change-Id: I6e647985b98724b5448831a6fae1b2d2521fd363

6 years agoMerge "Avoid implicit globals"
jenkins-bot [Mon, 1 May 2017 21:39:51 +0000 (21:39 +0000)]
Merge "Avoid implicit globals"

6 years agoAvoid implicit globals
Ed Sanders [Mon, 1 May 2017 14:03:40 +0000 (15:03 +0100)]
Avoid implicit globals

Wrap in IIFE if variables is not intended to be global, otherwise
explicitly assign to window for better readability, and avoiding
problems if code were to get wrapped in IIFE later.

Change-Id: I2313daeaf00f27b6ea9eb6b907c066844c5d3836

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

Change-Id: If2d4e2b342645f88f166ff54ce9102439599e24c

6 years agoRC Filters: Last revision filter group
Stephane Bisson [Mon, 1 May 2017 17:21:56 +0000 (13:21 -0400)]
RC Filters: Last revision filter group

New filter group to show changes related to the last
revision of a page or show changes on previous revisions.

Bug: T163561
Change-Id: Ifc376a34bbe564714285894f93ffb80aa82f5fdf

6 years agoRC Filters: Make filters header sticky
Stephane Bisson [Mon, 1 May 2017 14:30:19 +0000 (10:30 -0400)]
RC Filters: Make filters header sticky

Bug: T163431
Change-Id: Id6d3b1be6d9655cd65ff924e95aa9a8d464771b7

6 years agoRemove unnecessary Function.binds
Ed Sanders [Mon, 1 May 2017 14:02:21 +0000 (15:02 +0100)]
Remove unnecessary Function.binds

Also fix ,->; typo

Change-Id: Icf87ae6e2aa111f3cb578c7355c92ffc6019df55

6 years agoSpread and indent string-concatenations
Ed Sanders [Mon, 1 May 2017 13:56:04 +0000 (14:56 +0100)]
Spread and indent string-concatenations

Avoids single lint string concatenations and multi-line strings.

Change-Id: Iada91c1019cda87d48b13bdcff963d1950b54874

6 years agoAdd GenderAliases for namespaces
Eugene Gvozdetsky [Mon, 1 May 2017 12:18:29 +0000 (14:18 +0200)]
Add GenderAliases for namespaces

Change-Id: I16b54e35c4212ccc26e7c9d23ee898e29c04a69f

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 30 Apr 2017 19:57:26 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id132ebc6e31dd5ef9c4a5e774c39c393aa67e3d5

6 years agoUse isSpecialPage() where possible
Fomafix [Sat, 29 Apr 2017 20:22:46 +0000 (22:22 +0200)]
Use isSpecialPage() where possible

Change-Id: Ie4d0838acf96a7ed4a1fe4cfdc901c77d3312174

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 29 Apr 2017 20:31:33 +0000 (22:31 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id5d126cf626391b5f7d562758a8a2e1a603fed21

6 years agoAvoid master queries in loadAndLazyInit() for miser mode
Aaron Schulz [Sat, 29 Apr 2017 05:10:43 +0000 (22:10 -0700)]
Avoid master queries in loadAndLazyInit() for miser mode

Bug: T92357
Change-Id: Idaef633d9039cdbfa3bd123018f2339c6d489fe4

6 years agoMerge "SpecialJavaScriptTest: Make sure we don't catch our own exception"
jenkins-bot [Sat, 29 Apr 2017 04:07:48 +0000 (04:07 +0000)]
Merge "SpecialJavaScriptTest: Make sure we don't catch our own exception"

6 years agoImprove EtcdConfig fallback logic
Aaron Schulz [Fri, 28 Apr 2017 20:56:20 +0000 (13:56 -0700)]
Improve EtcdConfig fallback logic

If the cache is stale and the lock keeps being acquired, but the re-fetch
fails each time, the method would end up failing after the timeout was
reached. Instead, use the stale cache if available.

Change-Id: Ieafc9de17e6c60d8eea7b937923b4ad548e99be8

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 28 Apr 2017 21:19:02 +0000 (23:19 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id3c6419b44d67846ad7aaf882a635a3b41a98cf3

6 years agoAdding explantation for why to use User::incEditCount()
Kaldari [Fri, 28 Apr 2017 20:45:25 +0000 (13:45 -0700)]
Adding explantation for why to use User::incEditCount()

... rather than User::incEditCountImmediate() for most cases.

Change-Id: Ia16baabaeaca5c726e1dd1fc2506dc0b85500b6e

6 years agoMerge "Simplify Image/Video/Audio rules using LESS nesting"
jenkins-bot [Fri, 28 Apr 2017 15:23:34 +0000 (15:23 +0000)]
Merge "Simplify Image/Video/Audio rules using LESS nesting"

6 years agoSimplify Image/Video/Audio rules using LESS nesting
Ed Sanders [Fri, 28 Apr 2017 12:30:51 +0000 (13:30 +0100)]
Simplify Image/Video/Audio rules using LESS nesting

Also allow Video/Audio to contain img instead of video
for VE support.

Change-Id: Ic54662bbcd50de70133c6581cd7d8025c872a7f4

6 years agoMerge "EtcdConfig: use array_key_exists(), the value can be null"
jenkins-bot [Fri, 28 Apr 2017 12:27:28 +0000 (12:27 +0000)]
Merge "EtcdConfig: use array_key_exists(), the value can be null"

6 years agoMerge "Add space version of img_upright and img_page for language de"
jenkins-bot [Fri, 28 Apr 2017 12:24:57 +0000 (12:24 +0000)]
Merge "Add space version of img_upright and img_page for language de"

6 years agoEtcdConfig: use array_key_exists(), the value can be null
Tim Starling [Fri, 28 Apr 2017 05:14:57 +0000 (15:14 +1000)]
EtcdConfig: use array_key_exists(), the value can be null

Change-Id: Iae175401da8d49f5475d8c88cc5390b16e7cba32

6 years agoMerge "Document rationale or primary use case for many indexes"
jenkins-bot [Fri, 28 Apr 2017 02:29:21 +0000 (02:29 +0000)]
Merge "Document rationale or primary use case for many indexes"

6 years agoFix help text for --d on shell.php
Brion Vibber [Fri, 28 Apr 2017 01:22:31 +0000 (18:22 -0700)]
Fix help text for --d on shell.php

1 is stderr, not 0

Change-Id: Iaee4ffd5767f8ae693e8ef19371ce38fe6bd1817

6 years agoAdd ConsoleLogger, use it for eval.php -d
Tim Starling [Thu, 27 Apr 2017 23:56:38 +0000 (09:56 +1000)]
Add ConsoleLogger, use it for eval.php -d

eval.php previously set $wgDebugLogFile to /dev/stdout. This had the
following problems:

* It doesn't work if the maintenance script is executed via sudo, since
  /dev/stdout is typically owned by the original user, so MW can't open
  it. Using php://stdout worked on HHVM but not PHP.
* Setting $wgDebugLogFile has no effect if the wiki uses MonologSpi.
* Setting $wgDebugLogFile has no effect on channels configured with
  $wgDebugLogGroups.
* stderr is a more appropriate place to send logging output.
* Writing to configuration variables is discouraged.

So, add ConsoleSpi, which is a very simple logging service provider
which sends all messages to stderr. This should be suitable for
debugging with eval.php or shell.php in WMF production or beta.

Change-Id: Ib0d6ce45e0cbecd58263fc4e360c63d4149acb3a

6 years agoCleanup postEdit and match styles to mw.notification
Ed Sanders [Mon, 10 Apr 2017 12:59:19 +0000 (13:59 +0100)]
Cleanup postEdit and match styles to mw.notification

* Remove HTML template
* Add mw-notification class and dependency
* Fix variable scoping issues so firing two notifications
  doesn't cause one to become stuck

Bug: T58313
Change-Id: I9a702d23a8a9b5cc098cbb413213d73813bec097

6 years agoMerge "Expire the cache of a User object when a group membership is set to expire"
jenkins-bot [Thu, 27 Apr 2017 20:03:40 +0000 (20:03 +0000)]
Merge "Expire the cache of a User object when a group membership is set to expire"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Apr 2017 20:00:32 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia2686ac474c045e91fd29daef68ec0925b73823e

6 years agoAdd space version of img_upright and img_page for language de
Umherirrender [Thu, 27 Apr 2017 19:47:09 +0000 (21:47 +0200)]
Add space version of img_upright and img_page for language de

On de.wikipedia.org the localized version of upright is used with
spaces, not underscores.
Add the version as alias to fix the pages and make linter happy
(T162961)

Change-Id: Id4726aecb51887fc82583e4d6b9284706b6b5b69

6 years agoFollow-up 14cffee7: Correct deprecation version comment
James D. Forrester [Thu, 27 Apr 2017 19:37:54 +0000 (12:37 -0700)]
Follow-up 14cffee7: Correct deprecation version comment

We merged into 1.29, not 1.30.

Change-Id: Ie2ebe0a44ea84a18c9ad3c21a6dd43ccbe3f0036

6 years agoMerge "Release prior row locks beforehand in LinksUpdate::updateCategoryCounts"
jenkins-bot [Thu, 27 Apr 2017 19:21:39 +0000 (19:21 +0000)]
Merge "Release prior row locks beforehand in LinksUpdate::updateCategoryCounts"

6 years agoMerge "SpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()"
jenkins-bot [Thu, 27 Apr 2017 19:20:01 +0000 (19:20 +0000)]
Merge "SpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()"

6 years agoMerge "SpecialJavaScriptTest: Format long JavaScript code fragments"
jenkins-bot [Thu, 27 Apr 2017 19:19:58 +0000 (19:19 +0000)]
Merge "SpecialJavaScriptTest: Format long JavaScript code fragments"

6 years agoMerge "Prepare for 1.30 branch"
jenkins-bot [Thu, 27 Apr 2017 18:42:29 +0000 (18:42 +0000)]
Merge "Prepare for 1.30 branch"

6 years agoSpecialJavaScriptTest: Make sure we don't catch our own exception
Bartosz Dziewoński [Thu, 27 Apr 2017 18:22:41 +0000 (20:22 +0200)]
SpecialJavaScriptTest: Make sure we don't catch our own exception

If the jQuery promise returned by mw.loader.using() is rejected
synchronously (e.g. because one of the modules has a dependency on
non-existent module), the function passed to fail() also executes
synchronously. Note that this is true also with jQuery 3.

The exception it throws was caught by the catch() below, which
resulted in start() being called twice, which resulted in QUnit
throwing 'Uncaught Error: Called start() outside of a test
context too many times' rather than actually starting.

Change-Id: I5c6b50647c0af0fdec6547aaa59165f6b4a42642

6 years agoSpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()
Bartosz Dziewoński [Thu, 27 Apr 2017 18:19:32 +0000 (20:19 +0200)]
SpecialJavaScriptTest: Do not accidentally pass parameters to QUnit.start()

If the mw.loader.using() call's promise is rejected, we end up
passing an Error object as the 'count' parameter to QUnit.start().
This seems to be harmless, but is very confusing when debugging.

Change-Id: I44caca5285dbced5a5876d9d7ff6236dbd3efc35

6 years agoSpecialJavaScriptTest: Format long JavaScript code fragments
Bartosz Dziewoński [Thu, 27 Apr 2017 18:05:25 +0000 (20:05 +0200)]
SpecialJavaScriptTest: Format long JavaScript code fragments

Change-Id: Iaa6369467e9fa846a8d5eb8f43cf0b523ef1a64e

6 years agoMerge "Block: Remove old IP addresses from default autoblock_whitelist message"
jenkins-bot [Thu, 27 Apr 2017 17:46:58 +0000 (17:46 +0000)]
Merge "Block: Remove old IP addresses from default autoblock_whitelist message"

6 years agoMerge "mw.widgets.DateInputWidget: Highlight widget and open calendar on focus"
jenkins-bot [Thu, 27 Apr 2017 17:45:13 +0000 (17:45 +0000)]
Merge "mw.widgets.DateInputWidget: Highlight widget and open calendar on focus"

6 years agoMerge "Correct the "Help", "Media" and talk namespace names for Dinka"
jenkins-bot [Thu, 27 Apr 2017 17:06:24 +0000 (17:06 +0000)]
Merge "Correct the "Help", "Media" and talk namespace names for Dinka"

6 years agoMerge "Do not add limit to ApiQueryPagePropNames when database type is mysql"
jenkins-bot [Thu, 27 Apr 2017 13:51:27 +0000 (13:51 +0000)]
Merge "Do not add limit to ApiQueryPagePropNames when database type is mysql"

6 years agoCorrect the "Help", "Media" and talk namespace names for Dinka
Amire80 [Tue, 25 Apr 2017 07:52:51 +0000 (10:52 +0300)]
Correct the "Help", "Media" and talk namespace names for Dinka

The corrections come from users Dinkawiki and Mawanmuortat,
who did most of the translation into this language.

No aliases are needed, because the file was only created recently,
and not yet used anywhere.

Change-Id: Ic1ddfaca403e05e5971c516d6e7a454311794f3c

6 years agoRelease prior row locks beforehand in LinksUpdate::updateCategoryCounts
Aaron Schulz [Thu, 27 Apr 2017 05:33:56 +0000 (22:33 -0700)]
Release prior row locks beforehand in LinksUpdate::updateCategoryCounts

Bug: T163801
Change-Id: I6a026ee9a249da5a8fd9ceb216416340a9188d3f

6 years agoDocument rationale or primary use case for many indexes
Tim Starling [Mon, 24 Apr 2017 06:49:05 +0000 (16:49 +1000)]
Document rationale or primary use case for many indexes

Change-Id: I1f0a13adbc6f618f38c3b05a1d356d76e2f5bd23

6 years agoMerge "Add a space between "Go to page" dropdown and button for multipage images"
jenkins-bot [Thu, 27 Apr 2017 02:04:55 +0000 (02:04 +0000)]
Merge "Add a space between "Go to page" dropdown and button for multipage images"

6 years agoMerge "Revert, Follow-up: -1 recent contributors"
jenkins-bot [Thu, 27 Apr 2017 01:59:36 +0000 (01:59 +0000)]
Merge "Revert, Follow-up: -1 recent contributors"