lhc/web/wiklou.git
7 years agoMerge "docs: mw.widgets.CategorySelector: Fix example code"
jenkins-bot [Thu, 15 Sep 2016 17:35:50 +0000 (17:35 +0000)]
Merge "docs: mw.widgets.CategorySelector: Fix example code"

7 years agoMerge "Remove global state from DatabaseBase::__construct()"
jenkins-bot [Thu, 15 Sep 2016 17:09:34 +0000 (17:09 +0000)]
Merge "Remove global state from DatabaseBase::__construct()"

7 years agoMerge "Move Linker::formatTemplates() to separate class, remove global usage"
jenkins-bot [Thu, 15 Sep 2016 16:52:10 +0000 (16:52 +0000)]
Merge "Move Linker::formatTemplates() to separate class, remove global usage"

7 years agoMerge "Fix broken wincache merge() implementation"
jenkins-bot [Thu, 15 Sep 2016 16:39:36 +0000 (16:39 +0000)]
Merge "Fix broken wincache merge() implementation"

7 years agoMerge "OutputPage: Don't set 'user' module state if filtered out"
jenkins-bot [Thu, 15 Sep 2016 16:39:32 +0000 (16:39 +0000)]
Merge "OutputPage: Don't set 'user' module state if filtered out"

7 years agoMerge "Revert "Remove jquery.arrowSteps module""
jenkins-bot [Thu, 15 Sep 2016 16:36:51 +0000 (16:36 +0000)]
Merge "Revert "Remove jquery.arrowSteps module""

7 years agoRevert "Remove jquery.arrowSteps module"
Bartosz Dziewoński [Thu, 15 Sep 2016 16:28:42 +0000 (16:28 +0000)]
Revert "Remove jquery.arrowSteps module"

It should probably be deprecated first after all.

This reverts commit 6fba9a7dc6ac969676c57f85b09bbdac9067a2bd.

Bug: T144974
Change-Id: I830fbfc2e453be6b18d43775a8aa1a366690907c

7 years agoMerge "Set fallback language for lzh to zh-hant"
jenkins-bot [Thu, 15 Sep 2016 13:02:29 +0000 (13:02 +0000)]
Merge "Set fallback language for lzh to zh-hant"

7 years agoChange wording, change grammar in lang/en.json
zppix1 [Thu, 11 Aug 2016 21:31:17 +0000 (16:31 -0500)]
Change wording, change grammar in lang/en.json

Bug: T142756
Depends-On: I233ce58fd82a1dbc57b3ab58ce669b23a5781b57
Change-Id: I164d397d6ea41ea6b88bb0d84604b52419dadd0f

7 years agoFix broken wincache merge() implementation
Aaron Schulz [Thu, 15 Sep 2016 11:50:25 +0000 (04:50 -0700)]
Fix broken wincache merge() implementation

Bug: T145664
Change-Id: I2f841779108df281e24003c586775b71aa176909

7 years agoCleaned up some un needed wording in the English i18n file
zppix1 [Sat, 30 Jul 2016 23:06:28 +0000 (18:06 -0500)]
Cleaned up some un needed wording in the English i18n file

Changed messages:
* noindex-category
* morenotlisted

Change-Id: I233ce58fd82a1dbc57b3ab58ce669b23a5781b57

7 years agoRemove global state from DatabaseBase::__construct()
Aaron Schulz [Thu, 15 Sep 2016 11:22:57 +0000 (04:22 -0700)]
Remove global state from DatabaseBase::__construct()

Change-Id: Iba347fce8f0f531aa7e565bb8806260bcbf04a98

7 years agoSet fallback language for lzh to zh-hant
MarcoAurelio [Tue, 2 Aug 2016 09:27:55 +0000 (11:27 +0200)]
Set fallback language for lzh to zh-hant

Bug: T125373
Change-Id: Ie39d03efce0997c928ac0bc7f4a97ee8e047df45

7 years agoRemove unused LBFactoryFake class
Aaron Schulz [Thu, 15 Sep 2016 05:02:43 +0000 (22:02 -0700)]
Remove unused LBFactoryFake class

Change-Id: I88acf72fc32c7e3c9bead81d11c5adfd8dff6151

