lhc/web/wiklou.git
7 years agoThis changes grammar, spelling and flow of the README
zppix1 [Sun, 31 Jul 2016 20:51:47 +0000 (15:51 -0500)]
This changes grammar, spelling and flow of the README

Bug: T141738
Change-Id: I47d4e76d88b32af10805fa5531faf21cb1d8a77c

7 years agoMerge "Optimize summary-based extension edit stash caches"
jenkins-bot [Thu, 11 Aug 2016 01:03:07 +0000 (01:03 +0000)]
Merge "Optimize summary-based extension edit stash caches"

7 years agoMerge "Fix comment of get/setLinkRenderer in doxygen"
jenkins-bot [Thu, 11 Aug 2016 00:59:38 +0000 (00:59 +0000)]
Merge "Fix comment of get/setLinkRenderer in doxygen"

7 years agoOptimize summary-based extension edit stash caches
Aaron Schulz [Sat, 30 Jul 2016 06:42:05 +0000 (23:42 -0700)]
Optimize summary-based extension edit stash caches

* Send stash requests when the summary changes, so that things like
  AbuseFilter caching have a higher hit rate.
* Make the backend API skip parsing if a fresh cache is already present.
  This makes requests for summary-only changes much faster and more likely
  to finish in time.
* Avoid sending the full text if only the summary changed since the
  last successful stash. This works via an optional stashedtexthash
  parameter to the API.
* Also always apply the lock in parseAndStash(), even for VE.

Change-Id: I9bfd74cf05411853b675c6f54ff5d8934bcfc54c

7 years agoMake PurgeChangedFiles actually purge old versions too
Aaron Schulz [Wed, 10 Aug 2016 23:29:10 +0000 (16:29 -0700)]
Make PurgeChangedFiles actually purge old versions too

Change-Id: I7aa746535ceae7d19c492145c3254d55511a8576

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 10 Aug 2016 20:03:32 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie52a98e5ed6094bd1e6be1a8c0043a223c95fcce

7 years agoMerge "registration: Fix adding $formerGlobals in conversion script"
jenkins-bot [Wed, 10 Aug 2016 17:17:35 +0000 (17:17 +0000)]
Merge "registration: Fix adding $formerGlobals in conversion script"

7 years agoMerge "mw.loader: Clean up unit tests by using newer QUnit syntax"
jenkins-bot [Wed, 10 Aug 2016 15:29:36 +0000 (15:29 +0000)]
Merge "mw.loader: Clean up unit tests by using newer QUnit syntax"

7 years agoMerge "mw.loader: Add 'require' as Promise value for using()"
jenkins-bot [Wed, 10 Aug 2016 15:25:13 +0000 (15:25 +0000)]
Merge "mw.loader: Add 'require' as Promise value for using()"

7 years agoMerge "Beef up and generalize IDBAccessObject constants a bit"
jenkins-bot [Wed, 10 Aug 2016 09:10:52 +0000 (09:10 +0000)]
Merge "Beef up and generalize IDBAccessObject constants a bit"

7 years agoMerge "Unbreak "localDBMaster" mode in MySqlLockManager by using a separate connection"
jenkins-bot [Wed, 10 Aug 2016 09:06:46 +0000 (09:06 +0000)]
Merge "Unbreak "localDBMaster" mode in MySqlLockManager by using a separate connection"

7 years agoMerge "Upgrade premature implicit transaction commits to exceptions"
jenkins-bot [Wed, 10 Aug 2016 02:57:52 +0000 (02:57 +0000)]
Merge "Upgrade premature implicit transaction commits to exceptions"

7 years agoMerge "Remove $wgDisableAuthManager"
jenkins-bot [Wed, 10 Aug 2016 00:03:25 +0000 (00:03 +0000)]
Merge "Remove $wgDisableAuthManager"

7 years agoMerge "Clean up some IDatabase comments"
jenkins-bot [Tue, 9 Aug 2016 23:57:44 +0000 (23:57 +0000)]
Merge "Clean up some IDatabase comments"

