lhc/web/wiklou.git
10 years agoParser::replaceInternalLinks: fix batching
Kevin Israel [Tue, 15 Oct 2013 13:42:48 +0000 (09:42 -0400)]
Parser::replaceInternalLinks: fix batching

The parser unnecessarily made individual checks for existence of
pages that were neither in LinkCache nor linked only with a fragment.
A Title::isKnown() call in Parser::replaceInternalLinks2() (added in
bca8b8ad7d2f) caused this.

Title::isKnown() was used to avoid treating a link to a distinct page
as a self-link even when the title happened to match one of the variants
returned by Language::autoConvertToAllVariants(). This change fixes
the bug by moving the problematic portion of the self-link check into
LinkHolderArray::doVariants().

Change-Id: I586e11e8b47308980ea04087ebc4246c397a8f53

10 years agoUse restriction-level-* messages in Linker::formatTemplates
Brad Jorsch [Fri, 18 Oct 2013 14:29:36 +0000 (10:29 -0400)]
Use restriction-level-* messages in Linker::formatTemplates

The current implementation of Linker::formatTemplates only checks for
"sysop" and "autoconfirmed", and completely ignores any other protection
levels. That needs fixing.

Rather than introducing additional messages "template-protected-*" to
match template-protected and template-semiprotected, let's just use the
existing restriction-level-foo messages and wrap them in parentheses.

The old messages are kept for backwards compatability, but could
probably be considered deprecated.

Bug: 43462
Change-Id: I0c507f4ecc1921f599acbda834fa55e96388fa7b

10 years agoAvoid master queries in Revision::newFromTitle(..., Revision::READ_NORMAL)
Tim Starling [Fri, 7 Jun 2013 00:31:37 +0000 (10:31 +1000)]
Avoid master queries in Revision::newFromTitle(..., Revision::READ_NORMAL)

The fallback to master makes sense in Revision::newFromId(), since a
revision ID known to exist by some other means might be present in the
master but not in the slave. But it doesn't make sense for
Revision::newFromTitle(), where by far the most common cause of this
case being hit is the page being nonexistent.

Change-Id: I41189fcde1b8065ac134982241376d63b78732a1

10 years agoMerge "Fix Redis increment behavior by using BagOStuff->incr instead"
jenkins-bot [Tue, 22 Oct 2013 23:49:01 +0000 (23:49 +0000)]
Merge "Fix Redis increment behavior by using BagOStuff->incr instead"

10 years agoMerge "Test BagOStuff->incr method"
jenkins-bot [Tue, 22 Oct 2013 23:47:25 +0000 (23:47 +0000)]
Merge "Test BagOStuff->incr method"

10 years agoFix Redis increment behavior by using BagOStuff->incr instead
Matthew Flaschen [Tue, 22 Oct 2013 21:35:23 +0000 (17:35 -0400)]
Fix Redis increment behavior by using BagOStuff->incr instead

Due to the PHP serialization, the Redis native INCR and INCRBY do not
work.  This instead falls back on the parent class's incr, which uses
lock and unlock, and incrementing on the PHP side.

Bug: 55986
Change-Id: I500199aeb935963ca118fde163bd7ba0cba8f79f

10 years agoTest BagOStuff->incr method
Matthew Flaschen [Tue, 22 Oct 2013 05:55:25 +0000 (01:55 -0400)]
Test BagOStuff->incr method

Change-Id: I3b72f19df82ee302dee47dcf22b69ed9bb6ff8e0

10 years agolockmanager: QuorumLockManager subclasses can get EX/SH locks at once
Aaron Schulz [Sun, 16 Jun 2013 20:48:17 +0000 (13:48 -0700)]
lockmanager: QuorumLockManager subclasses can get EX/SH locks at once

* Also reduced rount trips in doUnlockingRequestBucket().
* Also removed some redundant doc comments.

Change-Id: I81878e92332509bd7fda9ddeef950b774f5b015d

