lhc/web/wiklou.git
9 years agoUpdate OOjs UI to v0.9.1
James D. Forrester [Thu, 12 Mar 2015 19:12:01 +0000 (12:12 -0700)]
Update OOjs UI to v0.9.1

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.1/History.md

Change-Id: I936ea56e1c99f576f44115a9b2fa075ef1ab14bd

9 years agoMerge "Mark DoEditSectionLink hook as deprecated"
jenkins-bot [Thu, 12 Mar 2015 17:17:16 +0000 (17:17 +0000)]
Merge "Mark DoEditSectionLink hook as deprecated"

9 years agoMark DoEditSectionLink hook as deprecated
Kunal Mehta [Thu, 12 Mar 2015 16:51:59 +0000 (09:51 -0700)]
Mark DoEditSectionLink hook as deprecated

Change-Id: I347fe68900c98080bf3070a1b0bf5a005048868a

9 years agoRefactor out 'infinity' variants
JuneHyeon Bae [Wed, 18 Jun 2014 02:45:32 +0000 (11:45 +0900)]
Refactor out 'infinity' variants

Refactor out 'infinity' vartiant values which used in blocking and
protecting actions. This patchset adds GlobalFunction wfIsInfinity.

Bug: T68646
Change-Id: I60cc55a5bbd43c72916a1c2ea3807457d4e33765

9 years agoMerge "Use underscores in help links"
jenkins-bot [Thu, 12 Mar 2015 14:56:31 +0000 (14:56 +0000)]
Merge "Use underscores in help links"

9 years agoUse underscores in help links
umherirrender [Tue, 10 Mar 2015 18:26:39 +0000 (19:26 +0100)]
Use underscores in help links

Replace spaces by underscore to build correct links to wiki pages. IE11
will show %20 for spaces. Also use urlencode to make the url safe.

Follow-Up: I2934b1708a0d207dcf3d940264f140613646f203
Change-Id: I5ef08441406e96aa9749476af0a81fc11fa4e4d6

9 years agoresources: Move to library version of jquery.client
James D. Forrester [Wed, 11 Mar 2015 23:14:46 +0000 (16:14 -0700)]
resources: Move to library version of jquery.client

The jQuery Client library is no longer mastered in MediaWiki, and is
instead a proper, published library, which is now tagged as v1.0.0.