7 years agoClean up some IDatabase comments
Aaron Schulz [Tue, 9 Aug 2016 23:45:37 +0000 (16:45 -0700)]
Clean up some IDatabase comments

Change-Id: Ia4b344a412e78185b6b2fe584540a358c35651b8

7 years agoMerge "SiteStats: Fix some phpdoc"
jenkins-bot [Tue, 9 Aug 2016 23:45:06 +0000 (23:45 +0000)]
Merge "SiteStats: Fix some phpdoc"

7 years agoMerge "SpecialEditWatchlist: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Tue, 9 Aug 2016 23:41:59 +0000 (23:41 +0000)]
Merge "SpecialEditWatchlist: Use LinkRenderer instead of Linker::link()"

7 years agoRemove $wgDisableAuthManager
Gergő Tisza [Fri, 1 Apr 2016 16:49:26 +0000 (19:49 +0300)]
Remove $wgDisableAuthManager

Change-Id: I2b2c9693a275fcc026916bd97f303e7a5c8df341

7 years agoSiteStats: Fix some phpdoc
Kunal Mehta [Tue, 9 Aug 2016 22:09:45 +0000 (15:09 -0700)]
SiteStats: Fix some phpdoc

...and don't pass false as $conds, use an empty array.

Change-Id: I58127f0e7c4edad9345b924a019d64e5d2d6ddd9

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 9 Aug 2016 19:59:13 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib4d6844bed0df62a2ee97e7b7f46dfc724defdfc

7 years agoSpecialEditWatchlist: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Thu, 4 Aug 2016 23:04:06 +0000 (16:04 -0700)]
SpecialEditWatchlist: Use LinkRenderer instead of Linker::link()

Change-Id: Ib75078f14005940b5c625932d1bbb8c17299c448

7 years agoMerge "Updating $tailoringFirstLetters for Macedonian Per https://ssl.icu-project...
jenkins-bot [Tue, 9 Aug 2016 17:02:42 +0000 (17:02 +0000)]
Merge "Updating $tailoringFirstLetters for Macedonian Per https://ssl.icu-project.org/trac/browser/icu/trunk/source/data/coll/mk.txt"

7 years agoMerge "SpecialTags: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Tue, 9 Aug 2016 15:36:28 +0000 (15:36 +0000)]
Merge "SpecialTags: Use LinkRenderer instead of Linker::link()"

7 years agoMerge "SpecialMostlinkedCategories: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Tue, 9 Aug 2016 15:31:13 +0000 (15:31 +0000)]
Merge "SpecialMostlinkedCategories: Use LinkRenderer instead of Linker::link()"

7 years agoMerge "SpecialChangeCredentials: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Tue, 9 Aug 2016 15:29:29 +0000 (15:29 +0000)]
Merge "SpecialChangeCredentials: Use LinkRenderer instead of Linker::link()"

7 years agoFix comment of get/setLinkRenderer in doxygen
Florian [Tue, 9 Aug 2016 15:20:47 +0000 (17:20 +0200)]
Fix comment of get/setLinkRenderer in doxygen

Doxygen requires the full qualified name of the class in a comment
or in the @aram/@return annotation, otherwise the class isn't linked
in the resulting output[1]. This commit changes the LinkRenderer
annotations in SpecialPage and Parser to \MediaWiki\Linker\LinkRenderer.

[1] https://doc.wikimedia.org/mediawiki-core/master/php/classSpecialPage.html#a3560214f63fc2f20c63b4025db5cd81d

Change-Id: I74cedcd764a6053cc5a0c6d2eedbedb72651f57c

7 years agoMerge "SpecialUploadStash: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Tue, 9 Aug 2016 15:22:36 +0000 (15:22 +0000)]
Merge "SpecialUploadStash: Use LinkRenderer instead of Linker::link()"

7 years agoMerge "SpecialShortPages: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Tue, 9 Aug 2016 15:18:45 +0000 (15:18 +0000)]
Merge "SpecialShortPages: Use LinkRenderer instead of Linker::link()"