7 years agoMerge "Avoid MWException and wf* log methods in DatabaseBase"
jenkins-bot [Thu, 15 Sep 2016 04:26:27 +0000 (04:26 +0000)]
Merge "Avoid MWException and wf* log methods in DatabaseBase"

7 years agoAvoid MWException and wf* log methods in DatabaseBase
Aaron Schulz [Thu, 15 Sep 2016 01:37:35 +0000 (18:37 -0700)]
Avoid MWException and wf* log methods in DatabaseBase

Change-Id: Idc418ae1088f87d6416e2552976d94f7d1e8f5db

7 years agoMove various DB helper classes to /libs/rdbms
Aaron Schulz [Wed, 14 Sep 2016 10:11:41 +0000 (03:11 -0700)]
Move various DB helper classes to /libs/rdbms

Change-Id: I0724f1acce4f6c43b1f0983fa119e628e7c53ba5

7 years agoMove LoadBalancer to /libs/rdbms
Aaron Schulz [Wed, 14 Sep 2016 09:40:29 +0000 (02:40 -0700)]
Move LoadBalancer to /libs/rdbms

Change-Id: Ic87f1cc84ba44be20f345944406e1d8a34be1c96

7 years agoChange DatabaseBase => IDatabase in /db where possible
Aaron Schulz [Thu, 15 Sep 2016 02:04:21 +0000 (19:04 -0700)]
Change DatabaseBase => IDatabase in /db where possible

Change-Id: Ia0a049cd4294c5a39aa9ed228d4eb5b15736ea1f

7 years agoMerge "Change $wiki => $domain in LoadBalancer"
jenkins-bot [Thu, 15 Sep 2016 02:24:05 +0000 (02:24 +0000)]
Merge "Change $wiki => $domain in LoadBalancer"

7 years agoMerge "Exception cleanups for LoadBalancer"
jenkins-bot [Thu, 15 Sep 2016 02:19:03 +0000 (02:19 +0000)]
Merge "Exception cleanups for LoadBalancer"

7 years agoChange $wiki => $domain in LoadBalancer
Aaron Schulz [Thu, 15 Sep 2016 02:13:41 +0000 (19:13 -0700)]
Change $wiki => $domain in LoadBalancer

Change-Id: I97f96383c501e9b3262c11d143795b82ae36aca5

7 years agophpunit: Simplify mock object syntax in includes/db/ tests
Timo Tijhof [Wed, 14 Sep 2016 22:51:05 +0000 (15:51 -0700)]
phpunit: Simplify mock object syntax in includes/db/ tests

* Omit redundant `expects( $this->any() )`.
* Use willReturn() instead of `will( $this->returnValue() )`.

Change-Id: If90ac651748af8a78a720992240e40ba53cec79c

7 years agoException cleanups for LoadBalancer
Aaron Schulz [Wed, 14 Sep 2016 09:28:18 +0000 (02:28 -0700)]
Exception cleanups for LoadBalancer

* Make the error message itself be dumb/raw.
* Make the exception exposer show the same GUI message.
* Remove overzelous wgLang check in MWExceptionRenderer.

Change-Id: Ifffff3b3cc785ea3080e4975efe33b3c2cf304d6

7 years agoMerge "Move DBConnRef and ChronologyProtector to /libs/rdbms"
jenkins-bot [Thu, 15 Sep 2016 00:46:03 +0000 (00:46 +0000)]
Merge "Move DBConnRef and ChronologyProtector to /libs/rdbms"

7 years agoMerge "Move TransactionProfiler to /libs/rdbms"
jenkins-bot [Thu, 15 Sep 2016 00:43:34 +0000 (00:43 +0000)]
Merge "Move TransactionProfiler to /libs/rdbms"

7 years agoMerge "Make WikiPage::getRevision() make use of Revision::newKnownCurrent()"
jenkins-bot [Thu, 15 Sep 2016 00:31:04 +0000 (00:31 +0000)]
Merge "Make WikiPage::getRevision() make use of Revision::newKnownCurrent()"

7 years agoMove DBConnRef and ChronologyProtector to /libs/rdbms
Aaron Schulz [Wed, 14 Sep 2016 09:21:18 +0000 (02:21 -0700)]
Move DBConnRef and ChronologyProtector to /libs/rdbms

Change-Id: If2c4b314a5c39311328843f534d91bf90823e179

