lhc/web/wiklou.git
8 years agoMerge "Follow-up 23cfe1bba: harmonize image embedding CSS"
jenkins-bot [Tue, 15 Dec 2015 12:35:28 +0000 (12:35 +0000)]
Merge "Follow-up 23cfe1bba: harmonize image embedding CSS"

8 years agoMerge "Avoid "CAS updated failed" errors on Special:Preferences double post"
Aaron Schulz [Tue, 15 Dec 2015 04:15:23 +0000 (04:15 +0000)]
Merge "Avoid "CAS updated failed" errors on Special:Preferences double post"

8 years agoMerge "Remove redundant 'type' attributes from style and script tags"
jenkins-bot [Tue, 15 Dec 2015 02:56:12 +0000 (02:56 +0000)]
Merge "Remove redundant 'type' attributes from style and script tags"

8 years agoAvoid "CAS updated failed" errors on Special:Preferences double post
Aaron Schulz [Sun, 13 Dec 2015 04:35:22 +0000 (20:35 -0800)]
Avoid "CAS updated failed" errors on Special:Preferences double post

* This does the same thing ApiOptions does to avoid these errors.
  A new getInstanceForUpdate() method is now in the User class to
  simplify this pattern.
* Avoid overriding $user in ApiOptions for code readability.
* Fixed IDEA errors around Preferences::getFormObject() return type.

Bug: T95839
Change-Id: If2385b7486c043bd70d7031ff35e37dfb079a4d2

8 years agoFollow-up 23cfe1bba: harmonize image embedding CSS
Roan Kattouw [Mon, 14 Dec 2015 23:58:41 +0000 (15:58 -0800)]
Follow-up 23cfe1bba: harmonize image embedding CSS

23cfe1bba changed ResourceLoaderImageModule::getCssDeclarations(),
but contrary to the documentation did not synchronize it with
mediawiki.mixins.less. This commit does that.