7 years agoResources.php: mark "mediawiki.api.upload" module as 'targets' => [ 'desktop', 'mobile' ]
Edward Chernenko [Tue, 9 Aug 2016 08:34:17 +0000 (11:34 +0300)]
Resources.php: mark "mediawiki.api.upload" module as 'targets' => [ 'desktop', 'mobile' ]

This module doesn't call anything desktop-specific.
There is no reason to deny this module to scripts which run on both desktop and mobile.

Change-Id: Ia6b778ca8a188688e2c0e813332aee03d3b5ac52

7 years agoBeef up and generalize IDBAccessObject constants a bit
Aaron Schulz [Mon, 1 Aug 2016 03:44:42 +0000 (20:44 -0700)]
Beef up and generalize IDBAccessObject constants a bit

Change-Id: Id8df6131df57b6a3e0aae90f4431ce0a467ec590

7 years agoMerge "jquery.tablesorter: Handle more than single characters in 'tableSorterCollation'"
jenkins-bot [Tue, 9 Aug 2016 00:06:07 +0000 (00:06 +0000)]
Merge "jquery.tablesorter: Handle more than single characters in 'tableSorterCollation'"

7 years agojquery.tablesorter: Handle more than single characters in 'tableSorterCollation'
Bartosz Dziewoński [Fri, 5 Aug 2016 18:01:17 +0000 (20:01 +0200)]
jquery.tablesorter: Handle more than single characters in 'tableSorterCollation'

The code that uses this will already work fine, we only need to change
how the regex is built.

Bug: T140240
Change-Id: I014d9b13815d8ae085a6ed7c6df2d62337bb46f7

7 years agoUse MediaWikiServices in restInPeace() for load balancer factory
Aaron Schulz [Mon, 8 Aug 2016 21:55:56 +0000 (14:55 -0700)]
Use MediaWikiServices in restInPeace() for load balancer factory

Change-Id: Icc12100bd3409900c848c72a31417a8c25ae1021

7 years agoMerge "Mention UploadBase::stashFile() "checked" exceptions in docs"
jenkins-bot [Mon, 8 Aug 2016 21:04:40 +0000 (21:04 +0000)]
Merge "Mention UploadBase::stashFile() "checked" exceptions in docs"

7 years agoUpdating $tailoringFirstLetters for Macedonian
Kaldari [Mon, 8 Aug 2016 20:39:13 +0000 (13:39 -0700)]
Updating $tailoringFirstLetters for Macedonian
Per https://ssl.icu-project.org/trac/browser/icu/trunk/source/data/coll/mk.txt

Bug: T26953
Change-Id: I45938402923a109cfc80f59555af5cede584fc3b

7 years agoMerge "Add missing addQuotes() call to masterPosWait()"
jenkins-bot [Mon, 8 Aug 2016 20:14:53 +0000 (20:14 +0000)]
Merge "Add missing addQuotes() call to masterPosWait()"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 8 Aug 2016 20:02:55 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5b592794dcf6c4ee5c5b2c81885b0c1e816a0fa1

7 years agoAdd missing addQuotes() call to masterPosWait()
Aaron Schulz [Mon, 8 Aug 2016 19:36:18 +0000 (12:36 -0700)]
Add missing addQuotes() call to masterPosWait()

Change-Id: Ic7f35920fe10d99b63fdff23dc6e3f7cd4c7ca8b

7 years agoMerge "SpecialNewFiles: Restore the 'newimagestext' message"
jenkins-bot [Mon, 8 Aug 2016 18:08:26 +0000 (18:08 +0000)]
Merge "SpecialNewFiles: Restore the 'newimagestext' message"

7 years agoSpecialNewFiles: Restore the 'newimagestext' message
Bartosz Dziewoński [Mon, 8 Aug 2016 17:54:03 +0000 (19:54 +0200)]
SpecialNewFiles: Restore the 'newimagestext' message