7 years agoMerge "More DB related class cleanups to prepare files for /libs"
jenkins-bot [Thu, 15 Sep 2016 00:15:15 +0000 (00:15 +0000)]
Merge "More DB related class cleanups to prepare files for /libs"

7 years agoMerge "Re-add parser tests to the ParserTests group"
jenkins-bot [Thu, 15 Sep 2016 00:09:16 +0000 (00:09 +0000)]
Merge "Re-add parser tests to the ParserTests group"

7 years agoMerge "Fix broken select() call in rebuildFileCache.php"
jenkins-bot [Thu, 15 Sep 2016 00:09:12 +0000 (00:09 +0000)]
Merge "Fix broken select() call in rebuildFileCache.php"

7 years agoMore DB related class cleanups to prepare files for /libs
Aaron Schulz [Wed, 14 Sep 2016 07:22:35 +0000 (00:22 -0700)]
More DB related class cleanups to prepare files for /libs

* Cleaned up some related logging bits.
* Avoid some wf* methods in LoadBalancer.

Change-Id: I5da97174441c086e61ffc120889c068e241ebfd2

7 years agoMake WikiPage::getRevision() make use of Revision::newKnownCurrent()
Aaron Schulz [Wed, 14 Sep 2016 23:57:54 +0000 (16:57 -0700)]
Make WikiPage::getRevision() make use of Revision::newKnownCurrent()

Change-Id: Id06319b31bc523a5d514930c3d609af4d991453b

7 years agoMerge "Move IDatabase/ILoadBalancer to /libs/rdbms"
jenkins-bot [Wed, 14 Sep 2016 23:54:00 +0000 (23:54 +0000)]
Merge "Move IDatabase/ILoadBalancer to /libs/rdbms"

7 years agoMerge "mediawiki.Upload.BookletLayout: Fix typo in comment"
jenkins-bot [Wed, 14 Sep 2016 23:42:43 +0000 (23:42 +0000)]
Merge "mediawiki.Upload.BookletLayout: Fix typo in comment"

7 years agoRe-add parser tests to the ParserTests group
Tim Starling [Wed, 14 Sep 2016 23:37:06 +0000 (09:37 +1000)]
Re-add parser tests to the ParserTests group

It was omitted due to the new way in which parser test TestCase objects
are constructed. Should fix Jenkins double-execution of parser tests.

Change-Id: I8131c3b13f2e08f784bce46fee16051c14761304

7 years agoMove IDatabase/ILoadBalancer to /libs/rdbms
Aaron Schulz [Wed, 14 Sep 2016 07:19:30 +0000 (00:19 -0700)]
Move IDatabase/ILoadBalancer to /libs/rdbms

Change-Id: I71f980b1024dc2fbca9cafbad2c9daebb6f28c9b

7 years agoMake SiteStatsUpdate implement MergeableUpdate
Aaron Schulz [Wed, 14 Sep 2016 16:16:06 +0000 (09:16 -0700)]
Make SiteStatsUpdate implement MergeableUpdate

Change-Id: I53c9bf133f0707f2fa203ddd1a7fcb65be8b1329

7 years agomediawiki.Upload.BookletLayout: Fix typo in comment
Timo Tijhof [Wed, 14 Sep 2016 22:58:44 +0000 (15:58 -0700)]
mediawiki.Upload.BookletLayout: Fix typo in comment

Follows-up 33041b752d.

Change-Id: I50747f140d6c0a42385aa94c8827f8ff7354628d

7 years agoresourceloader: Fix WikiModule preload to support localised titles
Timo Tijhof [Wed, 14 Sep 2016 21:14:31 +0000 (14:14 -0700)]
resourceloader: Fix WikiModule preload to support localised titles

Follows-up 6f8dc27ca2 and dbd11e04aa. You'd expect a bug in preloading
to fallback to fetching it on-demand but due to a title format mismatch
the preload method did use the same title format for the cache key, but
not the same title format for discovering the results. As such, it set
the right cache key to an empty array.

* Make relevant methods testable and mockable.
* Add regression test.
* Change call to array_interect_key to use the same format as
  fetchTitleInfo(): Normalised title keys from Title::getPrefixedText.
  Previously, the intersect used the declared titles from getPages() which
  are not localised - causing an empty array to be returned from the
  intersect on wikis where the namespace name is localised.