10 years agoCleanup /languages/* tests
addshore [Tue, 22 Oct 2013 10:32:29 +0000 (12:32 +0200)]
Cleanup /languages/* tests

This change:
 - Adds method scope
 - adds @covers tags
 - adds various @todos
 - fixes some comments

Before the changes tests ran with:
   1383 tests, 1412 assertions 10 skips
After changes the results remain the same

Change-Id: Iee57447bdb47026952ef5dcce6fed5dad0f80e52

10 years agoAdd more @covers tags and test cleanup
addshore [Mon, 21 Oct 2013 21:09:13 +0000 (23:09 +0200)]
Add more @covers tags and test cleanup

Other cleanup includes
 - Adding method scopes
 - Fixing php comments
 - Adding todos

Change-Id: I0a231008e6a59110ffcab6af1bd8c4d3ee13f21d

10 years agoMerge "Mention the new HTMLForm 'vform' display format."
Mwalker [Tue, 22 Oct 2013 02:34:45 +0000 (02:34 +0000)]
Merge "Mention the new HTMLForm 'vform' display format."

10 years agoMerge "Fixes for duplicateStderr (I833aeb3a)"
jenkins-bot [Tue, 22 Oct 2013 02:34:27 +0000 (02:34 +0000)]
Merge "Fixes for duplicateStderr (I833aeb3a)"

10 years agoMention the new HTMLForm 'vform' display format.
S Page [Tue, 22 Oct 2013 02:26:08 +0000 (19:26 -0700)]
Mention the new HTMLForm 'vform' display format.

Change Id03d185bbee990595bfc469a61163cc598fc3441 added the feature.

Change-Id: I17ccb127e47047dc32f930ce1775496ea22410d2

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 21 Oct 2013 22:51:33 +0000 (22:51 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0539a27c72b9a270db4e3b29a4c357e40d806353

10 years agoMerge "mediawiki.inspect: add CSS report"
jenkins-bot [Mon, 21 Oct 2013 20:35:36 +0000 (20:35 +0000)]
Merge "mediawiki.inspect: add CSS report"

10 years agoMerge "Added a few more trx sanity checks to DatabaseBase"
jenkins-bot [Mon, 21 Oct 2013 20:28:44 +0000 (20:28 +0000)]
Merge "Added a few more trx sanity checks to DatabaseBase"

10 years agoMerge "Have list items occupy their own line"
jenkins-bot [Mon, 21 Oct 2013 20:24:22 +0000 (20:24 +0000)]
Merge "Have list items occupy their own line"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 21 Oct 2013 19:42:49 +0000 (19:42 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I922e660fafc7a952129beebeaed001712f5c2bc1

10 years agoMerge "Clean up old title on move before reset article id"
jenkins-bot [Mon, 21 Oct 2013 17:45:26 +0000 (17:45 +0000)]
Merge "Clean up old title on move before reset article id"

10 years agoMerge "jquery.localize: Fix incorrect use of void tag for <html:msg>"
jenkins-bot [Mon, 21 Oct 2013 17:43:37 +0000 (17:43 +0000)]
Merge "jquery.localize: Fix incorrect use of void tag for <html:msg>"

10 years agoMerge "Fix typo erronously -> erroneously"
jenkins-bot [Mon, 21 Oct 2013 17:39:13 +0000 (17:39 +0000)]
Merge "Fix typo erronously -> erroneously"

10 years agoMerge "Add 'RedisPubSubFeedEngine' feed engine"
jenkins-bot [Mon, 21 Oct 2013 17:37:36 +0000 (17:37 +0000)]
Merge "Add 'RedisPubSubFeedEngine' feed engine"

10 years agoFix typo erronously -> erroneously
Timo Tijhof [Mon, 21 Oct 2013 17:29:16 +0000 (19:29 +0200)]
Fix typo erronously -> erroneously

Follows-up 1aed5382d2.

Change-Id: I1e0cbc3dfa529816446c3aec6372eb2b821ee540

10 years agojquery.localize: Fix incorrect use of void tag for <html:msg>
Timo Tijhof [Mon, 21 Oct 2013 17:26:44 +0000 (19:26 +0200)]
jquery.localize: Fix incorrect use of void tag for <html:msg>

Follows-up 55dac1f which errounously changed a few <html:msg />
to <html:msg> while trying to fix up <span/></span>.

Bug: 40598
Change-Id: I987fa288cc1b97a8a5fb367aae2626d7d0b48238

10 years agoAdd 'RedisPubSubFeedEngine' feed engine
Ori Livneh [Mon, 26 Aug 2013 06:46:21 +0000 (23:46 -0700)]
Add 'RedisPubSubFeedEngine' feed engine

This patch adds a class which implements the RCFeedEngine interface by
publishing recent change notifications to Redis. The class handles the
'redis://' URI scheme. Recent changes are PUBLISHed to the channel 'rc'; a
different channel name may be specified as a path component.

Change-Id: I846036c091c45059a8947245a1efe92c9800dcf4

10 years agoAdded ceph comment
Aaron Schulz [Mon, 21 Oct 2013 17:20:34 +0000 (10:20 -0700)]
Added ceph comment

Change-Id: Ice9efd7ada10e1896afd0185a6305f6852e9605d

10 years agoAdded a few more trx sanity checks to DatabaseBase
Aaron Schulz [Mon, 19 Aug 2013 19:26:01 +0000 (12:26 -0700)]
Added a few more trx sanity checks to DatabaseBase

* Also track the caller that added the callbacks

Change-Id: Idc4d9e4a89fcee28bd4b18ad6d8c6b09b9fe7e75

10 years agoDeclare visibility on class properties
Siebrand Mazeland [Fri, 4 Oct 2013 05:54:44 +0000 (07:54 +0200)]
Declare visibility on class properties

As pointed out by phpcs:

 The var keyword must not be used to declare a property
 (PSR2.Classes.PropertyDeclaration.VarUsed)

Set to public, as this is also done for class properties in classes these
ones extend.

Also break some long lines to silence CodeSniffer.

Change-Id: I77dd45eb2bf1d405d429603b97d5cbfb7ea04ad0

10 years agoAdd @covers tags for more tests
addshore [Mon, 21 Oct 2013 08:46:11 +0000 (10:46 +0200)]
Add @covers tags for more tests

Change-Id: Iff3af78e9b41c445b7f066b6c0d0f4a87d2d6c4e

10 years agoFixes for duplicateStderr (I833aeb3a)
Tim Starling [Mon, 21 Oct 2013 04:18:04 +0000 (15:18 +1100)]
Fixes for duplicateStderr (I833aeb3a)

* Separate code from data. $2 in limit.sh is an option list.
* Don't duplicate stderr on linux when limit.sh is not used, unless
  duplicateStderr is specified

Change-Id: I8e6e74810864830c12af627bfbe75e74ba34e3e3

10 years agoMerge "Simplify boolean attribute handling for Html::input in templates"
jenkins-bot [Mon, 21 Oct 2013 01:24:27 +0000 (01:24 +0000)]
Merge "Simplify boolean attribute handling for Html::input in templates"

10 years agoMerge "Make it possible for EditPage::getCopyrightWarning to return HTML"
jenkins-bot [Mon, 21 Oct 2013 01:19:27 +0000 (01:19 +0000)]
Merge "Make it possible for EditPage::getCopyrightWarning to return HTML"

10 years agoMerge "Remove proxy check in EditPage.php"
jenkins-bot [Mon, 21 Oct 2013 01:17:52 +0000 (01:17 +0000)]
Merge "Remove proxy check in EditPage.php"

10 years agoRemove proxy check in EditPage.php
Kevin Israel [Mon, 30 Sep 2013 00:26:15 +0000 (20:26 -0400)]
Remove proxy check in EditPage.php

$wgBlockOpenProxies, $wgProxyPorts, $wgProxyScriptPath, and
$wgProxyMemcExpiry have been removed, along with the open proxy
scanner script they were added for.

Bug: 54597
Change-Id: Id4c7521443f04995df3d8762d23629c18ada76f8

10 years agoMerge "Remove 'Debug' hook from wfDebug and wfDebugLog"
jenkins-bot [Mon, 21 Oct 2013 00:54:56 +0000 (00:54 +0000)]
Merge "Remove 'Debug' hook from wfDebug and wfDebugLog"

10 years agomediawiki.inspect: add CSS report
Ori Livneh [Sun, 20 Oct 2013 08:09:53 +0000 (01:09 -0700)]
mediawiki.inspect: add CSS report

This patch extends mediawiki#inspect to add a notion of 'reports'. Instead of
there being one single view for all ResourceLoader module debug data, you can
now request that a specific report be run. Each report highlights a set of
metrics that are unified by some common theme.

The previous, unqualified report is now branded the 'size' report. In addition
to it, this patch also adds a CSS report, which prints the count of selectors
and the count of selectors that match against the current time

Change-Id: I0e7a47b5a93a66ecb103fe30a3de8a2ca8a4eb84

10 years agoBaseTemplate: Exclude two more attributes in makeLink()
Bartosz Dziewoński [Fri, 18 Oct 2013 20:34:31 +0000 (22:34 +0200)]
BaseTemplate: Exclude two more attributes in makeLink()

'context' and 'primary' are used internally by some SkinTemplate
functions and Vector. They should not be passed on to HTML.

Bug: 55659
Bug: 55660
Change-Id: I1f7a656aacc93f9bf289c481f258824ae28ccf4e

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 20 Oct 2013 21:52:43 +0000 (21:52 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Don't match HTML entities in language conversion syntax"
jenkins-bot [Sun, 20 Oct 2013 20:59:15 +0000 (20:59 +0000)]
Merge "Don't match HTML entities in language conversion syntax"

10 years agoSimplify boolean attribute handling for Html::input in templates
Bartosz Dziewoński [Wed, 16 Oct 2013 16:57:12 +0000 (18:57 +0200)]
Simplify boolean attribute handling for Html::input in templates

The Html class supports this handy shorthand.

Change-Id: Ie34790fa650c7ecad02c2d91130bf0db9172ea3f

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 20 Oct 2013 19:12:29 +0000 (19:12 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ifc418e11643e44130c7d5d563aaae870222ba536

10 years agoClean up old title on move before reset article id
umherirrender [Fri, 11 Oct 2013 15:26:59 +0000 (17:26 +0200)]
Clean up old title on move before reset article id

Calling WikiPage::onArticleDelete without a page_id will reload the
page id, maybe from a (lagged) slave, than the title has the page id
set, and a call to Title::exists return true, which shows the link in
blue and the wrong message.

Bug: 45348
Change-Id: If415dc1729b0bb1cfe7fc75f9e29638a6797d478

10 years agoMake it possible for EditPage::getCopyrightWarning to return HTML
Kunal Mehta [Thu, 17 Oct 2013 05:34:07 +0000 (22:34 -0700)]
Make it possible for EditPage::getCopyrightWarning to return HTML

Adds a $format option to let it return various output formats
so code that needs HTML doesn't have to do hacky stuff.

Change-Id: Ie4ff9738773399f9f00994c6cc587703ce99a681

10 years agoHave list items occupy their own line
Erwin Dokter [Sat, 19 Oct 2013 14:03:45 +0000 (14:03 +0000)]
Have list items occupy their own line

Ensures that HTML list items are on their own line, which fixes a
CSS issue with .hlist; it depends on a breakable character between
list items, and a newline does provide one. Should also unburden
HTML Tidy, as output now matched that of Tidy.

Bug: 39617
Change-Id: I82fb4d749a200cfc049b30d2ee6e96a5ff7574e2

10 years agoMerge "FormOptions: Document getValueReal(), consistency fixes"
jenkins-bot [Sat, 19 Oct 2013 15:12:29 +0000 (15:12 +0000)]
Merge "FormOptions: Document getValueReal(), consistency fixes"

10 years agoMerge "Split changes list classes into separate files"
jenkins-bot [Sat, 19 Oct 2013 14:41:22 +0000 (14:41 +0000)]
Merge "Split changes list classes into separate files"

10 years agoSplit changes list classes into separate files
aude [Thu, 17 Oct 2013 00:51:49 +0000 (00:51 +0000)]
Split changes list classes into separate files

Having them separate improves readability of the code
and makes it easier to work with this code.

Change-Id: Ic6aaf1ace3640f66ad41c2d85b4f7d740b259e0c

10 years agoMerge "Tweak bidi on Special:Contributions/newbies"
jenkins-bot [Sat, 19 Oct 2013 14:23:44 +0000 (14:23 +0000)]
Merge "Tweak bidi on Special:Contributions/newbies"

10 years agomediawiki.notification: Expose close method to hide a Notification
Alex Monk [Thu, 18 Jul 2013 18:06:16 +0000 (19:06 +0100)]
mediawiki.notification: Expose close method to hide a Notification

Bug: 51338
Change-Id: Icd7fd1ac328094ddc2560d4804dd52fc85879867

10 years agoMerge "Added more Message parameter functions"
jenkins-bot [Sat, 19 Oct 2013 12:41:41 +0000 (12:41 +0000)]
Merge "Added more Message parameter functions"

10 years agoAdded more Message parameter functions
parent5446 [Fri, 23 Aug 2013 20:32:43 +0000 (16:32 -0400)]
Added more Message parameter functions

Similar to numParams(), added functions for other parameters
that can be formatted by the Language class. Adds functions for
expiry, size, timePeriod, duration, and bitrate parameters so
that the formatting doesn't have to be done at the caller.

Change-Id: I7b435fcc11824ead55e4c0f5512418187eae9a6f

10 years agoMerge "Rename Toolbox to Tools"
jenkins-bot [Sat, 19 Oct 2013 12:04:03 +0000 (12:04 +0000)]
Merge "Rename Toolbox to Tools"

10 years agoMerge "Correct release notes for I9dd9f0fd499c37f2"
jenkins-bot [Sat, 19 Oct 2013 11:40:12 +0000 (11:40 +0000)]
Merge "Correct release notes for I9dd9f0fd499c37f2"

10 years agoCorrect release notes for I9dd9f0fd499c37f2
Timo Tijhof [Mon, 24 Jun 2013 17:46:28 +0000 (10:46 -0700)]
Correct release notes for I9dd9f0fd499c37f2

Change-Id: I8f6e84b958d1bdadb578de655c4306f6b9d1c873

10 years agoMerge "deleteEqualMessages: Exclude messages that are empty by default"
jenkins-bot [Sat, 19 Oct 2013 11:29:20 +0000 (11:29 +0000)]
Merge "deleteEqualMessages: Exclude messages that are empty by default"

10 years agofilebackend: try to combine SH and EX lock acquisition
Aaron Schulz [Wed, 12 Jun 2013 19:31:15 +0000 (12:31 -0700)]
filebackend: try to combine SH and EX lock acquisition

* getPathsToLockForOpsInternal() now returns an array in the format LockManager can use
* Also fixed getScopedLocksForOps() for multiwrite backend (it should accept proxy backend paths)
* Updated getScopedFileLocks() docs

Change-Id: Id0dc50c159c5fbc8fca10a9e46c5be23afcb3e9a

10 years agoSmall JobQueueFederated performance tweaks
Aaron Schulz [Fri, 18 Oct 2013 03:00:24 +0000 (20:00 -0700)]
Small JobQueueFederated performance tweaks

* Made "find non-empty queues" and isEmpty() checks start with the most
  weighted partitions first
* Cleaned up a few exception catches to use JobQueueError
* Added short-circuit for doGetSiblingQueuesWithJobs()

Change-Id: I4d96a8c61c6b1c41dbb44000ccda0fa05a418a09

10 years agoFixed a bunch of annoying deprecation notices
Aaron Schulz [Fri, 18 Oct 2013 20:58:13 +0000 (13:58 -0700)]
Fixed a bunch of annoying deprecation notices

Change-Id: Ic2eb0ea94d8e27574f7dc76f1b448ccd6c01bb98

10 years agoRename Toolbox to Tools
Bartosz Dziewoński [Fri, 18 Oct 2013 20:27:54 +0000 (22:27 +0200)]
Rename Toolbox to Tools

The name "Toolbox" is strangely anachronistic. Other functions in the
sidebar such as languages and navigation use very simple, functional
names.

Most translations already use a single word with meaning equivalent to
simply "Tools"; several use literal translations of "Box of tools",
which tends to look rather awkward.

Bug: 54910
Change-Id: I9ba287ec6426632847fe7d3a0d71948838496317

10 years agoReduce excess lock contention and chance for failure on rename
Aaron Schulz [Thu, 17 Oct 2013 18:35:00 +0000 (11:35 -0700)]
Reduce excess lock contention and chance for failure on rename

* DB locks and transactions were getting held up by sometimes slow purges (10+ seconds)

Change-Id: I0eead60e8faf5aee6b2ddf59cfdd928f9c8083ff

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 18 Oct 2013 19:08:52 +0000 (19:08 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I239f39d2a75aabffa1586776bcb8fb3c447c5df4

10 years agoMerge "Split change_tag sql patch"
Mwalker [Fri, 18 Oct 2013 18:57:38 +0000 (18:57 +0000)]
Merge "Split change_tag sql patch"

10 years agoMerge "Add @covers tags for /content files"
Mwalker [Fri, 18 Oct 2013 18:50:15 +0000 (18:50 +0000)]
Merge "Add @covers tags for /content files"

10 years agoMerge "Add @covers for GenderCache + MessageCache tests"
Mwalker [Fri, 18 Oct 2013 18:48:17 +0000 (18:48 +0000)]
Merge "Add @covers for GenderCache + MessageCache tests"

10 years agoMerge "Add @covers for main Database test types"
Mwalker [Fri, 18 Oct 2013 18:42:01 +0000 (18:42 +0000)]
Merge "Add @covers for main Database test types"

10 years agoMerge "importImages.php: Correctly generate automatic summary"
jenkins-bot [Fri, 18 Oct 2013 17:53:32 +0000 (17:53 +0000)]
Merge "importImages.php: Correctly generate automatic summary"

10 years agoMerge "Removed unused const QoS_Atomic constant (odd casing)"
jenkins-bot [Fri, 18 Oct 2013 17:48:26 +0000 (17:48 +0000)]
Merge "Removed unused const QoS_Atomic constant (odd casing)"

10 years agoimportImages.php: Correctly generate automatic summary
Reedy [Fri, 18 Oct 2013 17:13:57 +0000 (18:13 +0100)]
importImages.php: Correctly generate automatic summary

If the summary parameter is not set, then use the page text of the
given page, NOT that of the first image uploaded.

Bug: 55885
Change-Id: I00ced9d2ce62fc1a00f26ff513866359cf96d535

10 years agoDon't blindly overwrite $options in importImages.php
Reedy [Fri, 18 Oct 2013 17:33:13 +0000 (18:33 +0100)]
Don't blindly overwrite $options in importImages.php

Bug: 55883
Change-Id: I695e080000f6abec3ded966f12af3e25c585c3ba

10 years agoAdd @covers for GenderCache + MessageCache tests
addshore [Fri, 18 Oct 2013 11:06:08 +0000 (13:06 +0200)]
Add @covers for GenderCache + MessageCache tests

Change-Id: I379f2788c1b308354a3dbb73c889aa4a90b2cd20

10 years agoAdd @covers tags for /content files
addshore [Fri, 18 Oct 2013 10:53:29 +0000 (12:53 +0200)]
Add @covers tags for /content files

Change-Id: Ied40e5afb1027f7d8ff46ffbf722ff6558eed880

10 years agoAdd @covers for main Database test types
addshore [Fri, 18 Oct 2013 10:36:09 +0000 (12:36 +0200)]
Add @covers for main Database test types

Change-Id: I010ff5ce7afd85c7f9d528a98f2448547874b8b3

10 years agoTweak bidi on Special:Contributions/newbies
Ebrahim Byagowi [Tue, 30 Jul 2013 17:58:08 +0000 (17:58 +0000)]
Tweak bidi on Special:Contributions/newbies

Special:Contributions/newbies when page title is not RTL will mixed
username and page title.

Change-Id: Icccf953cd2b6784f83fdd6a5775b6af8b1216ed5

10 years agoRemoved unused const QoS_Atomic constant (odd casing)
Aaron Schulz [Fri, 18 Oct 2013 00:41:32 +0000 (17:41 -0700)]
Removed unused const QoS_Atomic constant (odd casing)

Change-Id: I2b03ad1700e3a1184f7209394096cde61d23c6a5

10 years agojobqueue: various cleanups to JobQueueFederated
Aaron Schulz [Wed, 19 Jun 2013 01:35:14 +0000 (18:35 -0700)]
jobqueue: various cleanups to JobQueueFederated

* The relevant partition information is now stored in
  the fields instead of the general information for all wikis.
* Also improved hash ring caching and made getCoalesceLocationInternal()
  more robust.
* Improved availability of sibling queue methods.

Change-Id: I7ac268bb1db4615e0f735576c506593d5688e17e

10 years agoTry to make sure jobs will not get pushed twice on failures
Aaron Schulz [Thu, 10 Oct 2013 19:16:34 +0000 (12:16 -0700)]
Try to make sure jobs will not get pushed twice on failures

* Some queues like the DB one, might split up batches into chunks
  which we do not want when used by federated queues (it already
  manages chunking anyway). If only X of Y got inserted, then they
  would all get inserted into another partition, causing duplicates

Change-Id: Id73b34f3500f8aeaf456e6bcac862a1e4832c870

10 years agoMerge "Fix SQLite exception when $wgDBuser is set"
jenkins-bot [Thu, 17 Oct 2013 22:48:13 +0000 (22:48 +0000)]
Merge "Fix SQLite exception when $wgDBuser is set"

10 years agoRemove 'Debug' hook from wfDebug and wfDebugLog
Erik Bernhardson [Thu, 17 Oct 2013 22:41:38 +0000 (15:41 -0700)]
Remove 'Debug' hook from wfDebug and wfDebugLog

Per the bug report, the 'Debug' hook was triggering an infinite loop when
wgDebugFunctionEntry is enabled.  The Debug hook is used if an extension wants
to stop a debug message from being sent out.  Ideally the wfDebug and related
functions should be as low-level and avoid calling other code as much as
possible to avoid situations like this.

Bug: 55818
Change-Id: I679782489b683503fc624cfea3c7ad72a989b005

10 years agoFix SQLite exception when $wgDBuser is set
Tim Starling [Thu, 17 Oct 2013 04:16:46 +0000 (15:16 +1100)]
Fix SQLite exception when $wgDBuser is set

Fixed from several different directions:
* The error reporting was screwed up, so I wrapped the PDOException
  in a DBUnexpectedError.
* Make $db->open() trigger a close/open sequence if called a second
  time, like MySQL, instead of breaking mTrxLevel.
* Don't call $this->open() twice from the constructor, even if $user is
  set.

The bug dates to r84485. The nasty hack allowing you to construct a
do-nothing database object with "new Database()" dates back to 2004 and
has probably outlived its usefulness -- noted this. It was formerly used
by LoadBalancer::reportConnectionError().

Bug: 49254
Change-Id: I571f9209bec8e8ed5058b6327e1738eb4315d5a0

10 years agoAdd $wgEnableParserLimitReporting to control whether the NewPP limit
Reedy [Mon, 14 Oct 2013 23:33:34 +0000 (00:33 +0100)]
Add $wgEnableParserLimitReporting to control whether the NewPP limit
report is included as a HTML comment.

Bug: 26792
Change-Id: I2b2b3c9d76487168243b733c1154c4c26c7de3d6

10 years agoMerge "mediawiki.api: add postWithToken and getToken"
jenkins-bot [Thu, 17 Oct 2013 21:07:27 +0000 (21:07 +0000)]
Merge "mediawiki.api: add postWithToken and getToken"

10 years agomediawiki.api: add postWithToken and getToken
Niklas Laxström [Mon, 20 May 2013 15:36:48 +0000 (15:36 +0000)]
mediawiki.api: add postWithToken and getToken

Similar to postWithEditToken in mw.api.edit, but more generic.

Change-Id: Ic2af66b91a996bc9b46dc3e999b4099541573b08

10 years agoMerge "If $wgShowHostnames is true, add parsed by to NewPP limit report"
jenkins-bot [Thu, 17 Oct 2013 19:48:39 +0000 (19:48 +0000)]
Merge "If $wgShowHostnames is true, add parsed by to NewPP limit report"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 17 Oct 2013 19:33:46 +0000 (19:33 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3560103a9de1e613c5878422172e070878ec7d43

10 years agoAdd archive, externallinks PK
tisane [Sun, 28 Oct 2012 02:23:50 +0000 (22:23 -0400)]
Add archive, externallinks PK

* New fields: ar_id, el_id. el_id is presently not used for
  anything, but will help with online schema changes.

Bug: 15441
Bug: 39675
Change-Id: Ib6b0fc3736d173fa4ba7b786ecfc710b2f4711bb

10 years agoFix mysqli support
Tim Starling [Wed, 16 Oct 2013 23:38:11 +0000 (10:38 +1100)]
Fix mysqli support

Exception was thrown if $dbType=mysql, regardless of whether a driver
was available. Also, the installer support was broken if the mysql
driver was missing.

Change-Id: I29df3fc9b3bf5743c1365f757e0cf899d5b96ae9

10 years agoResubmit "Add support for mysqli extension"
Tim Starling [Thu, 17 Oct 2013 00:03:01 +0000 (00:03 +0000)]
Resubmit "Add support for mysqli extension"

This reverts commit 1d7e12179df0db332f9ac139e8b7d831e04a6a10.

Change-Id: Id1a3fc34e94006b880f58de83e5e7c70b21d26ed

10 years agoMerge "Revert "Add new recentchanges field rc_source to replace rc_type""
jenkins-bot [Thu, 17 Oct 2013 00:37:44 +0000 (00:37 +0000)]
Merge "Revert "Add new recentchanges field rc_source to replace rc_type""

10 years agoRevert "Add new recentchanges field rc_source to replace rc_type"
Reedy [Thu, 17 Oct 2013 00:32:40 +0000 (00:32 +0000)]
Revert "Add new recentchanges field rc_source to replace rc_type"

No feature flag, and also not deployed on WMF wikis. Asking for schema changes by the time we branch tomorrow is just unfair

This reverts commit e478c230f6d3f1b7638d4443682eff0df7650def.

Change-Id: I125c30e76fa04679cc04ae7b8728ae3a61f35194

10 years agoVector: Fix font size regression
jrobson [Wed, 16 Oct 2013 15:19:34 +0000 (08:19 -0700)]
Vector: Fix font size regression

As Krinkle noted the font size of the body content ballooned with
Ica0b69ad95051e15cd8ed9888927e034c13fbf92 - this rectifies it.

Change-Id: I3a5a159cbb04a1a24277596ca304805a84d3b77f

10 years agoMerge "Revert "Add support for mysqli extension""
jenkins-bot [Wed, 16 Oct 2013 23:54:05 +0000 (23:54 +0000)]
Merge "Revert "Add support for mysqli extension""

10 years agoRevert "Add support for mysqli extension"
Tim Starling [Wed, 16 Oct 2013 23:49:24 +0000 (23:49 +0000)]
Revert "Add support for mysqli extension"

Throws exception unconditionally, installer support is totally broken.

This reverts commit b2d64432ee02661ea29cb727686e10e7a4980dfb.

Change-Id: I2edb78440806754c42d48c5da2ff74b4cb40fa2d

10 years agoMerge "Added a "syncviadelete" param to copyFileBackend script"
jenkins-bot [Wed, 16 Oct 2013 23:35:20 +0000 (23:35 +0000)]
Merge "Added a "syncviadelete" param to copyFileBackend script"

10 years agoMerge "Add new recentchanges field rc_source to replace rc_type"
jenkins-bot [Wed, 16 Oct 2013 23:33:37 +0000 (23:33 +0000)]
Merge "Add new recentchanges field rc_source to replace rc_type"

10 years agoAdded a "syncviadelete" param to copyFileBackend script
Aaron Schulz [Tue, 13 Aug 2013 17:21:50 +0000 (10:21 -0700)]
Added a "syncviadelete" param to copyFileBackend script

* Added a bit of tabbing to clarify the output

Change-Id: I4b0095595d742452b151e6ed6765a9dc805a55ae

10 years agoAdd support for mysqli extension
Jakub Vrana [Fri, 3 May 2013 06:01:32 +0000 (23:01 -0700)]
Add support for mysqli extension

DatabaseBase::factory()'s parameter array now takes an optional
'driver' variable to allow specifying a specific driver for the
database class if we support more than one.

This is so we can gracefully support mysql/mysqli as the former is
deprecated, but the concept could be extended to other databases
as well.

Bug: 45288
Co-Author: Chad Horohoe <chadh@wikimedia.org>
Change-Id: I6733fe21c4aa7443e409c5dfa7c789552b2b62b7

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 16 Oct 2013 21:32:50 +0000 (21:32 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id8e5920d1a5f58fc904a812369df35fe2f8f448e

10 years agoMerge "Keep returnto, returntoquery on Special:CreateAccount redirect"
jenkins-bot [Wed, 16 Oct 2013 18:40:10 +0000 (18:40 +0000)]
Merge "Keep returnto, returntoquery on Special:CreateAccount redirect"

10 years agoAdd new recentchanges field rc_source to replace rc_type
Erik Bernhardson [Mon, 23 Sep 2013 22:38:01 +0000 (15:38 -0700)]
Add new recentchanges field rc_source to replace rc_type

The existing field to differentiate between kinds of recentchanges rows is
the rc_type field. We want to allow extensions to insert their own custom
data into recentchanges, but we have learned via the NS_* series of constants
that requiring extensions to "register" a specific number is very error prone.

The solution, which this commit implements the first phase of, is to utilize
a new 16 byte string field rc_source.  Within that field change types will be
prefixed strings such as 'mw.edit' and 'mw.new'.

This commit adds the new field and begins populating it with data.  At some
point in the future the rc_type field will be dropped.  While WMF wiki's will
simply wait out the 30 day recentchanges history, other wiki's have the option
of letting update.php populate rc_source, or manually applying the db change and
utilizing the PopulateRecentChangeSource maintenance script.

Change-Id: Iaddd6c446373a68d31586ed54346db7d04e13b2c

10 years agoMerge "Use max() for job count for sanity"
jenkins-bot [Wed, 16 Oct 2013 18:12:33 +0000 (18:12 +0000)]
Merge "Use max() for job count for sanity"