Follow-up to c5ed2698579a085747ef290c9e6e3b8ba3f8960b.

Bug: T142191
Change-Id: If3d0c6d80c97494a6545db67a7adbd7c7ca05cb1

7 years agoMerge "SpecialUpload: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Mon, 8 Aug 2016 17:56:25 +0000 (17:56 +0000)]
Merge "SpecialUpload: Use LinkRenderer instead of Linker::link()"

7 years agoSpecialUpload: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Thu, 4 Aug 2016 22:53:02 +0000 (15:53 -0700)]
SpecialUpload: Use LinkRenderer instead of Linker::link()

Fixed a typo too!

Change-Id: I0b58c2a78c2ae1de850f8e00a549dd29b8cedba2

7 years agoMerge "Adding a bunch of hooks from wikiHow into DifferenceEngine, 2nd try"
jenkins-bot [Mon, 8 Aug 2016 16:30:59 +0000 (16:30 +0000)]
Merge "Adding a bunch of hooks from wikiHow into DifferenceEngine, 2nd try"

7 years agoregistration: Fix adding $formerGlobals in conversion script
Kunal Mehta [Mon, 8 Aug 2016 09:56:39 +0000 (02:56 -0700)]
registration: Fix adding $formerGlobals in conversion script

Using + for two arrays does not work if they are using numerical
indexes.

Bug: T142344
Change-Id: I49541bd344fa81d20c9b4cf61b968b58137ab140

7 years agoMerge "Fix display of numeric tag names on Special:Tags"
jenkins-bot [Sun, 7 Aug 2016 21:11:35 +0000 (21:11 +0000)]
Merge "Fix display of numeric tag names on Special:Tags"

7 years agoMerge "registration: Add hint about UnitTestsList hook in conversion script"
jenkins-bot [Sun, 7 Aug 2016 20:55:05 +0000 (20:55 +0000)]
Merge "registration: Add hint about UnitTestsList hook in conversion script"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 7 Aug 2016 20:06:56 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia20da2a7d3a9b9b0f7eee2620b85252cfff2126f

7 years agoUse different message when (un)watching a page in talk namespace
Glaisher [Sat, 30 Jul 2016 10:05:36 +0000 (15:05 +0500)]
Use different message when (un)watching a page in talk namespace

addedwatchtext and removedwatchtext uses the phrase "$1 and its discussion page".
As this is inaccurate on talk namespace pages, two new messages, addedwatchtext-talk
and removedwatchtext-talk, have been introduced for use in talk namespace pages.

Bug: T87856
Change-Id: Iafd86402d3a2a65ce2be007c87c981ac08f44e67

7 years agoClean up array() syntax in docs, part II
Amir Sarabadani [Sun, 7 Aug 2016 10:27:38 +0000 (14:57 +0430)]
Clean up array() syntax in docs, part II

Change-Id: I226ce6bcb5bbf6ed3802042dd2790f85617833e1

7 years agoSpecialTags: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Sun, 7 Aug 2016 03:41:13 +0000 (20:41 -0700)]
SpecialTags: Use LinkRenderer instead of Linker::link()

Change-Id: I2b179e9d90e79f46cca5c6698847caadeadc1444

7 years agoregistration: Add hint about UnitTestsList hook in conversion script
Kunal Mehta [Sun, 7 Aug 2016 09:27:09 +0000 (02:27 -0700)]
registration: Add hint about UnitTestsList hook in conversion script

Change-Id: Ia161c2e10943e75c98ee8e0d2341bc2c9a418faf

7 years agoFix display of numeric tag names on Special:Tags
This, that and the other [Sun, 7 Aug 2016 05:14:16 +0000 (15:14 +1000)]
Fix display of numeric tag names on Special:Tags

All tag names that were numbers (e.g. "123456") showed up as "0".

Change-Id: I8da326fa4dfa7e6556fb508c5e4b1f1573d1369b