Change-Id: Idd19d738b392a5f742fef6f98c885e8c391a5cbf

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 11 Mar 2015 20:53:36 +0000 (20:53 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Mar 2015 20:50:32 +0000 (21:50 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I384c8214ba8453349d0b7cc90b954580bd571011

9 years agoOutputPage: Condition-wrap the <script> for 'user.groups'
Timo Tijhof [Fri, 6 Mar 2015 02:12:49 +0000 (03:12 +0100)]
OutputPage: Condition-wrap the <script> for 'user.groups'

Follows-up 9d390a09cdfb. It already wraps the only=script requests
for 'site' and 'user', but forgot about 'user.groups' which is
not 'scripts' but 'combined' (as regular module requests).

That request responds with mw.loader.implement whih will be absent
if the environment is unsupported.

With normal module requests, this is naturally covered by those
requests not being fired from mw.loader in the first place but
with hardcoded requests like these the condition wrap with
document.write is unfortunately required in the current reality.

Change-Id: Ib3a7378d0c44e601760fbbc5174da09bd7b7f492

9 years agoMention metrics in IContextSource docs
Aaron Schulz [Tue, 10 Mar 2015 19:26:24 +0000 (12:26 -0700)]
Mention metrics in IContextSource docs

Change-Id: I9b654a12578758471978ffd1e1ae20476aeeaa0d

9 years agoMerge "mediawiki.js: clean-ups"
jenkins-bot [Wed, 11 Mar 2015 18:36:49 +0000 (18:36 +0000)]
Merge "mediawiki.js: clean-ups"

9 years agomediawiki.js: clean-ups
Ori Livneh [Tue, 10 Mar 2015 06:57:33 +0000 (23:57 -0700)]
mediawiki.js: clean-ups

* Inline canExpandStylesheetWith().
* Make resolve() take an array of module names instead of being flexible
  (taking either a string or an array). It's a private method, so it doesn't
  need to have a cute API.
* Use simple string concatenation rather than [].join in pad()
* Make allReady() more efficient by having it bail early as soon as any
  non-ready module is encountered.
* Add anyFailed(), which is a complement to allReady().
* Remove filter(). In more than one place, it was used to check whether a
  module in some specified state existed in a list of modules, which is
  inefficient, since filter() continues iterating through the array of modules
  after finding a match and because it constructed an array with the matches,
  which was not needed.
* Replace some verbose array iteration with $.grep / $.map / $.each.

Change-Id: I22a2f824488ba39d03b546ac8560f551a3198d7f

9 years agoMade JobQueueFederated no longer need "checkDelay" for delaying
Aaron Schulz [Wed, 11 Mar 2015 18:12:50 +0000 (11:12 -0700)]
Made JobQueueFederated no longer need "checkDelay" for delaying

This reverts commit b9fd0f311c292424fd49d7bff550f67e94a62bc4.

Change-Id: Ibff28591c268689d593cb56a58e0b33c22292eba

9 years agoMerge "Revert "Made JobQueueFederated no longer need "checkDelay" for delaying""
jenkins-bot [Wed, 11 Mar 2015 17:17:33 +0000 (17:17 +0000)]
Merge "Revert "Made JobQueueFederated no longer need "checkDelay" for delaying""

9 years agoRevert "Made JobQueueFederated no longer need "checkDelay" for delaying"
Legoktm [Wed, 11 Mar 2015 17:10:18 +0000 (17:10 +0000)]
Revert "Made JobQueueFederated no longer need "checkDelay" for delaying"

Breaks Cirrus and Wikibase

This reverts commit c8f96384aad312e52969b81dd8ce6b8d80c3857a.

Change-Id: I15278d52806bf30d6ea6c6b9eb8586160f65c42b

9 years agomw.loader: Replace log() calls with mw.track events
Gergő Tisza [Tue, 3 Feb 2015 22:49:40 +0000 (22:49 +0000)]
mw.loader: Replace log() calls with mw.track events

This allows other consumers (such as an error logging backend) to
subscribe to these errors.

Change-Id: I157e2fb5c6b4d77736fcaf0a87c624e76a833161

9 years agoMerge "jsduck: Add 'mediawiki.startUp.js' to eg-iframe"
jenkins-bot [Wed, 11 Mar 2015 15:20:20 +0000 (15:20 +0000)]
Merge "jsduck: Add 'mediawiki.startUp.js' to eg-iframe"

9 years agoMerge "FeedItem: Use full URL with protocol for <id>/<guid> in Atom/RSS feeds"
jenkins-bot [Wed, 11 Mar 2015 15:01:18 +0000 (15:01 +0000)]
Merge "FeedItem: Use full URL with protocol for <id>/<guid> in Atom/RSS feeds"

9 years agojsduck: Add 'mediawiki.startUp.js' to eg-iframe
Timo Tijhof [Wed, 11 Mar 2015 14:44:47 +0000 (15:44 +0100)]
jsduck: Add 'mediawiki.startUp.js' to eg-iframe

Follows-up 2ea420eed86. Without this, the startUp() is never called,
and mw.config remains undefined which caused some of the examples
to no longer work properly.

Also move onerror handler to first <script> (follows-up a64a07d).
Exceptions from other code (eg. startup or mediawiki modules),
were not being caught.

Also include 'error' in the line being logged from onerror.

Change-Id: I3956da40b0bd862acab6d4552932aa609c17d569

9 years agojsduck: Refactor example iframe to catch uncaught errors
Timo Tijhof [Sun, 8 Mar 2015 17:38:01 +0000 (18:38 +0100)]
jsduck: Refactor example iframe to catch uncaught errors

* Make logging function not depend on 'mw' existing.
* Add window.onerror handler.
* Keep exporting to mw.log because that's what existing examples
  use and is what uses should copy for interoperability with the
  regular runtime.

Change-Id: I2925532035974343125e34084f9ac7c8dd1fa279

9 years agoAllow edit summaries to be up to 767 bytes long
Brian Wolff [Fri, 20 Feb 2015 00:31:31 +0000 (20:31 -0400)]
Allow edit summaries to be up to 767 bytes long

This is just the db part. The changes to UI validation code will
come in a dependent patch later.

This changes the max size of various *_comment, *_description
and *_reason fields to be 767 bytes. This size is chosen to
be consistent with the largest we can get away with while
still having covering indexes.

It also unifies the various data types of these fields to
varbinary. (Note, this was previously done and reverted in
r80547, but I don't think the reason for revert applies to
the edit summary fields)

MyISAM has a much smaller max index size, and this wouldn't
work with that storage engine. However, none of these fields
are used in default indexes (only in WMF indexes), so this
should not be an issue for anyone using MyISAM. Postgress
and sqlite already supported the larger edit summary size.

Note: This patch increases min mysql version to 5.0.3.

Bug: T6715
Change-Id: I8558e80a18e4591f07f2c3e80f792ea4435c4e71

9 years agoAPI: Remove explicit profiling
Brad Jorsch [Tue, 10 Mar 2015 22:26:31 +0000 (18:26 -0400)]
API: Remove explicit profiling

The profileIn/profileOut pair should be covered by the Xhprof profiling
of the method calls it was wrapping.

The profileDBIn/profileDBOut pair are covered by profiling done by the
Database class.

Nothing in extensions in Gerrit is calling anything besides the
profileIn/profileOut pair (and likely those are only to avoid core
formerly throwing exceptions from internal profileDBIn/profileDBOut
calls), and nothing in core or extensions-in-Gerrit is using the methods
for fetching profiling data.

The methods are left as stubs for now to allow for backwards
compatibility in extensions.

Change-Id: I05ba4e2762dc86d5e2bafc183dce701239b43f5c

9 years agoMade JobQueueFederated no longer need "checkDelay" for delaying
Aaron Schulz [Tue, 10 Mar 2015 22:13:18 +0000 (15:13 -0700)]
Made JobQueueFederated no longer need "checkDelay" for delaying

* Cleaned up the weird logic for checking if delays are supported

Change-Id: I3a1a78bb48b4950b76f445bf8c27b5868d3dc89c

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 10 Mar 2015 21:09:43 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3be2b9a50b5695cd9c247bb9a0a49af82eed6ffd

9 years agoMerge "mw.ui: button: Update focus state"
jenkins-bot [Tue, 10 Mar 2015 18:25:42 +0000 (18:25 +0000)]
Merge "mw.ui: button: Update focus state"

9 years agoMerge "Introduce the Restbase Virtual REST Service class"
jenkins-bot [Tue, 10 Mar 2015 17:08:14 +0000 (17:08 +0000)]
Merge "Introduce the Restbase Virtual REST Service class"

9 years agoMerge "Update the Chinese conversion table for Chinese WikiProjects"
jenkins-bot [Tue, 10 Mar 2015 13:58:22 +0000 (13:58 +0000)]
Merge "Update the Chinese conversion table for Chinese WikiProjects"

9 years agoMinor doc fixes
Aaron Schulz [Tue, 10 Mar 2015 06:08:37 +0000 (23:08 -0700)]
Minor doc fixes

Change-Id: I80678e64cafcfd6e2c779452f466d8a630089568

9 years agoMerge "mediawiki.jqueryMsg: Fix examples in comments"
jenkins-bot [Tue, 10 Mar 2015 01:58:51 +0000 (01:58 +0000)]
Merge "mediawiki.jqueryMsg: Fix examples in comments"

9 years agoMerge "Add StatsD metric logging"
jenkins-bot [Tue, 10 Mar 2015 00:26:30 +0000 (00:26 +0000)]
Merge "Add StatsD metric logging"

9 years agoMerge "Specify max compatible kss version"
jenkins-bot [Tue, 10 Mar 2015 00:25:02 +0000 (00:25 +0000)]
Merge "Specify max compatible kss version"

9 years agoAdd StatsD metric logging
Ori Livneh [Fri, 20 Feb 2015 08:23:18 +0000 (00:23 -0800)]
Add StatsD metric logging

This patch adds a metric data service object to the IContextSource interface,
with full support for StatsD meters, gauges, counters and timing metrics, via
the liuggio/statsd-php-client, which this patch also introduces.

Usage example:

    $stats = $context->getStats();
    $stats->increment( 'resourceloader.cache.hits' );
    $stats->timing( 'resourceloader.cache.rtt', $rtt );

The metrics are flushed to a StatsD server, which may be specified via the
'StatsdServer' configuration key. If no such configuration key exists, the
metrics are discarded.

The StatsD client supplants MediaWiki's StatCounter class. wfIncrStats()
will continue to work, but it will delegate to the StatsD data object.

Change-Id: Ie10db1c154d225971398e189737de7c560bf0f90

9 years agoIntroduce the Restbase Virtual REST Service class
Marko Obrovac [Mon, 2 Mar 2015 14:35:21 +0000 (15:35 +0100)]
Introduce the Restbase Virtual REST Service class

Restbase, the REST content API service, is to be queried instead of
Parsoid by current Parsoid users (most importantly VE). This patch
introduces the Restbase virtual REST service class and transparently
maps Parsoid calls into Restbase ones if parsoidCompat is set when
creating the service object.

Additionally, $wgVirtualRestConfig is introduced in DefaultSettings.php. This
is a first step towards global service configuration and management.

Bug: T89066
Change-Id: I4d4043e5052327bbd789331f1c05b607c45fe7cb

9 years agomediawiki.jqueryMsg: Fix examples in comments
Fomafix [Mon, 9 Mar 2015 20:55:47 +0000 (20:55 +0000)]
mediawiki.jqueryMsg: Fix examples in comments

Change-Id: Ia6fcb718e9c0ef073ed472af29c8ca4507f45b5a

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 9 Mar 2015 20:44:38 +0000 (21:44 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I361e11d5dbbc13010b24e6dd49ff8153f5163535

9 years agoMerge "If no secret key is available, don't try to use cache"
jenkins-bot [Mon, 9 Mar 2015 18:54:51 +0000 (18:54 +0000)]
Merge "If no secret key is available, don't try to use cache"

9 years agoMerge "Added clarifying comments to IContextSource"
jenkins-bot [Mon, 9 Mar 2015 18:44:14 +0000 (18:44 +0000)]
Merge "Added clarifying comments to IContextSource"

9 years agoRename JSDuck config to standard 'jsduck'
Timo Tijhof [Sun, 8 Mar 2015 17:34:06 +0000 (18:34 +0100)]
Rename JSDuck config to standard 'jsduck'

* Move configuration to /jsduck.json per standard. This way
  it can be run as plain '$ jsduck' without needing a maintenance
  script or custom Jenkins job. Similar to JSHint, JSCS, Grunt,
  and Gem etc.

* Move --processes=0 from maintenace script into config file.
  This should've been in the config file all along and serves as
  workaround for https://github.com/senchalabs/jsduck/issues/525.

* Use grunt-contrib-copy instead of a symlink for resources.
  For local development a symlink works fine, but for publishing
  from Jenkins to doc.wikimedia.org the /docs/js/ directory needs
  to be standalone. This was previously done with a manual post-build
  step that added an additional rsync, but this logic should be
  in the repository so that the doc entry point can be simplified
  and standardised to 'npm run-script doc' for all projects.

Change-Id: Iaaaac50ee78dd9ff8f24f1ef3a3685ad51cf33b2

9 years agoMake PHP unit parser tests pass again after translation update
rillke [Mon, 9 Mar 2015 12:37:45 +0000 (13:37 +0100)]
Make PHP unit parser tests pass again after translation update

- sr-ec.json updated with 17607cf8965bf332f8c80d7a8e25a8c4e1107696

Change-Id: I7dfc9bcea2be85dd42d344858ce02246432f7fe1

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 8 Mar 2015 20:20:44 +0000 (21:20 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifc570f5a883ef4269e9d85b9e634f09e95716581

9 years agoFeedItem: Use full URL with protocol for <id>/<guid> in Atom/RSS feeds
Bartosz Dziewoński [Sat, 7 Mar 2015 22:52:44 +0000 (23:52 +0100)]
FeedItem: Use full URL with protocol for <id>/<guid> in Atom/RSS feeds

Bug: T89975
Change-Id: Ib84932b70aa8194b7bdabe7c90d7fdcc66054a1c

9 years agoAdded clarifying comments to IContextSource
Aaron Schulz [Sat, 7 Mar 2015 21:39:07 +0000 (13:39 -0800)]
Added clarifying comments to IContextSource

* Also removed some duplicated comments

Change-Id: I2c967d0f3219f3533378ecd5f9fccc40c8f9b219

9 years agoDon't require JavaScript for addHelpLink styles
Federico Leva [Sat, 7 Mar 2015 17:36:41 +0000 (18:36 +0100)]
Don't require JavaScript for addHelpLink styles

And avoid wfMessage.
Followup to 376c0a13df05f30367b2a89c2cac7bdab22600ed

Bug: T45591
Change-Id: I2f02c2a4db609356ff8be30f260490d19f3226d1

9 years agoMerge "mediawiki.special.upload: One event handling function is enough"
jenkins-bot [Sat, 7 Mar 2015 03:56:12 +0000 (03:56 +0000)]
Merge "mediawiki.special.upload: One event handling function is enough"

9 years agoPush enqueue-on-view jobs to the faster "local" queue
Aaron Schulz [Fri, 6 Mar 2015 21:50:17 +0000 (13:50 -0800)]
Push enqueue-on-view jobs to the faster "local" queue

* This only matters for multi-DC setups, otherwise everything is local anyway

Bug: T91819
Change-Id: I0756b59ae1ba27a5d24cf7baef6d068b748e6e30

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 6 Mar 2015 21:27:34 +0000 (21:27 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 6 Mar 2015 21:23:26 +0000 (22:23 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5e91846766f3558874fd179fd7a1a3702901bda4

9 years agoMerge "Remove isVolatile/markVolatile logic from LocalFile"
jenkins-bot [Fri, 6 Mar 2015 21:23:17 +0000 (21:23 +0000)]
Merge "Remove isVolatile/markVolatile logic from LocalFile"

9 years agoRemove isVolatile/markVolatile logic from LocalFile
Aaron Schulz [Thu, 5 Mar 2015 21:08:41 +0000 (13:08 -0800)]
Remove isVolatile/markVolatile logic from LocalFile

* This is obsoleted by the "latest" flag
* Follows-up 5085a4b

Bug: T88506
Change-Id: I808c3a6f0edb3466cb600c06c5e742ab030baf14

9 years agoMerge "Added EnqueueJob class that handles routing jobs to queues"
jenkins-bot [Fri, 6 Mar 2015 20:03:10 +0000 (20:03 +0000)]
Merge "Added EnqueueJob class that handles routing jobs to queues"

9 years agoUpdate the Chinese conversion table for Chinese WikiProjects
Chiefwei [Sun, 11 Jan 2015 11:06:17 +0000 (19:06 +0800)]
Update the Chinese conversion table for Chinese WikiProjects

The Chinese conversion table is substantially updated to fix a lot of
bugs reported in recent years, and the script generating conversion
table (LanguageZh.php) is also modified to facilitate the maintenance.

Zh-sg and zh-my is set to fallback to zh-cn to improve reading
experience, since there is only trivial difference among them, just like
zh-hk and zh-mo. Further optimization for zh-sg and zh-my will be
performed in local conversion table of Chinese WikiProjects.

Bug: T91620
Change-Id: I1bb0315d6d7a2c9653905654d933942e362bcc42

9 years agoMerge "Made wfFindFile/wfLocalFile callers use explicit "latest" flags"
jenkins-bot [Fri, 6 Mar 2015 19:13:50 +0000 (19:13 +0000)]
Merge "Made wfFindFile/wfLocalFile callers use explicit "latest" flags"

9 years agoMerge "inputs.less: Change focus state"
jenkins-bot [Fri, 6 Mar 2015 18:19:49 +0000 (18:19 +0000)]
Merge "inputs.less: Change focus state"

9 years agoSet up RuboCop configuration according to coding conventions
Željko Filipin [Fri, 6 Mar 2015 16:06:54 +0000 (17:06 +0100)]
Set up RuboCop configuration according to coding conventions

Updated RuboCop to the latest version.

Renenerated .rubocop_todo.yml file with “bundle exec rubocop
--auto-gen-config”.

See also:

https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby#Base_confi
guration

Bug: T91485
Change-Id: I926d6ee114ccc01076e8df6ec3f95eb2af78c212

9 years agoQA: Refactor for mediawiki_selenium 1.0
Dan Duvall [Thu, 5 Mar 2015 22:41:11 +0000 (14:41 -0800)]
QA: Refactor for mediawiki_selenium 1.0

Refactored by following steps outlined in UPGRADE.md under the
mediawiki_selenium project.

Change-Id: I52717292df0541eb489b34ec083ec4a957f7546d

9 years agoMade wfFindFile/wfLocalFile callers use explicit "latest" flags
Aaron Schulz [Thu, 5 Mar 2015 20:13:28 +0000 (12:13 -0800)]
Made wfFindFile/wfLocalFile callers use explicit "latest" flags

* Callers that should not use caches won't
* Aliased the old "bypassCache" param to "latest"

bug: T89184
Change-Id: I9f79e5942ced4ae13ba4de0b4c62908cc746e777

9 years agoMerge "resourceloader: Call setName() in test suite before calling getStyles()"
jenkins-bot [Fri, 6 Mar 2015 03:22:59 +0000 (03:22 +0000)]
Merge "resourceloader: Call setName() in test suite before calling getStyles()"

9 years agoMerge "maintenance: Defer initilization of 'main' Config until after Setup.php runs"
Kunal Mehta [Fri, 6 Mar 2015 03:18:15 +0000 (03:18 +0000)]
Merge "maintenance: Defer initilization of 'main' Config until after Setup.php runs"

9 years agoresourceloader: Call setName() in test suite before calling getStyles()
Timo Tijhof [Fri, 6 Mar 2015 02:26:44 +0000 (03:26 +0100)]
resourceloader: Call setName() in test suite before calling getStyles()

This caused a database error due to NULL being inserted as name, which is illegal.

> Function: DatabaseSqlite::replace/single-row
> NOT NULL constraint failed: unittest_module_deps.md_module
> Stack trace:
> #3 includes/resourceloader/ResourceLoaderFileModule.php(420): DatabaseSqlite->replace()
> #4 tests/phpunit/includes/resourceloader/ResourceLoaderTest.php(88): ResourceLoaderFileModule->getStyles()
> #5 (): ResourceLoaderTest->testLessFileCompilation()

This test shouldn't be trigggering database updates, but that's for
a later change to stub out or refactor.

Bug: T91567
Change-Id: Ic451bd41e2ffc188d2efd6b7ce61b03b9de61296

9 years agoMerge "mw.Feedback: Terms of use always appended and allows for link"
jenkins-bot [Fri, 6 Mar 2015 01:53:20 +0000 (01:53 +0000)]
Merge "mw.Feedback: Terms of use always appended and allows for link"

9 years agoSpecify max compatible kss version
S Page [Fri, 6 Mar 2015 01:49:07 +0000 (17:49 -0800)]
Specify max compatible kss version

core/docs/kss/styleguide-template/index.html uses {{whenDepth}} and
other functions deprecated in kss 2.0, so set an upper version bound in
package.json

Bug: T91725
Change-Id: I55669f3cc1c34911f717fe5fce3ea6ed00510177

9 years agomw.Feedback: Terms of use always appended and allows for link
Moriel Schottlender [Fri, 6 Mar 2015 01:42:38 +0000 (17:42 -0800)]
mw.Feedback: Terms of use always appended and allows for link

Bring the terms of use link outside of the general checkbox message
and have it appear regardless of whether the checkbox is shown.
Also make sure it is parsed correctly if/when it has a link.

Change-Id: Ic1072690e33927e472f8ba529b16fa32280a6abc

9 years agomediawiki.test: Prevent "Error: expected" from going to the real console
Timo Tijhof [Fri, 6 Mar 2015 01:06:00 +0000 (02:06 +0100)]
mediawiki.test: Prevent "Error: expected" from going to the real console

Keeps the build logs cleaner and less confusing.

Change-Id: Ibbbf5dd367cab798885df34b9dd73f84229d3c5e

9 years agoRemove rel="archives" from HTML output
Kevin Israel [Sun, 1 Mar 2015 11:05:25 +0000 (06:05 -0500)]
Remove rel="archives" from HTML output

Follows-up fab055d6a1.
Introduced in 4299d27956 (r45988)

That link type was removed from HTML5 in 2011. It is not recognized
by the W3C Markup Validator.

https://html5.org/r/5925
https://www.w3.org/Bugs/Public/show_bug.cgi?id=11486
https://html.spec.whatwg.org/multipage/semantics.html#linkTypes

Change-Id: I61ddd7ee3df41bfb62423d0498217d31e7952902

9 years agoUnbreak parser tests
Kunal Mehta [Thu, 5 Mar 2015 22:47:52 +0000 (14:47 -0800)]
Unbreak parser tests

Caused by f988ef004cd4e6c21649fb30a7d421aadae8f495, which would
have failed tests if l10n-bot hadn't self-merged.

Change-Id: I4674178f51c9b67bc057a84b06b3e4153857860b

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 5 Mar 2015 20:34:15 +0000 (21:34 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8fd55473983eff489284bbc3ff46c1bcffdb1ce1

9 years agoMerge "Fixed detection of unsigned mysql column in updater"
jenkins-bot [Thu, 5 Mar 2015 18:58:14 +0000 (18:58 +0000)]
Merge "Fixed detection of unsigned mysql column in updater"

9 years agoFixed detection of unsigned mysql column in updater
umherirrender [Wed, 18 Feb 2015 18:34:30 +0000 (19:34 +0100)]
Fixed detection of unsigned mysql column in updater

MediaWiki running with an old mysql or php without mysqli cannot
use the newly added flags property of Database::fieldInfo.
For backward compatibility add the missing properties using the flags
property to the result of Database::fieldInfo.

Added missing unsigned, numeric, blob and zerofill properties to the
MysqlField using flags in mysqli.
The missing fields in mysqli are taken from
http://php.net/manual/en/function.mysql-fetch-field.php

Follow-Up: I641dc1fad0a5bb14815f55e0357243a562fd672b
Change-Id: I1da904df72f8af7725fc7ff94121ef85b18a36f8

9 years agoRemove duplicate param escaping code
Yuri Astrakhan [Thu, 9 Oct 2014 01:47:35 +0000 (21:47 -0400)]
Remove duplicate param escaping code

wfEscapeShellArg() can handle multiple params, escaping each.
This patch changes wfShellExec() to call wfEscapeShellArg() directly
instead of doing the gluing itself.

This patch also extends wfEscapeShellArg() to accept an array parameter
optionally instead of as separate args, which is often useful.

Added also unit test cases for single, multiple args, and single array args.

Change-Id: I7a0761cc2ba98c210a9eacadd12da407d933e42a

9 years agoMerge "Browser should clear cache for API responses"
jenkins-bot [Thu, 5 Mar 2015 17:01:17 +0000 (17:01 +0000)]
Merge "Browser should clear cache for API responses"

9 years agoParsoidVirtualRESTService: Don't use "else if"
Kunal Mehta [Sun, 1 Mar 2015 22:09:30 +0000 (14:09 -0800)]
ParsoidVirtualRESTService: Don't use "else if"

https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#C_borrowings

Change-Id: Ica51fd60e3da75d3b882cf3172ef7500afeab0db

9 years agoMerge "Made the "bypassCache" flag for file locator methods use the master DB"
jenkins-bot [Thu, 5 Mar 2015 16:28:31 +0000 (16:28 +0000)]
Merge "Made the "bypassCache" flag for file locator methods use the master DB"

9 years agoBrowser should clear cache for API responses
Mark A. Hershberger [Tue, 3 Mar 2015 22:17:58 +0000 (17:17 -0500)]
Browser should clear cache for API responses

By default we send "private, must-revalidate, max-age=0" for regular
logged-in wiki viewing.  This changes API responses to match.

Later, someone should update the Cache-Control header generation so
that it works the same for API responses as it does for OutputPage.
This is becoming more important since we're using the API instead of
OutputPage for editing with VisualEditor.

Bug: T74480
Change-Id: Ib309df8568de2c7137b6d13b9ca4004150a772dd

9 years agomw.ui: button: Update focus state
Prateek Saxena [Thu, 5 Mar 2015 08:27:24 +0000 (13:57 +0530)]
mw.ui: button: Update focus state

The focus and hover states were the same. Updating it according to the
design specification - https://phabricator.wikimedia.org/M31

Bug: T88449
Change-Id: Ibdd5e1553174bfde82af3a23b746a3918b8f0416

9 years agoMade the "bypassCache" flag for file locator methods use the master DB
Aaron Schulz [Thu, 5 Mar 2015 01:02:05 +0000 (17:02 -0800)]
Made the "bypassCache" flag for file locator methods use the master DB

* Added a File::load() stub method
* Cleaned up the File loading flags bitfield a bit

bug: T89184
Change-Id: I1aa4b096c0cad5f5ca34321cc897019005c53a76

9 years agoFix three more invalid double underscore special page aliases
Federico Leva [Thu, 5 Mar 2015 00:45:06 +0000 (01:45 +0100)]
Fix three more invalid double underscore special page aliases

Cf. f8207aeb17f955a79a726df775d3643c550605fa

Change-Id: I6e72273524c54016296c1a77d978fd6a872a542e

9 years agoUpdate OOjs UI to v0.9.0
James D. Forrester [Thu, 5 Mar 2015 00:03:21 +0000 (16:03 -0800)]
Update OOjs UI to v0.9.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.0/History.md

Change-Id: I73d20f6556558bd5675c11addfcd27d417173693

9 years agoMerge "Profile wfShellExec() calls by caller"
jenkins-bot [Wed, 4 Mar 2015 23:32:17 +0000 (23:32 +0000)]
Merge "Profile wfShellExec() calls by caller"

9 years agoProfile wfShellExec() calls by caller
Chad Horohoe [Wed, 4 Mar 2015 06:23:00 +0000 (22:23 -0800)]
Profile wfShellExec() calls by caller

Change-Id: Ide437ec586b9e123ca73b5abd17278a72375dfb0

9 years agoAdded EnqueueJob class that handles routing jobs to queues
Aaron Schulz [Wed, 4 Mar 2015 21:53:40 +0000 (13:53 -0800)]
Added EnqueueJob class that handles routing jobs to queues

Bug: T89308
Change-Id: Iadb34f24d8bbe94c0f9f119e530c0bbe1060df0a

9 years agoAdd "ValidSkinNames" to extension.schema.json and ExtensionProcessor
Kunal Mehta [Wed, 4 Mar 2015 20:34:35 +0000 (12:34 -0800)]
Add "ValidSkinNames" to extension.schema.json and ExtensionProcessor

skin.json goes through the same exact code as extension.json does, and needs
to be able to add skins.

Change-Id: Idd0acaf6735b4c308d3ab584c49da4e97448347f

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 4 Mar 2015 19:29:14 +0000 (20:29 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4d53140c8b780ef5d6118ac535ab2a70c7e0082b

9 years agoMerge "Shorten long lines in PrefixSearch.php to make phpcs pass"
jenkins-bot [Wed, 4 Mar 2015 18:22:32 +0000 (18:22 +0000)]
Merge "Shorten long lines in PrefixSearch.php to make phpcs pass"

9 years agoMerge "API: Properly handle limit and continuation for generator=prefixsearch"
jenkins-bot [Wed, 4 Mar 2015 18:05:32 +0000 (18:05 +0000)]
Merge "API: Properly handle limit and continuation for generator=prefixsearch"

9 years agoIf no secret key is available, don't try to use cache
kaldari [Tue, 3 Mar 2015 22:19:35 +0000 (14:19 -0800)]
If no secret key is available, don't try to use cache

In the unlikely event that no secret key is available, we shouldn't
rely on the cache at all in TemplateParser.

Adding new compileForEval() function and and moving eval() outside
of if statement to prevent code duplication.

Also, if the template fails integrity check, generate a notice
instead of throwing an exception in case we change the secret key.

Change-Id: Id44fdcc9533fc8a9c77e84fcebaa064f602477c6

9 years agoMerge "Add top help link to MediaWiki.org in several pages via indicator"
jenkins-bot [Wed, 4 Mar 2015 16:15:53 +0000 (16:15 +0000)]
Merge "Add top help link to MediaWiki.org in several pages via indicator"

9 years agomediawiki.special.upload: One event handling function is enough
rillke [Sat, 14 Feb 2015 12:36:41 +0000 (13:36 +0100)]
mediawiki.special.upload: One event handling function is enough

- Common event handling function for all radios
- Only remove `mw-upload-source-error` once per radio change
  (there is no way to disable a radio button without enabling another one)

Change-Id: I1e5c7c403efb26c74df39669491bc49602a9df4f

9 years agoAPI: Properly handle limit and continuation for generator=prefixsearch
Brad Jorsch [Wed, 4 Mar 2015 14:30:14 +0000 (09:30 -0500)]
API: Properly handle limit and continuation for generator=prefixsearch

The search engine is queried for limit+1 titles, so we know whether to
output a continuation value. Actually do this for generator mode,
instead of just returning the limit+1 titles.

Bug: T91503
Change-Id: Ib80c6d3fa9e8b52ae1f5c58fbe74c8e909329e59

9 years agoMerge "Add anchor "mw-oldid" for beginning of page content in diff view"
jenkins-bot [Wed, 4 Mar 2015 10:22:58 +0000 (10:22 +0000)]
Merge "Add anchor "mw-oldid" for beginning of page content in diff view"

9 years agoAdd anchor "mw-oldid" for beginning of page content in diff view
Federico Leva [Fri, 16 Jan 2015 22:50:34 +0000 (23:50 +0100)]
Add anchor "mw-oldid" for beginning of page content in diff view

* #top, #mw-content-text and others exist, but all point to the
  beginning of the diff, not of the actual page content.
* Pick mw- prefix and technical but familiar related name, in
  the hope it's not confusing nor too hard to remember.
* Lowercase letters, similar to #top, #footer, #file etc. were also
  considered and discard, inspired to usual names:
  https://www.wikidata.org/wiki/Q10966628

Bug: T4313
Change-Id: Ia90f2541327480535e9943ac30bfa19791a19620

9 years agoAdd top help link to MediaWiki.org in several pages via indicator
Nemo bis [Sun, 31 Aug 2014 10:25:18 +0000 (13:25 +0300)]
Add top help link to MediaWiki.org in several pages via indicator

All the chosen targets are translatable public domain help pages
on MediaWiki.org. Mostly special pages and actions for privileged
users for now.

Adapted from the Translate extension, credit to Niklas Laxström
(TranslateUtils::addSpecialHelpLink).

Depends on 6f5b29ff4e6fdf21b5a8cacaf10d6aceaee26a7d, whose commit
message has a typo addIndicator() instead of setIndicator().

Bug: T45591
Change-Id: I2934b1708a0d207dcf3d940264f140613646f203

9 years agomaintenance: Defer initilization of 'main' Config until after Setup.php runs
Kunal Mehta [Wed, 4 Mar 2015 07:51:44 +0000 (23:51 -0800)]
maintenance: Defer initilization of 'main' Config until after Setup.php runs

Bug: T90680
Change-Id: I72d6306404bc1f6c7a605853130a026e9858b493

9 years agoShorten long lines in PrefixSearch.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:29:22 +0000 (20:29 +0200)]
Shorten long lines in PrefixSearch.php to make phpcs pass

Change-Id: Ibf18835ff614e53887912b8e997a3230ed29dd68

9 years agoMerge "Remove unused alias/layer of test abstraction wfShellMaintenanceCmd()"
jenkins-bot [Wed, 4 Mar 2015 06:48:14 +0000 (06:48 +0000)]
Merge "Remove unused alias/layer of test abstraction wfShellMaintenanceCmd()"

9 years agoMerge "Moved some JobQueueAggregator logic out of JobQueueGroup"
jenkins-bot [Wed, 4 Mar 2015 06:16:51 +0000 (06:16 +0000)]
Merge "Moved some JobQueueAggregator logic out of JobQueueGroup"

9 years agoRemove unused alias/layer of test abstraction wfShellMaintenanceCmd()
Chad Horohoe [Wed, 4 Mar 2015 06:15:52 +0000 (22:15 -0800)]
Remove unused alias/layer of test abstraction wfShellMaintenanceCmd()

Change-Id: I28d303f9b89ffad052d06eb2dbb9e6f8cfaeea24

9 years agoMerge "Removed obsolete "containsOldMagic" code"
jenkins-bot [Wed, 4 Mar 2015 06:02:04 +0000 (06:02 +0000)]
Merge "Removed obsolete "containsOldMagic" code"

9 years agoMoved some JobQueueAggregator logic out of JobQueueGroup
Aaron Schulz [Mon, 16 Feb 2015 23:34:53 +0000 (15:34 -0800)]
Moved some JobQueueAggregator logic out of JobQueueGroup

Change-Id: I28ba1a25db225d4cf5f503a6c0f4405f13118151

9 years agoMerge "Delay language conversion cache construction until needed"
jenkins-bot [Wed, 4 Mar 2015 05:49:35 +0000 (05:49 +0000)]
Merge "Delay language conversion cache construction until needed"