lhc/web/wiklou.git
7 years agoMerge "Don't fallback from uk to ru"
jenkins-bot [Tue, 29 Nov 2016 08:00:43 +0000 (08:00 +0000)]
Merge "Don't fallback from uk to ru"

7 years agoMerge "Revert "MessageCache invalidation improvements" (temporary)"
jenkins-bot [Tue, 29 Nov 2016 03:31:23 +0000 (03:31 +0000)]
Merge "Revert "MessageCache invalidation improvements" (temporary)"

7 years agoRevert "MessageCache invalidation improvements" (temporary)
Andrew Green [Tue, 29 Nov 2016 01:06:00 +0000 (19:06 -0600)]
Revert "MessageCache invalidation improvements" (temporary)

This reverts commit 9339a08b72c918d7743a9cb286161adb9399a77b
(Change-Id: Idc337a787171949c4f70186b13d7b65304c9b57f).

This is a temporary revert to prevent the change's inclusion in
wmf/1.29.0-wmf.4. That branch is scheduled to be deployed to WMF wikis
during the first week of the WMF's 2016 year-end fundraiser. Since
CentralNotice relies on MessageCache to fetch fundraising banners,
it is preferable not to deploy changes of any significant complexity in
that system at this time.

The original change should be re-applied at a later date. Sincere
apologies to the change's authors! :)

Change-Id: I8330838bbe03ce6ed38fa2e755b44519211d9d43

7 years agoMerge "populateContentModel: Invalidate content model and revision cache"
jenkins-bot [Tue, 29 Nov 2016 00:53:17 +0000 (00:53 +0000)]
Merge "populateContentModel: Invalidate content model and revision cache"

7 years agopopulateContentModel: Invalidate content model and revision cache
Matthew Flaschen [Thu, 17 Nov 2016 22:51:07 +0000 (17:51 -0500)]
populateContentModel: Invalidate content model and revision cache

The cache is computed from both the default values and the DB.

If someone visits the page when the wrong default value is there,
it will be cached.

When we populate the DB with the correct value (usually in preparation
for changing the namespace default), we need to invalidate the
potentially broken cache.

Change-Id: I995c0d9fdec529a456762571d5406d0bd0d33aed

7 years agoBring REL1_28 into HISTORY
Reedy [Mon, 28 Nov 2016 21:20:05 +0000 (21:20 +0000)]
Bring REL1_28 into HISTORY

Remove RELEASE-NOTES-1.28 from master