7 years agoMerge "Balancer: pass configuration array to flatten instead of individual booleans"
jenkins-bot [Sun, 7 Aug 2016 04:07:26 +0000 (04:07 +0000)]
Merge "Balancer: pass configuration array to flatten instead of individual booleans"

7 years agoSpecialMostlinkedCategories: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Sun, 7 Aug 2016 03:37:21 +0000 (20:37 -0700)]
SpecialMostlinkedCategories: Use LinkRenderer instead of Linker::link()

Change-Id: Ib2f08246b173cf1d39e33d2e07490463bbab1bf5

7 years agoSpecialChangeCredentials: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Sun, 7 Aug 2016 03:36:22 +0000 (20:36 -0700)]
SpecialChangeCredentials: Use LinkRenderer instead of Linker::link()

Change-Id: I90d42f9b5106b4bc9876b85ccd3224b1a91f4885

7 years agoSpecialUploadStash: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Sun, 7 Aug 2016 03:34:28 +0000 (20:34 -0700)]
SpecialUploadStash: Use LinkRenderer instead of Linker::link()

Change-Id: I8c5b05093bc2b62c58a109c28e48530e39e945d2

7 years agoSpecialShortPages: Use LinkRenderer instead of Linker::link()
Kunal Mehta [Sun, 7 Aug 2016 03:32:08 +0000 (20:32 -0700)]
SpecialShortPages: Use LinkRenderer instead of Linker::link()

Change-Id: I1ed13e5d056e553a2363f9a3036dc63aefaf851a

7 years agoMerge "Revert "API: Remove deprecated response values from action=login""
jenkins-bot [Sun, 7 Aug 2016 02:43:45 +0000 (02:43 +0000)]
Merge "Revert "API: Remove deprecated response values from action=login""

7 years agoMerge "Don't force loading of groups and options on User::loadFromUserObject"
jenkins-bot [Sun, 7 Aug 2016 01:57:51 +0000 (01:57 +0000)]
Merge "Don't force loading of groups and options on User::loadFromUserObject"

7 years agoDon't force loading of groups and options on User::loadFromUserObject
daniel [Sat, 6 Aug 2016 16:44:08 +0000 (18:44 +0200)]
Don't force loading of groups and options on User::loadFromUserObject

When copying state from one User object to another, don't force
the source object to be initialized. The target object can initialize
groups and options on demand as usual.

Among other things, this helps to avoid some cases of recursive calls
to User::load(), see I6d1b9fe0789b4.

Bug: T142295
Bug: T137051
Change-Id: Ib369cf5b00628550591c2ee5dcb195db7c59a59c

7 years agoMerge "HtmlArmor: Pass ENT_QUOTES to htmlspecialchars()"
jenkins-bot [Sat, 6 Aug 2016 23:18:16 +0000 (23:18 +0000)]
Merge "HtmlArmor: Pass ENT_QUOTES to htmlspecialchars()"

7 years agoMove style for #wikiPreview to mediawiki.action.edit.styles.css
Fomafix [Sat, 6 Aug 2016 22:49:05 +0000 (22:49 +0000)]
Move style for #wikiPreview to mediawiki.action.edit.styles.css

The style module 'mediawiki.action.edit.styles' gets loaded in EditPage.php.

Bug: T89981
Change-Id: Ie691df4e926be8f094e4117c836334d01d935868

7 years agoMerge "Adding release notes about the addition of numeric sorting support"
jenkins-bot [Sat, 6 Aug 2016 22:35:56 +0000 (22:35 +0000)]
Merge "Adding release notes about the addition of numeric sorting support"

7 years agoAdding release notes about the addition of numeric sorting support
Kaldari [Thu, 4 Aug 2016 20:35:56 +0000 (13:35 -0700)]
Adding release notes about the addition of numeric sorting support

Bug: T8948
Change-Id: I371c83f21927bd2903c7a87059b088e788702b6b