This commit brings the -o-linear-gradient rule back (this time with
a comment that explains why it's there), and removes the
-webkit-linear-gradient rules from mediawiki.mixins.less
and CSS code that copypasted it.

Change-Id: Ia7e9738d90919248748e6968192bf02e420cddd0

8 years agoMerge "Add release notes for removed function and class"
jenkins-bot [Mon, 14 Dec 2015 22:54:18 +0000 (22:54 +0000)]
Merge "Add release notes for removed function and class"

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

Change-Id: I00c9fee4c2b38f8e4cee9ee40343615cfdc772c1

8 years agoMerge "Add case-changing magic words to mw.jqueryMsg"
jenkins-bot [Mon, 14 Dec 2015 20:30:13 +0000 (20:30 +0000)]
Merge "Add case-changing magic words to mw.jqueryMsg"

8 years agoMerge "mw.Upload.Dialog: Make the dialog higher (600px)"
jenkins-bot [Mon, 14 Dec 2015 20:21:01 +0000 (20:21 +0000)]
Merge "mw.Upload.Dialog: Make the dialog higher (600px)"

8 years agoMerge "Special:Preferences Remove red box in email and changed confirm error to warning"
jenkins-bot [Mon, 14 Dec 2015 20:18:35 +0000 (20:18 +0000)]
Merge "Special:Preferences Remove red box in email and changed confirm error to warning"

8 years agomw.Upload.Dialog: Make the dialog higher (600px)
Bartosz Dziewoński [Mon, 14 Dec 2015 19:54:04 +0000 (20:54 +0100)]
mw.Upload.Dialog: Make the dialog higher (600px)

Avoids a scrollbar for option 4 of the A/B test from T120867.
300px was woefully insufficient for the second step, anyway.

Change-Id: Id9704565457af6a66186f03bbc9c2c57d09f2330

8 years agoAdd release notes for removed function and class
umherirrender [Mon, 14 Dec 2015 19:03:47 +0000 (20:03 +0100)]
Add release notes for removed function and class

* Skin::getNamespaceNotice: I7567582924757b97b94f757170bc67b18e4ca089
* wfIsConfiguredProxy: I3c1e1d00b93320cde9b39c183174e7a495f03854
* wfDebugTimer: I7b6516f82344f98aaec04bc3af3c208b63169a77
* wfIsTrustedProxy: I86439a772e036dcd5ebdd8b16010c7bacfd9463b
* wfGetIP: I3b8f4b034e23a56f586993549cc5460b28bf6fa7
* MWHookException: I9cf80f2b701d6db8a6cfe884e4fd15d4e0482dda

Change-Id: Ib5359ee50e42f68e8d1985476c5c2d8146a2d8d5

8 years agoSpecial:Preferences Remove red box in email and changed confirm error to warning
Krzysztof Zbudniewek [Sun, 13 Dec 2015 00:56:47 +0000 (01:56 +0100)]
Special:Preferences Remove red box in email and changed confirm error to warning

As @matmarex suggested I used the same colors for warning as in shared.css for .warningbox

Bug: T58611
Change-Id: Icba7787db4cc77ee793b9637c60b5977d28dc8cf

8 years agoAdd case-changing magic words to mw.jqueryMsg
Scimonster [Mon, 14 Dec 2015 16:56:26 +0000 (18:56 +0200)]
Add case-changing magic words to mw.jqueryMsg

Add the lc, uc, lcfirst, and ucfirst magic words.
Task done as part of GCI15.

Bug: T46495
Change-Id: I246b878ff4e8ef4cf49fe1859ee6c5d33d373b30

8 years agoregistration: When converting, place 'namemsg' under 'name'
Paladox [Fri, 25 Sep 2015 17:28:43 +0000 (18:28 +0100)]
registration: When converting, place 'namemsg' under 'name'

Currently when converting from PHP to extension.json, 'namemsg' isn't
underneath 'name', it is halfway down instead.

Change-Id: I1be42a818bda6908643702cc5f7c959d2d2fdfba

8 years agoMerge "Fix HHVM RepoAuthorative mode again"
jenkins-bot [Mon, 14 Dec 2015 16:33:14 +0000 (16:33 +0000)]
Merge "Fix HHVM RepoAuthorative mode again"

8 years agoFix HHVM RepoAuthorative mode again
Reedy [Mon, 14 Dec 2015 13:28:29 +0000 (13:28 +0000)]
Fix HHVM RepoAuthorative mode again

Change-Id: I0fe75797ebe1c8c22be603a62102bd25bce29f49

8 years agoSpecialChangeEmail: Remove dead code (whole 'mediawiki.special.changeemail' module)
Bartosz Dziewoński [Mon, 14 Dec 2015 15:15:48 +0000 (16:15 +0100)]
SpecialChangeEmail: Remove dead code (whole 'mediawiki.special.changeemail' module)

It stopped working after 6b9a1c6d5b96dd55b05b9db5d4ab864973b7ff8f
accidentally changed the 'id' of the text input this was validating.

It seems that all browsers these days have some validation for 'email'
fields, so this isn't very useful, and the styling of the notice looks
pretty jarring with the current 'ooui'-style form.

Change-Id: Ifa3103c9c9369654ea1cd4b064a67454b8694bf0

8 years agoMerge "Move PSR-3 support check right after autoloader setup"
jenkins-bot [Mon, 14 Dec 2015 06:59:24 +0000 (06:59 +0000)]
Merge "Move PSR-3 support check right after autoloader setup"

8 years agoMerge "Work around APCu memory corruption bug"
jenkins-bot [Mon, 14 Dec 2015 06:21:03 +0000 (06:21 +0000)]
Merge "Work around APCu memory corruption bug"

8 years agoMove PSR-3 support check right after autoloader setup
Gergő Tisza [Mon, 26 Oct 2015 02:00:24 +0000 (19:00 -0700)]
Move PSR-3 support check right after autoloader setup

This ensures that, in case "composer install" has not been run,
the user will see the error message about setting up dependencies
(as opposed a plain "Class not found" error because some other
dependency was used first).

Change-Id: Ib6026123770d21cc9f8960a1de361c8178b1b044

8 years agoWork around APCu memory corruption bug
Ori Livneh [Sun, 13 Dec 2015 06:09:32 +0000 (22:09 -0800)]
Work around APCu memory corruption bug

APCu's object serialization causes memory corruption when apc.serializer is set
to 'default' (see https://github.com/krakjoe/apcu/issues/38). We can work
around this bug by falling back to the pre-I4b2cf17155 behavior of
APCBagOStuff, which is not to trust apc_store() with anything other than
strings and integers, and instead serialize everything in user-space PHP code.

Bug: T120267
Change-Id: If34a1d959e2700792514b372af52919940222d83

8 years agoFix missing semi-colon: &#160 ->  
Brian Wolff [Mon, 14 Dec 2015 04:25:51 +0000 (23:25 -0500)]
Fix missing semi-colon: &#160 ->  

The error is most noticable when transcluding {{Special:Contributions}}

Follows up 43c770c9543.

Change-Id: I67e44e6c655ff31dcc1c3a4716b63e3e91411a07

8 years agoMerge "resourceloader: Remove obsolete msg_resource database table"
jenkins-bot [Mon, 14 Dec 2015 01:46:19 +0000 (01:46 +0000)]
Merge "resourceloader: Remove obsolete msg_resource database table"

8 years agoMerge "resourceloader: Remove obsolete msg_resource_links table"
jenkins-bot [Mon, 14 Dec 2015 01:41:50 +0000 (01:41 +0000)]
Merge "resourceloader: Remove obsolete msg_resource_links table"

8 years agoresourceloader: Remove obsolete msg_resource database table
Timo Tijhof [Wed, 9 Dec 2015 21:29:59 +0000 (21:29 +0000)]
resourceloader: Remove obsolete msg_resource database table

No longer used as of 5d5b269e0e63641f3.

Change-Id: Ieb8448185cf39aa396e902e025e673f0886ac3c3

8 years agoresourceloader: Remove obsolete msg_resource_links table
Timo Tijhof [Fri, 6 Nov 2015 23:43:44 +0000 (23:43 +0000)]
resourceloader: Remove obsolete msg_resource_links table

No longer used as of Ia9131f570.

Change-Id: If009e2620e59002e127d21b90a96bdd29e5d2a9d

8 years agoFix case of wfWikiID calls
Adam Roses Wight [Mon, 14 Dec 2015 01:20:41 +0000 (17:20 -0800)]
Fix case of wfWikiID calls

Change-Id: I1f980962dd2d0b2f05b14e506f679e21e3d67334

8 years agoMerge "DefaultSettings.php: Use .invalid as invalid e-mail address (RFC 2606)"
jenkins-bot [Mon, 14 Dec 2015 01:14:53 +0000 (01:14 +0000)]
Merge "DefaultSettings.php: Use .invalid as invalid e-mail address (RFC 2606)"

8 years agoMerge "SpecialPagesWithProp: Use 'combobox' field and convert to OOUI"
jenkins-bot [Mon, 14 Dec 2015 01:08:12 +0000 (01:08 +0000)]
Merge "SpecialPagesWithProp: Use 'combobox' field and convert to OOUI"

8 years agoMerge "Add error checking for file argument"
jenkins-bot [Mon, 14 Dec 2015 01:01:43 +0000 (01:01 +0000)]
Merge "Add error checking for file argument"

8 years agoAdd user and previous rev to HistoryRevisionTools, and user to DiffRevisionTools
cenarium [Sat, 21 Nov 2015 12:24:17 +0000 (13:24 +0100)]
Add user and previous rev to HistoryRevisionTools, and user to DiffRevisionTools

The next revision in the page history isn't necessarily the previous
revision (due to selective undeletions, history merges, etc). This
passes the next revision to HistoryRevisionTools so extensions can check
if needed. Also, it passes the user to this hook and DiffRevisionTools
to avoid use of wgUser or having to retrieve context.

Change-Id: Ibc68f19040eebe3614e07f753f26bbfd376ae28d

8 years agoMerge "Remove uncalled Skin::getNamespaceNotice"
jenkins-bot [Mon, 14 Dec 2015 00:34:54 +0000 (00:34 +0000)]
Merge "Remove uncalled Skin::getNamespaceNotice"

8 years agoMerge "Call Skin::setRelevantUser on Special:UserRights"
jenkins-bot [Mon, 14 Dec 2015 00:34:50 +0000 (00:34 +0000)]
Merge "Call Skin::setRelevantUser on Special:UserRights"

8 years agoMerge "PHP 7 compatibility: Fix variable interpolation in ImageGalleryBase.php"
jenkins-bot [Mon, 14 Dec 2015 00:29:27 +0000 (00:29 +0000)]
Merge "PHP 7 compatibility: Fix variable interpolation in ImageGalleryBase.php"

8 years agoMerge "PHP 7 compatibility: Fix variable interpolation in RevisionDeleter.php"
jenkins-bot [Mon, 14 Dec 2015 00:29:23 +0000 (00:29 +0000)]
Merge "PHP 7 compatibility: Fix variable interpolation in RevisionDeleter.php"

8 years agoMerge "Adjust datetime in email confirmation email"
jenkins-bot [Mon, 14 Dec 2015 00:29:18 +0000 (00:29 +0000)]
Merge "Adjust datetime in email confirmation email"

8 years agoMerge "Remove dead code about nlinks from Special:Wantedpages"
jenkins-bot [Mon, 14 Dec 2015 00:24:46 +0000 (00:24 +0000)]
Merge "Remove dead code about nlinks from Special:Wantedpages"

8 years agoMerge "Comment out getSubpagesForPrefixSearch of Special:Tags"
jenkins-bot [Mon, 14 Dec 2015 00:22:51 +0000 (00:22 +0000)]
Merge "Comment out getSubpagesForPrefixSearch of Special:Tags"

8 years agoMerge "Remove INSERT value for page_counter variable"
jenkins-bot [Mon, 14 Dec 2015 00:21:27 +0000 (00:21 +0000)]
Merge "Remove INSERT value for page_counter variable"

8 years agoMerge "Set Language in SpecialSearchTest.php"
jenkins-bot [Mon, 14 Dec 2015 00:21:23 +0000 (00:21 +0000)]
Merge "Set Language in SpecialSearchTest.php"

8 years agoMerge "Move inline $wgStatsdMetricPrefix default to DefaultSettings.php"
jenkins-bot [Mon, 14 Dec 2015 00:13:12 +0000 (00:13 +0000)]
Merge "Move inline $wgStatsdMetricPrefix default to DefaultSettings.php"

8 years agoMerge "Check User::getId() in makeTestEdits.php"
jenkins-bot [Mon, 14 Dec 2015 00:05:34 +0000 (00:05 +0000)]
Merge "Check User::getId() in makeTestEdits.php"

8 years agoMerge "Cleanup test jobs better"
jenkins-bot [Mon, 14 Dec 2015 00:04:47 +0000 (00:04 +0000)]
Merge "Cleanup test jobs better"

8 years agoMerge "Fix some MWExceptionHandler IDEA errors"
jenkins-bot [Sun, 13 Dec 2015 23:03:14 +0000 (23:03 +0000)]
Merge "Fix some MWExceptionHandler IDEA errors"

8 years agoMerge "Remove wrong usage documentation in comments"
jenkins-bot [Sun, 13 Dec 2015 22:57:22 +0000 (22:57 +0000)]
Merge "Remove wrong usage documentation in comments"

8 years agoRemove wfIsConfiguredProxy(), deprecated since 1.24
Ori Livneh [Sun, 13 Dec 2015 22:00:00 +0000 (14:00 -0800)]
Remove wfIsConfiguredProxy(), deprecated since 1.24

No usage:
https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+wfisconfiguredproxy&type=Code&ref=searchresults

Change-Id: I3c1e1d00b93320cde9b39c183174e7a495f03854

8 years agoRemove wfDebugTimer(), deprecated in 1.25
Ori Livneh [Sun, 13 Dec 2015 21:57:58 +0000 (13:57 -0800)]
Remove wfDebugTimer(), deprecated in 1.25

No remaining usage:
https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+wfDebugTimer&type=Code&ref=searchresults

Change-Id: I7b6516f82344f98aaec04bc3af3c208b63169a77

8 years agoRemove wfIsTrustedProxy(), deprecated since 1.24
Ori Livneh [Sun, 13 Dec 2015 21:56:56 +0000 (13:56 -0800)]
Remove wfIsTrustedProxy(), deprecated since 1.24

No usage outside of core:
https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+wfIsTrustedProxy&type=Code&ref=searchresults

Change-Id: I86439a772e036dcd5ebdd8b16010c7bacfd9463b

8 years agoRemove wfGetIP(), deprecated since 1.19
Ori Livneh [Sun, 13 Dec 2015 21:55:10 +0000 (13:55 -0800)]
Remove wfGetIP(), deprecated since 1.19

No remaining usage:
https://github.com/search?q=%40wikimedia+wfGetIP&type=Code&utf8=%E2%9C%93

Change-Id: I3b8f4b034e23a56f586993549cc5460b28bf6fa7

8 years agoMerge "Localization: Gave each special page its own message"
jenkins-bot [Sun, 13 Dec 2015 21:58:52 +0000 (21:58 +0000)]
Merge "Localization: Gave each special page its own message"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 13 Dec 2015 20:50:56 +0000 (21:50 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4b63c322843e9dd706a4b2bdd343b0dae72e2b61

8 years agoMerge "No prefix suggestion of special and media namespace on special pages"
jenkins-bot [Sun, 13 Dec 2015 20:35:58 +0000 (20:35 +0000)]
Merge "No prefix suggestion of special and media namespace on special pages"

8 years agoFix spelling in EXIF message: seperated -> separated
Amir E. Aharoni [Sun, 13 Dec 2015 19:21:35 +0000 (21:21 +0200)]
Fix spelling in EXIF message: seperated -> separated

Change-Id: Ib97a0e756868f965f25a27bd707e315c8a9b4b65

8 years agoNo prefix suggestion of special and media namespace on special pages
umherirrender [Sun, 13 Dec 2015 17:39:14 +0000 (18:39 +0100)]
No prefix suggestion of special and media namespace on special pages

As mention in comments of I71f77c3001a12d75b901807c20115cead9c64e93 the
added prefix suggestion can get called recursive.
Avoid this by disable prefix suggestion for media and special namespace,
because a special page cannot be used on that special pages.

Follows I71f77c3001a12d75b901807c20115cead9c64e93

Change-Id: I8978e3bd0783f62bc25b32a0fdaa90361abefcf3

8 years agoLocalization: Gave each special page its own message
Albert221 [Sun, 13 Dec 2015 13:34:28 +0000 (14:34 +0100)]
Localization: Gave each special page its own message

Bug: T45502
Change-Id: I847c8b294d7e4596b229ad6180764c43c42af1e2

8 years agoRemove wrong usage documentation in comments
Jesús Martínez Novo [Sun, 13 Dec 2015 15:08:25 +0000 (16:08 +0100)]
Remove wrong usage documentation in comments

The --fix parameter was removed in f991d9cf777e but documentation
in comments wasn't updated. Other scripts don't maintain usage
parameters in comments, probably because the --help should already
output them, so let's remove them here also to avoid confusion.

Change-Id: Ia4c9479ffeaeb11083168678cd6a2aa29c897f84

8 years agoFix some MWExceptionHandler IDEA errors
Aaron Schulz [Sun, 13 Dec 2015 12:26:01 +0000 (04:26 -0800)]
Fix some MWExceptionHandler IDEA errors

Change-Id: I98b5aa4f29107185b2279ce4caf05ffe80fcd6b0

8 years agoAdd various point release release notes to HISTORY.
Reedy [Mon, 30 Nov 2015 19:10:36 +0000 (19:10 +0000)]
Add various point release release notes to HISTORY.

Change-Id: I4dcdc48110875be5abe82dfd6ba6bb74b5dfb810

8 years agoMerge "Support all values for exif PhotometricInterpretation"
jenkins-bot [Sun, 13 Dec 2015 04:18:59 +0000 (04:18 +0000)]
Merge "Support all values for exif PhotometricInterpretation"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 12 Dec 2015 21:09:35 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic45999ff91e8cd96762877d238faee909a50e63c

8 years agoMerge "Fixed Special:PasswordReset message"
jenkins-bot [Sat, 12 Dec 2015 17:22:12 +0000 (17:22 +0000)]
Merge "Fixed Special:PasswordReset message"

8 years agoFixed Special:PasswordReset message
mhutti1 [Thu, 10 Dec 2015 23:07:20 +0000 (00:07 +0100)]
Fixed Special:PasswordReset message

The message now varies depening on whether the user supplied an email
or username.

Bug: T118851
Change-Id: I6eb33e2409c391aa37ed8fe1196727c2e907719d

8 years agoFixed incorrect size for api result
Yuri Astrakhan [Fri, 11 Dec 2015 22:45:14 +0000 (01:45 +0300)]
Fixed incorrect size for api result

Added a unit test to highlight the problem

Change-Id: I5d4bcb755bd3686a92e7b111946a49892699729f

8 years agoMerge "Resolve code invoking Title::newFromURL"
jenkins-bot [Sat, 12 Dec 2015 11:25:37 +0000 (11:25 +0000)]
Merge "Resolve code invoking Title::newFromURL"

8 years agoResolve code invoking Title::newFromURL
Albert221 [Fri, 11 Dec 2015 21:50:55 +0000 (22:50 +0100)]
Resolve code invoking Title::newFromURL

Bug: T65424
Change-Id: I6c97245faccd8b34557eb3be4150867fd9b37992

8 years agoMerge "Make query pages not accept offset > 10000 in miser mode"
jenkins-bot [Sat, 12 Dec 2015 02:42:06 +0000 (02:42 +0000)]
Merge "Make query pages not accept offset > 10000 in miser mode"

8 years agoMerge "Update grunt-jscs to 2.5.0"
jenkins-bot [Sat, 12 Dec 2015 01:59:07 +0000 (01:59 +0000)]
Merge "Update grunt-jscs to 2.5.0"

8 years agoRename getSquidURLs() => getCdnUrls()
Aaron Schulz [Sat, 12 Dec 2015 00:40:35 +0000 (16:40 -0800)]
Rename getSquidURLs() => getCdnUrls()

Change-Id: I433acc7990a5fcefd0d2ff5b14ba33dec0424706

8 years agoCleanup test jobs better
Aaron Schulz [Fri, 11 Dec 2015 23:45:05 +0000 (15:45 -0800)]
Cleanup test jobs better

Change-Id: Id89bb6e9056485b51c66569a57cb91bdf9d2d91f

8 years agoCheck User::getId() in makeTestEdits.php
Aaron Schulz [Fri, 11 Dec 2015 23:29:23 +0000 (15:29 -0800)]
Check User::getId() in makeTestEdits.php

Change-Id: If803f1aea144f91dadf70e1a41d6834a2fd1d66e

8 years agoMerge "Use GAID_FOR_UPDATE for getArticleID() in LinksUpdate"
jenkins-bot [Fri, 11 Dec 2015 23:20:14 +0000 (23:20 +0000)]
Merge "Use GAID_FOR_UPDATE for getArticleID() in LinksUpdate"

8 years agoUse GAID_FOR_UPDATE for getArticleID() in LinksUpdate
Aaron Schulz [Fri, 11 Dec 2015 13:17:51 +0000 (05:17 -0800)]
Use GAID_FOR_UPDATE for getArticleID() in LinksUpdate

Bug: T121228
Change-Id: I33addea4261d58cc93ab739621481065eb9c908d

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 11 Dec 2015 22:15:54 +0000 (23:15 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibbe6f84d2fce2bf7ff1be575a598de265322ded3

8 years agoMerge "Add script to generate random test edits for a user"
jenkins-bot [Fri, 11 Dec 2015 21:55:59 +0000 (21:55 +0000)]
Merge "Add script to generate random test edits for a user"

8 years agoMerge "Make redis JobQueueConnectionError mention the host"
jenkins-bot [Fri, 11 Dec 2015 21:51:23 +0000 (21:51 +0000)]
Merge "Make redis JobQueueConnectionError mention the host"

8 years agoAdd script to generate random test edits for a user
Aaron Schulz [Tue, 8 Dec 2015 21:35:34 +0000 (13:35 -0800)]
Add script to generate random test edits for a user

Change-Id: Ieb079196aa8b70c8df52d791cd3a49242ebfb1e7

8 years agoMake redis JobQueueConnectionError mention the host
Aaron Schulz [Fri, 11 Dec 2015 02:34:21 +0000 (18:34 -0800)]
Make redis JobQueueConnectionError mention the host

Change-Id: I00a43265a65de9c9fa58b7046770d754b7d27815

8 years agoImprove addNewAccountMailPassword() docs
Aaron Schulz [Fri, 11 Dec 2015 13:21:06 +0000 (05:21 -0800)]
Improve addNewAccountMailPassword() docs

Change-Id: Iade04a33f2dafa8c289df25d9f86fa1607f799b9

8 years agoMerge "Localisation: Gave each special page its own message"
jenkins-bot [Fri, 11 Dec 2015 18:40:40 +0000 (18:40 +0000)]
Merge "Localisation: Gave each special page its own message"

8 years agoLocalisation: Gave each special page its own message
PranavK [Fri, 11 Dec 2015 12:12:03 +0000 (17:42 +0530)]
Localisation: Gave each special page its own message

Bug: T45502
Change-Id: I6d41c2174a67bc9b231b6fc6209677fb84692cc5

8 years agoRemove wfForeignMemcKey() usage from JobQueueRedis::getQueueKey()
Aaron Schulz [Thu, 10 Dec 2015 19:29:31 +0000 (11:29 -0800)]
Remove wfForeignMemcKey() usage from JobQueueRedis::getQueueKey()

This class should manage the escaping it uses, rather than use some
random BagOStuff that has nothing to do with the job queue.

Change-Id: Ie716dc4a3429754a99c5f0670555e5e049b61aa1

8 years agoRemove JobQueue::setTestingPrefix() hack
Aaron Schulz [Fri, 11 Dec 2015 01:13:48 +0000 (17:13 -0800)]
Remove JobQueue::setTestingPrefix() hack

The tests are only run on dev install and only touch the
null queue anyway.

Change-Id: I441a2a4605a9e2984142485b022dd524ff819360

8 years agoFix bad regex in 6fe2f48df
Aaron Schulz [Fri, 11 Dec 2015 00:35:02 +0000 (16:35 -0800)]
Fix bad regex in 6fe2f48df

Change-Id: I51d136a491111b7c980ddb13fff74bf4a63b15ad

8 years agoAdd per-partition JobQueueRedis aggregation
Aaron Schulz [Thu, 12 Nov 2015 00:10:29 +0000 (16:10 -0800)]
Add per-partition JobQueueRedis aggregation

* Track queues with non-abandoned jobs per partition server.
  The s-queuesWithJobs key can easily be queried to see which
  queues need to have periodic tasks run (or for debugging).
* This is requirement for the redis jobchron service to be able to
  avoid hitting N=(no. types X no. wikis) queues for periodic tasks
  when only a tiny fraction of those actually have any jobs. For WMF,
  there are over 30K queues, most of them empty, so doing that can help
  lower redis-server CPU (or at least make jobchron more responsive).
* This also allows for jobchron to manage the aggregator by taking the
  per-server aggregator sets and merging them. This scales much better
  as there are only a modest number of these daemons (18 for WMF) but
  vastly more web thread pushing jobs. This cuts down on the connections
  to the active aggregator server (the one with the hash table).
* Use Lua unpack() more for stylistic consistency.

Change-Id: I1549f0edc78cc4004dd887b475dec4c0ebd306c6

8 years agoMerge "Timing::measure(): handle missing marks better"
jenkins-bot [Thu, 10 Dec 2015 23:12:04 +0000 (23:12 +0000)]
Merge "Timing::measure(): handle missing marks better"

8 years agoTiming::measure(): handle missing marks better
Ori Livneh [Thu, 10 Dec 2015 22:58:11 +0000 (14:58 -0800)]
Timing::measure(): handle missing marks better

Currently Timing::measure() does not check that the requested start and end
marks exist, causing it to return bogus values without any indication that
something has gone wrong. Fix this by logging and error and returning false
in case either the start or end markers do not exist. To make it possible to
log, make Timing implement the LoggerAware interface.

Change-Id: I75af5273e9a8a52b31d0af1de206b0d8a4c82fbc

8 years agoAdd $wgCdnReboundPurgeDelay for more consistent CDN purges
Aaron Schulz [Fri, 13 Nov 2015 06:41:37 +0000 (22:41 -0800)]
Add $wgCdnReboundPurgeDelay for more consistent CDN purges

Bug: T113192
Change-Id: I89deb4f8143c1cc6154cdd05bcee1f49d3e3a75a

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 10 Dec 2015 21:12:44 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I91401bb83d196f67b487faa207e0b2d8e97b10bc

8 years agomw.Feedback: Support leaving feedback on foreign wikis
Kunal Mehta [Thu, 10 Dec 2015 18:58:41 +0000 (10:58 -0800)]
mw.Feedback: Support leaving feedback on foreign wikis

Adds an optional apiUrl parameter that will be passed on to the
mw.messagePoster if the feedback page is on a foreign wiki.

Bug: T111590
Change-Id: I932c6af08b7bf1c98ab0d415d410a63680faf094

8 years agomw.messagePoster: Support foreign wikis
Kunal Mehta [Thu, 10 Dec 2015 18:51:27 +0000 (10:51 -0800)]
mw.messagePoster: Support foreign wikis

Allow passing in an external api.php URL to post a message on a remote
wiki. Note that the remote content model must have its messagePoster
implementation registered on the local wiki for this to work.

Bug: T111590
Change-Id: Id52b7d3a12ed5e57e29d3f22fb7f4f36b8a908b1

8 years agoRemoved unnecessary blank line in Special:Export page
PranavK [Thu, 10 Dec 2015 11:47:07 +0000 (17:17 +0530)]
Removed unnecessary blank line in Special:Export page

Bug: T103870
Change-Id: I5b314ef9204ca33d851a9fe88477d0be427e5199

8 years agoFix MovePage Special Page for Korean
Yongmin Hong [Thu, 10 Dec 2015 04:20:23 +0000 (04:20 +0000)]
Fix MovePage Special Page for Korean

Its translation string has been changed, but translatewiki.net does
not allow editing special page directly, so I'm changing it directly
to make the new string on twn as main special page name. It is
already existing special page, so there should be no problem.

Also, removing my old legacy username which I don't use anymore.

Change-Id: I53ab891f74ce4413703a7e1d69dd7712eeaba68d

8 years agoMerge "Replace "squid" with "CDN" in various comments"
jenkins-bot [Thu, 10 Dec 2015 01:47:03 +0000 (01:47 +0000)]
Merge "Replace "squid" with "CDN" in various comments"

8 years agoReplace "squid" with "CDN" in various comments
Aaron Schulz [Thu, 10 Dec 2015 01:30:47 +0000 (17:30 -0800)]
Replace "squid" with "CDN" in various comments

Change-Id: Idcc528daf28e119349155d36e30a9bcf61b2e7d5

8 years agoresourceloader: Avoid using 'message' in log message key
Timo Tijhof [Thu, 10 Dec 2015 01:33:25 +0000 (01:33 +0000)]
resourceloader: Avoid using 'message' in log message key

This overrides the message being sent. Use 'messageKey' instead,
which complements 'cacheKey' used elsewhere in the class.

Change-Id: I70b1115853d16e5f1357dc5f3d10e46f9c029fc6

8 years agoMerge "Rename setSquidMaxage() => setCdnMaxage()"
jenkins-bot [Thu, 10 Dec 2015 01:27:29 +0000 (01:27 +0000)]
Merge "Rename setSquidMaxage() => setCdnMaxage()"

8 years agoMerge "Rename SquidUpdate => CdnCacheUpdate"
jenkins-bot [Thu, 10 Dec 2015 01:14:39 +0000 (01:14 +0000)]
Merge "Rename SquidUpdate => CdnCacheUpdate"

8 years agoRename setSquidMaxage() => setCdnMaxage()
Aaron Schulz [Thu, 10 Dec 2015 01:07:05 +0000 (17:07 -0800)]
Rename setSquidMaxage() => setCdnMaxage()

Also updated the OutputPage member variable.

Change-Id: I0b41c66da58c6126c1bd96170c02d084a067383c

8 years agoRename SquidUpdate => CdnCacheUpdate
Aaron Schulz [Wed, 9 Dec 2015 18:05:59 +0000 (10:05 -0800)]
Rename SquidUpdate => CdnCacheUpdate

Squid is not the only possible CDN

Change-Id: Ie2a2955847c5706e630322bbbab71c9d063b378f