Change-Id: I553cd5eef5f38d163e6a73fb176b0c561d276bc9

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Mon, 28 Nov 2016 21:06:04 +0000 (21:06 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Nov 2016 21:04:28 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I00993a0d19ffe9054ea307d550ecd83d54be31d7

7 years agoPrevent fatal error if $wgCookieSetOnAutoblock is changed to false
Kaldari [Mon, 28 Nov 2016 19:44:36 +0000 (11:44 -0800)]
Prevent fatal error if $wgCookieSetOnAutoblock is changed to false

... and user still has a block cookie set.

Bug: T151097
Change-Id: I5a2fdc53250f629579428efbed39f6fb1f1531f3

7 years agoMerge "Always preserve uselang in login form"
jenkins-bot [Mon, 28 Nov 2016 17:58:24 +0000 (17:58 +0000)]
Merge "Always preserve uselang in login form"

7 years agoAlways preserve uselang in login form
Gergő Tisza [Fri, 25 Nov 2016 04:08:40 +0000 (04:08 +0000)]
Always preserve uselang in login form

If $wgLoginLanguageSelector is false, we don't show the language
selector; but there's no reason to ignore a uselang URL parameter.

Change-Id: I66c3c2cf50d4071e82bfe736dfe5480686d763f3

7 years agoMerge "Add $linkTrail for Bengali (bn)"
jenkins-bot [Mon, 28 Nov 2016 11:57:39 +0000 (11:57 +0000)]
Merge "Add $linkTrail for Bengali (bn)"

7 years agoAdd $linkTrail for Bengali (bn)
MarcoAurelio [Sun, 27 Nov 2016 12:28:08 +0000 (13:28 +0100)]
Add $linkTrail for Bengali (bn)

Bug: T151111
Change-Id: I3723a10022de0c53a99d7275390e86a2c66c862c

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Sun, 27 Nov 2016 21:08:38 +0000 (21:08 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 Nov 2016 21:01:37 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9ae16f820004b74f470a23b1d3d738d7deb348dd

7 years agoMerge "Fallback Livvi-Karelian (olo) to Finnish (fi)"
jenkins-bot [Sun, 27 Nov 2016 14:52:57 +0000 (14:52 +0000)]
Merge "Fallback Livvi-Karelian (olo) to Finnish (fi)"

7 years agoFallback Livvi-Karelian (olo) to Finnish (fi)
MarcoAurelio [Fri, 30 Sep 2016 12:43:36 +0000 (12:43 +0000)]
Fallback Livvi-Karelian (olo) to Finnish (fi)

Bug: T146744
Change-Id: I413425b9389307e3ec4e9a45cc8946d82ed9bdbd

7 years agoAdd a context to ChangeTags::buildTagFilterSelector
amritsreekumar [Sat, 15 Oct 2016 19:15:06 +0000 (00:45 +0530)]
Add a context to ChangeTags::buildTagFilterSelector

A IContextSource is added as parameter to ChangeTags::buildTagFilterSelector static function, which can be used to avoid the globals.

Bug: T105649
Change-Id: I50ca27c75b4807f5e4391648bfd5cac9169517e9

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Nov 2016 21:25:19 +0000 (22:25 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iec63f3890910587e0b332b6489566c7bcf992f5a

7 years agoMerge "SpecialUserrights: Remove incorrect comment"
jenkins-bot [Fri, 25 Nov 2016 19:08:04 +0000 (19:08 +0000)]
Merge "SpecialUserrights: Remove incorrect comment"

7 years agoMerge "Remove broken GENDER support for 'editusergroup'"
jenkins-bot [Fri, 25 Nov 2016 19:08:01 +0000 (19:08 +0000)]
Merge "Remove broken GENDER support for 'editusergroup'"

7 years agoMerge "Allow all users to view Special:UserRights"
jenkins-bot [Fri, 25 Nov 2016 19:05:43 +0000 (19:05 +0000)]
Merge "Allow all users to view Special:UserRights"

7 years agoMerge "HTMLFormFieldCloner: Don't try to validate hidden fields"
jenkins-bot [Fri, 25 Nov 2016 18:59:02 +0000 (18:59 +0000)]
Merge "HTMLFormFieldCloner: Don't try to validate hidden fields"

7 years agoMerge "HTMLDateTimeField: Fix 'placeholder' attribute handling"
jenkins-bot [Fri, 25 Nov 2016 18:58:48 +0000 (18:58 +0000)]
Merge "HTMLDateTimeField: Fix 'placeholder' attribute handling"

7 years agoMerge "HTMLForm: Allow returning Message objects from HTMLFormField::validate()"
jenkins-bot [Fri, 25 Nov 2016 09:11:07 +0000 (09:11 +0000)]
Merge "HTMLForm: Allow returning Message objects from HTMLFormField::validate()"

7 years agoMerge "Better handling of Message objects as Message parameters"
jenkins-bot [Fri, 25 Nov 2016 09:01:13 +0000 (09:01 +0000)]
Merge "Better handling of Message objects as Message parameters"

7 years agoMerge "Change 'rights' to 'groups' on MediaWiki:Savedrights"
jenkins-bot [Fri, 25 Nov 2016 08:57:49 +0000 (08:57 +0000)]
Merge "Change 'rights' to 'groups' on MediaWiki:Savedrights"

7 years agoMerge "Remove unused messages"
jenkins-bot [Fri, 25 Nov 2016 08:55:36 +0000 (08:55 +0000)]
Merge "Remove unused messages"

7 years agoMerge "Introduce separate log action for deleting pages on move"
jenkins-bot [Fri, 25 Nov 2016 02:52:28 +0000 (02:52 +0000)]
Merge "Introduce separate log action for deleting pages on move"

7 years agoMerge "OutputPage::getCategories(): Add a possibility to distinguish "normal" and...
jenkins-bot [Fri, 25 Nov 2016 00:17:04 +0000 (00:17 +0000)]
Merge "OutputPage::getCategories(): Add a possibility to distinguish "normal" and "hidden" categories"

7 years agoOutputPage::getCategories(): Add a possibility to distinguish "normal" and "hidden...
Florian [Fri, 8 Jul 2016 19:11:53 +0000 (21:11 +0200)]
OutputPage::getCategories(): Add a possibility to distinguish "normal" and "hidden" categories

There's currently no way to get, e.g., all categories except the
hidden ones just as text. The OutputPage::getCategories() method
always returns all categories as an array of strings (titles) and
the getCategoryLinks() method returns the result of Linker::link
but with the distinction between "normal" and "hidden" categories.

This change adds a new parameter to OutputPage::getCategories(),
$type, which can be used to define, what categories should be
returned. The default value is "all", which means, that all categories
are returned (the current result of the method). With the value
"normal" and "hidden", the method will return the respective values.

This could be used in I97d7de723fe72da26c7dbde0a559a13704c7099a to
remove the stupid Linker::link() and isset workaround.

Change-Id: Iadda9ae362a21fbee770240234b8f55326219932

7 years agoMerge "parserTests: flag articles creation as internal"
jenkins-bot [Thu, 24 Nov 2016 23:15:45 +0000 (23:15 +0000)]
Merge "parserTests: flag articles creation as internal"

7 years agoMerge "Bypass login page if no user input is required."
jenkins-bot [Thu, 24 Nov 2016 22:59:42 +0000 (22:59 +0000)]
Merge "Bypass login page if no user input is required."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 24 Nov 2016 20:58:35 +0000 (21:58 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iada97380cdfe0985bd19225597d55779094251a1

7 years agoMerge "Get ConfigFactory & MainConfig from MediaWikiServices"
jenkins-bot [Thu, 24 Nov 2016 18:08:36 +0000 (18:08 +0000)]
Merge "Get ConfigFactory & MainConfig from MediaWikiServices"

7 years agoSpecialUserrights: Remove incorrect comment
Bartosz Dziewoński [Wed, 23 Nov 2016 15:37:39 +0000 (16:37 +0100)]
SpecialUserrights: Remove incorrect comment

While this used to be true, it no longer is since we require at least
PHP 5.5, and I don't see how this would improve the code here anyway.

Change-Id: Ica1995f1b2208f2a99696cf0a0010131737d490f

7 years agoRemove broken GENDER support for 'editusergroup'
Bartosz Dziewoński [Wed, 23 Nov 2016 15:21:54 +0000 (16:21 +0100)]
Remove broken GENDER support for 'editusergroup'

This is a label on a button, displayed next to a text field for
the username. So the username is not known when this is displayed.

This undoes some changes from 24db39408e814cf4163df1bfd303aab1963a02c1
and 99c4684f2cea9230328cbb377253307255a474af.

Change-Id: I69daef350ea2184671b9d158dd1ff2d15cad0eb4

7 years agoMerge "Move MimeAnalyzer params to ServiceWiring"
jenkins-bot [Thu, 24 Nov 2016 17:04:37 +0000 (17:04 +0000)]
Merge "Move MimeAnalyzer params to ServiceWiring"

7 years agoHTMLFormFieldCloner: Don't try to validate hidden fields
Bartosz Dziewoński [Thu, 24 Nov 2016 16:42:29 +0000 (17:42 +0100)]
HTMLFormFieldCloner: Don't try to validate hidden fields

Follow-up to 788526c2d1a4a9e32722c0a26b4a5027f00aa9bb.

To test: try to create a SecurePoll of type "Approval vote". Without this
patch, but with I81d04dca6cbb499a15828fd33b01746b68c694da, an invisible
field (only applicable for "Range voting (plurality)") will fail validation.

Change-Id: I37e50799ba1f0e0e64a197818b58444f5b056bf0

7 years agoHTMLDateTimeField: Fix 'placeholder' attribute handling
Bartosz Dziewoński [Thu, 24 Nov 2016 15:13:40 +0000 (16:13 +0100)]
HTMLDateTimeField: Fix 'placeholder' attribute handling

Parent class HTMLTextField handles this specially and we have to match it.

Change-Id: Ibff3caba2a58c2bcbfb342789aae9f0939b7687f

7 years agoparserTests: flag articles creation as internal
Antoine Musso [Thu, 24 Nov 2016 15:09:26 +0000 (16:09 +0100)]
parserTests: flag articles creation as internal

When the parser test suite creates articles, there is no need to check
whether it has been pre parsed in stash edit. That is quite spammy in
the debug log and always a cache miss.

Bypass the cache lookup by passing EDIT_INTERNAL to doEditContent()

Change-Id: I27e212ab1a76ebcf25b383514c9ad8ad0b28383c

7 years agoMerge "Only apply wgDBschema to postgres/mssql"
jenkins-bot [Thu, 24 Nov 2016 02:20:22 +0000 (02:20 +0000)]
Merge "Only apply wgDBschema to postgres/mssql"

7 years agoMerge "RC filter: hidebyothers"
jenkins-bot [Thu, 24 Nov 2016 00:26:04 +0000 (00:26 +0000)]
Merge "RC filter: hidebyothers"

7 years agoMove MimeAnalyzer params to ServiceWiring
addshore [Tue, 22 Nov 2016 23:57:34 +0000 (23:57 +0000)]
Move MimeAnalyzer params to ServiceWiring

Change-Id: Ic3df489cd8f4af2c0de39aaac3140ace107d4bf4

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 23 Nov 2016 21:12:51 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6d2494c3a9dc792dcb951ec1e5e7ed259a139ace

7 years agoMerge "ApiSandbox: Support 'all' specifiers"
jenkins-bot [Wed, 23 Nov 2016 19:00:27 +0000 (19:00 +0000)]
Merge "ApiSandbox: Support 'all' specifiers"

7 years agoMerge "Add PARAM_ALL setting for multi-option API parameters"
jenkins-bot [Wed, 23 Nov 2016 19:00:23 +0000 (19:00 +0000)]
Merge "Add PARAM_ALL setting for multi-option API parameters"

7 years agoChange 'rights' to 'groups' on MediaWiki:Savedrights
MarcoAurelio [Wed, 23 Nov 2016 17:58:08 +0000 (18:58 +0100)]
Change 'rights' to 'groups' on MediaWiki:Savedrights

Bug: T151458
Change-Id: I1583def2d311355bfc9abc11f43fde9abecb2f67

7 years agoMerge "Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase"
jenkins-bot [Wed, 23 Nov 2016 17:57:29 +0000 (17:57 +0000)]
Merge "Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase"

7 years agoAdd exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase
Ed Sanders [Fri, 7 Oct 2016 17:14:03 +0000 (13:14 -0400)]
Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase

Bug: T147646
Bug: T141723
Change-Id: Ic7a3d0cebbf4aec507db195ba8f587cecc1992aa

7 years agoMerge "Use MediaWikiServices::getMainWANObjectCache in ServiceWiring"
jenkins-bot [Wed, 23 Nov 2016 17:29:16 +0000 (17:29 +0000)]
Merge "Use MediaWikiServices::getMainWANObjectCache in ServiceWiring"

7 years agoDon't fallback from uk to ru
Adam Roses Wight [Mon, 23 May 2016 22:17:49 +0000 (15:17 -0700)]
Don't fallback from uk to ru

Bug: T39314
Change-Id: I7c72702524bb75bb939a30b6c8e451ae8f89e906

7 years agoRemove unused messages
Bartosz Dziewoński [Wed, 23 Nov 2016 16:28:49 +0000 (17:28 +0100)]
Remove unused messages

Follow-up to 022f26e9fd3ae865331f3bb1b3eec63e212240c9.

Bug: T149473
Change-Id: Iab20dc5179d93fce90a4f282903e5c53635623a8

7 years agoAllow all users to view Special:UserRights
Jackmcbarn [Fri, 19 Dec 2014 05:28:35 +0000 (00:28 -0500)]
Allow all users to view Special:UserRights

Allow Special:UserRights to always be used in read-only mode, rather than
completely locking out users who cannot make modifications with it.

Bug: T27319
Change-Id: I57e9ca4f20fe557e4024c4f5a4865170f02ebb45

7 years agoMerge "mw.widgets.CategorySelector: Add placeholder text"
jenkins-bot [Wed, 23 Nov 2016 13:09:29 +0000 (13:09 +0000)]
Merge "mw.widgets.CategorySelector: Add placeholder text"

7 years agoReplace $.parseJSON by JSON.parse
Fomafix [Tue, 22 Nov 2016 05:45:05 +0000 (06:45 +0100)]
Replace $.parseJSON by JSON.parse

$.parseJSON gets deprecated in jQuery 3.0:
https://jquery.com/upgrade-guide/3.0/#deprecated-jquery-parsejson

Change-Id: I5d28e2cadd4bf598908943176a757b7c5386d27c

7 years agoMerge "actions: Fix typo in ViewAction.php doc comment"
jenkins-bot [Wed, 23 Nov 2016 02:29:26 +0000 (02:29 +0000)]
Merge "actions: Fix typo in ViewAction.php doc comment"

7 years agoMerge "Remove JSON polyfill, deprecate 'json' module"
jenkins-bot [Wed, 23 Nov 2016 02:23:14 +0000 (02:23 +0000)]
Merge "Remove JSON polyfill, deprecate 'json' module"

7 years agoactions: Fix typo in ViewAction.php doc comment
Timo Tijhof [Wed, 23 Nov 2016 02:11:01 +0000 (18:11 -0800)]
actions: Fix typo in ViewAction.php doc comment

Change-Id: I26a48db06ea18b1c04a0aadc7cfe86b40af8f4b3

7 years agoMerge "Remove passwordreset capture feature"
jenkins-bot [Wed, 23 Nov 2016 01:17:38 +0000 (01:17 +0000)]
Merge "Remove passwordreset capture feature"

7 years agoMerge "Get GenderCache from MediaWikiServices"
jenkins-bot [Wed, 23 Nov 2016 00:19:47 +0000 (00:19 +0000)]
Merge "Get GenderCache from MediaWikiServices"

7 years agoMerge "Fix case of getMimeAnalyzer in MimeMagic class"
jenkins-bot [Wed, 23 Nov 2016 00:19:44 +0000 (00:19 +0000)]
Merge "Fix case of getMimeAnalyzer in MimeMagic class"

7 years agoGet ConfigFactory & MainConfig from MediaWikiServices
addshore [Tue, 22 Nov 2016 23:39:22 +0000 (23:39 +0000)]
Get ConfigFactory & MainConfig from MediaWikiServices

Change-Id: Iafdd7e00747060572463ffb05aae4543f3a06163

7 years agoRemove passwordreset capture feature
Brian Wolff [Wed, 16 Nov 2016 04:04:06 +0000 (04:04 +0000)]
Remove passwordreset capture feature

If anyone wants such a thing, they can make their own extension.

I asked stewards, and they said they don't use this.

See also T32636 / 9de2bfd1fe

Bug: T150930
Change-Id: I3ab5962dba668e5d628e55ad0c0feae471d82b5e

7 years agobuild: Bump jsonlint devDependency to latest
James D. Forrester [Wed, 16 Nov 2016 22:45:14 +0000 (14:45 -0800)]
build: Bump jsonlint devDependency to latest

 grunt-jsonlint   1.0.7  →  1.1.0

We can't bump the karma/qunit modules due to issues with our CI.

Change-Id: I15595df8b30a8ef4ddb6471acdd8d4da4f4afabc

7 years agoFix case of getMimeAnalyzer in MimeMagic class
addshore [Tue, 22 Nov 2016 23:44:23 +0000 (23:44 +0000)]
Fix case of getMimeAnalyzer in MimeMagic class

Change-Id: Ieab23102d25395f50bfcfb79450494250b7b22e8

7 years agoRemove JSON polyfill, deprecate 'json' module
Peter Hedenskog [Mon, 21 Nov 2016 08:56:44 +0000 (09:56 +0100)]
Remove JSON polyfill, deprecate 'json' module

All A-graded browsers now supports JSON so skip the
JSON polyfill. Krinkle investigated the current
status for 3 months on Wikimedia traffic (T141344#2784065)
with support being nearly 100%.

Bug: T141344
Change-Id: I8280faf1cbcd876ead2dafae4347b7d46e3e2acb

7 years agoUse MediaWikiServices::getMainWANObjectCache in ServiceWiring
addshore [Tue, 22 Nov 2016 23:18:15 +0000 (23:18 +0000)]
Use MediaWikiServices::getMainWANObjectCache in ServiceWiring

Change-Id: I853c226114f846f121c5c23888b3ffa85e48b50a

7 years agoGet GenderCache from MediaWikiServices
addshore [Tue, 22 Nov 2016 23:14:43 +0000 (23:14 +0000)]
Get GenderCache from MediaWikiServices

Change-Id: I752a65d93ec49ea6c44306eb18a6641ef86f7b5c

7 years agoMerge "Fix $wgUserEmailUseReplyTo documentation"
jenkins-bot [Tue, 22 Nov 2016 23:09:17 +0000 (23:09 +0000)]
Merge "Fix $wgUserEmailUseReplyTo documentation"

7 years agoMerge "mw.Upload.BookletLayout: Improve error message when not all logged-in users...
jenkins-bot [Tue, 22 Nov 2016 23:00:27 +0000 (23:00 +0000)]
Merge "mw.Upload.BookletLayout: Improve error message when not all logged-in users can upload"

7 years agoMerge "API: Expose $wgGalleryOptions in the meta=siteinfo"
jenkins-bot [Tue, 22 Nov 2016 22:43:47 +0000 (22:43 +0000)]
Merge "API: Expose $wgGalleryOptions in the meta=siteinfo"

7 years agoMerge "Make cache object mandatory for MessageCache"
jenkins-bot [Tue, 22 Nov 2016 22:40:13 +0000 (22:40 +0000)]
Merge "Make cache object mandatory for MessageCache"

7 years agoAPI: Expose $wgGalleryOptions in the meta=siteinfo
Arlo Breault [Tue, 22 Nov 2016 21:34:54 +0000 (13:34 -0800)]
API: Expose $wgGalleryOptions in the meta=siteinfo

 * For native gallery rendering in Parsoid.

Bug: T151360
Change-Id: Ia38c17671380523476afca3bf84528f1c14da1a0

7 years agomw.widgets.CategorySelector: Add placeholder text
Prateek Saxena [Tue, 22 Nov 2016 22:27:11 +0000 (03:57 +0530)]
mw.widgets.CategorySelector: Add placeholder text

Bug: T147813
Change-Id: Ic8aacf41b9d9f91808664af898e7752904276c2a

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 22 Nov 2016 22:04:40 +0000 (23:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id1c8798fb4d6076580433962620e4be34be3fdc3

7 years agoMerge "test: fix @covers to non existent methods"
jenkins-bot [Tue, 22 Nov 2016 21:39:33 +0000 (21:39 +0000)]
Merge "test: fix @covers to non existent methods"

7 years agoMake cache object mandatory for MessageCache
Aaron Schulz [Tue, 22 Nov 2016 21:02:10 +0000 (13:02 -0800)]
Make cache object mandatory for MessageCache

The only caller is MessageCache::singleton().

Change-Id: Ifcf0d458b9c691d6dce90b56b2f0f7d35e6ddef3

7 years agoFix globbing for eslint
Brad Jorsch [Tue, 22 Nov 2016 19:34:02 +0000 (14:34 -0500)]
Fix globbing for eslint

Grunt's `**` matches symlinks but doesn't follow them, so `**/*.js`
matches files that `!extensions/**` doesn't see to exclude.

Bug: T151381
Change-Id: I5d8ae6e24f2fa09efc97db871b0c08d4fbc68efd

7 years agoHave phpcs skip local configuration files
Brad Jorsch [Tue, 22 Nov 2016 18:12:38 +0000 (13:12 -0500)]
Have phpcs skip local configuration files

There's little point in phpcs checking LocalSettings.php or the other
*.php files in .gitignore.

Change-Id: Ibea15a3f3a7bfe2571e253ba9e19c1d91dfddeff

7 years agoApiSandbox: Support 'all' specifiers
Brad Jorsch [Tue, 22 Nov 2016 17:19:12 +0000 (12:19 -0500)]
ApiSandbox: Support 'all' specifiers

Change-Id: I43972b6a4236c87772ed50a7787c43edb795bed8

7 years agoMerge "qunit: Update tests to not assume animations use setTimeout"
jenkins-bot [Tue, 22 Nov 2016 16:08:55 +0000 (16:08 +0000)]
Merge "qunit: Update tests to not assume animations use setTimeout"

7 years agotest: fix @covers to non existent methods
Antoine Musso [Tue, 22 Nov 2016 15:24:30 +0000 (16:24 +0100)]
test: fix @covers to non existent methods

MediaWikiTestCase::restoreLogger has been rename to plural form.

Cause:
    Trying to @cover or @use not existing method
    "MediaWikiTestCase::restoreLogger".

Change-Id: I4625f18992f62046e65c60ceca67d9aec170ccdc

7 years agoBypass login page if no user input is required.
Cindy Cicalese [Mon, 26 Sep 2016 19:35:22 +0000 (15:35 -0400)]
Bypass login page if no user input is required.

Bug: T141474
Bug: T110464
Change-Id: I9588a2b87a423f614fc5d2e771ad1ac7279ebd0b

7 years agoMerge "Include getPublicLogMessage() in double-exception messages"
jenkins-bot [Tue, 22 Nov 2016 11:41:42 +0000 (11:41 +0000)]
Merge "Include getPublicLogMessage() in double-exception messages"

7 years agoMerge "Replace deprecated jQuery bind() with on()"
jenkins-bot [Tue, 22 Nov 2016 09:05:56 +0000 (09:05 +0000)]
Merge "Replace deprecated jQuery bind() with on()"

7 years agoInclude getPublicLogMessage() in double-exception messages
Aaron Schulz [Mon, 21 Nov 2016 21:40:18 +0000 (13:40 -0800)]
Include getPublicLogMessage() in double-exception messages

Change-Id: I364e237f859d65fdcc29025c63c90ac2e0b96718

7 years agoAdd PARAM_ALL setting for multi-option API parameters
Andrew H [Fri, 3 Jun 2016 05:40:25 +0000 (05:40 +0000)]
Add PARAM_ALL setting for multi-option API parameters

Adds support for specifying an asterisk '*' instead of a pipe seperated list
of all the allowed options for a multi-option param.

Adds a line to the api help for these parameters.
Adds a "allspecifier" key to ApiParamInfo parameter responses
Enables the default ('*') for parameters of type 'namespace'.

Bug: T124009
Change-Id: I3905bb2516dc1ff982f1beeac3deed6b69446a77

7 years agoWarn when a log context accidentally overrides a log processor
Gergő Tisza [Tue, 4 Oct 2016 00:24:58 +0000 (00:24 +0000)]
Warn when a log context accidentally overrides a log processor

Bug: T145133
Change-Id: I6677dbf608aac1d7fd6036f5e51977d56ce2fc57

7 years agoqunit: Update tests to not assume animations use setTimeout
Timo Tijhof [Tue, 22 Nov 2016 02:57:18 +0000 (18:57 -0800)]
qunit: Update tests to not assume animations use setTimeout

As of jQuery 1.12, animations use requestAnimationFrame in modern
browsers, which cannot be forced to finish synchronously by merely
mocking the 'setTimeout' and 'Date' clocks via Sinon.

For jquery.color, reduce duration from 10ms to 3ms (not 10ms which will
now be real time, not 0ms since we do want to test real frames).

Change-Id: Ie147fc2a91d2cd349b4031390f3c59b1bcfb65b5

7 years agoReplace deprecated jQuery bind() with on()
Timo Tijhof [Tue, 22 Nov 2016 02:16:43 +0000 (18:16 -0800)]
Replace deprecated jQuery bind() with on()

> JQMIGRATE: jQuery.fn.bind() is deprecated

Note that bind() is not removed in v3, merely deprecated.
Even after the jQuery Migrate phase, it will continue to work.

https://jquery.com/upgrade-guide/3.0/

Bug: T124742
Change-Id: I6bbd8f829ecf987228c6a5abd32c84e4e088a9bd

7 years agoresourceloader: Combine UC Mini startup regex with others
Timo Tijhof [Mon, 21 Nov 2016 23:02:06 +0000 (15:02 -0800)]
resourceloader: Combine UC Mini startup regex with others

Follows-up 2b1da77.

Also add "UC Mini" to the list of documented Grade C browsers,
and leave a note about regex combinations. (Follows-up 5d166eb).

Change-Id: I1b5307aec7fd1734d8a79a2256e061fceb20fa35

7 years agoMerge "Replace wgShowExceptionDetails with wgShowDBErrorBacktrace on db errors"
jenkins-bot [Mon, 21 Nov 2016 22:27:38 +0000 (22:27 +0000)]
Merge "Replace wgShowExceptionDetails with wgShowDBErrorBacktrace on db errors"

7 years agomw.Upload.BookletLayout: Improve error message when not all logged-in users can upload
Bartosz Dziewoński [Mon, 21 Nov 2016 14:30:57 +0000 (15:30 +0100)]
mw.Upload.BookletLayout: Improve error message when not all logged-in users can upload

Bug: T139257
Change-Id: I0ba4d0deba68d76bbcb01ee2202f82d392a68107

7 years agoReplace wgShowExceptionDetails with wgShowDBErrorBacktrace on db errors
Reedy [Mon, 21 Nov 2016 21:32:30 +0000 (21:32 +0000)]
Replace wgShowExceptionDetails with wgShowDBErrorBacktrace on db errors

Bug: T148957
Change-Id: I8891369156547e8931463a2fd55995cfa9e98ee7

7 years agoMerge "mediawiki.user: Simplify mw.user.generateRandomSessionId"
jenkins-bot [Mon, 21 Nov 2016 22:05:58 +0000 (22:05 +0000)]
Merge "mediawiki.user: Simplify mw.user.generateRandomSessionId"

7 years agoException renderer: Remove useless check for isCommandLine()
Chad Horohoe [Mon, 21 Nov 2016 21:47:09 +0000 (13:47 -0800)]
Exception renderer: Remove useless check for isCommandLine()

If we're on the cli, we would've never hit this else block

Change-Id: Idff009ab255b1907f752e0c6b5652715923b0ed7

7 years agoOnly apply wgDBschema to postgres/mssql
Aaron Schulz [Thu, 17 Nov 2016 21:59:20 +0000 (13:59 -0800)]
Only apply wgDBschema to postgres/mssql

Bug: T148956
Change-Id: I14f0aa7dd52bd0bdd0d3f8729b562a0fee2df6fa

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 21 Nov 2016 21:17:03 +0000 (22:17 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iedcb68915b9d89f2046e84b27e623ff28d511c27

7 years agoMerge "updateCredits: Do not change working directory"
jenkins-bot [Mon, 21 Nov 2016 20:48:49 +0000 (20:48 +0000)]
Merge "updateCredits: Do not change working directory"