7 years agoHtmlArmor: Pass ENT_QUOTES to htmlspecialchars()
Bartosz Dziewoński [Sat, 6 Aug 2016 22:19:15 +0000 (00:19 +0200)]
HtmlArmor: Pass ENT_QUOTES to htmlspecialchars()

Change-Id: I0f025d938bd7def8a29788e3c02009a447853275

7 years agoMerge "Move Special:Upload styling out of mediawiki.special.styles"
jenkins-bot [Sat, 6 Aug 2016 22:15:46 +0000 (22:15 +0000)]
Merge "Move Special:Upload styling out of mediawiki.special.styles"

7 years agoMerge "Move CSS for patrol from mediawiki.legacy to new module mediawiki.page.patrol"
jenkins-bot [Sat, 6 Aug 2016 22:08:25 +0000 (22:08 +0000)]
Merge "Move CSS for patrol from mediawiki.legacy to new module mediawiki.page.patrol"

7 years agoBalancer: pass configuration array to flatten instead of individual booleans
C. Scott Ananian [Thu, 4 Aug 2016 19:35:59 +0000 (15:35 -0400)]
Balancer: pass configuration array to flatten instead of individual booleans

This refactoring makes it easier to add additional options later without
having to pass them manually through the call chain.

Change-Id: I46814f17d1b338b971ab57f63c2ec75d4a6b45d5

7 years agoMerge "Fix @covers tag"
jenkins-bot [Sat, 6 Aug 2016 14:49:50 +0000 (14:49 +0000)]
Merge "Fix @covers tag"

7 years agoMove CSS for patrol from mediawiki.legacy to new module mediawiki.page.patrol
Fomafix [Sat, 6 Aug 2016 13:46:47 +0000 (13:46 +0000)]
Move CSS for patrol from mediawiki.legacy to new module mediawiki.page.patrol

Also change the selector from
div.patrollink
to
.patrollink

Bug: T89981
Change-Id: Ib79d17fab61b1a7b940b2acff6d19a58a3fe0bc9

7 years agoMerge "Include AuthManager API endpoints in authmanager channel"
jenkins-bot [Sat, 6 Aug 2016 08:47:47 +0000 (08:47 +0000)]
Merge "Include AuthManager API endpoints in authmanager channel"

7 years agoMerge "Add dependency to 'jquery.textSelection' for 'mediawiki.toolbar'"
jenkins-bot [Sat, 6 Aug 2016 08:45:59 +0000 (08:45 +0000)]
Merge "Add dependency to 'jquery.textSelection' for 'mediawiki.toolbar'"

7 years agoMerge "Show wgPageParseReport on page previews too"
jenkins-bot [Sat, 6 Aug 2016 08:42:06 +0000 (08:42 +0000)]
Merge "Show wgPageParseReport on page previews too"

7 years agoFix @covers tag
Kunal Mehta [Sat, 6 Aug 2016 08:04:21 +0000 (01:04 -0700)]
Fix @covers tag

Trying to @cover or @use not existing method
"ResourceLoaderFileModule::getScripts"

Change-Id: Ifc4d2c98f5129f0d205e12081dfb48568d8250cb

7 years agoMerge "Fix increment() statsd call in JobRunner"
jenkins-bot [Sat, 6 Aug 2016 01:02:40 +0000 (01:02 +0000)]
Merge "Fix increment() statsd call in JobRunner"

7 years agoFix increment() statsd call in JobRunner
Aaron Schulz [Thu, 4 Aug 2016 19:35:23 +0000 (12:35 -0700)]
Fix increment() statsd call in JobRunner

Change-Id: I17e04db59a44a491aae99c4542216316361010a0

7 years agoFix for "Invalid key type: integer"
Ben Davis [Mon, 18 Jul 2016 19:26:07 +0000 (14:26 -0500)]
Fix for "Invalid key type: integer"

MWCryptHash::hmac requires a string, but mt_rand() returns an integer.
This issue resulted in an uncaught exception in a fresh installation
of mediawiki.

Imported from https://github.com/wikimedia/mediawiki/pull/55