Bug: T145673
Change-Id: Ibe788157724d73c727b9e2127b6828db32ca9420

7 years agoFix broken select() call in rebuildFileCache.php
Aaron Schulz [Wed, 14 Sep 2016 19:37:36 +0000 (12:37 -0700)]
Fix broken select() call in rebuildFileCache.php

A few other small cleanups

Change-Id: Ie62cf93feb5a57f629a893c7ea298ed902b52789

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Wed, 14 Sep 2016 20:07:35 +0000 (20:07 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 14 Sep 2016 20:00:21 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iee268ac310eb4a09e6df11ca71a9a71a7d8b19e5

7 years agoMerge "Move DBError to /libs/rdbms/exception"
jenkins-bot [Wed, 14 Sep 2016 20:00:17 +0000 (20:00 +0000)]
Merge "Move DBError to /libs/rdbms/exception"

7 years agoMerge "Add MWExceptionRenderer class and decouple DBError"
jenkins-bot [Wed, 14 Sep 2016 19:21:08 +0000 (19:21 +0000)]
Merge "Add MWExceptionRenderer class and decouple DBError"

7 years agoMerge "Reduce WikiPage::getContentModel() queries via caching"
jenkins-bot [Wed, 14 Sep 2016 19:18:32 +0000 (19:18 +0000)]
Merge "Reduce WikiPage::getContentModel() queries via caching"

7 years agoMerge "Add caching to Title::loadRestrictions()"
jenkins-bot [Wed, 14 Sep 2016 19:14:40 +0000 (19:14 +0000)]
Merge "Add caching to Title::loadRestrictions()"

7 years agoMove DBError to /libs/rdbms/exception
Aaron Schulz [Wed, 14 Sep 2016 18:55:33 +0000 (11:55 -0700)]
Move DBError to /libs/rdbms/exception

Change-Id: I2ad40db66a68f03fb34a63278a652e0505195076

7 years agoAdd MWExceptionRenderer class and decouple DBError
Aaron Schulz [Wed, 14 Sep 2016 03:57:54 +0000 (20:57 -0700)]
Add MWExceptionRenderer class and decouple DBError

* This handles the work of showing exceptions so that
  MWException does not have too.
* Simplify the DBError classes to regular Exception
  classes. Lots of pointless prettification has been
  removed, but DBConnectionError still gets the usual
  special treatment of a fallback page and Google form.
* Remove hacky file cache fallback code that probably
  did not work.
* Make MWExceptionHandler::report() wrap
  MWExceptionExposer::output().
* Make MWException::runHooks() wrap
  MWExceptionExposer::runHooks().

Change-Id: I5dfdc84e94ddac65417226cf7c84513ebb9f9faa

7 years agoParserOptions: Remove setters for magic links options
Kunal Mehta [Wed, 14 Sep 2016 18:12:14 +0000 (11:12 -0700)]
ParserOptions: Remove setters for magic links options

This will allow clients to assume that the global configuration state
($wgEnableMagicLinks) is the same as the state in ParserOptions, fixing
some consistency issues in wfEscapeWikiText() and Scribunto. The
abstraction for the ParserOptions getters is still useful because it
keeps the global state out of the Parser.

Change-Id: Ic2c447443963eb336c786cacf9dfd041a2df3b77

7 years agoMerge "API: Deprecate use of ApiPurge via GET"
jenkins-bot [Wed, 14 Sep 2016 16:36:59 +0000 (16:36 +0000)]
Merge "API: Deprecate use of ApiPurge via GET"

7 years agoMerge "API: Expose $wgEnableMagicLinks in meta=siteinfo"
jenkins-bot [Wed, 14 Sep 2016 15:58:36 +0000 (15:58 +0000)]
Merge "API: Expose $wgEnableMagicLinks in meta=siteinfo"

7 years agoMerge "Fix login API for users with @ in their usernames"
jenkins-bot [Wed, 14 Sep 2016 15:33:07 +0000 (15:33 +0000)]
Merge "Fix login API for users with @ in their usernames"

7 years agoAPI: Deprecate use of ApiPurge via GET
Brad Jorsch [Wed, 14 Sep 2016 15:04:33 +0000 (11:04 -0400)]
API: Deprecate use of ApiPurge via GET

This emits a warning and logs feature usage, and also pretends that POST
is required in the help and paraminfo output.

Bug: T145649
Change-Id: Ied8d47a947662158fddab383c764bf70c5ab0112

7 years agoMove TransactionProfiler to /libs/rdbms
Aaron Schulz [Wed, 14 Sep 2016 12:18:57 +0000 (05:18 -0700)]
Move TransactionProfiler to /libs/rdbms

Change-Id: I13173facc9f101bca69e3bf3e85f292f8468e855

7 years agoMerge "Move LoadMonitor classes to libs/rdbms/loadmonitor"
jenkins-bot [Wed, 14 Sep 2016 11:08:17 +0000 (11:08 +0000)]
Merge "Move LoadMonitor classes to libs/rdbms/loadmonitor"

7 years agoMove LoadMonitor classes to libs/rdbms/loadmonitor
Aaron Schulz [Wed, 14 Sep 2016 07:10:11 +0000 (00:10 -0700)]
Move LoadMonitor classes to libs/rdbms/loadmonitor

Change-Id: Ib18108f24ff8b9d05dc324bad132f597b3e2ddef

7 years agoMerge "Replace some MWExceptions with natives ones in /db"
jenkins-bot [Wed, 14 Sep 2016 10:43:40 +0000 (10:43 +0000)]
Merge "Replace some MWExceptions with natives ones in /db"

7 years agoMerge "Special:ChangeContentModel: Run EditFilterMergedContent hook"
jenkins-bot [Wed, 14 Sep 2016 10:39:43 +0000 (10:39 +0000)]
Merge "Special:ChangeContentModel: Run EditFilterMergedContent hook"

7 years agoReduce CategoryMembershipChangeJob lock timeout
Aaron Schulz [Wed, 14 Sep 2016 10:21:53 +0000 (03:21 -0700)]
Reduce CategoryMembershipChangeJob lock timeout

Bug: T133801
Change-Id: Ic5db3983a8b67b9138b602188a52d60dd95fcb59

7 years agodocs: mw.widgets.CategorySelector: Fix example code
Prateek Saxena [Wed, 14 Sep 2016 09:09:01 +0000 (14:39 +0530)]
docs: mw.widgets.CategorySelector: Fix example code

* jsduck was converting '#content' to a link, so switched that
  to 'body' instead
* Loading the required module so that the code can be copy pasted

Change-Id: I93148ff7480394c952b10db5a25004134fa07fe4

7 years agoReplace some MWExceptions with natives ones in /db
Aaron Schulz [Wed, 14 Sep 2016 02:38:19 +0000 (19:38 -0700)]
Replace some MWExceptions with natives ones in /db

Change-Id: I94532d09216926d401e94c61acd60fdc6241a2a0

7 years agoMerge "refreshLinks: Add --namespace option"
jenkins-bot [Wed, 14 Sep 2016 08:41:04 +0000 (08:41 +0000)]
Merge "refreshLinks: Add --namespace option"

7 years agorefreshLinks: Add --namespace option
Kunal Mehta [Tue, 13 Sep 2016 01:13:45 +0000 (18:13 -0700)]
refreshLinks: Add --namespace option

This allows limiting refreshing data to pages in a single namespace.

Change-Id: I309058df98b638beb32adb1d663455a0c4aa1cec

7 years agoSet cpPosTime cookie for the non-redirect case as well
Aaron Schulz [Wed, 14 Sep 2016 06:52:05 +0000 (23:52 -0700)]
Set cpPosTime cookie for the non-redirect case as well

This is useful if the ChronologyProtector store cannot sync
among datacenters and waitForReplication() is DC-local.
It only applies if the user stays on the domain, however.

Change-Id: I800cade7b87a0f02d6a429e70924c54189a4a7af

7 years agoUse cpPosTime cookie for same-domain redirects on DB change
Aaron Schulz [Wed, 14 Sep 2016 05:49:10 +0000 (22:49 -0700)]
Use cpPosTime cookie for same-domain redirects on DB change

This follows-up a3dacac90f to show the URL parameter in less cases.

Change-Id: Ibe015352962fb3ee14d5aa322f0e748ef4cba5c1

7 years agoOutputPage: Don't set 'user' module state if filtered out
Timo Tijhof [Wed, 14 Sep 2016 04:54:57 +0000 (21:54 -0700)]
OutputPage: Don't set 'user' module state if filtered out

On pages where the 'user' module is filtered out (e.g.
on Special:Preferences) it would export state 'loading' (or state
'ready') eventhough the actual call to makeResourceLoader() later
in getBottomScripts() would be a no-op due to filtering.

This would cause either an indefinite state of "loading" or a
state "ready" that wasn't true.

This restores status quo as it was before 80e5b160 and 3e7a50d5f.

Test plan:
* Logged-in with non-empty user page common.js.
* View Special:Preferences.
* Verify in <head> source code, or via mw.loader.getState('user')
  that it has state "registered" (the default initial state) and
  not state "loading" or "ready".

Change-Id: I9b360d7e12703bddb80793aef47296fd63032c3d

7 years agoAdd ILoadBalancer interface
Aaron Schulz [Wed, 14 Sep 2016 01:18:37 +0000 (18:18 -0700)]
Add ILoadBalancer interface

Remove redundant LoadBalancer docs (those without @since).

Change-Id: I981177b6854cfdbea4a51b6db7e365dac0da258a

7 years agoMerge "Convert LoadBalancer/Database class logging to PSR"
jenkins-bot [Wed, 14 Sep 2016 02:34:10 +0000 (02:34 +0000)]
Merge "Convert LoadBalancer/Database class logging to PSR"

7 years agoConvert LoadBalancer/Database class logging to PSR
Aaron Schulz [Mon, 12 Sep 2016 22:10:16 +0000 (15:10 -0700)]
Convert LoadBalancer/Database class logging to PSR

Reorder DatabaseBase constructor/factory to the top.

Change-Id: I2ffff950b9170d6ff15dcd46b64dd366f1e441a8

7 years agoMerge "Partially reverting I8e684f06 to restore some legacy behavior"
jenkins-bot [Wed, 14 Sep 2016 01:48:39 +0000 (01:48 +0000)]
Merge "Partially reverting I8e684f06 to restore some legacy behavior"

7 years agoFix login API for users with @ in their usernames
Gergő Tisza [Tue, 13 Sep 2016 23:25:49 +0000 (23:25 +0000)]
Fix login API for users with @ in their usernames

An @ in the username caused the password to be treated as a bot password,
but apparently some real usernames still contain it. Try both logins
instead. Security considerations are the same as for the other bot
password syntax: the length check makes sure we do not provide any
information on a timing side channel about the password unless it is
extremely long.

Change-Id: I58f42544a08c3208c41f54cfae932632d9c5affa

7 years agoMerge "Move PECL memcached class to /libs"
jenkins-bot [Wed, 14 Sep 2016 01:45:02 +0000 (01:45 +0000)]
Merge "Move PECL memcached class to /libs"

7 years agoPartially reverting I8e684f06 to restore some legacy behavior
Kaldari [Wed, 14 Sep 2016 01:24:55 +0000 (18:24 -0700)]
Partially reverting I8e684f06 to restore some legacy behavior

Apparently some calls to getDateCond() expect it to not set an offset.
Also, removing some of the new tests that no longer work since they
don't pass all the required parameters. (Before I8e684f06, the year
and month were both required parameters.)