Change-Id: Idccf5f230bfc2de30357b03c78c51cdad4839515

7 years agoMention UploadBase::stashFile() "checked" exceptions in docs
Aaron Schulz [Fri, 5 Aug 2016 23:28:18 +0000 (16:28 -0700)]
Mention UploadBase::stashFile() "checked" exceptions in docs

Change-Id: I732db6526511711e7c21cf81ddd088e50ab601ec

7 years agoRevert "API: Remove deprecated response values from action=login"
Gergő Tisza [Fri, 5 Aug 2016 22:50:11 +0000 (22:50 +0000)]
Revert "API: Remove deprecated response values from action=login"

Revert commit 23e5cdb5034dca5bbdfc2ac9c111c5fac20ff579
temporarily so Pywikibot users can catch up with API changes

Bug: T121527
Bug: T142155
Change-Id: I3879a5d76a1727dd653daeebc79d4d9cabd0332e

7 years agoFix inconsistent RevDelFileItem visibilities
Aaron Schulz [Fri, 5 Aug 2016 21:52:14 +0000 (14:52 -0700)]
Fix inconsistent RevDelFileItem visibilities

Bug: T142228
Change-Id: Ib5a0a1adbea2daf2b035cf6be367841362de03cc

7 years agoMerge "Keep $user->mEditCount up to date"
jenkins-bot [Fri, 5 Aug 2016 22:09:20 +0000 (22:09 +0000)]
Merge "Keep $user->mEditCount up to date"

7 years agoMerge "SpecialProtectedpages: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Fri, 5 Aug 2016 21:48:56 +0000 (21:48 +0000)]
Merge "SpecialProtectedpages: Use LinkRenderer instead of Linker::link()"

7 years agoMerge "Unify Special:Contribs/DeletedContribs subtitle implementation"
jenkins-bot [Fri, 5 Aug 2016 21:44:51 +0000 (21:44 +0000)]
Merge "Unify Special:Contribs/DeletedContribs subtitle implementation"

7 years agoShow wgPageParseReport on page previews too
Aaron Schulz [Fri, 5 Aug 2016 21:41:40 +0000 (14:41 -0700)]
Show wgPageParseReport on page previews too

Also make EditPage::getPreviewLimitReport return the same
output instead of using copy-pasted code from the old hook.

Bug: T142210
Bug: T142214
Change-Id: I16c3c2da067fd24bf7ae564cb1d61beaa3be58c1

7 years agoMerge "SpecialContributions: Use LinkRenderer instead of Linker::link()"
jenkins-bot [Fri, 5 Aug 2016 21:40:48 +0000 (21:40 +0000)]
Merge "SpecialContributions: Use LinkRenderer instead of Linker::link()"

7 years agoMerge "Provide context in ContributionsToolLinks hook"
jenkins-bot [Fri, 5 Aug 2016 21:34:03 +0000 (21:34 +0000)]
Merge "Provide context in ContributionsToolLinks hook"

7 years agoMerge "Change explicit class to self in AutoloadGenerator"
jenkins-bot [Fri, 5 Aug 2016 20:54:20 +0000 (20:54 +0000)]
Merge "Change explicit class to self in AutoloadGenerator"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 5 Aug 2016 19:58:23 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I049258472a2111a94733403ee8eb8a36bd0280cc

7 years agoChange explicit class to self in AutoloadGenerator
Florian [Fri, 5 Aug 2016 18:04:10 +0000 (20:04 +0200)]
Change explicit class to self in AutoloadGenerator

Follow-up: I3a426b92892f4c00cab33a13f6a717751120367c

Change-Id: I9d91ca42dbf41604639fff2ca00efa6fb262cb3d

7 years agobuild: Fix stylelint devDependencies
James D. Forrester [Fri, 5 Aug 2016 18:04:02 +0000 (11:04 -0700)]
build: Fix stylelint devDependencies

Change-Id: I26cee89c27e3cd8f3c1fc48088b2a8e8b3927e4a