Bug: T145597
Change-Id: I3a90b3da48e49ec9723b7100a7d92146154f74e3

7 years agoMerge "Various dependency injection cleanups to LoadBalancer"
jenkins-bot [Wed, 14 Sep 2016 01:05:58 +0000 (01:05 +0000)]
Merge "Various dependency injection cleanups to LoadBalancer"

7 years agoParserTests: Make sure WikiPage::doEditContent() succeeds
Kunal Mehta [Wed, 14 Sep 2016 00:22:44 +0000 (17:22 -0700)]
ParserTests: Make sure WikiPage::doEditContent() succeeds

If a parser test tries to create a page with invalid content (rejected
by Content::prepareSave() or Content::isValid()), throw an exception
instead of silently failing.

Change-Id: I89642604216699f27884120b3c297a0b277c47a6

7 years agoMerge "Make sure emails from RecentChange::save() are for comitted rows"
jenkins-bot [Wed, 14 Sep 2016 00:22:15 +0000 (00:22 +0000)]
Merge "Make sure emails from RecentChange::save() are for comitted rows"

7 years agoSpecial:ChangeContentModel: Run EditFilterMergedContent hook
Kunal Mehta [Tue, 13 Sep 2016 08:10:35 +0000 (01:10 -0700)]
Special:ChangeContentModel: Run EditFilterMergedContent hook