7 years agoKeep $user->mEditCount up to date
Stephane Bisson [Wed, 3 Aug 2016 15:26:47 +0000 (11:26 -0400)]
Keep $user->mEditCount up to date

Whenever User::incEditCount() is called,
this tries to keep the user object up
to date so hooks can read the edit count
without reloading the user from the db.

Another option would be invalidate the
instance cache and let the read
repopulate it. It would add a db access
on each edit.

Bug: T128249
Change-Id: I79194c41d6b2fd84ad658909a2941d9d3d28d94e

7 years agoAdd dependency to 'jquery.textSelection' for 'mediawiki.toolbar'
Fomafix [Fri, 5 Aug 2016 13:01:03 +0000 (13:01 +0000)]
Add dependency to 'jquery.textSelection' for 'mediawiki.toolbar'

Change-Id: Ie3b001551802364b488ba84588a028c44c73e755

7 years agoInclude AuthManager API endpoints in authmanager channel
Gergő Tisza [Fri, 5 Aug 2016 02:17:28 +0000 (02:17 +0000)]
Include AuthManager API endpoints in authmanager channel

Change-Id: I0fa6e9687d02a67c5d36e16b3827e7cc3beb8259

7 years agoMerge "Balancer style tweaks"
jenkins-bot [Fri, 5 Aug 2016 00:54:57 +0000 (00:54 +0000)]
Merge "Balancer style tweaks"

7 years agoMerge "Balancer: remove redundant assignment"
jenkins-bot [Fri, 5 Aug 2016 00:27:25 +0000 (00:27 +0000)]
Merge "Balancer: remove redundant assignment"

7 years agoMerge "Balancer: consistent single-line comment style"
jenkins-bot [Fri, 5 Aug 2016 00:05:36 +0000 (00:05 +0000)]
Merge "Balancer: consistent single-line comment style"

7 years agomw.loader: Clean up unit tests by using newer QUnit syntax
Timo Tijhof [Thu, 4 Aug 2016 23:24:07 +0000 (16:24 -0700)]
mw.loader: Clean up unit tests by using newer QUnit syntax

* Remove use of deprecated asyncTest() and QUnit.start().
  Instead, use test() and assert.async().

* Where possible, simply return a Promise instead of manually
  attaching up assert.async() to done(), fail() or always().

See <https://api.qunitjs.com/async/> and <https://api.qunitjs.com/QUnit.test/>

Change-Id: I8ec7fdc9c271bbc17555f2e750032282b1683d0e

7 years agomw.loader: Add 'require' as Promise value for using()
Timo Tijhof [Thu, 4 Aug 2016 23:04:37 +0000 (16:04 -0700)]
mw.loader: Add 'require' as Promise value for using()

Discourage use of the global mw.loader.require method since it's contextless,
and doesn't allow for future expansion where we might detect missing declared
dependencies or could track stacking context.

In regular execution context, there is already a local require() method.

For ad-hoc loading through mw.loader.using() there is now a reference to a
require function.

This also discourages code from assuming that the internal implement() method
is synchronous - which may change after T142129.

Change-Id: Ia040729901b1e77da8d3bf4830bb076f8fa8c6e9

7 years agoMerge "resourceloader: Add missing @private and @protected to mw.loader methods"
jenkins-bot [Thu, 4 Aug 2016 23:18:14 +0000 (23:18 +0000)]
Merge "resourceloader: Add missing @private and @protected to mw.loader methods"

7 years agoresourceloader: Add missing @private and @protected to mw.loader methods
Timo Tijhof [Thu, 4 Aug 2016 22:45:39 +0000 (15:45 -0700)]
resourceloader: Add missing @private and @protected to mw.loader methods

Several local functions were indexed by JSDuck as mw.loader methods whereas
they are in fact they don't even exist on that object. Mark them as @private.

Also add @protected on the internal methods 'work()' and 'require()',
which are public but not for general use (and may change without warning).

Change-Id: If521cc5ae4a565a46161890cf32e95a8c7f4ca50