This will allow tools like AbuseFilter to filter changes made through
the special page, and matches the EditPage behavior that already runs
this hook.

Bug: T145489
Change-Id: I3204e3a228af2cdd4e2ab4e8c760cc126a8e1947

7 years agoVarious dependency injection cleanups to LoadBalancer
Aaron Schulz [Sun, 11 Sep 2016 21:57:09 +0000 (14:57 -0700)]
Various dependency injection cleanups to LoadBalancer

* Inject wfWikiID() and MWExceptionHandler into LoadBalancer.
* Factor out LBFactory duplication into baseLoadBalancerParams().
* Remove $wgDBtype hack. Presumably, sites with others DBs would
  not have multiple servers configured if does not work anyway.
* Make use of injected TransactionProfiler rather than calling
  Profiler::instance()->getTransactionProfiler().
* Avoid use of trivial wfSplitWikiID() function.
* Make DBConnRef enforce its arguments more strongly and
  optimize getWiki() to avoid causing a connection attempt.
* Avoid deprecated method call in LBFactory::destroyInstance().

Change-Id: If134b62d4f48cd68cb48ccbe149e72f12aa26819

7 years agoAPI: Expose $wgEnableMagicLinks in meta=siteinfo
Kunal Mehta [Tue, 13 Sep 2016 22:19:24 +0000 (15:19 -0700)]
API: Expose $wgEnableMagicLinks in meta=siteinfo

So Parsoid can use it.

Bug: T145590
Change-Id: Id792e07dc6fffec6d02b34168220b3a4e24b222b

7 years agoMerge "Remove pointless double exception logging from JobRunner"
jenkins-bot [Tue, 13 Sep 2016 22:26:26 +0000 (22:26 +0000)]
Merge "Remove pointless double exception logging from JobRunner"

7 years agoMerge "momentjs: Hack around bug in node/browser compat wrapper in locale files"
jenkins-bot [Tue, 13 Sep 2016 21:58:58 +0000 (21:58 +0000)]
Merge "momentjs: Hack around bug in node/browser compat wrapper in locale files"

7 years agoAvoid warnings when unable to parse the URL given to us
Chad Horohoe [Tue, 13 Sep 2016 21:07:32 +0000 (14:07 -0700)]
Avoid warnings when unable to parse the URL given to us

Change-Id: I56f1f36a3a54c6c23579f011d65dc75f30cb6dcf

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 13 Sep 2016 20:14:01 +0000 (22:14 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c1a5601f4e102c7c8ac32908c91f5f3cff25eaa

7 years agoUpdate OOjs UI to v0.17.9
James D. Forrester [Tue, 13 Sep 2016 18:48:04 +0000 (11:48 -0700)]
Update OOjs UI to v0.17.9

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.9

Change-Id: Ibe5ba723888646f48ab4be9b88bc7a16ee0ae054

7 years agoMerge "Fix some PhpStorm warnings in AuthManager"
jenkins-bot [Tue, 13 Sep 2016 16:06:00 +0000 (16:06 +0000)]
Merge "Fix some PhpStorm warnings in AuthManager"

7 years agoRemove jquery.arrowSteps module
Paladox [Sun, 11 Sep 2016 17:26:36 +0000 (18:26 +0100)]
Remove jquery.arrowSteps module

It was unused by any other extension
https://github.com/search?q=user%3Awikimedia+jquery.arrowSteps&ref=searchresults&type=Code&utf8=%E2%9C%93

and only used for UploadWizard so it was merged into there with
I054674c7025ad37a8592ca82ce7ce0efd41d393f

Depends-On: I054674c7025ad37a8592ca82ce7ce0efd41d393f

Bug: T144974
Change-Id: Id9b6af1f1774bc33ceb024126030eefdc43beba0

7 years agoChangeTags: Rename "extension" to "software"
Kunal Mehta [Tue, 13 Sep 2016 10:44:08 +0000 (03:44 -0700)]
ChangeTags: Rename "extension" to "software"

Most end users don't care about whether a tag comes from MediaWiki core
or an extension. Since we now have tags that are added by core, let's
rename all of the "extension" terminology to the more generic
"software".

Not renamed in this patch is the i18n message "tags-source-extension",
which will be done in a separate patch to coordinate with TWN, and the
"source" output of the API, to avoid a breaking change.

Change-Id: Ic7b32b3e4bef0c0153a7cf302eef4aa07c52c9f2

7 years agoMerge "Add a change tag for edits that change the content model of a page"
jenkins-bot [Tue, 13 Sep 2016 11:42:44 +0000 (11:42 +0000)]
Merge "Add a change tag for edits that change the content model of a page"

7 years agoMerge "ChangeTags: Skip caching if some hooks aren't registered"
jenkins-bot [Tue, 13 Sep 2016 11:41:59 +0000 (11:41 +0000)]
Merge "ChangeTags: Skip caching if some hooks aren't registered"

7 years agoAdd a change tag for edits that change the content model of a page
Kunal Mehta [Tue, 13 Sep 2016 07:10:08 +0000 (00:10 -0700)]
Add a change tag for edits that change the content model of a page

And adjust the 'tags-source-extension' message to indicate that tags are
not just defined by extensions, but the software in general. The
extension related functions will be renamed in a follow-up patchset.

Bug: T145344
Change-Id: Id4391bc100287b8e469636949eaf7845bbd1d67c

7 years agoFix typo in "editpage-invalidcontentmodel-text" message
Kunal Mehta [Tue, 13 Sep 2016 09:18:08 +0000 (02:18 -0700)]
Fix typo in "editpage-invalidcontentmodel-text" message

Bug: T145491
Change-Id: I1814a84d49f6cf837f18a1e6e5b3db9602e1f55c

7 years agoMerge "Add day to date filter for ReverseChronologicalPager"
jenkins-bot [Tue, 13 Sep 2016 08:05:18 +0000 (08:05 +0000)]
Merge "Add day to date filter for ReverseChronologicalPager"

7 years agoChangeTags: Skip caching if some hooks aren't registered
Kunal Mehta [Tue, 13 Sep 2016 06:32:06 +0000 (23:32 -0700)]
ChangeTags: Skip caching if some hooks aren't registered

There is caching around the ChangeTagsListActive and ListDefinedTags
hooks that can be skipped if no callers are registered for them.

Change-Id: I0c8fccc358f80536fff7ad0bda1cab09181bca41

7 years agoMerge "Avoid page_touched update for HTTP GET action=purge requests"
jenkins-bot [Tue, 13 Sep 2016 06:40:52 +0000 (06:40 +0000)]
Merge "Avoid page_touched update for HTTP GET action=purge requests"

7 years agoMerge "Make DeferredUpdates call setTransactionTicket() on all DataUpdate tasks"
jenkins-bot [Tue, 13 Sep 2016 05:43:09 +0000 (05:43 +0000)]
Merge "Make DeferredUpdates call setTransactionTicket() on all DataUpdate tasks"

7 years agoMerge "Parser: Allow disabling magic link functionality"
jenkins-bot [Tue, 13 Sep 2016 05:31:47 +0000 (05:31 +0000)]
Merge "Parser: Allow disabling magic link functionality"

7 years agoMerge "SkinTemplate: Improve remote content handling in content navigation URLs"
jenkins-bot [Tue, 13 Sep 2016 05:30:13 +0000 (05:30 +0000)]
Merge "SkinTemplate: Improve remote content handling in content navigation URLs"

7 years agoAvoid page_touched update for HTTP GET action=purge requests
Aaron Schulz [Sun, 11 Sep 2016 18:49:42 +0000 (11:49 -0700)]
Avoid page_touched update for HTTP GET action=purge requests

This will still clear the local DC parser cache and the CDN cache
in all DCs. Therefore, the next page views served by the local
DC will reflect the refreshed content, as will further GET/HEAD
requests by the client that issued the purge using GET/HEAD.

If the problem was imply a stale CDN cache entry, then all
DCs will be up-to-date. If the problem is stale parser cache,
then a proper POST purge request is required to refresh all DCs.

Bug: T92357
Change-Id: I9af12ca8cfff73298f404fd3e2dd4f546621c546

7 years agoMerge "Add WikiPage::isLocal()"
jenkins-bot [Tue, 13 Sep 2016 05:23:28 +0000 (05:23 +0000)]
Merge "Add WikiPage::isLocal()"